1 2004-04-09 Art Haas <ahaas@airmail.net>
3 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
5 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
7 * arch/misc/shdeps.sh: Generate better comment for sed script.
9 2004-04-08 Art Haas <ahaas@airmail.net>
11 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
12 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
13 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
14 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
15 (polyfill), src/preproc/grn/main.cpp (polyfill),
16 src/preproc/refer/command.cpp (command_table),
17 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
18 gcc 3.5 doesn't like).
20 2004-04-08 Werner Lemberg <wl@gnu.org>
22 Removing many compiler warnings. groff should now compile with
23 a C++ compiler used for C files also. [Simple variable renamings
24 to avoid shadowing aren't logged in detail.]
26 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
27 (draw_dvi_printer::draw) ['c']: Enclose in block.
29 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
30 (page::add_line): Fix typos.
31 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
33 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
34 Some local variable renamings.
35 * src/devices/grolbp/lbp.h: Some local variable renamings.
37 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
40 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
41 Remove redundant local variable declaration.
42 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
43 Don't use `caddr_t' but `void *'.
44 Enclose functions with `extern "C"' for C++.
46 * src/libs/libdriver/input.cpp (remember_filename,
47 remember_source_filename): Use cast for string constant.
49 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
50 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
51 src/libs/libgroff/geometry.cpp: Some local variable renamings.
52 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
54 Enclose functions with `extern "C"' for C++.
55 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
56 (needs_quoting): Return `int'.
57 (quote_arg): Add proper casts to malloc and realloc.
58 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
59 various MS Windows environments.
60 (spawnvp_wrapper): Add proper cast to malloc.
62 * src/preproc/eqn/box.h: Remove redundant declarations of
63 `make_script_box', `make_mark_box' and `make_lineup_box'.
64 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
65 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
68 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
69 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
70 (dx, dy): Renamed functions to...
71 (deltax, deltay): This.
72 * src/preproc/grn/main.cpp: Some local variable renamings.
73 (deffont): Add `const'.
74 (initpic, conv): Use cast for string constant.
76 * src/preproc/html/pre-html.cpp: Some local variable renamings.
77 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
78 (char_buffer::run_output_filter): Second argument is unused.
79 * src/preproc/html/pushback.cpp: Some local variable renamings.
81 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
82 * src/preproc/pic/object.cpp: Some local variable renamings.
84 * src/preproc/refer/label.y (lookup_label): Remove redundant
85 declaration of local variable.
87 * src/preproc/soelim.cpp: Remove redundant declaration of
90 * src/preproc/tbl/main.cpp: Some local variable renamings.
92 * src/roff/groff/groff.cpp (main): Use cast for string constant.
93 * src/roff/groff/pipeline.c: Enclose declarations of `error',
94 `c_fatal', and `i_to_a' with `extern "C"' for C++.
95 Don't use C++-style comments.
97 * src/roff/troff/env.h: Remove redundant declaration of `title'.
98 * src/roff/troff/node.h, src/roff/troff/env.cpp,
99 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
101 * src/roff/troff/div.h: Remove redundant declaration of
103 * src/roff/troff/troff.h: Remove redundant declaration of
105 * src/roff/troff/input.cpp: Remove redundant declaration of
106 `handle_first_page_transition' and `process_input_stack'.
108 * src/utils/hpftodit.cpp: Some local variable renamings.
110 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
112 Don't define RETSIGTYPE.
113 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
115 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
116 (error): Use `const' in argument.
117 (main): Remove redundant declaration of `optind'.
118 Move declaration of `Version_string' to top-level.
120 * PROBLEMS: Document difficulties compiling signal.c if a C++
121 compiler is used for C.
123 2004-04-07 Werner Lemberg <wl@gnu.org>
125 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
127 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
129 Make scripts like nroff.sh and neqn.sh portable across various
130 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
131 non-POSIX path separators. The idea is to extend those scripts to
132 decide at run-time (of the script) which path separator to use.
134 * arch/misc/Makefile.sub: New file.
135 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
136 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
137 a proper definition of the variable `GROFF_RUNTIME'.
139 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
140 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
141 (PROGDEPDIRS): New variable.
143 (PROGDIRS): Add PROGDEPDIRS.
145 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
146 Don't substitute @SEP@ and @BINDIR@.
147 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
148 (PATH): Use GROFF_RUNTIME.
150 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
151 Don't substitute @SEP@ and @BINDIR@.
152 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
153 (PATH): Use GROFF_RUNTIME.
155 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
157 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
158 Cygwin which doesn't handle stderr correctly.
160 2004-03-08 Werner LEMBERG <wl@gnu.org>
162 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
163 against empty argument. Problem reported by <cgd@broadcom.com>.
165 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
167 * Makefile.in (SEP): Replaced with...
168 (RT_SEP, SH_SEP): Separators for the target platform's native path
169 separator and the build environment, respectively.
170 (fontpath, tmacpath): Use RT_SEP.
173 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
174 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
175 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
176 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
178 2004-03-05 Werner LEMBERG <wl@gnu.org>
180 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
181 reduce alignment problems with newer printers which use built-in
182 TrueType fonts (instead of the older Intellifonts). The ideal
183 solution is to provide a second set of groff metric files, but this
184 is extremely time-consuming to produce, given that HP's metric
185 files are very rudimentary.
187 2004-03-01 Werner LEMBERG <wl@gnu.org>
189 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
190 s/operand/argument/ in error message.
192 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
194 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
197 2004-03-01 Antti Kantee <pooka@netbsd.org>
199 * tmac/s.tmac (XE): Fix error message.
201 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
203 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
206 * src/roff/groff/pipeline.c: Declare strcasecmp.
207 (run_pipeline) [_WIN32]: Use function name variants which don't
211 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
213 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
214 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
215 for platforms which use the native Win32 runtime libraries.
216 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
218 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
219 QUOTE_ARG_REALLOC_ERROR): Fix string.
221 * src/preproc/html/pre-html.cpp: Remove declaration of
223 Don't use __MINGW32__.
224 s/DEBUG_FILE/DEBUG_FILE_DIR/.
225 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
226 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
227 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
228 calls to `set_redirection' and `WAIT'.
229 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
230 Fix calls to `set_redirection' and `save_and_redirect'.
231 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
232 to `set_redirection' and `save_and_redirect'.
233 (usage): Fix message.
234 (makeTempFiles, main): Use `DEBUG_FILE'.
236 2004-02-21 Werner LEMBERG <wl@gnu.org>
238 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
240 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
242 * src/libs/libgroff/quotearg.c: New file, providing proper argument
243 quoting for MSVC's spawn* and exec* functions.
244 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
245 spawnvp with proper quoting for MSVC.
247 * src/libs/libgroff/assert.cpp (program_name),
248 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
249 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
251 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
253 * src/include/error.h (program_name): Declare as `extern "C"'.
254 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
256 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
258 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
260 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
262 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
264 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
266 (sbasename) [__MSDOS__ || ...]: New function.
267 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
269 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
270 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
272 Use STDOUT_FILENO instead of hardcoded file handle.
273 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
275 2004-02-19 Werner LEMBERG <wl@gnu.org>
277 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
278 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
280 2004-02-18 Werner LEMBERG <wl@gnu.org>
282 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
283 new font and mapping files.
285 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
286 Keith Marshall <keith.d.marshall@ntlworld.com>
288 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
289 an input pipe. This is needed for the MSVC compiler to make troff's
292 * src/roff/troff/div.cpp: Include nonposix.h.
293 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
295 2004-02-17 Werner LEMBERG <wl@gnu.org>
297 * font/devlj4/generate/special.awk: New script.
298 * font/devlj4/generate/Makefile (S): Use special.awk.
299 * font/devlj4/*: Regenerated, including the following new files:
300 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
301 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
302 * NEWS: Document new lj4 fonts and revised hpftodit.
304 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
306 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
308 2004-01-25 Werner LEMBERG <wl@gnu.org>
310 * src/libs/libgroff/progname.cpp: Replaced with...
311 * src/libs/libgroff/progname.c: New file.
312 * src/libs/libgroff/Makefile.sub: Updated accordingly.
314 2004-01-17 Werner LEMBERG <wl@gnu.org>
316 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
318 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
320 * font/devlj4/generate/wingdings.map,
321 font/devlj4/generate/symbol.map: Include unnamed glyphs.
322 Use groff glyph names where possible.
323 * src/devices/grolj4/lj4_font.man: Minor updates.
325 2004-01-13 Werner LEMBERG <wl@gnu.org>
327 * tmac/www.tmac (DC): Handle TTY devices.
329 * doc/webpage.ms: Document viewCVS from ffii.org.
330 * NEWS, README: Updated.
332 * src/roff/groff/groff.man: Mention lj4_font man page.
334 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
336 (FONTS): Add SYMBOL and WINGDINGS.
337 (SYMBOL, WINGDINGS): New targets.
339 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
341 * src/devices/grolj4/lj4_font.man: New man page.
342 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
343 * src/devices/grolj4.man: Mention lj4_font man page.
345 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
346 * src/utils/hpftodit/hpftodit.man: Document it.
348 Remove details about fonts (which are now in lj4_font.man).
350 * font/devlj4/generate/symbol.map,
351 font/devlj4/generate/wingdings.map: New files.
353 2004-01-12 Werner LEMBERG <wl@gnu.org>
355 * README: Mention ffii's viewcvs access.
357 2004-01-09 Werner LEMBERG <wl@gnu.org>
359 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
361 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
363 Revert most of the change from 2004-01-03 to better control used
366 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
367 (text_symbol_sets, special_symbol_sets): New arrays.
368 (symbol_set_table): New global variable.
369 (read_symbol_sets): Use search order given in the text_symbol_sets
370 and special_symbol_sets arrays. If command line flag -a is not
371 given, search both arrays.
372 (output_charset): Require x_height_tag only for command line flag -i.
374 2004-01-06 Werner LEMBERG <wl@gnu.org>
376 Implement string-valued registers \n[.m] and \n[.M] to return the
377 name of the current drawing and background color, respectively.
379 * src/roff/troff/symbol.h: Moved to...
380 * src/include/symbol.h: Here.
381 Small fixes to make it work outside of the `troff' directory.
382 * src/roff/troff/symbol.cpp: Moved to...
383 * src/libs/libgroff/symbol.cpp: Here.
384 Small fixes to make it work outside of the `troff' directory.
386 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
387 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
390 * src/include/color.h: Include symbol.h.
391 (color): Add new field `nm'.
392 * src/libs/libgroff/color.cpp (color::color): Updated.
394 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
395 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
396 src/roff/troff/reg.cpp: Don't include symbol.h.
398 * src/roff/troff/env.cpp: Don't include symbol.h.
399 (environment::get_glyph_color_string,
400 environment_get_fill_color_string): New member functions.
401 (init_env_requests): Handle `.m' and `.M' registers.
402 * src/roff/troff/input.cpp: Don't include symbol.h.
403 (default_symbol): Moved to symbol.cpp/symbol.h.
404 (do_glyph_color, do_fill_color, define_color): Pass symbol name
405 to color constructor.
406 * src/roff/troff/env.h: Updated.
408 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
409 Document new registers.
411 2004-01-05 Werner LEMBERG <wl@gnu.org>
413 * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
414 space_node::nbreaks): Protect against zero `next' field.
416 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
418 In hpftodit, use the symbol sets offered in the TFM.
420 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
421 (symbol_set, text_symbol_sets, special_symbol_sets,
422 symbol_set_table): Removed.
423 (get_printcode): Removed.
424 (read_symbol_sets): Initialize `symbol_set' field with
426 Simplify code to just use the `kind' value.
427 (output_charset): Improve output formatting.
428 (dump_symbols): Simplified.
430 2004-01-02 Werner LEMBERG <wl@gnu.org>
432 * font/devlj4/generate/text.map: Add more MSL numbers.
434 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
436 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
437 (text_symbol_sets): Add more symbol sets.
438 (debug_flag): New static variable (moved from `main').
439 (get_printcode, show_symset): New functions.
440 (main): Remove `debug_flag'.
441 (output_charset): Use `show_symset'.
442 (dump_symbols): Use `show_symset'.
443 Print symsets for all glyphs.
444 (read_map): Actually call `unicode_to_ucode_make' but this time
447 2004-01-01 Werner LEMBERG <wl@gnu.org>
449 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
450 Fix placement of comments.
452 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
454 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
455 option `-d' is given.
456 (output_charset): Improve warning messages to give more information.
457 (dump_symbols): Make information more precise.
459 (read_map): Don't call unicode_to_ucode_name; the glyph names must
460 appear as-is and shouldn't be decomposed.
462 2003-12-31 Werner LEMBERG <wl@gnu.org>
464 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
465 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
466 (FONTS): Add TrueType font families Arial and Times New Roman.
467 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
468 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
471 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
473 * test-groff.in (SEP): Quote value.
474 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
475 `tem' to `char*' to avoid deallocation of a pointer to a constant
476 object which some compilers don't like.
478 2003-12-31 Werner LEMBERG <wl@gnu.org>
480 * font/devlj4/generate (text.map, special.map): Rewritten to work
481 with the new hpftodit version.
483 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
485 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
486 set and 8bit character code for all glyphs also.
488 2003-12-30 Werner LEMBERG <wl@gnu.org>
490 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
492 2003-12-29 Werner LEMBERG <wl@gnu.org>
494 More fixes for MSVC compiler.
496 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
499 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
500 STDERR_FILENO) [_MSC_VER]: Define conditionally.
501 (getpid) [_MSC_VER]: Remove.
502 Include direct.h and process.h conditionally.
504 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
505 parentheses for a_delete.
507 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
509 * test-groff: Replaced with...
510 * test-groff.in: This new template to handle path separator
513 * configure.ac: Check for direct.h and process.h.
514 Generate test-groff script.
515 * configure, src/include/config.hin: Regenerated.
517 2003-12-28 Werner LEMBERG <wl@gnu.org>
519 Add integral extension glyph.
520 Add new option `-x' to afmtodit to suppress use of built-in AGL.
522 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
524 * font/devps/generate/textmap: Provide entry for `integralex' to
525 override (old) PUA value of the AGL.
526 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
527 * font/devps/*: Regenerated.
529 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
530 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
532 2003-12-27 Werner LEMBERG <wl@gnu.org>
534 Add forgotten `coproduct' symbol (already available for DVI).
536 * font/devhtml/R.proto, font/devps/generate/textmap,
537 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
538 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
539 U+2210 (\[coproduct]).
541 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
543 hpftodit has been extended to handle TrueType metric files and
544 more glyphs. See hpftodit.man for more details.
546 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
547 ctype.h, and unicode.h.
548 s/msl/charcode/ everywhere since we now handle Unicode values also.
549 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
550 Use it where appropriate.
551 (MULTIPLIER): Replaced with...
552 (multiplier): New global static variable.
554 (tag_type): Add more TFM tags.
555 (tag_name): New array.
556 (ENUM_TYPE, FLOAT_TYPE): Removed.
557 (BYTE_TYPE): New value assigned.
558 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
559 (text_symbol_sets, special_symbol_sets): Extended to cover more
561 (check_type): Add return value.
562 (check_units): Add parameters to get ppi and upem values.
563 Handle TrueType TFM data.
564 (output_font_name): New function.
565 (output_charset): Add parameter to handle TFM type.
566 Handle TrueType TFMs also.
567 (em_fract): New macro.
568 (dump_tags): Be much more verbose and handle more tags.
569 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
570 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
572 (read_map): Add parameter to handle TFM type.
573 Handle both MSL and Unicode mappings.
574 (main): Add two new command line options `-a' and `-q'.
575 Updated to make use of new functions.
578 * src/utils/hpftodit/hpuni.cpp: New file.
580 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
583 2003-12-25 Werner LEMBERG <wl@gnu.org>
585 * src/include/nonposix.h (read) [_MSC_VER]: Define.
587 2003-12-24 Werner LEMBERG <wl@gnu.org>
589 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
590 by Michail Vidiassov <master@iaas.msu.ru>.
592 2003-12-20 Werner LEMBERG <wl@gnu.org>
594 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
596 Add missing latin-2 glyphs.
597 * font/devutf8/R.proto: Add missing latin-2 glyphs.
599 * tmac/troffrc: Load `composite.tmac' earlier.
601 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
602 u00{53,73}_0327, and u0049_0307.
603 * tmac/X.tmac: Add u00{47,67}_0306.
604 * tmac/tty-char.tmac: Use composite glyph names for readability.
608 * src/include/unicode.h: Remove `extern' keywords.
610 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
612 * tmac/latin5.tmac: New file.
614 2003-12-19 Werner LEMBERG <wl@gnu.org>
616 Add some glyphs needed for Turkish.
618 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
621 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
622 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
623 u00{53,73}_0327, and u0049_0307.
625 2003-12-18 Werner LEMBERG <wl@gnu.org>
627 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
629 Remove trailing zeros.
631 2003-12-17 Werner LEMBERG <wl@gnu.org>
633 Make \? transparent to end-of-sentence recognition.
635 * src/roff/troff/input.cc (non_interpreted_node): Add
636 `ends_sentence' member function.
638 2003-12-16 Werner LEMBERG <wl@gnu.org>
640 * doc/groff.texinfo: Document `dt' request correctly.
641 Other minor typographical improvements.
643 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
645 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
647 2003-12-10 Richard Stallman <rms@gnu.org>
649 * LICENSE: Better wording.
651 2003-12-09 Werner LEMBERG <wl@gnu.org>
653 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
654 * configure, NEWS: Updated.
656 2003-12-08 Werner LEMBERG <wl@gnu.org>
658 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
660 2003-12-07 Bernd Warken <bwarken@mayn.de>
664 2003-12-07 Werner LEMBERG <wl@gnu.org>
668 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
670 Use path separator character of target platform for compiled-in
673 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
674 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
675 * configure: Regenerated.
676 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
678 2003-12-05 Werner LEMBERG <wl@gnu.org>
680 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
681 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
683 2003-12-04 Bernd Warken <bwarken@mayn.de>
687 2003-12-03 Werner LEMBERG <wl@gnu.org>
689 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
690 ligatures present in AFM files since groff currently only
691 understands some standard ligatures and nothing else.
693 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
695 * src/roff/groff/groff.cpp (main): Don't run the spooler if
698 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
701 Don't use Unix wait flags.
703 2003-12-02 Werner LEMBERG <wl@gnu.org>
705 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
706 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
707 src/roff/troff/uniuni.cpp: Moved to...
708 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
709 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
710 src/libs/libgroff/uniuni.cpp: Here.
712 * src/include/Makefile.sub.old (HDRS),
713 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
714 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
716 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
718 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
722 2003-12-01 Werner LEMBERG <wl@gnu.org>
724 * groff.texinfo: Document special behaviour of `.vs 0'.
725 Improve documentation of `cflags' request.
728 2003-11-29 Werner LEMBERG <wl@gnu.org>
730 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
731 * font/devlj4/CORONET: Regenerated.
733 2003-11-24 Werner LEMBERG <wl@gnu.org>
735 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
736 if processing hyphenation patterns in traditional mode.
737 Improve error messages.
739 2003-11-20 Werner LEMBERG <wl@gnu.org>
741 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
742 troff_output_file::put_char): Fix type of local variable `c'.
744 2003-11-19 Werner LEMBERG <wl@gnu.org>
746 * src/roff/groff/pipeline.c (P): Removed. Updated all function
748 (i_to_a): Removed. libgroff already provides this function.
749 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
751 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
753 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
756 2003-11-17 Werner LEMBERG <wl@gnu.org>
758 * COPYING: Use correct version.
760 2003-11-11 Werner LEMBERG <wl@gnu.org>
762 LynxOS 4.0.0 doesn't declare vfprintf.
764 * configure.ac: Check for vfprintf.
765 * configure: Regenerated.
766 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
767 * src/include/config.hin: Regenerated.
769 2003-11-10 Werner LEMBERG <wl@gnu.org>
771 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
773 * configure.ac: Check for vsnprintf.
774 * configure: Regenerated.
775 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
777 * src/include/config.hin: Regenerated.
779 2003-11-09 Werner LEMBERG <wl@gnu.org>
781 * aclocal.m4: Updated syntax to autoconf 2.59.
782 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
783 Don't check for gsos2.
784 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
785 working abs_top_srcdir and abs_top_builddir.
787 * configure.ac: Updated syntax to autoconf 2.59.
788 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
789 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
790 * configure: Regenerated.
792 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
793 s/@groff_top_builddir@/@abs_top_builddir@/.
795 * src/roff/groff/pipeline.c (xstrsignal):
796 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
798 2003-11-07 Werner LEMBERG <wl@gnu.org>
800 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
801 make start angle smaller than end angle to circumvent a bug in tpic
802 handling of some versions of dvipdfm (and dvipdfmx).
804 2003-10-30 Werner LEMBERG <wl@gnu.org>
806 * src/devices/grops/grops.man: Improve section on creating EPS.
808 2003-10-29 Werner LEMBERG <wl@gnu.org>
810 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
813 2003-10-28 Werner LEMBERG <wl@gnu.org>
815 * doc/groff.texinfo: Fix documentation of `.if'.
817 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
819 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
820 the form `uniXXXX' also.
822 2003-10-27 Werner LEMBERG <wl@gnu.org>
824 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
825 contrib/pic2graph/pic2graph.sh: Implement secure management of
827 Pass `-P-pletter' to groff to avoid data outside of the converted
828 area -- some versions of `convert' (for example 5.3.8) don't check
829 the bounding box of the image but always use a fixed image size
830 (letter paper format).
831 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
832 contrib/pic2graph/pic2graph.man: Updated.
834 * src/roff/groff/groff.man: Document $TMP and $TEMP.
836 2003-10-26 Werner LEMBERG <wl@gnu.org>
838 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
839 troff_output::simple_ellipse, troff_output::simple_arc,
840 troff_output::simple_line, troff_output::simple_spline,
841 troff_output::simple_polygon): Insert a space before arguments.
842 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
843 latter doesn't produce a node, so the following `.sp -1' would do
845 Don't emit `.sp -1' after \M. This also doesn't produce a token
846 (and we don't have to care about compatibility mode).
847 (troff_output::set_color, troff_output::reset_color): Don't emit
848 `.sp -1' after \M and \m.
850 * src/roff/troff/input.cpp (old_have_input): New global variable.
851 (input_stack::get): Handle `old_have_input'.
852 (process_input_stack) <token::TOKEN_NEWLINE>: Call
853 `trapping_blank_line' depending on `old_have_input', not
856 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
858 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
859 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
860 default directory names for temporary files.
861 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
863 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
864 [__MSDOS__] (run_pipeline): Honour environment variables.
865 Don't use `tmpnam' but `tempnam' to work around messy
868 * README.MinGW: New file.
870 2003-10-16 Werner LEMBERG <wl@gnu.org>
872 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
873 `(*t)->next' without testing validity of `*t'.
874 (usage): Make it more readable.
876 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
878 Make html device run under both MS-DOS and Win32.
880 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
881 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
882 spawn or fork+exec has to be used, and whether parent must sleep
883 until the child process terminates. Used in
884 `char_buffer::run_output_filter'.
885 (copyofstdoutfd): Removed.
886 (char_buffer): Replace `write_file_html' and `write_file_troff'
887 member functions with `emit_troff_output' and `run_output_filter'.
888 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
890 (replaceFd): Replaced with...
891 (set_redirection): New auxiliary function.
892 (waitForChild): Replaced with...
893 (save_and_redirect): New auxiliary function for.
895 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
898 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
900 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
901 (GROFF_LIBC): New function.
902 * configure.ac: Call GROFF_LIBC.
904 * configure: Regenerated.
906 * src/include/lib.h: Handle __MINGW32__.
907 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
908 Add macro for `pipe'.
911 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
914 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
917 2003-10-13 Werner LEMBERG <wl@gnu.org>
919 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
922 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
925 2003-10-12 Werner LEMBERG <wl@gnu.org>
927 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
928 src/roff/troff/input.cc (usage): Updated.
930 * NEWS, doc/groff.texinfo: Updated.
932 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
934 * src/libs/libgroff/searchpath.cpp
935 (search_path::open_file_cautious): New function which also handles
936 `-' as stdin and stdout depending on the access mode.
937 * src/include/searchpath.h (search_path): Updated.
939 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
940 * src/devices/grops/ps.h: Include `searchpath.h'.
941 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
942 Open resource file with `include_search_path.open_file_cautious'.
943 * src/devices/grops/grops.man: Document new `-I' switch.
945 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
946 (main), src/devices/grolj4/lj4.cpp (main),
947 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
949 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
951 (include_search_path): New global variable.
952 (include_path_append): Removed.
953 (main): Use `include_search_path.command_line_dir' to handle `-I'.
954 (do_file): Simplify, using new
955 `include_search_path.open_file_cautious'.
957 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
959 (main): Pass arguments to `-I' to both troff and devices.
960 Improve handling of `-V'.
961 * src/roff/groff/groff.man: Document changes to -I and -V.
963 * src/roff/troff/input.cpp (include_search_path): New global
965 (next_file, source, ps_bbox_request, transparent_file,
966 process_input_file): Use new
967 `include_search_path.open_file_cautious'.
968 (main) Handle `-I' switch.
969 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
970 Use new `include_search_path.open_file_cautious'.
971 * src/roff/troff/node.h: New extern symbol `include_search_path'.
972 * src/roff/troff/troff.man: Document new `-I' switch.
974 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
976 Support multiple calls of .Lb in LIBRARY section.
978 * tmac/doc-common (doc-in-library-section): New register.
979 (doc-section-library): New string.
980 (Sh): Set `doc-in-library-section'.
982 * tmac/doc-syms (Lb): Insert breaks before and after arguments
983 if in LIBRARY section.
984 * tmac/doc.tmac (doc-save-global-vars): Updated.
985 * NEWS, tmac/groff_mdoc.man: Updated.
987 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
989 * tmac/doc-common (doc-default-operating-system): New variable.
992 2003-09-08 Werner LEMBERG <wl@gnu.org>
994 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
996 2003-08-31 Werner LEMBERG <wl@gnu.org>
998 * contrib/mom/Makefile.sub: Fix last change to make it really work.
999 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1000 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1001 $(DEVFILES) are not empty.
1002 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1004 2003-08-26 Chuck Silvers <chuq@chuq.com>
1006 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1007 with parallel runs of `make'.
1009 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
1011 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1012 insert SORT_SEP. With certain combinations of sort specifications,
1013 refer sorted entries in the wrong order. In particular, entries
1014 with a missing field should be be sorted before all entries that
1015 have that field, before refer looks to the next field.
1017 2003-08-23 Werner LEMBERG <wl@gnu.org>
1019 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1020 g++ linker is used. Reported by Mark J. Reed
1021 <mark.reed@turner.com>.
1023 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1025 Add key character `x' to tbl which makes tbl call a user-defined
1026 macro on a table cell.
1028 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1029 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1030 `set_modifier' after printing the compatibility request.
1031 (set_modifier): Print call to `m->macro' if not empty.
1032 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1034 (process_format): Implement cases `x' and `X'.
1035 * src/preproc/tbl/tbl.man, NEWS: Updated.
1037 2003-08-15 Werner LEMBERG <wl@gnu.org>
1039 * doc/groff.texinfo: Minor fixes.
1041 2003-08-09 Werner LEMBERG <wl@gnu.org>
1043 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1045 2003-08-07 Werner LEMBERG <wl@gnu.org>
1047 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1048 argument list to nothing if there is no file to match. Use `ls' as
1049 a protection, similar to autoconf.
1051 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1052 empty argument lists.
1054 * doc/groff.texinfo: Improve documentation how vertical spacing
1055 and line breaks interact.
1058 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1060 2003-08-03 Werner LEMBERG <wl@gnu.org>
1062 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1063 EPS (using eps2eps or similar programs to compute the bounding box).
1065 2003-07-24 Werner LEMBERG <wl@gnu.org>
1067 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1068 * doc/texinfo.tex: Updated from texinfo 4.6.
1069 * README.CVS: From now on we need texinfo 4.6.
1071 2003-07-23 Werner LEMBERG <wl@gnu.org>
1073 Add requests `dei1' and `ami1' for completeness.
1075 * src/roff/troff/input.cc (calling_mode): Remove
1076 CALLING_DISABLE_COMP.
1077 (comp_mode): New enumeration.
1078 (do_define_string, define_string, define_nocomp_string,
1079 append_string, append_nocomp_string): Updated.
1080 (do_define_macro): Add third parameter.
1081 (define_macro, define_nocomp_macro, define_indirect_macro,
1082 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1083 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1086 (init_input_requests): Add `dei1' and `ami1'.
1088 * tmac/trace.tmac: Handle de1 and am1.
1089 (de): Improve tracing message.
1090 (am): Add missing `do'.
1093 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1094 Document new requests.
1096 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1098 Add option -G to .MPIMG to insert a gap between text and the image.
1100 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1101 www-finish-left-ll): Updated.
1102 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1103 (MPIMG): Make option -L and -R optional.
1104 Implement option -G.
1106 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
1108 * src/devices/grohtml/post-html.cpp
1109 (html_printer::do_file_components): Don't use `stdout' as lvalue
1110 since it can be a macro.
1112 2003-07-22 Werner LEMBERG <wl@gnu.org>
1114 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1115 the corresponding test in aclocal.m4.
1117 2003-07-21 Werner LEMBERG <wl@gnu.org>
1119 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1120 names but RGB values directly. Otherwise pnmtopng depends on
1121 an external file `rgb.txt' which maps colour names to values.
1123 2003-07-20 Werner LEMBERG <wl@gnu.org>
1125 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1126 * configure, src/include/config.hin: Regenerated.
1128 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1130 2003-07-19 Werner LEMBERG <wl@gnu.org>
1132 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1134 2003-07-18 Werner LEMBERG <wl@gnu.org>
1136 * *.man: Switch to non-compatibility mode temporarily if GNU
1137 syntax extensions are used in the particular man page.
1139 * PROBLEMS: Add solutions for SGR problems.
1141 2003-07-17 Werner LEMBERG <wl@gnu.org>
1143 Don't ignore grotty's command line options if \X'tty: sgr ...' is
1144 used to change the drawing scheme.
1146 * src/devives/grotty/tty.cpp (bold_flag_option,
1147 underline_flag_option, italic_flag_option, reverse_flag_option,
1148 bold_underline_mode_option): New global variables.
1149 (update_options): New function.
1150 (tty_printer::special): Call update_options.
1151 (main): Don't set xxx_flag but xxx_flag_option, then call
1154 2003-07-14 Werner LEMBERG <wl@gnu.org>
1156 Make grotty emit proper Unicode box drawing characters for -Tutf8.
1158 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1160 (hline_char, vline_char): New global variables.
1161 (tty_printer::tty_printer): Initialize them.
1162 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1163 horizontal and vertical lines.
1164 (crossings): New global array.
1165 (tty_printer::end_page): Use it to determine the proper crossing
1166 character for -Tutf8.
1168 2003-07-12 Werner LEMBERG <wl@gnu.org>
1170 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1171 (HTMLDOCFILES): Revert to `pic.html'.
1172 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1174 2003-07-11 Werner LEMBERG <wl@gnu.org>
1176 * doc/pic.ms: Improve documentation of absolute coordinates.
1177 Document absolute positioning of pictures.
1179 * NEWS: Add new pic capability.
1181 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
1183 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1186 2003-07-07 Werner LEMBERG <wl@gnu.org>
1188 Implement support for dashed and dotted ellipses in pic. Based on
1189 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1191 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1192 common_output::dashed_ellipse, common_output::dotted_ellipse): New
1193 functions. Ellipse arcs are approximated with circle arcs.
1194 * src/preproc/pic/common.h (common_output): Updated.
1195 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1197 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1199 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1201 2003-07-06 Werner LEMBERG <wl@gnu.org>
1203 Make grotty work on platforms which have unsigned char as the
1204 default for char. Based on a patch by Thomas Klausner
1207 * src/devices/grotty/tty.cpp (schar): New typedef.
1208 Updated calls to declare_ptable and implement_ptable.
1209 (glyph): Use schar for back_color_idx and fore_color_idx.
1210 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1211 (tty_printer::tty_color, tty_printer::tty_printer,
1212 tty_printer::color_to_idx, tty_printer::put_color): Updated.
1214 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1216 * src/roff/nroff/nroff.sh: Add option -d for completeness.
1217 * src/roff/nroff/nroff.man: Updated.
1219 2003-07-05 Werner LEMBERG <wl@gnu.org>
1221 * NEWS, tmac/groff_www.man: Updated.
1222 * doc/Makefile.sub: Updated.
1224 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
1226 Implement support for multiple HTML output files.
1228 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1229 -j command line option.
1231 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1233 (file): New fields `new_output_file', `require_links',
1235 (file::file): Updated.
1236 (files::set_file_name, files::set_links_required,
1237 files::are_links_required, files::is_new_output_file,
1238 files::file_name, files::next_file_name): New functions.
1239 (header_desc): New fields `no_of_level_one_headings',
1241 (header_desc::header_desc): Updated.
1242 (header_desc::write_headings): Handle multiple files.
1243 (html_printer::write_header): Save file name in which header occurs.
1244 (html_printer::determine_header_level): Possibly split files on
1246 (html_printer::do_links, html_printer::troff_tag): Updated.
1247 (html_printer::insert_split_file, html_printer::do_job_name,
1248 html_printer::emit_link, html_printer::write_navigation,
1249 html_printer::do_file_components): New functions.
1250 (html_printer::~html_printer): Handle multiple files.
1251 (main): Handle command line option `-j'.
1253 * src/devices/grohtml/grohtml.man: Updated.
1255 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1258 * tmac/www.tmac (JOBNAME): New macro.
1259 * tmac/s.tmac (SH-NO-TAG): New macro.
1260 (@SH): Call SH-NO-TAG.
1263 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1265 * tmac/groff_mdoc.man: Improve documentation of punctuation
1268 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
1270 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1272 2003-07-03 Werner LEMBERG <wl@gnu.org>
1274 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1276 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
1278 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1279 after `/*' and `*/'.
1281 (Fn, Fo): Reduce indentation in synopsis.
1283 * tmac/doc-common (doc-check-depth): New macro.
1284 (doc-end-macro, Sh, Ss): Use it.
1285 (Cd): Fix behaviour in synopsis.
1286 (In): Make it parsed and callable.
1287 If not in the synopsis, represent the C header file enclosed in
1289 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1290 Use minus, not hyphen.
1292 * tmc/groff_mdoc.man: Updated.
1294 2003-07-01 Werner LEMBERG <wl@gnu.org>
1296 Integrated grap2graph, contributed by Eric S. Raymond.
1298 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1300 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1301 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1303 2003-07-01 Colin Watson <cjwatson@debian.org>
1305 * src/xditview/*.c: Add prototypes, fix return types, add includes.
1306 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1308 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
1310 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1312 2003-06-31 Werner LEMBERG <wl@gnu.org>
1314 * doc/Makefile.sub (CLEANADD): Remove all files created by
1315 running `make groff.{pdf,dvi}'.
1317 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1320 2003-06-30 Werner LEMBERG <wl@gnu.org>
1322 * Makefile.in (SHELL): Define as @SHELL@.
1323 (mkinstalldirs): Use $(SHELL).
1324 (MDEFINES): Add $(SHELL).
1325 * Makefile.comm (SHELL): Removed.
1327 2003-06-29 Werner LEMBERG <wl@gnu.org>
1329 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1330 The X11 documentation files use them.
1331 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1333 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
1335 * tmac/e.tmac (@C): Handle .ad also.
1337 2003-06-12 Werner LEMBERG <wl@gnu.org>
1339 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1341 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1342 Assign `n' even here. It is possible to construct a node
1343 immediately following an escape character:
1351 2003-06-10 Werner LEMBERG <wl@gnu.org>
1353 * README.WIN32: Removed.
1354 * MANIFEST: Updated.
1356 2003-06-07 Werner LEMBERG <wl@gnu.org>
1358 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1360 2003-06-05 Werner LEMBERG <wl@gnu.org>
1362 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1363 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1365 2003-06-03 Werner LEMBERG <wl@gnu.org>
1367 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1368 is done by the calling function.
1370 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
1372 * tmac/X.tmac: Fix definition of `em'.
1374 2003-05-22 Werner LEMBERG <wl@gnu.org>
1376 * src/roff/troff/input.cc (return_macro_request): Fix detection of
1379 2003-05-18 Werner LEMBERG <wl@gnu.org>
1381 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1382 to make items work which consist only of a tag.
1384 2003-05-17 Werner LEMBERG <wl@gnu.org>
1386 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1387 aren't stretched in a tag (this can fail with unformatted boxes).
1388 Instead, insert a break and go back one line.
1390 2003-05-16 Werner LEMBERG <wl@gnu.org>
1392 * src/roff/troff/input.cc (return_macro_request): If called with
1393 argument pop macro twice. We need this to trace `return'.
1395 * tmac/trace.tmac: Handle `return'.
1398 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1401 2003-05-15 Larry Kollar <kollar@alltel.net>
1403 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1404 registers `FPS', `FVS', and `FPD'.
1406 2003-05-15 Werner LEMBERG <wl@gnu.org>
1408 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1411 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
1413 * tmac/groff_mdoc.man: Slight improvements.
1415 2003-05-03 Werner LEMBERG <wl@gnu.org>
1417 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1418 `doc-header-space' after header line if register `cR' is set.
1420 2003-05-02 Werner LEMBERG <wl@gnu.org>
1424 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
1426 * tmac/doc-common (Nd): Use \[em].
1428 2003-05-01 Werner LEMBERG <wl@gnu.org>
1430 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1431 doc-footer-space): Initialize to 0.5i.
1432 (doc-setup-page-layout): Don't set doc-header-space and
1435 2003-04-30 Werner LEMBERG <wl@gnu.org>
1437 * REVISION: Set to 1.
1439 * doc/pic.ms: Document possible problems with `figname'.
1441 2003-04-29 Werner LEMBERG <wl@gnu.org>
1443 Version 1.19 released
1444 =====================
1446 * VERSION: Set to 1.19.
1447 * REVISION: Set to 0.
1448 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1450 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1451 Define charset as `US-ASCII' in html output.
1453 * tmac/www.tmac (ULE): Add missing scaling indicator.
1455 * win32-diffs: Removed.
1457 2003-04-28 Werner LEMBERG <wl@gnu.org>
1459 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1461 Document how to insert discardable whitespace with `.ss'.
1463 2003-04-27 Werner LEMBERG <wl@gnu.org>
1465 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1466 work with plain TeX also.
1468 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1470 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
1472 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1475 2003-04-24 Werner LEMBERG <wl@gnu.org>
1477 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1478 vbox with positive height and zero depth if in TeX mode.
1480 * NEWS: Document glyph name changes for grodvi and grolj4.
1482 2003-04-23 Werner LEMBERG <wl@gnu.org>
1484 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1485 * doc/pic.ms: Fixed.
1487 2003-04-21 Werner LEMBERG <wl@gnu.org>
1489 HP-UX 10.20 has `snprintf' but it isn't declared.
1491 * configure.ac: Add declaration test for snprintf.
1492 * configure: Regenerated.
1493 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1494 * src/include/config.hin: Regenerated.
1496 2003-04-19 Werner LEMBERG <wl@gnu.org>
1498 Add keyword `figname' to pic, specifying the name of the picture
1499 box in TeX mode. Based on a patch from William J Poser
1500 <wjposer@unagi.cis.upenn.edu>.
1502 * src/preproc/pic/pic.y: New token `FIGNAME'.
1503 (macro_name): New rule of type <str>.
1504 (placeless_element): Handle `FIGNAME'.
1505 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1506 * src/preproc/pic/main.cpp (graphname): New global variable.
1507 (do_picture): Initialize `graphname'.
1508 * src/preproc/pic/pic.h: Updated.
1509 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1512 (tex_output::text): Beautify output.
1513 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1514 `shaded' and `outlined' unconditionally.
1515 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1518 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1519 greater is necessary.
1521 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
1523 Add option -r to soelim to avoid emission of `.lf' lines.
1524 Add option -t to produces TeX comment lines instead of `.lf' lines.
1526 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1529 (main): Handle `-r' and `-t'.
1530 (set_location): Handle `raw_flag' and `tex_flag'.
1531 * src/preproc/soelim/soelim.man, NEWS: Updated.
1533 2003-04-17 Werner LEMBERG <wl@gnu.org>
1535 * tmac/hyphenex.sh: Replaced with...
1536 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1539 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1540 if --quiet is used for the configure script.
1541 * configure: Regenerated.
1543 2003-04-16 Werner LEMBERG <wl@gnu.org>
1545 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1546 Add `const' to second argument.
1547 (html_printer::add_table_end): Add `const' to argument.
1548 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1549 `const' to arguments.
1550 * src/devices/grohtml/html-text.h: Updated.
1552 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1553 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1556 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1557 cast for integer constant.
1559 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1560 (writeNbytes): Add `const' to first argument.
1561 (writeString): Add `const' to argument.
1562 (char_buffer::can_see): Add `const' to third argument.
1563 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1564 `const' to argument.
1565 * src/preproc/html/pushback.h: Updated.
1567 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1568 (include_path_append): Add `const' to argument.
1571 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1573 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1574 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1576 (unicode_decompose_init::unicode_decompose_init): Updated.
1577 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1579 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1580 * src/roff/troff/input.cc (process_startup_file): Add `const' to
1583 * tmac/hyphenex.sh: Make script more portable by using a here
1586 2003-04-15 Werner LEMBERG <wl@gnu.org>
1588 Renamed all `*.cc' files to `*.cpp'.
1589 Updated all configuration files, makefiles, and documentation.
1591 2003-04-14 Werner LEMBERG <wl@gnu.org>
1593 * tmac/hyphenex.sh: Slight improvements.
1595 2003-04-13 Werner LEMBERG <wl@gnu.org>
1597 * font/devascii/R.proto, font/devcp1037/R.proto,
1598 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1599 character slots with unnamed glyphs.
1601 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1602 (an-first): New global variable.
1603 (an-header): Emit vertical space between multiple man pages.
1605 2003-04-11 Werner LEMBERG <wl@gnu.org>
1607 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1610 2003-04-10 Werner LEMBERG <wl@gnu.org>
1612 * PROBLEMS: Revised.
1614 2003-04-10 Bernd Warken <bwarken@mayn.de>
1616 * doc/webpage.ms: Improved.
1618 2003-04-09 Werner LEMBERG <wl@gnu.org>
1620 Add register \n[.height] which returns the value of \H.
1621 Add register \n[.slant] which returns the value of \S.
1623 * src/roff/troff/env.cc (init_env_requests): Implement.
1624 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1627 2003-04-08 Werner LEMBERG <wl@gnu.org>
1629 * tmac/html.tmac: Move some of the data into html-end.tmac.
1630 Remove most of the character translations for eqn since html fonts
1631 now cover those characters.
1633 * tmac/html-end.tmac: New file.
1634 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1635 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1636 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1638 2003-04-07 Werner LEMBERG <wl@gnu.org>
1640 * man/groff_out.man: Document negative values of `N' if -Thtml is
1643 2003-04-06 Werner LEMBERG <wl@gnu.org>
1645 * Makefile.comm (depend.temp): Check location of YTABC.
1647 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1649 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1651 (groff_bin_path): Rename to GROFF_BIN_PATH.
1652 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1653 * doc/Makefile.in (TROFFBIN): New variable for troff
1655 (GROFFBIN): New variable for groff binary path.
1656 (groff_bin_path): Rename to GROFF_BIN_PATH.
1657 (TROFF): Use TROFFBIN.
1658 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1659 * doc/Makefile.sub (GROFFBIN): New variable for groff
1661 (groff_bin_path): Rename to GROFF_BIN_PATH.
1662 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1664 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1665 with INSTALL_SCRIPT.
1666 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1667 * Makefile.dev (all): Depend on DEVSCRIPTS.
1668 (install_dev): Likewise.
1669 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1671 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1672 (DEVGENSCRIPTS): New variable to hold generated scripts.
1674 2003-04-05 Werner LEMBERG <wl@gnu.org>
1676 * src/libs/libdriver/input.cc (IntArray::operator[],
1677 IntArray::get_data): Remove meaningless `const' in return value.
1679 * README.CVS: New file.
1681 2003-04-04 Werner LEMBERG <wl@gnu.org>
1683 Check for stdint.h in C++, not in C.
1685 * aclocal.m4 (GROFF_STDINT_H): New function,
1686 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1688 * configure, src/include/config.hin: Regenerated.
1689 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1692 Fix handling of in grohtml. To do this, troff emits `N'
1693 with a negative value, representing the width of the unbreakable
1694 space (only for -Thtml). grohtml then converts this back to
1695 and uses the value of N as its width.
1697 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1698 unbreakable_space_node::tprint): Emit `N-<width>'.
1699 * src/include/printer.h (printer::set_numbered_char): Make it
1701 Make members `font_table' and `nfonts' protected instead of private.
1702 * src/devices/grohtml/post-html.cc
1703 (html_printer::set_numbered_char): New member function.
1706 * src/libs/libgroff/maxfilename.cc:
1707 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1709 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1712 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
1714 * man/roff.man: Small fixes.
1716 2003-04-03 Werner LEMBERG <wl@gnu.org>
1718 Make groff independent from locale's numeric settings.
1720 * configure.ac: Check for `setlocale'.
1721 * configure, src/include/config.hin: Regenerated.
1723 * src/include/lib.h: Handle HAVE_SETLOCALE.
1725 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1726 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1727 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1730 * doc/groff.texinfo: Change dir category to `Typesetting'.
1731 (Man font macros): Mention that there is no space between arguments
1734 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1735 (*printer::change_color, *printer::change_fill_color): Add missing
1738 2003-04-02 Werner LEMBERG <wl@gnu.org>
1740 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1741 html_table::is_gap): Compute table widths after converting border
1742 positions to avoid rounding errors.
1744 2003-04-01 Werner LEMBERG <wl@gnu.org>
1746 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1747 `space_emitted' properly.
1749 2003-03-31 Werner LEMBERG <wl@gnu.org>
1751 * src/devices/grohtml/html-table.cc: Fix column width calculation.
1752 (html_table::set_linelength): Don't add 1.
1753 (html_table::add_indent): Don't subtract 1.
1755 * tmac/html.tmac: Set default page offset to zero.
1757 2003-03-30 Werner LEMBERG <wl@gnu.org>
1759 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
1761 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1762 unbreakable_space_node::tprint): New functions.
1763 (troff_output_file): Make space_char_hmotion_mode::tprint and
1764 unbreakable_space_node::tprint to friends.
1765 * src/roff/troff/node.h: Updated.
1767 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1768 in the HTML standard).
1770 2003-03-29 Werner LEMBERG <wl@gnu.org>
1772 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1773 Otherwise, the following code
1782 produces `x a' instead of `xa'. This is a temporary fix, disabling
1783 font changes in diversions for -Thtml.
1785 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1787 (an-do-tag-html): Merge with ...
1788 (an-do-tag): This macro.
1789 Change code slightly to circumvent grohtml bug.
1790 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1792 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1793 html_table::is_gap): Round `width' properly.
1795 * tmac/html.tmac: Provide some default layout parameters for
1798 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1801 2003-03-28 Werner LEMBERG <wl@gnu.org>
1803 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1805 2003-03-27 Werner LEMBERG <wl@gnu.org>
1807 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1810 2003-03-20 Werner LEMBERG <wl@gnu.org>
1812 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1814 * doc/groff.texinfo: Updated.
1816 2003-03-19 Werner LEMBERG <wl@gnu.org>
1818 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1819 TOKEN_END_TRAP>: Reset `have_input'.
1821 2003-03-18 Werner LEMBERG <wl@gnu.org>
1823 * src/roff/groff/groff.man: Mention groff_trace man page.
1825 2003-03-16 Werner LEMBERG <wl@gnu.org>
1827 * Makefile.in (LIBEXT): New variable to indicate the file extension
1828 of library files. Computed heuristically from $(OBJEXT).
1829 (MDEFINES): Add $(LIBEXT).
1830 * Makefile.lib, Makefile.comm: Use it.
1832 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1833 overlong lines into smaller chunks.
1834 (get_binary): New function.
1836 * src/utils/pfbtops/pfbtops.man: Updated.
1838 2003-03-15 Colin Watson <cjwatson@debian.org>
1840 * src/roff/groff/groff.man: Minor syntax fix.
1842 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1844 * src/devices/grops/ps.cc (ps_printer::media_set,
1845 ps_printer::~ps_printer): Handle zero paper width and length.
1847 2003-03-13 Werner LEMBERG <wl@gnu.org>
1849 Add options -p and -l to grodvi.
1851 * src/devices/grodvi/dvi.cc: Include paper.h.
1852 (landscape_flag, user_paper_length, user_paper_width): New global
1854 (dvi_printer::begin_page): Emit `papersize' special.
1855 Set color after initialization of `cur_h' and `cur_v'.
1856 (main): Add options `-l' and `-p'.
1857 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1858 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1860 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1862 2003-03-12 Werner LEMBERG <wl@gnu.org>
1864 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1865 * man/groff_tmac.man: This man page.
1866 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1869 * tmac/X.tmac: Don't load pspic.tmac.
1871 2003-03-11 Werner LEMBERG <wl@gnu.org>
1873 Make variable `pr' local to libdriver/input.cc. Based on a patch
1874 by Bernd Warken <bwarken@mayn.de>.
1876 * src/include/driver.h (pr): Removed.
1878 * src/libs/libdriver/input.cc (pr): New global variable.
1879 (do_file): Deallocate `pr'.
1880 * src/libs/libdriver/printer.cc (pr): Removed.
1882 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1883 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1884 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1885 (main): Don't delete `pr'.
1887 2003-03-10 Werner LEMBERG <wl@gnu.org>
1889 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1890 * tmac/papersize.tmac: New file.
1891 * tmac/troffrc: Include `papersize.tmac'.
1892 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1893 * tmac/an-old.tmac: Set LT to LL by default.
1895 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1896 doc/groff.texinfo: Updated.
1898 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1899 bug which caused all odd iso papers to have wrong dimensions.
1901 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1902 (main) <'p'>: Set `user_paper_width' also.
1903 (ps_printer::media_width, ps_printer::media_height): Use values
1904 given with option `-p'.
1906 2003-03-09 Werner LEMBERG <wl@gnu.org>
1908 * src/include/nonposix.h: Provide default for SET_BINARY.
1910 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1911 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1914 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1915 (main): Treat \r\n as \n.
1917 2003-03-08 Werner LEMBERG <wl@gnu.org>
1919 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1920 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1922 2003-03-07 Werner LEMBERG <wl@gnu.org>
1924 Added support to access more than 256 glyphs in Type 1 fonts.
1926 * src/devices/grops/ps.cc (subencoding): New structure.
1927 (style): Add `sub' field.
1929 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1930 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1933 (ps_printer::set_char): Use `set_subencoding'.
1934 (make_subencoding_name): New function.
1935 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1936 (ps_printer::~ps_printer): Emit subencoding definitions.
1938 * src/devices/grops/psrm.cc (valid_input_table): New array to
1939 properly support EBCDIC.
1940 (white_space): Add `\f'.
1941 (ps_get_line): Change first argument to be of type `string &'.
1942 Updated all callers.
1943 This allows to get lines of arbitrary length.
1944 Use `valid_input_table'.
1945 Remove warning about non-conforming PS line length. This seems
1946 not to be of great importance -- for example, dvips don't emit
1948 (PS_LINE_MAX): Removed.
1949 (matches_comment): Change first argument to be of type `string &'.
1951 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1953 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1954 %AGL_to_unicode, %default_ligatures): New hash tables.
1955 Read all map entries.
1956 Add unencoded characters.
1957 Check for default ligatures if there are no `L' entries.
1958 Print all kern entries.
1959 Print all characters in charset.
1960 * src/utils/afmtodit/afmtodit.man: Updated.
1962 * font/devps/*: Regerated all fonts.
1964 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1965 of characters, just use `.trin'. Otherwise the mapping depends
1966 on the font encoding.
1967 * tmac/ps.tmac: Add `fi' and `fl'.
1968 Improve `Fi' and `Fl'.
1969 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1970 * tmac/Xps.tmac: Fix `em'.
1974 2003-03-04 Werner LEMBERG <wl@gnu.org>
1976 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1979 2003-03-03 Werner LEMBERG <wl@gnu.org>
1981 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1983 * font/devps/generate/textmap: Remove entry `similarequal'.
1984 * font/devps/symbolmap: Updated.
1986 2003-03-02 Werner LEMBERG <wl@gnu.org>
1988 * src/libs/libgroff/font.cc (font::load): Fix error message for
1991 * src/devices/grops/grops.man: Improve documentation of the -b
1994 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1995 `ascii' and `cp1047'.
1997 2003-03-01 Werner LEMBERG <wl@gnu.org>
1999 Document composite glyphs and the `composite' request.
2001 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2003 2003-02-28 Werner LEMBERG <wl@gnu.org>
2005 * font/devdvi/generate/ec.map: Add some more Unicode entities.
2006 * font/devdvi/*EC: Updated.
2008 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2009 * tmac/latin1 (latin1-tr): Undo any previous mapping.
2010 * tmac/troffrc: Load `composite.tmac'.
2011 * tmac/Makefile.sub (NORMALFILES): Updated.
2013 * doc/groff.texinfo (Input Encodings): New section.
2016 2003-02-27 Werner LEMBERG <wl@gnu.org>
2018 * doc/texinfo.tex: New version 2003-02-11.06.
2020 * tmac/doc-common (Dt): Don't emit warning for unknown section.
2021 * tmac/groff_mdoc.man: Fix description of `Dt'.
2023 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
2025 * font/devps/prologue.ps: Fix for included Postscript that does
2026 a setpagedevice -- which is now safely ignored.
2030 * src/devices/grops/ps.cc: Now sets the page size in the generated
2031 document. This is done in two ways: Via a %%-comment for gv and
2032 the like, and via a PageSize and setpagedevice for programs that
2033 understands Postscript proper, like ps2pdf.
2035 * src/devices/grops/ps.h: New broken-flag to avoid page size
2036 definition, if required.
2038 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2040 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2041 Not really necessary due to the fix in prologue.ps, but cleaner:
2042 Such information does not belong in an .eps file.
2044 * doc/Makefile.sub: See doc/Makefile.in.
2046 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
2048 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2049 instead of P1 since the latter is broken in some versions of netpbm.
2050 * configure: Updated.
2052 2003-02-26 Larry Kollar <kollar@alltel.net>
2054 Make man pages more customizable.
2056 * tmac/an-old.tmac (FT): New register holding footer distance from
2058 (HF): New string holding the default heading font.
2059 (TH): Handle registers `IN' and `SN' set on the command line.
2061 (PT, BT): New strings to customize header and footer lines.
2062 (an-header, an-footer): Use them.
2064 * tmac/groff_man.man: Document changes.
2066 * doc/groff.texinfo: Document man changes.
2067 Document Ultrix extensions of man.
2069 2003-02-26 Werner LEMBERG <wl@gnu.org>
2071 * src/roff/troff/input.cc (do_width, do_if_request): Reset
2072 `have_input' after changing back to old environment.
2074 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2075 function up to be defined before first call. This is necessary to
2076 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2078 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2079 the default font directory also. Based on a patch from James
2080 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2081 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2082 * src/utils/afmtodit/afmtodit.man: Document it.
2086 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2088 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
2090 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2091 (GROFF_PNMTOPS_NOSETPAGE): New macro.
2092 * configure.ac: Use it.
2093 * configure: Regenerated.
2094 * Makefile.in: Updated.
2096 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2097 (CLEANADD): Add www.tmac-sed.
2098 (pnmtops_nosetpage): Define default.
2099 (install_data): Handle www.tmac-sed and substitute
2100 @PNMTOPS_NOSETPAGE@.
2101 (stamp-sed): Add www.tmac.
2102 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2103 It now breaks URLs at suitable places.
2104 (www:substring_ok): New register set by...
2105 (www:@test_substring): New macro.
2106 (www:error): New alias to www-error.
2107 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2109 (URL): Use www:url_breaks.
2110 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2111 (CDS, CDE): New macros.
2113 2003-02-25 Werner LEMBERG <wl@gnu.org>
2115 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2118 2003-02-24 Werner LEMBERG <wl@gnu.org>
2120 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2121 can be negative also.
2123 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2125 (read_char_table): Avoid negative ascenders.
2126 (output_charset): Add cast.
2127 * font/devlj4/*: Regenerated.
2129 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2132 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2133 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2135 * font/devdvi/*: Regenerated.
2137 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
2138 normal width, while the previously used characters (U+2329 and
2139 U+232A) are classified as wide due to canonical equivalence with the
2140 CJK punctuation characters U+3008 and U+3009.
2142 * font/devutf8/R.proto: Updated.
2143 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2145 * man/groff_char.man: Simplify handling of table traps by
2146 introducing `start block' and `end block' macros.
2147 (Ns, Ne, 2s, 2e, Ds, De): New macros.
2148 (DL): Make it work with Unix troff also.
2149 Fix code values of `la' and `ra'.
2151 * tmac/dvi.tmac: Define `<>' for CW and CWI.
2153 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
2155 * src/devices/grohtml/post-html.cc (element_list::~element_list):
2156 New destructor, fixing a major memory leak.
2158 2003-02-22 Werner LEMBERG <wl@gnu.org>
2160 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2161 to be in conformance with Unicode 3.0 and newer.
2163 * font/devlj4/generate/text.map: Add `Eu'.
2164 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2165 * font/devlj4/S: Regenerated.
2167 * man/groff_char.man: Completely rewritten.
2169 * doc/groff.texinfo: Fix description of request and macro arguments.
2171 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
2175 * src/devices/grohtml/html-table.cc (html_table::~html_table):
2176 Deallocate `columns' list.
2177 * src/devices/grohtml/post-html.cc (char_block::~char_block):
2179 (text_glob::text_glob_html, text_glob::text_glob_special,
2180 text_glob::text_glob_line, text_glob::text_glob_auto_image,
2181 text_glob::text_glob_tag): Avoid memory leaks.
2182 (text_glob::remember_table): Free memory before reassigning.
2184 2003-02-19 Werner LEMBERG <wl@gnu.org>
2186 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2187 alias `hbar'), the Planck constant over two pi.
2189 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2190 `+e' for position 34.
2191 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2192 `u2662' and `u2661'.
2193 * font/devdvi/{MI,S}: Regenerated.
2194 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2195 * font/devlbp/*: Add `hbar' alias.
2196 * font/devlj4/generate/special.map: Ditto.
2197 * font/devlj4/S: Regenerated.
2198 * font/devps/generate/symbolchars: Add `+e'.
2199 * font/devps/generate/textmap: Fix PS name for `-h'.
2201 * font/devps/symbolmap: Regenerated.
2203 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2205 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2207 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2210 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2212 * tmac/tty-char.tmac: Add `+e'.
2214 2003-02-17 Werner LEMBERG <wl@gnu.org>
2216 Another round trying to really fix problems with `have_input'.
2218 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2219 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2221 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2222 handling if both foreground and background colors are default.
2224 * doc/groff.texinfo (Debugging): Document .lf differences to
2227 2003-02-16 Werner LEMBERG <wl@gnu.org>
2229 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2230 null-bytes in created string.
2232 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2233 alias_macro, lookup_request): Improve warning messages.
2235 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2237 Free `last_image_filename'.
2239 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2241 (imageList::createPage, imageList::createImage): Use `free', not
2243 (imageItem::~imageItem): Free `imageName'.
2244 (addRegDef): Use `strsave', not `strdup'.
2245 (get_resolution): Free `pathp'.
2247 2003-02-15 Werner LEMBERG <wl@gnu.org>
2249 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2252 2003-02-14 Werner LEMBERG <wl@gnu.org>
2254 Add memory management for colors to deallocate unnamed colors
2257 * src/include/color.h (color): New members `free_list' and `next'.
2258 New member functions `new' and `delete'.
2260 * src/libs/libgroff/color.cc: Implement it.
2262 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2263 for array size of new operator.
2265 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2266 redundant comparison.
2268 * src/roff/troff/input.cc (word_space_node::reread,
2269 hmotion_node::reread): Avoid warning about unused parameter.
2270 (reset_output_registers): Remove redundant parameter.
2271 (define_color): Undo change 2003-02-12.
2273 * src/roff/troff/reg.h: Updated.
2275 * src/roff/troff/node.cc (troff_output_file::really_print_line,
2276 output_file::put_filename, real_output_file::really_put_filename,
2277 ascii_output_file::really_print_line,
2278 break_char_node::get_hyphen_list): Avoid warning about unused
2280 (suppress_node::tprint): Updated.
2282 * configure.ac: Check declaration for rand() and srand().
2283 * configure: Regenerated.
2285 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2287 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2290 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2291 to avoid compiler warnings.
2293 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2296 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2298 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2300 Updated all callers.
2302 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2304 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2305 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2307 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2308 Parameter is unused.
2309 (html_printer::add_table_end): Define parameter conditionally.
2310 * src/devices/grohtml/output.cc (simple_output::special): Parameter
2313 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2314 (lbp_printer::set_char): Last parameter is unused.
2316 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2318 2003-02-13 Werner LEMBERG <wl@gnu.org>
2320 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2321 Make \D'f ...' move horizontally again for backwards compatibility.
2322 Replace it with \D'Fg ...' where appropriate to avoid dependency
2323 on horizontal resolution.
2325 * src/roff/troff/input.cc (do_get_long_name): New function.
2326 (get_long_name): Call it.
2328 (read_draw_node): Handle `\D'Fx ...' by calling ...
2329 (read_color_draw_node): New function.
2331 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2333 Pass it to `do_get_long_name' which is used instead of
2336 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2337 unnecessary value guard.
2338 (parse_D_command) <'f'>: Add horizontal shift.
2340 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2341 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2342 (FILL_MAX): Removed.
2344 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2347 2003-02-12 Werner LEMBERG <wl@gnu.org>
2349 * src/roff/troff/input.cc (do_name_test, do_expr_test,
2350 do_zero_width): Push `\n' if closing delimiter is missing.
2352 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2353 <'F'>: Make \F non-transparent at the beginning of line.
2354 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2355 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2358 (define_color): Free color in case of reassignment.
2360 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2361 @DefescListEnd): Use @Var, not @var.
2364 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2366 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2367 `shaded' and `outlined' arrays.
2368 (object_spec::object_spec): Initialize `shaded' and `outlined'.
2369 (graphic_object::set_fill_color, graphic_object::set_outline_color):
2371 (closed_object::set_fill_color): Ditto.
2372 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2374 (troff_output::reset_color): Use a_delete instead of free.
2375 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2377 2003-02-11 Werner LEMBERG <wl@gnu.org>
2379 * doc/groff.texinfo: Improve documentation of `ad'.
2380 Document that \D'f...' is dependent on the horizontal resolution.
2381 * man/groff_diff.man: Improve documentation of \D'f...'.
2383 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2384 compensating \h'...' for \D'f ...' since the latter no longer moves
2386 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2388 2003-02-10 Werner LEMBERG <wl@gnu.org>
2390 Improve error messages for `x F' (and `F') commands.
2392 * src/include/error.h: Add declaration for
2393 `current_source_filename'.
2394 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2395 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2396 parameter for source file string.
2397 Updated all callers.
2399 * src/libs/libdriver/input.cc: Add `current_source_filename'.
2400 (remember_source_filename): New function.
2401 (parse_x_command <'F'>, do_file <'F'>): Use it.
2403 2003-02-09 Werner LEMBERG <wl@gnu.org>
2405 Make grotty not emit warnings about unknown colors more than
2408 * src/devices/grotty/tty.cc: Include `ptable.h'.
2409 (TTY_MAX_COLORS): Removed.
2410 (DEFAULT_COLOR_IDX): Defined to -1.
2411 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2412 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2413 Change `tty_colors' to be a ptable.
2414 First arg of `put_color' is now `char'.
2415 New functions `make_rgb_string' and `tty_color'.
2416 (tty_printer::tty_printer): Use `tty_color'.
2417 (tty_printer::color_to_idx): Return value is now `char'.
2420 * src/include/color.h (color): Add `print_color' member function.
2421 * src/libs/libgroff/color.cc (color::print_color): Implement it.
2423 2003-02-08 Werner LEMBERG <wl@gnu.org>
2427 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2430 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2431 assume that value has been allocated with `new[]', thus use
2432 `a_delete' for deallocation.
2434 * src/libs/libdriver/input.cc (get_integer_arg,
2435 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2438 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2439 * src/libs/libgroff/nametoindex.cc
2440 (character_indexer::named_char_index): Use `new <type>[1]'.
2442 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2444 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2445 (split_text): Use `a_delete'.
2447 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2450 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2451 harmless memory leak.
2452 (hyphen_trie::read_patterns_file): Initialize `buf'.
2453 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2454 Initialize `current_fill_color'and `current_glyph_color'.
2455 * src/roff/troff/glyphuni.cc
2456 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2457 * src/roff/troff/uniuni.cc
2458 (unicode_decompose_init::unicode_decompose_init): Ditto.
2459 * src/roff/troff/uniglyph.cc
2460 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2462 2003-01-26 Werner LEMBERG <wl@gnu.org>
2464 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2465 `access' before calling `unlink'.
2466 (do_file): Handle __EMX__.
2468 * src/include/nonposix.h: Handle __EMX__.
2470 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2471 (fontpath,tmacpath): Use it.
2473 Sorted alphabetically.
2475 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2477 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2480 2003-01-27 Werner LEMBERG <wl@gnu.org>
2482 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2483 New files, copied from gnulib.
2484 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2485 * configure.ac: Updated.
2486 * configure: Regenerated.
2488 * src/include/config.hin: Regenerated.
2489 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2490 Don't define `strcasecmp' as `strcmp'.
2491 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2492 Dont define `strncasecmp' as `strncmp'.
2494 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2497 2003-01-26 Werner LEMBERG <wl@gnu.org>
2499 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2502 2003-01-25 Werner LEMBERG <wl@gnu.org>
2504 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2506 2003-01-24 Werner LEMBERG <wl@gnu.org>
2508 Add US-english hyphenation exceptions (converted from Barbara
2509 Beeton's hyphenation exception log reports which appear irregularly
2512 * tmac/hyphen.us: Updated to latest version.
2513 * tmac/README: Updated.
2514 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2515 * tmac/troffrc: Load `hyphenex.us'.
2516 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2517 * doc/groff.texinfo: Updated.
2519 2003-01-23 Werner LEMBERG <wl@gnu.org>
2521 Improve hyphenation slightly. This is a first step in redesigning
2522 the hyphenation algorithm to make it more flexible (e.g. allowing
2523 kerns and ligatures between the hyphenation character and the
2524 following character -- while not used normally in English, other
2525 languages like German would benefit).
2527 * src/roff/troff/env.cc (environment::hyphenate_line): Use
2528 assertion instead of if-clause.
2529 Let `get_hyphen_list' return the number of involved characters in
2530 the hyphenation pattern instead of computing it directly (which
2531 often yields too small values).
2532 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2533 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2536 2003-01-22 Werner LEMBERG <wl@gnu.org>
2538 Fixing a bug which caused groff to hang if the hyphenation exception
2539 dictionary tried to grow.
2541 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2542 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2543 pointer to dictionary.
2545 2003-01-20 Werner LEMBERG <wl@gnu.org>
2547 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2548 negative left italic correction.
2549 * src/utils/afmtodit/afmtodit.man: Document it.
2551 * font/devps/generate/Makefile (RFLAG): Add `-m'.
2552 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2553 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2557 2003-01-16 Werner LEMBERG <wl@gnu.org>
2561 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
2563 * src/preproc/refer/refer.man: Mention REFER environment variable.
2565 2003-01-05 Werner LEMBERG <wl@gnu.org>
2567 Similar to \[is], the square root glyph (\[sr]) and the square root
2568 extension glyph (\[radicalex]) are now text symbols. The new
2569 mathematical versions are called \[sqrt] and \[sqrtex],
2572 * font/devX*/S: Regenerated.
2573 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2574 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2575 * font/devdvi/EX, font/devdvi/S: Regenerated.
2576 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2577 * font/devlj4/generate/special.map: Add `sqrt'.
2578 * font/devlj4/S: Regenerated.
2579 * font/devps/generate/textmap: Add `sqrt'.
2580 * font/devps/S, font/devps/symbolmap: Regenerated.
2582 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2583 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2584 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2585 overlap horizontally.
2587 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2588 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2591 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2592 and `sqrtex' are overlapping glyphs.
2594 2003-01-04 Werner LEMBERG <wl@gnu.org>
2596 * font/devdvi/generate/texsy.map: Add `is'.
2597 * font/devps/symbolmap: Regenerated.
2598 * font/devdvi/*TC, MI, S: Regenerated.
2600 * tmac/dvi.tmac: Remove `is'.
2602 2003-01-03 Werner LEMBERG <wl@gnu.org>
2604 `is' is now a text symbol (only relevant for dvi). The math variant
2605 can be accessed with `integral'.
2607 * font/devX*/S: Regenerated.
2608 * font/devdvi/generate/texex.map: Remove `is'.
2609 * font/devdvi/EX: Updated.
2610 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2611 * font/devlj4/generate/special.map: Ditto.
2612 * font/devlj4/S: Regenerated.
2613 * font/devps/generate/textmap: Add `integral'.
2614 * font/devps/S: Regenerated.
2616 * tmac/dvi.tmac: Define `is'.
2618 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2620 * src/preproc/tbl/main.cc (process_format): Fix error message.
2622 2003-01-02 Werner LEMBERG <wl@gnu.org>
2624 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2625 * font/devps/textmap: Fix entries for `ne' and `nc'.
2626 * font/devps/symbolmap: Regenerated.
2628 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2629 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2630 `38', `58', `78', `-+', `|=', `nc', `ne'.
2632 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2633 Use `schar' for `aq'.
2634 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2635 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2636 * tmac/tty.tmac: Add `ne'.
2638 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2639 for fallback glyphs.
2641 2002-12-29 Werner LEMBERG <wl@gnu.org>
2645 * font/devX*/*: Regenerated.
2646 * font/devdvi/generate/ec.map: Remove `eq'.
2647 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2648 Assign `|=' to position 39.
2649 * font/devdvi/*EC, S: Regenerated.
2650 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2651 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2652 Assign `|=' to position 549.
2653 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2655 Add `uni2243' for `|='.
2657 * tmac/ec.tmac: Add `eq'.
2658 * tmac/dvi.tmac: Add `=~'.
2659 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2662 2002-12-21 Werner LEMBERG <wl@gnu.org>
2664 * font/devdvi/generate/tc.map: Remove `**'.
2665 * font/devdvi/*TC: Regenerated.
2666 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2668 * font/devutf8/NOTES: Updated.
2670 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2671 Don't give default parameter to `set_macro'.
2672 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2673 instead of `set_macro'.
2674 (charinfo::setx_macro): Implement it.
2675 (charinfo::set_macro): Don't change `mode'.
2677 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2678 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2679 * tmac/dvi.tmac: Define `!=' with `.schar'.
2681 2002-12-20 Werner LEMBERG <wl@gnu.org>
2683 * font/devX*/S: Regenerated.
2684 * font/devdvi/generate/ec.map: Remove `pl'.
2685 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2686 * font/devdvi/*{TC,EC}: Regenerated.
2687 * font/devhtml/R.proto: Add `-+'.
2688 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2689 * font/devlbp/*: Remove `or'.
2690 * font/devlj4/generate/special.map: Remove `or'.
2691 * font/devlj4/S: Regenerated.
2692 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2693 `seveneighths', `threeeighths'.
2695 Replace `minusplus' with `uni2213'.
2696 * font/devps/symbolmap: Regenerated.
2697 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2700 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2702 * src/roff/troff/node.cc (troff_output_file::put_char_width):
2703 Call glyph_color and fill_color even if tcommand_flag isn't set.
2704 (make_node, node::add_char): Check not ci->is_fallback but
2707 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2708 * tmac/ec.tmac: Add .rchar entry for `f/'.
2709 Don't remove `12', `14', `34'.
2710 Define `pl' to be always roman.
2711 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2712 Define `18', `38', `58', `78'.
2713 * tmac/tty.tmac: Add `-+'.
2714 * tmac/dvi.tmac: Define `f/'.
2715 (dvi-frac): Use `f/'.
2716 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2717 Define `18', `38', `58', `78'.
2719 2002-12-15 Colin Watson <cjwatson@debian.org>
2721 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2723 2002-12-10 Werner LEMBERG <wl@gnu.org>
2725 Add glyph `tno', a textual variant of `no'.
2727 * font/devX*/*: Regenerated.
2728 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2729 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2730 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2731 * font/devdvi/*: Regenerated.
2732 * font/devlbp/*: Add `tno'.
2733 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2734 * font/devlj4/*: Regenerated.
2735 * font/devps/generate/textmap: Replace `no' with `tno'.
2736 * font/devps/generate/symbolchars: Add `no'.
2737 * font/devps/*: Regenerated.
2739 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2741 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2742 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2746 * tmac/dvi.tmac: Replace most `\\' with `\E'.
2747 Add definition for `sd'.
2748 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2750 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2752 2002-12-08 Werner LEMBERG <wl@gnu.org>
2754 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2755 mode to avoid rounding errors.
2756 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2758 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2759 src/roff/troff/troff.man: Improve documentation of -T.
2761 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
2763 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2764 (run_pipeline) [_WIN32]: Provide working function without `fork'.
2766 2002-12-06 Werner LEMBERG <wl@gnu.org>
2768 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2769 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2770 Scaling Euro.sansserif glyphs down to have the same height as
2772 Removed unnecessary points; added some extrema.
2774 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2777 2002-12-04 Werner LEMBERG <wl@gnu.org>
2779 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2780 and `Euro.symbol.bold.slanted'.
2781 Improve some glyph offsets and widths.
2782 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2784 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2786 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2789 * tmac/europs.tmac: Updated to new glyph indices.
2790 Use Euro.symbol for font familiy `A'.
2792 * doc/groff.texinfo: Minor improvements.
2794 2002-12-02 Werner LEMBERG <wl@gnu.org>
2796 * font/devdvi/generate.tc.map: s/%O/%0/.
2797 * font/devdvi/*TC: Regenerated.
2799 * src/roff/troff/div.cc (init_div_requests): Sorted.
2801 * tmac/dvi.tmac: Remove `Ye'.
2802 * tmac/ec.tmac: Remove `Ye'.
2803 Add .rchar entry for `de'.
2805 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2806 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2809 2002-11-30 Werner LEMBERG <wl@gnu.org>
2811 Add PS font for various Euro glyphs.
2813 * font/devps/generate/freeeuro.sfd: New master font file for
2815 * font/devps/generate/sfdtopfa.pe: New conversion script for
2817 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2818 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2819 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2821 * font/devps/EURO: Generated from `freeeuro.afm'.
2822 * font/devps/download: Add `freeuro.pfa'.
2823 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2826 * tmac/europs.tmac: New file.
2827 * tmac/ps.tmac: Include `europs.tmac'.
2828 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2830 2002-11-29 Werner LEMBERG <wl@gnu.org>
2832 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2833 * font/devdvi/S: Regenerated.
2834 * font/devhtml/R.proto: Fix `CR' and `ci'.
2836 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2838 * font/devps/symbolmap: Regenerated.
2839 * font/devutf8/R.proto: Fix `CR' and `ci'.
2841 * font/devutf8/NOTES: Updated.
2843 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2846 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2848 * tmac/dvi.tmac: Add `lh' and `rh'.
2849 * tmac/Xps.tmac: Fix `lh' and `rh'.
2850 * tmac/X.tmac: Add `OK'.
2851 * tmac/lj4.tmac: Ditto.
2853 2002-11-24 Werner LEMBERG <wl@gnu.org>
2855 * font/devX*/S: Regenerated.
2856 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2857 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2858 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2859 * font/devdvi/S: Regenerated.
2860 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2861 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2862 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2863 `bracketleftbt', `bracketrighttp', `bracketrightex',
2864 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2865 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2866 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2868 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2869 * font/devutf8/NOTES: Updated.
2870 * font/devlj4/generate/special.map: Add glyph `braceex'.
2871 * font/devlj4/S: Regenerated.
2873 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2875 2002-11-14 Werner LEMBERG <wl@gnu.org>
2877 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2880 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2882 * doc/texinfo.tex: New version from texinfo 4.3.
2883 * doc/groff.texinfo: Updated for texinfo 4.3.
2884 Use @tie{} where appropriate.
2885 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2886 * font/devdvi/generate/tc.map: Remove `rn'.
2887 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2888 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2890 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2891 font/devX75-12/*: Regenerated.
2893 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2894 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2895 Improve definition of `an'.
2896 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2898 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2899 * tmac/X.tmac: Add definition for `or'.
2900 * tmac/Xps.tmac: Undo change 2002-11-05.
2901 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2903 2002-11-11 Werner LEMBERG <wl@gnu.org>
2905 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2908 2002-11-10 Werner LEMBERG <wl@gnu.org>
2910 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2911 defines a glyph which is searched after the check for fonts declared
2912 with `.special' (and before the check for all mounted special
2913 fonts). `fschar' defines a glyph for a particular font which is
2914 searched after the check for fonts declared with `.fspecial' (and
2915 before the check for fonts declared with `.special'). `rfschar'
2916 removes glyphs defined with `fschar'.
2918 * src/roff/troff/token.h (char_mode): New enum.
2919 Declare do_define_character.
2920 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2922 (charinfo::is_fallback): Updated.
2923 (charinfo::is_special): New method.
2924 * src/roff/troff/input.cc (do_define_character): Add and use
2925 optional second parameter used as a prefix for font-specific glyph
2927 (define_character, define_fallback_character): Updated.
2928 (define_special_character): New function.
2929 (init_input_requests): Add `schar'.
2930 (charinfo::charinfo, charinfo::set_macro): Updated.
2931 * src/roff/troff/node.cc: Include `stringclass.h'.
2932 (make_glyph_node): Handle special glyphs defined with `.schar' and
2934 (define_font_special_character, remove_font_special_character): New
2936 (init_node_requests): Sorted.
2937 Add `fschar' and `rfschar'.
2938 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2939 Document new requests.
2941 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2942 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2944 2002-11-08 Werner LEMBERG <wl@gnu.org>
2946 Added new font `SC' (cmtex10) to devdvi.
2948 * devdvi/generate/Makefile (FONTS): Add `SC'.
2950 * devdvi/generate/textex.map: New map file for cmtex.
2952 * devdvi/Makefile.sub (DEVFILES): Updated.
2953 * tmac/dvi.tmac: Add fspecial entries for SC.
2954 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2955 found before `S' since the font position of `SC' is lower due to the
2956 gaps in DESC's `font' line.
2957 * tmac/ec.tmac: Add a `special' call.
2960 * font/devhtml/R.proto: Remove double entry for `ti'.
2961 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2962 * tmac/tty-char.tmac: Remove entry for `bq'.
2963 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2964 * tmac/ec.tmac: Don't remove `aq' glyph.
2965 * tmac/X.tmac: Fix entry for `em'.
2966 Add entries for `fo' and `fc'.
2967 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2969 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2970 documentation of `special' and `fspecial' requests.
2972 2002-11-05 Werner LEMBERG <wl@gnu.org>
2974 * font/devascii/R.proto, font/devcp1047/R.proto,
2975 font/devlatin1/R.proto: Remove entry for `.i'.
2976 * font/devdvi/generate/textt.map: Add entry for `ad'.
2977 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2978 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2979 We need this for getting kerning values to compose `/l' and `/L'.
2980 * font/devdvi: Regenerated font definition files for CM fonts.
2981 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2982 * font/devutf8/R.proto: Ditto.
2983 Remove double entry for `ti'.
2985 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2986 for (groff) ligatures, `la', and `ra'.
2987 Add "'C", "'c", `IJ', and `ij'.
2988 Remove double entry for `ti'.
2989 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2991 Add "'C", "'c", `IJ', and `ij'.
2992 Fix entries for (groff) ligatures, `la', and `ra'.
2994 * tmac/ps.tmac (ps-achar): New macro.
2995 Define "'c" and "'C".
2996 * tmac/tty.tmac: Add entry for `.i'.
2997 * tmac/X.tmac (X-achar): New macro.
2998 Define "'c", "'C", and `:Y'.
2999 Add entries for `IJ' and `ij'.
3000 * tmac/Xps.tmac (Xps-achar): New macro.
3001 Define "'c" and "'C".
3002 Add entries for `IJ' and `ij'.
3003 * tmac/lbp.tmac (lbp-achar): New macro.
3004 Add fallback characters for all groff ligatures and many other
3006 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3007 Add entries for `/l' and `/L'.
3008 Define "'c" and "'C".
3009 Add entries for `IJ' and `ij'.
3011 2002-11-02 Larry Kollar <kollar@alltel.net>
3013 * PROBLEMS: Document how to solve Mac OS X compilation problems.
3015 2002-11-02 Werner LEMBERG <wl@gnu.org>
3017 Adding support for composite glyphs: \[xxx yyy ...] and the
3018 `composite' request.
3020 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3021 to Unicode-based glyph names.
3022 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3023 glyph names to groff glyph names.
3024 * src/roff/troff/uniuni.cc: New file for canonically decomposing
3025 Unicode-based glyph names.
3026 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3027 for handling Unicode glyph names.
3028 * src/roff/troff/input.cc: Include unicode.h.
3029 (composite_glyph_name): New function.
3030 (token::next) <'['>: Handle Unicode glyph names and composite
3032 (composite_dictionary): New dictionary for the `composite' request.
3033 (composite_request): Implement `composite' request.
3034 (init_input_requests): Add `composite'.
3035 Alphabetically sorted.
3036 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3038 (init_env_requests): Alphabetically sorted.
3039 Removed `tas' and `tar' (already commented out).
3040 * src/roff/troff/Makefile.sub: Updated.
3042 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
3044 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3047 2002-10-29 Werner LEMBERG <wl@gnu.org>
3049 Fix computation of .trunc register. Additionally, its value (and
3050 the value of the .ne register) is now always set before entering the
3053 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3054 `needed_space' before calling `space'.
3055 (top_level_diversion::space): Remove special code for 'sp before the
3057 Call `begin_page' with the discarded space as a parameter.
3058 (top_level_diversion::begin_page): Add optional parameter to set
3060 * src/roff/troff/div.h: Updated.
3062 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3065 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3066 (LP): Remove superfluous call to `br'.
3067 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3068 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3070 2002-10-26 Werner LEMBERG <wl@gnu.org>
3072 * tmac/doc-ditroff: Remove useless switch/variable -rC.
3073 (doc-setup-header): Don't set page register `%'.
3074 * tmac/doc-nroff: Remove variable `C'.
3075 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3076 (doc-setup-header): Don't set page register `%'.
3078 * tmac/doc-common (doc-header): Call `ns'.
3079 (doc-paragraph): Protect .sp with .br so that it survives traps
3080 possibly set by the user.
3081 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3083 * tmac/doc*: Replace ' with . for consistency if no effect.
3085 2002-10-26 Werner LEMBERG <wl@gnu.org>
3087 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3088 so that it survives traps possibly set by the user.
3090 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3091 (troff_output_file::set_font): Call flush_tbuf if necessary.
3092 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3093 flush_tbuf and do_motion only if necessary.
3094 (troff_output_file::start_special,
3095 troff_output_file::put_char_width, troff_output_file::put_char,
3096 troff_output_file::draw): Updated.
3097 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3098 vmotion_node::tprint): Undo change 2002-10-23.
3100 2002-10-25 Werner LEMBERG <wl@gnu.org>
3102 * tmac/www.tmac (DC): Fix case of overlapping images.
3104 2002-10-23 Werner LEMBERG <wl@gnu.org>
3106 * src/roff/troff/node.cc (troff_output_file::fill_color,
3107 troff_output_file::glyph_color): Set current color before testing
3109 (troff_output_file::put_char_width, troff_output_file::put_char,
3110 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3112 (troff_output_file::file_color, troff_output_file::glyph_color):
3114 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3115 vmotion_node::tprint): Move first, then call fill_color.
3117 2002-10-20 Werner LEMBERG <wl@gnu.org>
3119 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3120 possible to use multiple main macro packages.
3122 2002-10-19 Werner LEMBERG <wl@gnu.org>
3124 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3125 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3126 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3128 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3129 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3131 2002-10-16 Werner LEMBERG <wl@gnu.org>
3133 * NEWS, doc/webpage.ms: Updated.
3135 2002-10-14 Werner LEMBERG <wl@gnu.org>
3137 * src/roff/troff/node.cc (troff_output_file::put_char_width,
3138 troff_output_file::put_char, troff_output_file::fill_color,
3139 troff_output_file::glyph_color): Handle case where color pointer
3142 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
3144 Add the new -r option to grotty. It is similar to the -i option
3145 except it tells grotty(1) to use the "reverse video" attribute to
3146 render italic fonts.
3148 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3149 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3150 (tty_printer::make_underline, tty_printer::put_color,
3151 tty_printer::end_page): Use it.
3152 (main): Add -r switch.
3154 * src/devices/grotty/grotty.man: Document it.
3156 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
3158 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3159 cast to `unsigned char' to properly read patterns with 8bit
3162 2002-10-08 Werner LEMBERG <wl@gnu.org>
3164 * REVISION: Increased to 2.
3166 Version 1.18.1 released
3167 =======================
3169 2002-10-08 Werner LEMBERG <wl@gnu.org>
3171 * doc/webpage.ms, NEWS: Updated.
3173 2002-10-07 Werner LEMBERG <wl@gnu.org>
3175 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3176 suppress additional whitespace after the header.
3178 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3181 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3183 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
3185 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3186 (Dt): Use it to improve language localization (especially Russian
3189 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
3191 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3192 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3194 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3196 Call `picurve' for BSPLINE.
3197 (HGPrintElt): Handle BSPLINE.
3198 * src/preproc/grn/README: Document it.
3200 2002-10-03 Werner LEMBERG <wl@gnu.org>
3202 * src/roff/troff/node.cc (break_char_node::col): New variable.
3203 Updated constructor.
3204 (space_node::tprint, word_space_node::tprint): Call `fill_color'
3206 (space_node::space_node): Remove assertion.
3207 (break_char_node::add_self): Pass color argument to space node.
3208 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3210 * src/roff/troff/env.cc (environment::do_break,
3211 environment::add_padding): Ditto.
3213 2002-10-02 Werner LEMBERG <wl@gnu.org>
3215 Redesigning color support in troff. Colors are no longer
3216 represented as separate nodes but are now part of glyph nodes and
3217 friends. This fixes the current formatting misbehaviour due to the
3218 changes introduced on 2002-09-20. Some extra code is necessary for
3219 proper grotty support: Without adding color variables to
3220 space-related nodes, the background color would be changed too late.
3222 * src/roff/troff/node.h, src/roff/troff/node.cc:
3223 s/current_pagecolor/current_fill_color/.
3224 s/current_glyphcolor/current_glyph_color/.
3225 (glyph_color_node, fill_color_node): Removed.
3226 (node::get_glyph_color, node::get_fill_color): New virtual member
3228 (space_node::col): New variable.
3229 Updated constructors of space_node and derived classes accordingly.
3230 (hmotion_node::col): New variable.
3231 Updated constructors of hmotion_node and space_char_hmotion_node
3233 (vmotion_node::col): New variable.
3234 Updated constructor accordingly.
3235 (draw_node::gcol, draw_node::fcol): New variables.
3236 Updated constructor accordingly.
3237 (special_node::gcol, special_node::fcol): New variables.
3238 Updated constructors accordingly.
3239 (troff_output_file::put_char, troff_output_file::put_charwidth,
3240 troff_output_file::draw): Set glyph and fill color.
3241 (troff_output_file::start_special): Set glyph and fill color.
3242 Always set current font.
3243 (troff_output_file::fill_color, troff_output_file::glyph_color):
3244 Don't call `do_motion'.
3245 (glyph_node::gcol, glyph_node::fcol): New variables.
3246 Updated constructors of glyph_node and ligature_node accordingly.
3247 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3249 (glyph_node::merge_glyph_node,
3250 kern_pair_node::add_discretionary_hyphen,
3251 node::add_discretionary_hyphen): Updated.
3252 (break_char_node::merge_self): Updated.
3253 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3254 vmotion_node::tprint): Handle color.
3255 (make_glyph_node, make_node, node::add_char): Updated.
3257 * src/roff/troff/env.cc (environment::space_newline,
3258 environment::space, environment::output_line, environment::do_break,
3259 environment::make_tab_node, environment::add_padding, title):
3261 (environment_switch, environment_copy): Don't add color nodes.
3263 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3265 (token::next): Updated.
3266 \m and \M now are as transparent as \s.
3267 (process_input_stack, token::add_to_node_list, token::process,
3268 read_draw_node): Updated.
3269 (charinfo_to_node_list): Don't add color nodes.
3271 * doc/groff.texinfo: Updated.
3273 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
3275 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3278 2002-09-27 Colin Watson <cjwatson@debian.org>
3280 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3282 2002-09-23 Werner LEMBERG <wl@gnu.org>
3284 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3286 (DEFAULT_LINEWIDTH_FACTOR): New macro.
3287 (linewidth_factor): New global variable.
3288 (lbp_printer::set_line_thickness): Fix case for size < 0, using
3290 (long_options): Add -w/--linewidth option.
3292 (main): Handle -w option to set linewidth_factor.
3293 (lbp_printer::lbp_printer): Initialize req_linethickness, not
3296 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3298 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
3300 Fixed a bug in the line thickness setting code.
3302 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3304 (lbp_printer::set_line_thickness): Pass environment as second
3306 Implement it actually.
3307 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3308 and `set_line_thickness, depending on the current font size.
3310 2002-09-21 Werner LEMBERG <wl@gnu.org>
3312 Some Debian patches.
3314 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3315 * src/roff/troff/node.cc (bracket_node::copy): Initialize
3318 2002-09-20 Werner LEMBERG <wl@gnu.org>
3320 * configure: Regenerated with autoconf 2.54.
3322 2002-09-20 Werner LEMBERG <wl@gnu.org>
3324 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3326 Rename cur_fill_color to fill_color.
3327 * src/roff/troff/env.cc: Updated.
3329 2002-09-20 Werner LEMBERG <wl@gnu.org>
3331 * src/roff/troff/env.cc (title): Copy color status after processing
3333 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3334 fill color nodes to reset colors properly.
3336 * tmac/www.tmac (DC): Fix color handling.
3338 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3339 * doc/groff.texinfo: Fixing documentation of `tl' request.
3340 * doc/webpage.ms: Updated.
3342 2002-09-19 Werner LEMBERG <wl@gnu.org>
3344 * src/roff/troff/env.cc (environent_switch, environment_copy):
3345 Emit glyph and fill color nodes to initialize colors properly.
3347 2002-09-17 Colin Watson <cjwatson@debian.org>
3349 * src/roff/troff/env.cc (environment::set_glyph_color,
3350 environment::set_fill_color): Fix typo which prevented \m[] work
3353 2002-09-17 Werner LEMBERG <wl@gnu.org>
3355 Add left and right italic correction to non-slanted PS fonts. This
3356 is an experimental feature to improve image rendering of grohtml.
3358 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3359 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3360 * font/devps/*: All non-slanted fonts regenerated.
3363 2002-09-16 Werner LEMBERG <wl@gnu.org>
3365 Add a site-specific font directory.
3367 * Makefile.in (localfontdir, legacyfontdir): New variables.
3368 (fontpath): Use them.
3369 (MDEFINES, uninstall_dirs): Updated.
3370 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3371 Remove `FONTPATH' and `MACROPATH'.
3373 * src/roff/troff/troff.man, NEWS: Updated.
3374 * doc/groff.texinfo (Font Directories): New section.
3377 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3378 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3379 src/preproc/grn/grn.man: Minor fixes.
3381 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3382 Remove unused variable.
3384 2002-09-11 Werner LEMBERG <wl@gnu.org>
3386 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3387 * man/groff_out.man: Fix documentation of 'N'.
3389 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
3391 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3392 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3394 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3395 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3396 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3397 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3398 PRE_TAG>: Call `begin' with `FALSE'.
3400 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3402 * src/libs/libgroff/string.cc (string::extract): Fix position of
3403 terminating null byte.
3405 2002-09-08 Werner LEMBERG <wl@gnu.org>
3407 Add global option `nospaces' to tbl so that leading and trailing
3408 spaces in data items are ignored.
3410 * src/libs/libgroff/string.cc (string::remove_spaces): New member
3411 function to remove leading and trailing spaces.
3412 * src/include/stringclass.h: Updated.
3414 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3416 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3418 Fix typo in error messages.
3419 (process_data): Implement `nospaces' option.
3420 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3422 2002-09-07 Werner LEMBERG <wl@gnu.org>
3424 * src/include/config.hin: Add `HAVE_ISATTY'.
3425 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3427 * src/libs/libgroff/tmpname.cc: Include `time.h'.
3428 * src/libs/libdriver/input.cc (Char): Add `operator==' and
3429 `operator!=' for `char'.
3430 * doc/groff.texinfo: Replace @ifnottex block for top node with
3433 2002-09-06 Werner LEMBERG <wl@gnu.org>
3435 * doc/Makefile.in (.texinfo.html): Add -I switch.
3436 * doc/groff.texinfo: Add @ifnottex block for top node to make
3437 translation to HTML work.
3439 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
3441 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3442 (get_papersize, determine_vertical_offset): Removed.
3443 (char_buffer::do_image): Always specify letter size.
3445 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3448 2002-09-05 Werner LEMBERG <wl@gnu.org>
3450 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3451 default indentation.
3453 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
3455 * src/preproc/html/pre-html.cc (imageList::createPage): Use
3457 (generateImages): Clean up push-back buffer.
3459 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3461 * doc/groff.texinfo: Minor fixes.
3463 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3465 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3466 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3468 (determine_vertical_offset): Use LETTER_LENGTH.
3469 (createPage): Moved to ...
3470 (imageList::createPage): This.
3471 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3472 (imageList::getMaxX): New function.
3473 (createImage): Moved to ...
3474 (imageList::createImage): This.
3475 (imageList::createImages): New function.
3476 (generateImages): Read `maxx' directly.
3478 (scanArguments): Don't specify `gsPaper' for `-o'.
3479 (makeTempFiles): Call `xtmpfile' with the last argument set to
3482 2002-08-24 Werner LEMBERG <wl@gnu.org>
3484 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3485 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3486 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3487 * src/preproc/html/pushback.cc: Include nonposix.h.
3488 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3491 2002-08-23 Werner LEMBERG <wl@gnu.org>
3493 Use $(OBJEXT) for the object file extension.
3495 * Makefile.comm (.SUFFIXES): Add .obj.
3496 (.cc.obj, .c.obj): New implicit rules.
3497 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3498 (MDEFINES): Add EXEEXT and OBJEXT.
3499 * */Makefile.sub: s/.o/.$(OBJEXT)/.
3501 2002-08-22 Werner LEMBERG <wl@gnu.org>
3503 * INSTALL: Mention texinfo 4.2 as a prerequisite.
3505 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3507 * src/devices/grohtml/post-html.cc (colType): Make enum global to
3509 (html_printer::update_min_max, html_printer::add_table_end): New
3511 (html_printer::lookahead_for_tables): Use them.
3512 Reset page offset correctly.
3513 (html_printer::~html_printer): Add creation of creator comment up.
3515 2002-08-20 Werner LEMBERG <wl@gnu.org>
3517 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3518 * man/groff_tmac.man: Fix typos.
3519 * man/groff_font.man: Minor reordering.
3520 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3521 * contrib/groffer/groffer.man: Fix typos.
3523 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3525 Avoid endless loops while scanning for tables.
3527 * src/devices/grohtml/post-html.cc (list::insert): Set
3529 (html_printer::next_horiz_pos): Add `text_glob' argument; update
3531 Return immediately if that argument is NULL.
3532 (html_printer::calc_nf): Don't test if `g' is NULL.
3533 (html_printer::lookahead_for_tables): Use
3534 `glyphs.move_right_get_data'.
3535 Don't test if `g' is NULL.
3537 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3539 A better fix, replacing fix 2002-08-15, for increasing SIZE.
3541 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3543 (char_block::char_block): Allocate `buffer'.
3544 (char_buffer::add_string): Use it.
3546 2002-08-15 Werner LEMBERG <wl@gnu.org>
3548 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3549 src/devices/grodvi/grodvi.man: Document default line thickness.
3551 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
3553 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3556 2002-08-14 Werner LEMBERG <wl@gnu.org>
3558 * doc/webpage.ms: Updated.
3560 2002-08-09 Werner LEMBERG <wl@gnu.org>
3562 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3565 2002-08-08 Aaron Campbell <aaron@monkey.org>
3567 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3570 2002-08-08 Werner LEMBERG <wl@gnu.org>
3572 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3575 Don't push back a space but a newline onto the stack.
3577 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
3579 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3582 * src/devices/grohtml/post-html.cc (html_printer::end_font,
3583 html_printer::start_font): Handle them.
3584 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3586 (html_text::do_bold): Don't reset italic and tt.
3587 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3588 * font/devhtml/DESC.proto: Add those fonts.
3589 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3591 2002-08-07 Werner LEMBERG <wl@gnu.org>
3593 * MORE.STUFF: Added gpresent.
3595 * tmac/trace.tmac: Show nesting level by a corresponding amount of
3596 whitespace before printing the logging message.
3598 2002-07-31 Colin Watson <cjwatson@debian.org>
3600 * src/devices/grohtml/html-table.cc (html_table::finish_row):
3601 Initialize `n' to zero. This fixes a segfault on ARM.
3603 2002-07-30 Werner LEMBERG <wl@gnu.org>
3605 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3607 2002-07-29 Werner LEMBERG <wl@gnu.org>
3609 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3612 2002-07-28 Colin Watson <cjwatson@debian.org>
3614 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3616 (html_printer::html_printer): Initialize `pointsize'.
3618 2002-07-26 Werner LEMBERG <wl@gnu.org>
3620 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3622 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3623 (gnu.eps): Add -rle switch to pnmtops.
3624 (distfiles): Add gnu.eps and gnu.png.
3626 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
3628 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3631 2002-07-24 Werner LEMBERG <wl@gnu.org>
3633 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3634 ' \+' but ' *' for sed.
3635 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3637 2002-07-23 Werner LEMBERG <wl@gnu.org>
3639 * doc/groff.texinfo: Document `papersize' keyword.
3640 * NEWS, man/groff_font.man: Updated.
3642 2002-07-23 Colin Watson <cjwatson@debian.org>
3644 Extend papersize keyword to accept more than a single entry. The
3645 first valid will be used.
3647 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3648 (font::scan_papersize): Really skip final newline.
3649 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3651 2002-07-23 Werner LEMBERG <wl@gnu.org>
3653 * configure.ac: Test for isatty.
3654 * configure: Regenerated.
3655 * src/include/posix.h: Check HAVE_ISATTY.
3656 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3657 * src/utils/lookbib/lookbib.cc: Include posix.h.
3658 Don't declare isatty.
3660 2002-07-21 Werner LEMBERG <wl@gnu.org>
3662 * NEWS: Add `output' request.
3664 * REVISION: Increased to 1.
3666 Version 1.18.0 released
3667 =======================
3669 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
3671 Allow internal glyph indices > 0xFF in grohtml for input characters.
3673 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3675 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3676 Updated all callers.
3677 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3678 (html_printer): Updated.
3680 2002-07-19 Werner LEMBERG <wl@gnu.org>
3682 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3683 * font/devutf8/R.proto: Adding some missing glyphs.
3684 * font/devutf8/NOTES: Updated.
3686 * tmac/dvi.tmac: Add more composite glyphs.
3687 * tmac/html.tmac: Updated.
3689 * man/groff_char.man: Add `sum' and `product' entities.
3693 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
3695 Improved table, tab, and indenting support.
3697 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3698 string_iterator::suppress_newline_flag): Removed. Updated all
3699 function which have used it.
3701 * src/roff/troff/env.cc: Include `input.h'.
3702 (environment::add_node): Accept 0 as parameter.
3703 (environment::add_html_tag): Add `force' parameter.
3704 Updated all callers.
3705 (environment::add_html_tag_tabs): Ditto.
3706 For the moment, support left-aligned tabs only.
3707 (environment::make_html_tag): New function.
3708 (fill, no_fill): Set .br html tag additionally.
3709 (environment::newline): Emit `eol.ce' or `eol' tag for html.
3710 (environment::add_html_tag_eol): Removed.
3711 (tab_stops::distance_to_next_tab): Add variant for handling
3713 (environment::distance_to_next_tab): Ditto.
3714 Updated all callers.
3715 (environment::handle_tab): Handle tabs for html.
3717 * src/roff/troff/env.h: Updated.
3719 * src/roff/troff/div.cc: Updated all callers of
3720 `environment::add_html_tag'.
3722 * src/devices/grohtml/html-table.cc,
3723 src/devices/grohtml/html-table.h: New files.
3725 * src/devices/grohtml/html-text.cc (html_text): New members
3726 `blank_para' and `start_space'.
3727 (html_text::issue_tag): Don't emit TABLE_TAG.
3728 Handle indentation for PRE_TAG and P_TAG.
3729 (html_text::end_tag): Updated.
3730 (html_text::table_is_void, html_text::issue_table_begin,
3731 html_text::issue_table_end): Removed.
3732 (html_text::do_push): Simplified.
3733 [DEBUGGING]: Small fix.
3734 (html_text::push_para): Add new parameter for indentation; updated
3737 (html_text::do_indent, html_text::do_table, html_text::done_table,
3738 html_text::is_in_table): Removed.
3739 (html_text::do_pre): Handle P_TAG also.
3740 (html_text::shutdown): Handle p->indent.
3741 (html_text::check_emit_text): Simplified.
3742 (html_text::do_emittext): Reset `blank_para'.
3743 (html_text::do_para): Add new parameter for indentation; updated
3745 (html_text::remove_indent): New function.
3746 (html_text::do_space): Handle verbatim text properly.
3747 (html_text::ever_emitted_text, html_text::starts_with_space,
3748 html_text::remove_para_align): New functions.
3749 (html_text::dump_stack_element, html_text::dump_stack): Updated.
3751 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3754 * src/devices/grohtml/post-html.cc: Include html-table.h.
3755 (INDENTATION): Removed.
3756 (text_glob): Added many `is_<foo>' functions.
3757 Added table description `tab'.
3758 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3760 (list): Add `insert' and `move_to' member functions.
3761 (page): Add `insert_tag' member function.
3762 (page::dump_page) [DEBUG_TABLES]: Improved.
3763 (html_printer): Add `table' and `max_linelength' elements.
3764 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3765 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3766 `remove_tabs', `remove_courier_tabs'.
3767 (html_printer::emit_raw): Handle indentation.
3768 (html_printer::do_center, html_printer::write_header): Updated.
3769 (html_printer::is_courier_until_eol): Check for tag.
3770 (html_printer::do_linelength): Handle max_linelength.
3771 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3773 (html_printer::do_tempindent): Updated.
3774 (html_printer::do_indentedparagraph): Removed.
3775 (html_printer::do_indent): Simplified.
3776 (html_printer::do_eol): Use `ever_emitted_text'.
3777 (html_printer::do_flush, html_printer::do_links): Don't call
3779 (html_printer::do_break): Handle end_tempindent.
3780 (html_printer::troff_tag): Get argument.
3782 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3783 (html_printer::flush_page): Call `lookahead_for_tables'.
3784 Don't call `done_table'.
3785 (html_printer::add_to_sbuf): Always call do_indent.
3787 * src/devices/grohtml/Makefile.sub: Updated.
3789 * tmac/an-old.tmac (TP): Don't handle html device specially.
3790 (an-do-tag-html): New function which will be used instead of
3791 `an-do-tag' if html device is used.
3793 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3795 * tmac/s.tmac (@IP): Don't handle html device specially.
3796 (@IP-html): New function which will be used instead of `@IP' if
3797 html device is used.
3799 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3800 is a hack which will eventually vanish again.
3801 (PIMG): Handle `-C' option correctly if not html.
3804 2002-07-17 Werner LEMBERG <wl@gnu.org>
3806 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3808 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3810 * contrib/pic2graph/pic2graph.*: Use convert(1).
3811 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3813 2002-07-14 Bernd Warken <bwarken@mayn.de>
3815 * tmac/groff_trace.man: New file.
3816 * tmac/Makefile.sub: Updated.
3819 2002-07-13 Werner LEMBERG <wl@gnu.org>
3821 * src/roff/groff/groff.man: Add some cross references.
3823 2002-07-12 Werner LEMBERG <wl@gnu.org>
3825 * src/roff/troff/input.cc (substring_request): Add warnings for
3826 string indices out of range.
3828 2002-07-11 Werner LEMBERG <wl@gnu.org>
3830 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3831 * font/devdvi/*EC: Regenerated.
3833 2002-07-10 Bernd Warken <bwarken@mayn.de>
3835 * man/groff_char.man: Updated and extended.
3837 2002-07-10 Werner LEMBERG <wl@gnu.org>
3839 * src/roff/troff/input.cc (length_macro): Renamed to...
3840 (length_request): This.
3841 Move call of `tok.next()' to the very end, otherwise the register
3842 value hasn't been updated yet.
3843 (init_input_requests): Updated.
3845 2002-07-09 Werner LEMBERG <wl@gnu.org>
3847 * src/roff/troff/input.cc (substring_macro): Renamed to...
3848 (substring_request): This.
3849 (init_input_requests): Updated.
3850 * src/roff/troff/request.h: Updated.
3852 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3854 * src/roff/grog/grog.sh: Fix typo.
3856 2002-07-08 Werner LEMBERG <wl@gnu.org>
3858 * win32-diffs: Updated.
3860 Handle `papersize' keyword properly in DESC.
3862 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3864 Updated all callers.
3865 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3867 * src/include/paper.h: Updated.
3869 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3870 Other minor C syntax fixes.
3871 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3872 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3874 (lbp_printer::lbp_printer): Pass three arguments.
3875 Set paper dimensions properly.
3876 (make_printer, main): Updated.
3877 (handle_unknown_desc_command): Fix error messages.
3878 (main): Handle papersize keyword in DESC properly.
3880 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3882 (lbp_printer::lbp_printer): Pass an argument.
3883 Set paper_size properly.
3884 (handle_unknown_desc_command): Removed.
3885 (make_printer, main): Updated.
3886 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3888 * man/groff_font.man, NEWS: Updated.
3890 2002-07-07 Werner LEMBERG <wl@gnu.org>
3892 Integrated eqn2graph, contributed by Eric S. Raymond.
3894 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3896 * Makefile.in, NEWS: Updated.
3898 2002-06-04 Werner LEMBERG <wl@gnu.org>
3900 Changing the substring request to make it fit better with other
3901 string manipulation functions in other programming languages:
3902 Index 0 is now the first character in the string, and index -1
3903 indicates the last character. Since this request didn't work
3904 properly anyway in the last release, it doesn't harm too much to
3907 * src/roff/troff/input.cc (substring_macro): Use loops to get
3908 the real string length (ignoring COMPATIBLE_SAVE and
3909 COMPATIBLE_RESTORE) and offsets.
3910 Implement change described above.
3912 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3913 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3915 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3917 2002-06-03 Werner LEMBERG <wl@gnu.org>
3919 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3920 COMPATIBLE_RESTORE are completely ignored.
3922 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3924 (macro): `length' field renamed to `len'.
3925 Added new field `empty_macro' (1 if macro is empty), to be used
3926 instead of checking `len'.
3927 Updated all callers.
3928 (macro::empty): Updated.
3929 (macro::length, macro::set, macro::get): New functions.
3930 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3932 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3933 COMPATIBLE_RESTORE pairs.
3934 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3935 * src/roff/troff/request.h: Updated.
3937 * doc/groff.texinfo: Document .chop's behaviour better.
3939 2002-06-02 Werner LEMBERG <wl@gnu.org>
3941 * doc/pic.ms: Fix documentation for the addition of positions.
3943 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3945 2002-06-29 Werner LEMBERG <wl@gnu.org>
3947 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3949 * src/roff/troff/input.cc (have_string_arg): New global variable.
3950 (read_mode): New enumeration.
3951 (read_escape_name): Use it. Update all calls.
3952 (read_long_escape_name): Use it. Update all calls.
3953 Set have_string_arg if appropriate.
3954 (get_char_for_escape_name): Add parameter for handling space
3956 (interpolate_string_with_args, decode_string_args): New functions.
3957 (get_copy, token::next): Call it if necessary.
3958 (interpolate_string): Fix error message.
3960 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3963 2002-06-24 Bernd Warken <bwarken@mayn.de>
3965 * man/groff_tmac.man: Updated and extended.
3967 2002-06-24 Werner LEMBERG <wl@gnu.org>
3969 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3971 2002-06-23 Werner LEMBERG <wl@gnu.org>
3973 * doc/pic.ms: Improve documentation of composite block objects.
3975 2002-06-22 Werner LEMBERG <wl@gnu.org>
3977 * src/roff/troff/input.cc (init_registers): Add three registers
3978 `seconds', `minutes', and `hours' to hold the current time.
3980 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3983 2002-06-20 Werner LEMBERG <wl@gnu.org>
3985 Make \X accept both `\ ' and `\~', converting them to single space
3988 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3989 (token::unstretchable_space): New inline function.
3990 * src/roff/troff/input.cc (token::next, token::delimiter,
3991 token::description, token::add_to_node_list, token::process): Handle
3992 TOKEN_UNSTRETCHABLE_NODE.
3993 (encode_char): Handle tok.stretchable_space and
3994 tok.unstretchable_space.
3996 * NEWS, doc/groff.texinfo: Document it..
3998 2002-06-19 Werner LEMBERG <wl@gnu.org>
4000 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4002 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4003 keyword to enable/disable SGR output.
4004 (tty_printer::change_fill_color): New function.
4005 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4007 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4010 2002-06-18 Werner LEMBERG <wl@gnu.org>
4012 Add a `color' request and a `.color' register to control usage of
4015 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4016 (color_flag): This (which is the inverse).
4017 (activate_color): New function.
4018 (main, init_input_requests): Updated.
4019 * src/roff/troff/troff.h, src/roff/troff/node.cc
4020 (troff_output_file::fill_color, troff_output_file::glyph_color):
4023 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4024 Document the changes.
4026 2002-06-17 Colin Watson <cjwatson@debian.org>
4028 Circumvent bug in autoconf 2.53 regarding top_builddir.
4030 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4031 * Makefile.in, doc/Makefile.in:
4032 s/@top_builddir@/@groff_top_builddir@/.
4033 * configure: Regenerated (with autoconf 2.53).
4035 2002-06-17 Werner LEMBERG <wl@gnu.org>
4037 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4038 `paperwidth' and `paperlength' for the `papersize' keyword.
4040 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
4042 * src/devices/grops/grops.man: Add info about Type 42 fonts.
4044 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
4046 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4047 html_printer::do_linelength, html_printer::do_pageoffset,
4048 html_printer::do_indentation, html_printer::do_tempindent,
4049 html_printer::do_break, html_printer::begin_page): Clear indented
4051 * tmac/html.tmac: Disable hyphenation.
4053 2002-06-15 Werner LEMBERG <wl@gnu.org>
4055 Don't produce HTML files if utility programs are missing.
4057 * Makefile.in (make_html, make_install_html): New variables.
4058 (MDEFINES): Updated.
4060 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4062 * configure.ac: Use it.
4063 * configure: Regenerated.
4065 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4066 (HTMLEXAMPLESFILES): This new variable.
4067 (EXAMPLESIMAGEFILES): Renamed to...
4068 (HTMLEXAMPLEIMAGEFILES): This.
4069 (CLEANADD): Add HTMLEXAMPLEFILES.
4070 (all): Use `make_html'.
4072 (install_data): Use `make_install_html'.
4073 Move html stuff to...
4074 (install_html): This new target.
4075 (uninstall_sub): Updated.
4077 2002-06-14 Bernd Warken <bwarken@mayn.de>
4079 * src/roff/grog/Makefile.sub (grog): Renamed to...
4081 (grog): New rule to always install grog.sh as grog.
4083 2002-06-08 Bernd Warken <bwarken@mayn.de>
4085 * src/roff/grog/grog.pl: Fix typo.
4087 2002-06-07 Werner LEMBERG <wl@gnu.org>
4089 * doc/groff.texinfo: Add more info on .tr arguments.
4091 2002-06-05 Werner LEMBERG <wl@gnu.org>
4093 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4095 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4096 * configure: Regenerated.
4098 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4100 * src/roff/troff/symbol.cc (table_sizes): Add more values.
4102 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4104 2002-06-04 Werner LEMBERG <wl@gnu.org>
4106 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4107 is not initialized at the time we need it in case `--prefix' hasn't
4108 been set. Check for `ac_default_prefix' also.
4109 Test for `papersize' keyword also and generalize allowed whitespace.
4110 * configure: Regenerated.
4112 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4115 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4117 (src_version, src_revision): New variables to avoid overwriting
4118 from parent make process.
4119 (version.cc): Updated.
4121 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4122 (linebuf, linebufsize): New global variables.
4123 (sys_fatal): Use `fatal' to abort properly.
4124 (get_line): New function.
4125 (get_resolution): Use it.
4126 Improve error messages.
4127 (get_papersize): Check `papersize' also.
4129 Improve error messages.
4131 2002-06-03 Werner LEMBERG <wl@gnu.org>
4133 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4134 should be removed only if builddir is not srcdir.
4135 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4136 (clean): Depend on `mostlyclean'.
4137 (distclean): Depend on `clean'.
4138 (realclean, extraclean): Depend on `distclean'.
4139 (.y.cc, .y.o): Simplified. The output files are no longer written
4140 to srcdir but to builddir.
4141 * Makefile.in (MDEFINES): Add `version' and `revision'.
4142 (uninstall_dirs): Fix order of directories.
4143 * doc/Makefile.sub (version, revision): Removed.
4144 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4145 Added `HTMLDOCFILES'.
4146 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4147 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4148 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4151 * doc/texinfo.tex (\authortt): New macro.
4152 (\shortcontt): Define.
4153 (\titlepage): Set \tt to \authortt while defining \authorfont.
4154 (\appendixbox): New macro.
4155 (\chapmacro, \appendixentry): Use \appendixbox to get even
4156 indentation for letters.
4157 (\summarycontents): Set \tt.
4158 (\internalpagesize): Add two arguments for real paper width and
4159 height as needed by pdfTeX.
4160 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4162 (\tempdima, \tempdimb): New temporary dimensions.
4163 (\pagesizesyyy): Updated.
4165 2002-06-02 Werner LEMBERG <wl@gnu.org>
4167 Adding a new keyword `papersize' to the DESC file format (similar
4168 but not completely identical to grolbp's extension). grops now has
4169 a -p command line option to override `papersize'. Finally, grolbp
4170 has been adapted to the new syntax.
4172 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
4173 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4175 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4176 (CCSRCS): Add `paper.cc'.
4178 * src/include/font.h (font): Add `papersize' element.
4179 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4180 (font::scan_papersize): New function.
4181 (font::load_desc): Use it for handling `papersize' keyword.
4182 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4184 * src/devices/grops/ps.cc: Include paper.h.
4185 (user_paper_length): New global variable.
4186 (ps_printer): Use paper length as initializer.
4187 (make_printer): Updated.
4188 (main): Handle new `-p' option.
4189 * src/devices/grops/grops.man: Updated.
4191 * src/devices/grolbp/lbp.cc: Include paper.h.
4192 s/papersizes/lbp_papersizes/.
4193 (set_papersize): Use new `papersizes' array.
4194 (handle_unknown_desc_command): Don't handle `papersize'.
4195 (main): Use `font::scan_papersize' for handling `-p' option.
4196 * src/devices/grolbp/grolbp.man: Updated.
4198 * man/groff_font.man: Document `papersize'.
4201 2002-05-30 Werner LEMBERG <wl@gnu.org>
4203 * src/devices/grops/TODO: Updated.
4204 * src/devices/grops/grops.man: More info on paper formats.
4205 * man/groff_font.man: Document `paperheight' and `paperwidth'.
4207 2002-05-29 Werner LEMBERG <wl@gnu.org>
4209 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4210 to list only if srcdir != currdir.
4211 (distfiles): New target.
4213 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4214 (NOMAKEDIRS): New variable.
4217 2002-05-26 Werner LEMBERG <wl@gnu.org>
4219 Add .output request, similar to \! at top-level.
4221 * src/roff/troff/input.cc (transparent): Remove unused declaration.
4222 (output_request): New function.
4223 (init_input_requests): Add it.
4225 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4228 * Makefile.in (MDEFINES): Add INSTALL_INFO.
4229 (prepare_examples): Fix typo.
4230 * doc/groff.texinfo (@direntry): Fix it.
4232 2002-05-25 Werner LEMBERG <wl@gnu.org>
4234 Including the doc subdir into groff's Makefile system.
4236 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4237 * configure.ac: Use it.
4238 Generate `doc/Makefile'.
4239 * configure: Regenerated.
4241 * Makefile.in (infodir, INSTALL_INFO): New variables.
4242 (MDEFINES, uninstall_dirs): Updated.
4243 (OTHERDIRS): Add `doc'.
4244 * Makefile.comm (CLEANDIRADD): New variable.
4245 (mostlyclean): Use it.
4247 * doc/Makefile.sub, doc/Makefile.in: New files.
4248 * doc/Makefile: Removed.
4250 * NEWS, INSTALL: Updated.
4252 2002-05-24 Werner LEMBERG <wl@gnu.org>
4254 * doc/homepage.ms: Renamed to ...
4255 * doc/webpage.ms: This.
4258 2002-05-23 Werner LEMBERG <wl@gnu.org>
4260 Integrating the `mom' macro package, contributed by Peter Schaffter
4263 * contrib/mom/*: New subdirectory tree.
4264 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4265 be used for documentation files.
4266 (MDEFINES, uninstall_dirs): Use them.
4267 (OTHERDIRS): Add contrib/mom.
4268 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4270 * MANIFEST, NEWS: Updated.
4272 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
4274 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4275 if at outer level; at start-up we are at outer level.
4277 * src/roff/troff/input.cc (do_suppress): Implement it.
4280 Add option -p to show progress information.
4281 pre-grohtml will now render only one page at a time, reducing the
4282 size of needed disk resources enormously.
4284 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4285 (imagePageName): New global variable.
4286 (psPageName, show_progress, currentPageNo): New global variables.
4287 (html_system): Close saved stderr and stdout handles.
4288 (write_end_image): Accept a parameter to control \O escape.
4289 (write_start_image): Adapted to new \O meaning.
4290 (char_buffer::write_upto_newline): Updated.
4291 (createAllPages): Replaced with...
4292 (createPage): This new function to create a single page for images.
4293 It uses `psselect' from the psutils package.
4294 (removeAllPages): Removed.
4295 (createImage): Updated.
4296 Handle progress display.
4297 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4298 (scanArguments): Add option -p.
4299 (makeTempFiles): Updated to create temp files for psPageName and
4301 (removeTempFiles): Removed.
4304 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4305 html_printer::write_header): Append `\0' to `buffer'.
4306 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4308 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4309 Handle `text_emitted'.
4310 (html_text::table_is_void): Slightly rewritten.
4311 (stop): New external symbol.
4312 (html_text::do_push) [DEBUGGING]: Use it and simplify.
4313 (html_text::shutdown): Call `dump_stack'.
4314 (html_text::do_space): Rewritten.
4315 * src/devices/grohtml/grohtml.man: Document -p and the need of
4318 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4320 Call \O[0] if `ps4html' is active.
4321 * tmac/s.tmac (@EQ, @EN): Handle html better.
4323 * tmac/html.tmac: Don't use black for background colour.
4325 * src/roff/troff/node.cc: Include `div.h'.
4326 (troff_output_file::really_print_line): Don't use `is_on'.
4327 (troff_output_file::word_marker, troff_output_file::flush_tbuf
4328 troff_output_file::check_charinfo,
4329 troff_output_file::put_char_width, troff_output_file::put_char,
4330 troff_output_file::determine_line_limits, troff_output_file::draw,
4331 real_output_file::begin_page, glyph_color_node::tprintf,
4332 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4334 (troff_output_file::really_on): Call `do_motion'.
4335 (suppress_node::tprint): Use `get_page_number' instead of `%'
4337 Call `reset_output_registers' conditionally on `is_on'.
4339 * doc/groff.texinfo: Document new syntax of \O.
4340 * NEWS, man/groff_diff.man: Updated.
4342 2002-05-22 Werner LEMBERG <wl@gnu.org>
4344 * MORE.STUFF: Add info about David Frey's deroff implementation.
4347 2002-05-16 Werner LEMBERG <wl@gnu.org>
4349 Pic's `with' attribute now accepts positions.
4351 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4352 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4354 (object_spec): Add rule for `WITH' and `position'.
4355 (relative_path): Give `corner' the precedence of `CHOP'.
4356 * src/preproc/pic/object.h (path): New members `pos' and
4358 * src/preproc/pic/object.cc: Updated initializers of `path'.
4359 (path::follow): Handle `is_position'.
4361 * doc/pic.ms: Completely updated grammar description.
4362 Many typographical improvements.
4364 2002-05-15 Werner LEMBERG <wl@gnu.org>
4366 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4367 code of x in range 0-127) also.
4368 * doc/groff.texinfo, man/groff_diff.man: Updated.
4370 Added keywords `north', `south', `east', and `west' for corners
4373 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4375 (yylex): Handle them.
4376 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4377 (corner): Handle them.
4379 2002-05-14 Werner LEMBERG <wl@gnu.org>
4381 * src/devices/grops/grops.man: Clarify handling of `download' file.
4383 2002-05-11 Werner LEMBERG <wl@gnu.org>
4385 Adding `warnscale' and `spreadwarn' requests, based on a patch from
4386 Jeffrey Friedl <jfriedl@yahoo.com>.
4388 * src/roff/troff/input.cc (spread_limit, warn_scale,
4389 warn_scaling_indicator): New global variables.
4390 (warnscale_request, spreadwarn_requests): New functions.
4391 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4392 (init_input_requests): Updated.
4393 (error_type): Add `OUTPUT_WARNING'.
4394 (do_error): Handle it.
4395 (output_warning): New warning function which shows output location.
4396 * src/roff/troff/env.h (spread_limit): New external variable.
4397 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4399 (distribute_space): Emit warning if added space is larger than
4401 (environment::possibly_break_line): Emit warning if a line can't
4402 be adjusted on both sides.
4404 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4406 2002-05-08 Werner LEMBERG <wl@gnu.org>
4408 * src/roff/troff/node.cc (special_node::special_node): Use
4409 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
4410 \X''\% crashes, for example.
4412 * doc/groff.texinfo: Document \! and \? used at top-level.
4414 2002-05-06 Werner LEMBERG <wl@gnu.org>
4416 * src/preproc/pic/pic.man: Fix some keyword syntax.
4417 Other minor typographical fixes.
4419 * src/roff/groff/groff.man: Fix typos.
4421 2002-05-04 Werner LEMBERG <wl@gnu.org>
4423 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4424 (ShortOpt[]): This to avoid problems with refer.
4426 * doc/pic.ms: Fix typo.
4427 Fix pic grammar description.
4429 * tmac/an-old.tmac (ne): Use de1, not de.
4431 2002-05-03 Werner LEMBERG <wl@gnu.org>
4433 * doc/groff.texinfo: Finished separation of glyphs and characters.
4434 Don't use the string `Appendix' for appendix headers (both in
4435 the text and the table of contents).
4436 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4439 Use registers LL and LT (similar to -ms) for controlling the
4440 length of title and line, respectively, in the -man and -mdoc
4443 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4444 (doc-setup-page-layout): Use \n[LL] and \n[LT].
4445 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4447 (an-header, an-p-footer): Use \n[LT].
4448 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4449 doc/groff.texinfo: Document it.
4451 2002-05-02 Werner LEMBERG <wl@gnu.org>
4453 * doc/fdl.texi: New file.
4454 * doc/groff.texinfo: Include it.
4455 Define and use @copying.
4456 Starting with separating glyph, symbol, and character.
4458 2002-04-27 Werner LEMBERG <wl@gnu.org>
4460 * Makefile.in (EXEEXT): Set it.
4461 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4464 * src/include/nonposix.h: Define GS_NAME.
4465 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4467 Some preliminary changes for EMX support under OS/2.
4469 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4470 __EMX__ similar to __MSDOS__.
4471 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4473 2002-04-25 Werner LEMBERG <wl@gnu.org>
4475 * doc/groff.texinfo: Integrated groff_out.man.
4478 2002-04-23 Werner LEMBERG <wl@gnu.org>
4480 * man/groff_out.man: Minor fixes.
4482 2002-04-23 Werner LEMBERG <wl@gnu.org>
4484 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4485 correct page references.
4486 Fixed many index entries.
4488 2002-04-23 Bernd Warken <bwarken@mayn.de>
4490 * man/roff.man: Enlarged.
4492 2002-04-22 Werner LEMBERG <wl@gnu.org>
4494 * doc/groff.texinfo: More examples, other fixes.
4496 2002-04-20 Werner LEMBERG <wl@gnu.org>
4498 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4499 will now form a chain, e.g.
4508 This is for compatibility with plan 9's troff.
4510 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4514 * doc/groff.texinfo: Add documentation of remaining requests and
4517 2002-04-19 Werner LEMBERG <wl@gnu.org>
4519 * doc/groff.texinfo: Add documentation of remaining escapes.
4521 * font/devdvi/generate/tc.map: Remove entry for `sr'.
4522 * font/devdvi/*TC: Regenerated.
4524 2002-04-18 Werner LEMBERG <wl@gnu.org>
4526 * src/roff/troff/input.cc (token::next): Make \H behave consistently
4527 if not in compatibility mode, i.e., increment relative to the
4529 * doc/groff.texinfo: Updated accordingly.
4531 2002-04-17 Werner LEMBERG <wl@gnu.org>
4533 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4535 2002-04-16 Bernd Warken <bwarken@mayn.de>
4537 * src/roff/groff/groff.man: Improve documentation of -P option.
4540 2002-04-15 Werner LEMBERG <wl@gnu.org>
4542 Add new escape \F to switch font family.
4544 * src/roff/troff/input.cc (token::next): Handle \F.
4545 * src/roff/troff/env.cc (environment::set_family): Handle
4547 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4550 2002-04-14 Werner LEMBERG <wl@gnu.org>
4552 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4555 2002-04-13 Werner LEMBERG <wl@gnu.org>
4557 Implement \f[] as an alternative to \fP. Change \mP and \MP to
4558 \m[] and \M[], respectively.
4560 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4561 (symbol::symbol): Handle NULL string and empty string differently.
4562 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4563 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4564 Add optional parameter.
4565 Updated calling functions.
4566 (get_copy, do_glyph_color, do_fill_color, token::next): Use
4568 * src/roff/troff/env.cc (environment::set_font): Ditto.
4570 * src/preproc/pic/troff.cc (troff_output::set_fill,
4571 troff_output::reset_color: Updated.
4573 * tmac/www.tmac: Updated.
4575 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4576 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4579 * tmac/Xps.tmac: Remove some redundant code.
4581 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4582 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4583 man/groff_out.man, man/groff.man, man/groff_diff.man,
4584 src/roff/groff/groff.man: Replace \f[P] with \f[].
4586 2002-04-13 Bernd Warken <bwarken@mayn.de>
4588 * src/include/printer.h, src/libs/libdriver/printer.cc
4589 (printer::change_fill_color): New member function.
4590 * src/libs/libdriver/input.cc (parse_D_command): Use it.
4592 2002-04-12 Werner LEMBERG <wl@gnu.org>
4594 * doc/groff.texinfo: Completed pass on gtroff reference.
4596 2002-04-11 Werner LEMBERG <wl@gnu.org>
4598 * doc/groff.texinfo: More fixes.
4600 2002-04-11 Bernd Warken <bwarken@mayn.de>
4602 * src/include/color.h: Decorate with `const'.
4605 * src/libs/libgroff.color.cc: Decorate with `const'.
4607 (color::color): Initialize members.
4608 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4609 command according to the documentation.
4611 * man/groff_out.man: Updated.
4614 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
4616 * src/preproc/html/pre-html.cc (write_start_image): Remove
4618 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4620 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4621 \C'hy' caused an assertion failure.
4623 * src/roff/troff/env.cc (environment::environment): Initialize
4625 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4627 2002-04-10 Werner LEMBERG <wl@gnu.org>
4629 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4630 Document pvs request and .pvs register.
4632 2002-04-09 Werner LEMBERG <wl@gnu.org>
4634 * doc/groff.texinfo: Improve and fix documentation of diversions
4637 2002-04-08 Werner LEMBERG <wl@gnu.org>
4639 * doc/groff.texinfo: Fix documentation of drawing functions.
4642 2002-04-07 Werner LEMBERG <wl@gnu.org>
4644 * doc/groff.texinfo: Better documentation of double quotes as
4648 2002-04-06 Werner LEMBERG <wl@gnu.org>
4650 * man/groff_font.man: Document names of special characters better.
4651 * doc/groff.texinfo: Minor improvements.
4653 * tmac/lbp.tmac: Load latin1.tmac.
4654 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4656 * font/devX*/*: Regenerated (all chars > 0x80 removed).
4658 2002-04-05 Werner LEMBERG <wl@gnu.org>
4660 * tmac/tty.tmac: Don't use shc request.
4661 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4664 * man/groff_diff.man: Minor fixes.
4666 * font/devlbp/*: Remove all `charXXX' entities.
4668 * src/libs/libgroff/font.cc (font::~font): Deallocate
4669 `special_device_coding'.
4670 (font::load): Use `new' for allocating `special_device_coding'.
4671 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4672 Removed unused member.
4674 2002-04-05 Werner LEMBERG <wl@gnu.org>
4676 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4677 (resource_manager::do_begin_binary,
4678 resource_manager::do_begin_data): Use it.
4680 * doc/texinfo.tex: Updated to version 4.2.
4682 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4683 (token::zero_width_break): New inline function.
4684 * src/roff/troff/input.cc (token::next): Use it.
4685 (token::description): Updated.
4686 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4687 (token::add_to_node_list, token::process): Use it.
4688 * NEWS, doc/groff.texinfo: Updated.
4690 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4691 * tmac/tty.tmac: Add missing backslash.
4693 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4695 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4696 `.ps' register instead of `.s' to handle fractional point sizes.
4697 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4698 limit_box::output): Ditto.
4699 * src/preproc/eqn/other.cc (size_box::compute_metrics,
4700 size_box::output): Ditto.
4701 * src/preproc/eqn/over.cc (over_box::compute_metrics,
4702 over_box::output): Ditto.
4703 * src/preproc/eqn/script.cc (script_box::compute_metrics,
4704 script_box::output): Ditto.
4705 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4706 sqrt_box::output): Ditto.
4708 2002-04-03 Michael Selway <mas@ssl.co.uk>
4710 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4713 2002-04-03 Werner LEMBERG <wl@gnu.org>
4715 * doc/homepage.ms: Reduce title size.
4716 * doc/groff.texinfo: Fix documentation of .t register.
4717 Fix handling of colon.
4720 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4721 only if page length is positive to avoid a loop.
4723 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4726 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
4728 * src/include/nonposix.h, src/roff/groff/pipeline.c:
4729 s/__CYGWIN32__/__CYGWIN__/.
4731 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
4733 * doc/gnu.xpm: New image contributed by Emily Mulley.
4734 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4735 (homepage.html): Be dependent on gnu.eps.
4736 * doc/homepage.ms: Updated to new image.
4738 * src/devices/grohtml/post-html.cc (html_printer): New member
4740 (html_printer::flush_sbuf, html_printer::set_char): Set it.
4741 (html_printer::sbuf_continuation): Use it.
4743 2002-03-28 Werner LEMBERG <wl@gnu.org>
4745 * src/libs/libgroff/getopt.c: Updated to latest version.
4747 * tmac/README: More on hyphen.tex license.
4749 2002-03-26 Larry Kollar <kollar@alltel.net>
4751 * doc/groff.texinfo: Add documentation of most missing requests.
4753 2002-03-25 Werner LEMBERG <wl@gnu.org>
4755 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4756 of `+-', `mu', and `di', respectively.
4758 * font/devascii/R.proto, font/devutf8/R.proto,
4759 font/devlatin1/R.proto, font/devhtml/R.proto,
4760 font/devcp1047/R.proto, font/devlpb/*: Add them.
4761 * font/devps/generate/textmap: Ditto.
4762 * font/devps/*: Regenerated.
4763 * font/devlj4/generate/text.map: Add them.
4764 * font/devlj4/*: Regenerated.
4765 * font/devdvi/generate/tc.map: Use them.
4766 * font/devdvi/generate/texsy.map: Add them.
4767 * font/devdvi/*: Regenerated.
4768 * font/devX*/*: Regenerated.
4770 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4771 tmac/tty-char.tmac: Updated.
4773 * NEWS, man/groff_char.man: Updated.
4775 2002-03-24 Werner LEMBERG <wl@gnu.org>
4777 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4778 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4779 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4780 we use `.fchar' in dvi.tmac.
4781 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4782 * tmac/Xps.tmac: Simplify some char definitions.
4783 Add definition for \[f/].
4784 * man/groff_char.man: Updated for new X.tmac.
4786 * tmac/README: New file.
4788 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4790 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4791 internal .y.o rule took precendence over the .y.cc rule, compiling
4792 the yacc files with gcc instead of g++.
4794 2002-03-23 Werner LEMBERG <wl@gnu.org>
4796 * tmac/dvi.tmac: Add replacement font for `CB'.
4798 * tmac/doc.tmac: s/request/macro/ in messages.
4799 (doc-generic-macro): Improve error message.
4800 * tmac/groff_mdoc.man: Minor improvements.
4802 2002-03-22 Werner LEMBERG <wl@gnu.org>
4804 * doc/groff.texinfo: Document possible conflict between `tr' and
4807 2002-03-21 Werner LEMBERG <wl@gnu.org>
4809 Improve handling of hyphenation patterns. It is now possible to
4810 use most of TeX's pattern files unmodified. To make the process
4811 more flexible, a new request `hpfcode' has been added which
4812 provides a character code mapping for the `hpf' request. See
4813 comment before hpf_getc() for more details.
4815 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4817 (read_patterns_file): Additional parameter for exception dictionary.
4818 Extended to recognize \pattern, \hyphenation, and \endinput.
4819 (do_hyphenation_patterns_file): Updated.
4820 * src/roff/troff/env.h (hpf_code_table): New extern.
4822 * src/roff/troff/input.cc (hpf_code_table): New array.
4823 (init_hpf_code_table, hyphenation_patterns_file_code): New
4825 (hyphenation_code): Handle translation from `trin' correctly.
4826 (main, init_input_requests): Updated.
4827 (charinfo::set_translation): Handle hyphenation code also.
4829 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4832 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4833 char' is used for offsets in hyphenation exceptions.
4835 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4837 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4839 2002-03-20 Larry Kollar <kollar@alltel.net>
4841 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4844 2002-03-18 Werner LEMBERG <wl@gnu.org>
4846 * tmac/html.tmac: Fix serious typo.
4848 2002-03-17 Larry Kollar <kollar@alltel.net>
4850 * doc/groff.texinfo: Add documentation for `writec' request.
4852 2002-03-17 Werner LEMBERG <wl@gnu.org>
4854 Added request `hpfa' to append hyphenation patterns.
4856 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4858 (hyphenation_patterns_file): Renamed to...
4859 (do_hyphenation_patterns_file): This.
4860 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4862 (init_hyphen_requests): Updated.
4863 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4865 2002-03-16 Werner LEMBERG <wl@gnu.org>
4867 Added request `writec' in analogy to `tmc'.
4869 * src/roff/troff/input.cc (write_request): Renamed to...
4870 (do_write_request): This.
4871 Added one parameter.
4872 (write_request, write_request_continue): New functions.
4873 (init_input_requests): Updated.
4874 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4876 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4878 * NEWS: Document it.
4880 2002-03-15 Werner LEMBERG <wl@gnu.org>
4882 * man/groff.man: Add writem request.
4884 Add request `trin' (translate input) to make `.asciify' work
4885 correctly. This is necessary since `charXXX' entity names are no
4886 longer hardcoded in font definition files.
4888 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4889 `translate_input' members.
4890 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4891 charinfo::set_translation_input): New methods.
4892 (charinfo::set_translation): Add third argument.
4893 * src/roff/troff/input.cc (charinfo:set_translation): Set
4895 (do_translate): Add second argument.
4896 (translate_input): New function.
4897 (init_input_requests): Updated.
4898 * src/roff/troff/node.cc (glyph_node::asciify,
4899 composite_node::asciify): Use `get_asciify_code'.
4901 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4903 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4905 2002-03-14 Larry Kollar <kollar@alltel.net>
4907 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4909 2002-03-14 Werner LEMBERG <wl@gnu.org>
4911 Add a new request `sizes' similar to the `sizes' command in DESC
4914 * src/roff/troff/env.cc (override_sizes): New function.
4915 (init_env_requests): Use it.
4916 * src/roff/troff/token.h: Export `read_string'.
4917 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4919 2002-03-12 Werner LEMBERG <wl@gnu.org>
4921 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4923 2002-03-10 Werner LEMBERG <wl@gnu.org>
4925 * tmac/pspic.tmac: Add support for -Tdvi.
4926 * tmac/dvi.tmac: Include pspic.tmac.
4927 * src/devices/grodvi/grodvi.man: Document it.
4930 * font/devlj4/generate/Makefile: Fix URL of metric files.
4932 2002-03-09 Werner LEMBERG <wl@gnu.org>
4934 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4936 2002-03-09 Larry Kollar <kollar@alltel.net>
4938 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4940 2002-03-08 Werner LEMBERG <wl@gnu.org>
4942 * doc/groff.texinfo: Fixes for texinfo 4.1.
4944 2002-03-07 Werner LEMBERG <wl@gnu.org>
4946 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4948 Handle CYGWIN properly.
4950 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4952 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4953 * tmac/lbp.tmac: Add some font translations.
4955 2002-03-02 Werner LEMBERG <wl@gnu.org>
4957 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4958 font/devhtml/R.proto: Remove `charXXX' entries.
4959 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4962 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4963 * font/devlj4/*: Regenerated all font definition files.
4964 * tmac/lj4.tmac: Load latin1.tmac.
4966 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4967 from 2000-06-17: LJ4 metric files are *not* text files.
4969 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4970 register to test for EBCDIC.
4972 2002-03-01 Werner LEMBERG <wl@gnu.org>
4974 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4975 files (as grops already does).
4976 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4978 * src/devices/grops/grops.man: Document comment lines in encoding
4981 * tmac/cp1047.tmac: New file.
4982 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4983 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4984 * tmac/Makefile.sub (NORMALFILES): Updated.
4986 * tmac/ec.tmac: Don't load latin1.tmac again.
4988 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4989 font/devps/generate/dingbats.map,
4990 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4991 font/devps/generate/Makefile (symbolmap): Add header comment.
4992 * font/devps/generate/textmap: Ditto.
4993 Remove `charXXX' entries.
4994 * font/devps/symbolmap: Regenerated.
4995 * font/devps/*: Regenerated all font definition files.
4997 2002-02-28 Werner LEMBERG <wl@gnu.org>
4999 Add color support to grodvi (for drawing colors are currently
5000 translated to gray values).
5002 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5003 (dvi_printer): Add `cur_color' member.
5004 (dvi_printer::set_color): New function.
5005 (draw_dvi_printer): Remove `fill'.
5006 (draw_dvi_printer::fill_next): Pass environment as parameter.
5007 Update code for new color support translated to gray.
5008 (dvi_printer::set_char): Updated.
5009 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5010 changes crossing the page border.
5011 (dvi_printer::draw): Updated.
5012 Remove cases `f' and `F'.
5013 * tmac/dvi.tmac: Add color definitions.
5014 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5016 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5019 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5020 versions of autoconf.
5021 * configure: Updated.
5023 * doc/homepage.ms: Use `.blm'.
5024 * tmac/www.tmac (www-depth): New auxiliary variable.
5025 (www-pop-level): Don't issue HTML tag.
5026 (ULS, ULE, LI): Use absolute indentation.
5028 * src/devices/grops/ps.cc (ps_printer::begin_page,
5029 ps_printer::end_page): Switch forth and back to default color while
5030 starting a new page.
5032 2002-02-27 Werner LEMBERG <wl@gnu.org>
5034 Add EC and TC fonts to devdvi.
5036 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5037 * font/devdvi/generate/cork.map: Renamed to...
5038 * font/devdvi/generate/ec.map: This.
5039 Remove entry for `aq'.
5040 * font/devdvi/generate/tc.map: New file.
5041 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5044 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5045 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5046 * tmac/ec.tmac: New file.
5047 * tmac/Makefile.sub (NORMALFILES): Updated.
5048 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5049 * man/groff_char.man: Check `ECFONTS' register.
5051 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5053 2002-02-26 Werner LEMBERG <wl@gnu.org>
5055 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5056 * font/devdvi/generate/cork.map: Add 'y and 'Y.
5057 * font/devdvi/*: Updated.
5058 * tmac/dvi.tmac: Formatting.
5060 Add font `HBI' for the dvi output.
5061 Add support for font families `T' and `H'.
5063 * font/devdvi/HBI: New file.
5064 * font/devdvi/B: Renamed to ...
5065 * font/devdvi/TB: This.
5066 * font/devdvi/BI: Renamed to ...
5067 * font/devdvi/TBI: This.
5068 * font/devdvi/I: Renamed to ...
5069 * font/devdvi/TI: This.
5070 * font/devdvi/R: Renamed to ...
5071 * font/devdvi/TR: This.
5072 * font/devdvi/H: Renamed to ...
5073 * font/devdvi/HR: This.
5074 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5075 * font/devdvi/generate/Makefile (HBI): New rule.
5077 (R, I, B, BI, H): Renamed to ...
5078 (TR, TI, TB, TBI, HR): This, respectively.
5080 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5081 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5082 Add `styles' and `family' keywords.
5083 * tmac/dvi.tmac: Alias `H' to `HR'.
5084 Add some fspecial requests for italic fonts.
5085 Add TR and TI as special.
5086 Add support for `_' with font CWI.
5088 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5089 operator `:'. Until now, the expression `0:1' would return 2
5092 2002-02-25 Werner LEMBERG <wl@gnu.org>
5094 * man/groff_char.man: Added some missing PS glyph names (from the
5096 * font/devps/generate/textmap, font/devps/symbolmap: Add
5099 * doc/groff.texinfo: Minor additions and fixes.
5100 * man/groff_diff.man: Remove documentation of fp request. This
5101 is already covered in the original troff manual.
5102 Updated to be consistent with other doc files.
5105 2002-02-24 Werner LEMBERG <wl@gnu.org>
5107 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5109 Define new variable OTHERDEVDIRS (containing `font/devlj4
5110 font/devlbp' if not EBCDIC).
5111 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5112 (OTHERDEVDIRS): New variable.
5113 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5114 * configure: Regenerated.
5116 * NEWS, src/devices/grotty/grotty.man: Updated.
5118 2002-02-23 Werner LEMBERG <wl@gnu.org>
5120 * src/roff/troff/input.cc (do_overstrike, do_bracket,
5121 get_line_arg): Honour input level.
5123 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5125 * font/*/*: Implement it in all font files.
5126 * font/devps/generate/textmap, font/devps/generate/symbolchars,
5127 * font/devps/symbolmap: Updated.
5128 * font/devlj4/generate/text.map: Updated.
5129 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5130 * font/devdvi/generate/texmi.map: Updated.
5132 * font/devutf8/R.proto: Remove all `charXXX' entries.
5133 * font/devutf8/NOTES: Updated.
5135 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5138 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5140 * NEWS, man/groff_char.man: Updated.
5142 2002-02-21 Phil Lobbes <phil@perkpartners.com>
5144 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5146 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5148 * src/roff/grog/grog.pl: Fix computation of $refer.
5150 2002-02-19 Werner LEMBERG <wl@gnu.org>
5152 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5153 `snprintf' and `vsnprintf'.
5155 * src/include/htmlindicate.h: Renamed to...
5156 * src/include/htmlhint.h: This.
5157 * src/include/Makefile.sub: Updated.
5158 * src/preproc/eqn/main.cc: Updated.
5160 2002-02-18 Werner LEMBERG <wl@gnu.org>
5162 * man/roff.man, man/groff_out.man, man/groff.man,
5163 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5164 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5166 * win32-diffs: Updated.
5168 2002-02-17 Werner LEMBERG <wl@gnu.org>
5170 * doc/Makefile (clean): Add *.eps.
5171 (MEMACROS): Removed.
5172 (TFLAG): New variable.
5175 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5177 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5179 * tmac/www.tmac: Use dummy diversion while resetting and disabling
5181 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5183 * src/roff/troff/troff.man: Fix order of parameter description.
5187 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
5189 Simplify image handling for grohtml.
5192 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5194 (html_text::dump_stack): Don't emit newline while debugging.
5195 (html_text::do_push) [DEBUGGING]: Print more info.
5196 (html_text::check_emit_text): Fix handling of <p>.
5197 * src/devices/grohtml/html.h: Updated.
5198 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5199 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
5200 send its data to stderr also.
5202 (simple_output::space_or_newline) [DEBUGGING]: Removed.
5203 * src/devices/grohtml/post-html.cc (html_printer::do_links,
5204 html_printer::html_printer): Remove `DEBUGGING' conditionals.
5206 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5208 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5209 is_inline_image): Removed.
5210 (html_begin_suppress, html_end_suppress): Don't take a parameter.
5211 (graphic_start, graphic_end): Removed.
5212 * src/include/htmlindicate.h: Updated.
5213 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5214 (macroset_template): New global variable.
5215 (makeFileName): Use `macroset_template'.
5216 (write_end_image): Don't take a parameter.
5218 (write_start_image: Don't emit newline.
5219 (char_buffer::write_upto_newline): Updated.
5220 (char_buffer::skip_to_newline): Renamed to ...
5221 (char_buffer::skip_until_newline): This.
5223 (char_buffer::write_file_troff, char_buffer::write_file_html):
5225 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5226 (removeAllPages): Remove `DEBUGGING' conditionals.
5227 (addRegDef, dump_args): New functions.
5228 (char_buffer::do_html, char_buffer::do_image): Handle
5229 `www-image-template' command line variable.
5230 Add more debugging code.
5231 (addps4html): Removed.
5232 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5234 * src/preproc/eqn/main.cc: Include `ctype.h'.
5235 (suppress_html): Removed.
5237 (inline_equation): Use `html_begin_suppress' and
5238 `html_end_suppress'.
5239 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5240 (troff_output::start_picture, troff_output::finish_picture):
5242 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5243 (process_input_file): Updated.
5245 * src/roff/troff/div.cc (page_number): Set page number only if the
5246 `ps4html' register isn't defined.
5247 * src/roff/troff/input.cc (image_no): New external variable.
5248 (do_suppress): Use it.
5249 * src/roff/troff/node.h (suppress_node::image_id): New member.
5250 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5251 (suppress_node::suppress_node): Initialize `image_id' member.
5252 (suppress_node::same): Handle `image_id' also.
5253 (suppress_node::copy): Updated.
5254 (last_image_id): New global variable.
5255 (suppress_node::tprint): Use it.
5257 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5259 * tmac/pspic.mac (PSPIC): Fix html support.
5260 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5261 * tmac/www.tmac (www-image-template): Set up.
5262 (HTMLINDEX): Renamed to...
5264 (BODYCOLOR): Renamed to...
5266 (BACKGROUND): Renamed to...
5268 (URL): Change order of parameters for consistency.
5269 (MAILTO): Renamed to...
5271 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5272 (IMG, PIMG, MPIMG): This.
5273 (HTML-H-BEGIN, HTML-H-END): Renamed to...
5275 (LINKS): Renamed to...
5277 (LINE): Renamed to...
5279 (NO-AUTO-RULE): Renamed to...
5281 (HTML-TL): Renamed to...
5283 (UL-BEGIN, UL-END): Renamed to...
5285 (DROPCAP): Renamed to...
5287 (TS, TE, EQ, EN): Provide default definitions.
5288 (www-make-unique-name): Updated.
5289 (HTML-IMAGE-INLINE): Fix typo.
5290 * tmac/groff_www.man: Updated.
5292 * doc/Makefile (homepage.html): Add option -r to grohtml.
5293 Use shortened image name.
5294 * doc/groff.texinfo: Updated info on grohtml strings and macros.
5295 * doc/homepage.ms: Updated and extended.
5297 2002-02-14 Werner LEMBERG <wl@gnu.org>
5299 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5301 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5302 SGR_BACK_DEFAULT_COLOR): Replaced with ...
5303 (tty_printer::put_color): Use it.
5304 (ttr_printer::end_page): Simplify.
5306 2002-02-13 Werner LEMBERG <wl@gnu.org>
5308 * tmac/groff_tmac.man: Moved to...
5309 * man/groff_tmac.man: This place.
5310 * tmac/Makefile.sub, man/Makefile.sub: Updated.
5312 2002-02-12 Werner LEMBERG <wl@gnu.org>
5314 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5315 $(COMPILE.c) to not include groff's assert.h.
5317 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5319 * NEWS, src/drivers/grotty/grotty.man: Document it.
5321 2002-02-11 Werner LEMBERG <wl@gnu.org>
5323 * src/libs/snprintf/snprintf.c: Updated to latest version
5326 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
5327 test whether there is `.]' also.
5328 Don't check for spaces after `.['.
5329 * src/roff/grog/grog.sh: Do the same.
5331 2002-02-10 Werner LEMBERG <wl@gnu.org>
5335 * src/libs/libgroff/illegal.cc: Renamed to ...
5336 * src/libs/libgroff/invalid.cc: This.
5337 (illegal_char_table): Renamed to ...
5338 (invalid_char_table): This.
5339 * src/libs/libgroff/Makefile.sub: Updated.
5340 * win32-diffs: Updated.
5342 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5343 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5344 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5345 font::load), src/preproc/eqn/main.cc (read_line, main),
5346 src/preproc/eqn/lex.cc (file_input::read_line),
5347 src/preproc/pic/lex.cc (file_input::read_line,
5348 simple_file_input::get, simple_file_input::peek),
5349 src/preproc/pic/main.cc (top_input::get, top_input::peek),
5350 src/preproc/pic/pic.man, src/preproc/refer/main.cc
5351 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5352 do_bib), src/preproc/tbl/main.cc (table_input::get),
5353 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5354 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5355 do_zero_width, read_request, encode_char, ps_get_line,
5356 transparent_file, get_char_for_escape_name, transparent_translate,
5357 asciify, input_char_description, read_string, set_string),
5358 src/roff/troff/env.cc (environment::add_html_tag),
5359 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5361 * src/include/lib.h: Updated.
5363 * src/preproc/eqn/eqn.cc: Removed.
5367 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5369 2002-02-09 Werner LEMBERG <wl@gnu.org>
5371 * doc/gnu.xpm: New image.
5372 * doc/Makefile (DOCS): Add homepage.ps.
5373 Add rules for converting xpm->png and xpm->eps.
5374 Use `gnu.{xpm,eps}' as image names.
5375 * doc/homepage.ms: Updated.
5377 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
5379 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5380 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5381 Remove calls to `B1' and `B2'
5382 (PNG-IMAGE): New macro for inclusion of images in PNG format.
5383 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5384 auxiliary variables for MARGIN-PNG-IMAGE.
5385 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5386 auxiliary macros for MARGIN-PNG-IMAGE.
5387 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5389 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5390 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5391 (DROPCAP): New macro to produce dropcap characters.
5392 (www-do-image): Renamed back to...
5393 (HTML-DO-IMAGE): This.
5394 Updated all callers.
5396 * doc/Makefile (gnubw.eps): Updated.
5397 * doc/homepage.ms: Updated.
5399 2002-02-08 Werner LEMBERG <wl@gnu.org>
5401 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5402 Added `linethick' to table in section `Style Variables'.
5404 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
5406 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5408 2002-02-07 Werner LEMBERG <wl@gnu.org>
5410 Adding options -C (compatibility mode) and -c (grotty's old output
5413 * src/roff/nroff/nroff.sh: Implement it.
5415 * NEWS, src/roff/nroff/nroff.man: Updated.
5417 * PROBLEMS: Document bison 1.32 bug.
5419 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5421 * src/roff/troff/node.cc (make_tfont): Define it earlier.
5422 * src/roff/troff/div.h: Add prototype for `end_diversions'.
5423 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5424 * src/roff/troff/env.h: Add prototype for `title'.
5426 Adding EBCDIC support to grotty.
5428 * src/devices/grotty/tty.cc (CSI): New macro.
5429 (SGR_*, tty_printer::put_color): Use it.
5431 2002-02-06 Werner LEMBERG <wl@gnu.org>
5433 Implementing color support in grotty. The new switch -c activates
5434 the old drawing scheme, disabling color at the same time. The new
5435 switch `-i' selects italic instead of underlining (SGR only).
5437 * src/devices/grotty/tty.cc (putstring): New define instead of
5438 `fputs'. Updated all callers.
5439 (old_drawing_scheme): New global variable.
5440 (COLOR_CHANGE): New enum value.
5441 (SGR_*): New defines containing color handling escape sequences.
5442 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5443 (glyph): New members `back_color_idx' and `fore_color_idx'.
5444 (glyph::order): Add COLOR_CHANGE.
5445 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5446 `is_underline', `is_bold', `cu_flag', `tty_colors'.
5447 New methods `make_underline', `make_bold', `color_to_idx',
5448 `change_color', `put_color'.
5449 (cu_flag): Moved into `tty_printer' class.
5450 (tty_printer::tty_printer): Initialize colors.
5451 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5452 tty_printer::draw, tty_printer::end_page): Handle colors also.
5453 (main): Add options `-c' and `-i'.
5455 * NEWS, src/devices/grotty/grotty.man: Updated.
5457 * src/include/errarg.h (errarg): Add support for `unsigned int'.
5458 * src/libs/libgroff/errarg.c: Implement it.
5460 * src/include/printer.h (printer): Add `change_color' method
5461 (currently used by grotty only).
5462 * src/libs/libdriver/printer.cc: Implement it.
5463 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5464 call to `pr->change_color'.
5466 * src/roff/troff/node.cc (troff_output_file::fill_color,
5467 troff_output_file::glyph_color): Call `do_motion'.
5469 * tmac/tty.tmac: Add color definitions.
5471 * src/roff/groff/groff.man: Minor fixes.
5473 2002-02-05 Bernd Warken <bwarken@mayn.de>
5475 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5476 it. This is a preparation for future changes.
5478 2002-02-05 Werner LEMBERG <wl@gnu.org>
5480 * src/roff/troff/input.cc (process_input_stack): Fix the case
5481 where leading spaces are followed by \f or \s; previously, an
5482 incorrect space width has been used.
5484 * doc/roff.man (quoted_char): Fix argument.
5485 (comment): Define string.
5487 2002-02-04 Larry Kollar <kollar@alltel.net>
5489 * doc/groff.texinfo: More fixes.
5491 2002-02-04 Werner LEMBERG <wl@gnu.org>
5493 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5494 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5495 `restore_compatibility' before `output_string' -- the LINE_STRING
5496 register now already contains proper switches from and to
5499 * man/groff_char.man: Add Euro symbol.
5500 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5501 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5502 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5505 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5507 (.texinfo.html): Add support for texinfo->html.
5509 2002-02-03 Werner LEMBERG <wl@gnu.org>
5511 Added three new requests `ds1', `as1', and `ami'. The former two
5512 are equivalent to `ds' and `as' with the difference that
5513 compatibility mode is saved on entry, switched off during string
5514 expansion, and restored on exit. The latter is the pendant to `dei'
5517 (do_define_string): Use `define_mode' and `calling mode'.
5518 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5519 end of string, respectively.
5520 (define_string, append_string): Use `calling_mode'.
5521 (define_nocomp_string, append_nocomp_string,
5522 define_string_indirect): New functions.
5523 (init_input_requests): Updated.
5524 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5526 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5527 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
5528 mm macro package accesses this string register directly.
5529 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5531 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
5534 2002-02-02 Larry Kollar <kollar@alltel.net>
5536 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5538 2002-01-31 Werner LEMBERG <wl@gnu.org>
5540 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5542 2002-01-31 Bernd Warken <bwarken@mayn.de>
5544 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5545 * man/groff_out.man: Revised and updated.
5547 2002-01-30 Bernd Warken <bwarken@mayn.de>
5549 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5550 out the unused `{' and `}' commands. Undefined by default.
5551 (IntArray): Make `data' private.
5552 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5553 new methods instead.
5554 (skip_line_D, skip_to_end_of_line): New functions.
5555 (get_D_fixed_args): Use `skip_line_D'.
5556 Changed to handle dummy odd arguments by ...
5557 (get_D_fixed_args_odd_dummy): This new function.
5558 (get_D_variable_args): Split some code into ...
5559 (get_possibly_integer_args): This new function.
5560 (send_draw): Use more `const'.
5561 (delete_current_env): New function.
5562 (position_to_end_of_args): Use `size_t'.
5564 (send_draw): Updated.
5565 (parse_D_command): Handle `c', `C', and `t' better.
5569 2002-01-29 Werner LEMBERG <wl@gnu.org>
5572 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5573 @Def...ListEnd which replaces @Def...x. This is necessary to get
5574 proper HTML output -- see the comment in the file for more
5578 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
5580 Fixes to make color changes of 2002-01-21 work with grohtml.
5582 * src/devices/grohtml/post-html.cc (style): Updated.
5583 (html_printer): Remove unused methods.
5584 (html_printer::do_font, html_printer::draw, html_printer::set_char,
5585 html_printer::special): Updated.
5586 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5587 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5588 Added some debugging code.
5589 (html_text::start_tag): Updated.
5590 (html_text::do_push): New method.
5591 (html_text::push_para): Call it.
5592 Add method for handling color.
5593 (html_text::do_color): Updated.
5594 (html_text::shutdown): Handle color.
5595 * src/devices/grohtml/html-text.h (tag_definition): New member
5599 2002-01-28 Werner LEMBERG <wl@gnu.org>
5601 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5603 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
5605 Add two switches -a and -g to control the antialiasing bits for
5606 text and graphics, respectively.
5608 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5610 * src/devices/grohtml/grohtml.man: Document them.
5611 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5613 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5614 (setupAntiAlias): New function.
5615 (createAllPages): Updated.
5616 (scanArguments): Handle `-a' and `-g'.
5617 (main): Call `setupAntiAlias'.
5620 2002-01-27 Werner LEMBERG <wl@gnu.org>
5622 * doc/groff.texinfo (Def*): Call index function after deffn.
5624 * tmac/html.tmac: Call `nroff' request.
5626 2002-01-26 Larry Kollar <kollar@alltel.net>
5628 * tmac/groff_ms.man: Add some omissions.
5630 2002-01-25 Larry Kollar <kollar@alltel.net>
5632 * tmac/groff_ms.man: Typographical improvements.
5634 2002-01-25 Werner LEMBERG <wl@gnu.org>
5636 * doc/groff.texinfo: Updated version and copyright.
5637 * src/devices/grops/grops.man: Updated.
5639 * tmac/groff_tmac.man: Fix `ig' macro.
5641 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5643 Use `.ne' unconditionally everywhere.
5644 (TS): Only insert some vertical space. Doing a page break is no
5645 longer necessary due to the redefinition of the `ne' request.
5647 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5648 warning for unknown subcommands but parse and pass them to the
5651 2002-01-24 Werner LEMBERG <wl@gnu.org>
5653 * tmac/groff_www.man, NEWS: Fix typos.
5655 2002-01-21 Werner LEMBERG <wl@gnu.org>
5657 Complete revision of color support:
5659 Adapt programs to the new libdriver/input.cc.
5661 Color spaces are no longer converted to RGB but transferred as-is
5662 in the troff intermediate output format.
5664 Handle default color gracefully. troff now supports a `default'
5665 color (which can't be changed).
5667 grops will now use the proper color space functions if available.
5671 Note that currently grohtml doesn't handle colors properly. This
5674 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5675 (ui_to_a): New function.
5676 * src/include/lib.h: Updated.
5678 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5679 (color): Simplified; removed all `double' members and methods.
5680 A new array `components' now holds the color parameters.
5681 (color::is_default, color::get_components): New methods.
5682 (color::operator==, color:operator!=): New.
5683 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5684 to make access to the `components' array more comprehensible.
5685 * src/libs/libgroff/color.cc: Implement new color support.
5686 (atoh): Small fixes.
5687 (color::read_encoding): Simplified for new troff intermediate color
5689 (default_color): New global variable.
5691 * src/roff/troff/input.cc (default_symbol): New global variable.
5692 (lookup_color): Use it.
5693 (default_black): Removed.
5694 (do_glyph_color, do_fill_color): Simplified.
5695 (define_color): Handle default color.
5697 (do_if_request): Handle default color.
5698 * src/roff/troff/env.cc (environment::environment): Initialize
5699 colors with `default_color'.
5700 * src/roff/troff/node.cc (troff_output_file::put): Add method
5702 (troff_output_file::hex): Removed.
5703 (troff_output_file::fill_color, troff_output_file::glyph_color):
5704 Updated to include/color.h and libdriver/input.cc.
5706 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5707 fill color properly (identically to the outline color). \D'f...'
5708 doesn't work any more.
5709 All function calls to it updated.
5711 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5713 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5716 * src/devices/grops/ps.cc (ps_output::put_color): New method.
5717 (ps_printer::sbuf_color): Make a real member instead of pointer.
5718 (ps_printer::fill_color, ps_printer::output_color): Removed.
5719 (ps_printer::ps_printer): Updated.
5720 (ps_printer::set_char): Ditto.
5721 (ps_printer::set_color): Use various color schemes.
5722 Use `put_color' method.
5723 (ps_printer::flush_sbuf): Don't set color.
5724 (ps_printer::fill_path): Take `environment' as parameter.
5725 Simplify color handling.
5726 (ps_printer::set_line_thickness): Renamed to ...
5727 (ps_printer::set_line_thickness_and_color): This (and updated).
5728 (ps_printer::set_color): Change second parameter from `complete'
5729 to `fill' which better describes what it does.
5730 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5731 and text in the right order.
5733 Remove branches for `f' and `F'; this is handled by
5735 * src/devices/grops/ps.h: Updated.
5736 * font/devps/prologue (FL): Redefined.
5737 ({F,C}r,k,g: New color functions (with and without filling).
5739 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5740 * man/groff_diff.man, man/groff.man, man/groff_out.man,
5741 doc/groff.texinfo, NEWS: Updated.
5743 2002-01-20 Bernd Warken <bwarken@mayn.de>
5745 * src/libs/libdriver/input.cc: Completely rewritten. See comments
5746 in this file for what has been changed.
5748 2002-01-19 Werner LEMBERG <wl@gnu.org>
5750 * test-groff: Fix GROFF_FONT_PATH.
5751 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5752 is read before .TH or .Dd is parsed.
5754 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
5756 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5757 quadrant boundaries.
5759 2002-01-18 Werner LEMBERG <wl@gnu.org>
5761 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
5764 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
5766 * tmac/doc.common: Initialize %I register for the %I macro to
5767 avoid (harmless) warning.
5768 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5769 when in the SYNOPSIS section.
5771 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5773 * src/preproc/pic/lex.cc (get_token): Fix typo.
5775 2002-01-17 Werner LEMBERG <wl@gnu.org>
5777 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5779 2002-01-17 Larry Kollar <kollar@alltel.net>
5781 * tmac/groff_ms.man: Completely rewritten.
5783 2002-01-16 Werner LEMBERG <wl@gnu.org>
5785 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5787 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5789 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5791 (ps_printer::draw): Ditto.
5793 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5795 * tmac/groff_mdoc.man: Minor fixes.
5797 2002-01-13 Werner LEMBERG <wl@gnu.org>
5799 * man/groff_out.man: Some fixes.
5801 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5803 * doc/pic.ms: Fix typos.
5805 2002-01-12 Werner LEMBERG <wl@gnu.org>
5807 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5809 2002-01-10 Werner LEMBERG <wl@gnu.org>
5811 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5815 2002-01-09 Bernd Warken <bwarken@mayn.de>
5817 * man/groff_out.man: Revised.
5818 * man/roff.man: Minor fixes.
5819 * src/roff/troff/troff.man: Some reordering.
5821 2002-01-09 Werner LEMBERG <wl@gnu.org>
5823 * tmac/an-old.tmac: Add dummy macros for equation support.
5825 2002-01-07 Werner LEMBERG <wl@gnu.org>
5827 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5829 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5831 * tmac/groff_man.man: Small improvements.
5833 2002-01-07 Bernd Warken <bwarken@mayn.de>
5835 * man/groff_diff.man: Revised.
5837 2002-01-06 Werner LEMBERG <wl@gnu.org>
5839 * tmac/www.tmac: Remove extraneous backslash.
5841 2002-01-06 Bernd Warken <bwarken@mayn.de>
5843 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5845 2002-01-05 Werner LEMBERG <wl@gnu.org>
5847 Integrated groffer, contributed by Bernd Warken.
5849 * contrib/groffer/*: New.
5850 * Makefile.in, NEWS: Updated.
5852 2002-01-04 Werner LEMBERG <wl@gnu.org>
5854 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5855 registers defined in macro packages.
5856 Revising the ms part.
5858 2002-01-04 Larry Kollar <kollar@alltel.net>
5860 * doc/groff.texinfo: Add documentation for ms macros.
5862 2002-01-02 Werner LEMBERG <wl@gnu.org>
5864 First step in adding PS support for the Euro symbol. `eu' is the
5865 official Euro logo, `Eu' is a font-specific glyph variant.
5867 * font/devps/text.enc: Add `Euro' at position 9.
5868 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5869 * font/devps/symbolmap: Regenerated.
5873 2002-01-02 Bernd Warken <bwarken@mayn.de>
5875 * man/roff.man: Revised.
5877 2002-01-01 Bernd Warken <bwarken@mayn.de>
5879 * src/roff/groff/groff.man: Completely rewritten.
5881 2001-12-31 Werner LEMBERG <wl@gnu.org>
5883 * doc/Makefile: Updated.
5885 2001-12-30 Werner LEMBERG <wl@gnu.org>
5887 * tmac/www.tmac: Make all names of internal macros/registers/strings
5888 lowercase, and prepend `www-'.
5889 Other minor changes.
5890 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5892 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5894 Implement option `-b' in grohtml to set the HTML background colour.
5896 * src/devices/grohtml/post-html.cc (default_background): New global
5898 (html_printer::html_printer): Initialize `background' to
5899 `default_background'.
5900 (main): Implement option `-b'.
5902 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5904 * src/devices/grohtml/grohtml.man: Updated.
5905 * doc/Makefile (.ms.html): Use `-b'.
5906 * tmac/html.tmac: Don't set background color.
5908 Add new grohtml tag `.html-tl'.
5910 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5912 (title_desc::title_desc): Updated.
5913 (html_printer::troff_tag): Handle `.html-tl'.
5914 (html_printer::write_title): Use `with_h1'.
5915 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5916 (HTML-TL): New macro.
5918 Add support for unordered lists in HTML.
5920 * tmac/www.tmac (www-level): New auxiliary register.
5921 (www-level1, www-level2, www-level3): New auxiliary strings.
5922 (www-push-level, www-pop-level): New auxiliary macros
5923 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5927 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5928 (DEFAULT_VERTICAL_OFFSET): Removed.
5929 (IMAGE_BOARDER_PIXELS): Set to 0.
5930 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5931 (vertical_offset): Initialize with 0.
5932 (gsPaper): New global variable.
5933 (get_resolution): Scan for and return unsigned int.
5934 (get_papersize): New function to get paper length from devps/DESC.
5935 (determine_vertical_offset): New function.
5936 (createAllPages): Produce gray-level images and use proper page
5938 (createImage): Use `-quiet' option of pnmcrop.
5939 (addZ): Fix passing of `-Z'.
5940 (scanArguments): Fix handling of `-o'.
5941 (main): Call `determine_vertical_offset'.
5942 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5945 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5946 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5947 glyph descenders properly.
5949 * doc/homepage.ms: Include `gnubw.eps'.
5950 * doc/Makefile (gnubw.eps): New rule.
5951 (homepage.html): Depend on `gnubw.eps'.
5953 2001-12-25 Werner LEMBERG <wl@gnu.org>
5955 * src/roff/troff/input.cc (default_black): Fix return value.
5957 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5959 * tmac/doc-common (Dt): Change output of architecture strings.
5960 Do some syntax cleanup.
5961 * tmac/groff_mdoc.man: Updated.
5963 2001-12-23 Werner LEMBERG <wl@gnu.org>
5965 Adding an `itc' request (input line trap accepting \c).
5967 * src/roff/troff/env.h (environment): New member
5968 `continued_input_trap'.
5969 Make `do_input_trap' a friend function instead of `input_trap'.
5970 * src/roff/troff/env.cc (environment::environment,
5971 environment::copy): Updated.
5972 (environment::newline): Implement it.
5973 (do_input_trap): New function.
5974 (input_trap): Call `do_input_trap'.
5975 (input_trap_continued): New function.
5976 (init_env_requests): Updated.
5977 * src/roff/troff/TODO: Updated.
5979 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5982 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5984 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5986 * tmac/doc-common, tmac/doc-syms: Small updates.
5988 2001-12-22 Colin Watson <cjwatson@debian.org>
5990 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5992 2001-12-22 Bernd Warken <bwarken@mayn.de>
5994 * MANIFEST: New file.
5996 2001-12-22 Werner LEMBERG <wl@gnu.org>
5998 * src/preproc/grn/grn.man: Updated.
6000 2001-12-22 Solar Designer <solar@openwall.com>
6002 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6005 2001-12-19 Werner LEMBERG <wl@gnu.org>
6007 Implement a fallback character request `.fchar'.
6009 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6010 (is_fallback): New inline function.
6011 * src/roff/troff/input.cc (do_define_character): New function.
6012 (define_character): Call `do_define_character'.
6013 (define_fallback_character): New function.
6014 (init_input_requests): Add `fchar'.
6015 (charinfo::charinfo): Updated.
6016 (charinfo::set_macro): New argument to set `fallback' flag.
6017 * src/roff/troff/node.cc (make_glyph_node, make_node,
6018 node::add_char): Check `fallback' flag.
6019 * NEWS, man/groff_diff.man, man/groff_man: Updated.
6021 2001-12-16 Werner LEMBERG <wl@gnu.org>
6023 * groff.texinfo: Document exact search algorithm for glyphs.
6025 2001-12-15 Werner LEMBERG <wl@gnu.org>
6027 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6028 the left side of $(MANPAGES) rule to make it always non-empty.
6030 2001-12-14 Werner LEMBERG <wl@gnu.org>
6032 * src/roff/troff/input.cc (default_black): Define default color
6033 `black' if not yet defined.
6035 2001-12-13 Werner LEMBERG <wl@gnu.org>
6037 Implement new string-valued register `.fn' to return the current
6038 real (internal) font name.
6040 * env.cc (environment::get_font_name_string): New function.
6041 (init_env_requests): Add `.fn' register.
6042 * env.h (environment): Updated.
6043 * node.cc (font_info): Make `get_font_name' a friend.
6044 (get_font_name): New function.
6047 * man/groff_diff.man, man/groff.man, NEWS: Updated.
6049 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6051 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6053 2001-12-12 Werner LEMBERG <wl@gnu.org>
6055 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6057 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
6059 * man/groff_diff.man: Adding documentation for \O.
6061 2001-12-10 Werner LEMBERG <wl@gnu.org>
6063 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6064 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6066 2001-12-09 Werner LEMBERG <wl@gnu.org>
6068 * man/roff.man: Revised.
6069 * src/roff/groff/groff.man: Replace man page references with a
6070 pointer to roff.man.
6072 2001-12-09 Bernd Warken <bwarken@mayn.de>
6074 * man/roff.man: Completely rewritten.
6076 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6078 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6080 2001-12-05 Werner LEMBERG <wl@gnu.org>
6082 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6084 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6085 order of initializers.
6088 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
6090 * doc/groff.texinfo: Fix documentation of \O.
6092 * src/devices/grohtml/html-text.cc (html_text::do_indent,
6093 html_text::do_table, html_text::do_emittext, html_text::do_para):
6094 Use `const' for first argument.
6095 (html_text::do_table): Use cast.
6096 * src/devices/grohtml/html-text.h: Updated.
6097 * src/devices/grohtml/output.cc (simple_output::put_string): Add
6098 method for `const string &s'.
6099 * src/devices/grohtml/html.h: Updated.
6100 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6101 (ANCHOR_TEMPLATE): Modified.
6102 (manufacture_headings): New global variable to handle `-h' option.
6103 (is_subsection): Removed.
6104 (char_buffer::add_string): Add `const' to first argument.
6105 Protect against invalid string argument.
6106 Add method for `const string &s'.
6107 (text_glob): Completely redesigned.
6108 (page): Use `const' for strings and remove string length variable.
6109 (page::add_html): Removed.
6110 (page::add_end_encode): New member function.
6111 (to_unicode): Moved upwards.
6112 (title_desc, header_desc): Updated.
6113 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6115 (html_printer::is_bold, html_printer::make_bold): New member
6117 (html_printer::end_of_line): Updated.
6118 (generate_img_src, html_printer::do_auto_image,
6119 html_printer::do_title, html_printer::write_header,
6120 html_printer::determine_header_level, html_printer::do_heading,
6121 html_printer::do_linelength, html_printer::do_pageoffset,
6122 html_printer::do_indentation, html_printer::do_tempindent,
6123 html_printer::do_indentedparagraph, html_printer::do_break,
6124 html_printer::flush_sbuf, get_html_translation,
6125 html_printer::begin_page, html_printer::special): Rewritten to get
6126 rid of static string length limit.
6127 (html_printer::troff_tag): Added `.no-auto-rule'.
6128 (html_printer::flush_globs): Small fix.
6129 (html_printer::determine_space): Don't compute `space_width'.
6130 (html_printer::translate_to_html): Renamed to ...
6131 (html_printer::emit_html): This (with updates).
6132 (html_printer::write_header): Implement `-h' option.
6133 (html_printer::draw): Remove commented-out code. Handle `F'
6135 (html_printer::add_char_to_sbuf): Removed.
6136 (html_printer::add_to_sbuf): Rewritten.
6137 (html_printer::sbuf_continuation): Fixed.
6138 (html_printer::seen_backwards_escape, reverse,
6139 html_printer::remove_last_char_from_sbuf): Removed.
6140 (char_translate_to_html, str_translate_to_html): Removed.
6141 (html_printer::overstrike): New function member.
6142 (html_printer::set_char): Use it.
6143 (html_printer::do_body): New function member.
6144 (html_printer::~html_printer): Use it.
6145 (main): Handle `-h' option.
6147 * src/devices/grohtml/grohtml.man: Document -h switch.
6149 * src/preproc/html/pre-html.cc: Include searchpath.h
6150 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6151 (get_resolution): New function.
6152 (checkImageDir): Use `0777' permissions in mkdir()
6153 (write_start_image): Rewritten to use `\O[5...]'.
6154 (createImage, generateImages): Updated.
6155 (main): Handle `F' and `h' options.
6156 Use `get_resolution'.
6158 * src/roff/troff/input.cc (begin, end, image): Removed.
6159 (do_suppress): Take parameter.
6160 Handle modified syntax of `\O'.
6161 (token::next): Updated.
6162 (init_markup_requests): Removed.
6165 * src/roff/troff/div.h: Add declaration for begin_page().
6167 * tmac/color-html.tmac: Removed. Contents moved to...
6168 * tmac/html.tmac: Here. Set background color.
6169 * tmac/color.tmac: Removed. Contents moved to...
6170 * tmac/ps.tmac: Here.
6171 * tmac/www.tmac: Remove the title command when generating images
6173 (NO_AUTO_RULE): New macro.
6174 (HTML_DO_IMAGE): Use revised `\O' escapes.
6175 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6177 2001-12-02 Werner LEMBERG <wl@gnu.org>
6179 * tmac/groff_mdoc.man: Fix typo.
6181 2001-12-01 Colin Watson <cjwatson@debian.org>
6183 * man/roff.man: Fix typo.
6185 2001-11-29 Werner LEMBERG <wl@gnu.org>
6187 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6190 * src/roff/troff/input.cc (read_draw_node): Emit error message if
6191 more than one argument to \D'f ...'.
6193 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6195 2001-11-28 Werner LEMBERG <wl@gnu.org>
6197 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6200 * tmac/groff_man.man: Minor cosmetic fix.
6202 2001-11-27 Werner LEMBERG <wl@gnu.org>
6204 * src/roff/groff/groff.man, tmac/groff_tmac.man,
6205 tmac/groff_www.man: s/mwww/www/.
6207 2001-11-26 Werner LEMBERG <wl@gnu.org>
6209 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6210 * configure: Regenerated.
6211 * win32-diffs: Updated.
6213 * tmac/groff_mwww.tmac: Renamed to ...
6214 * tmac/groff_www.tmac: This.
6215 * tmac/mwww.tmac: Removed.
6216 * NEWS, tmac/Makefile.sub: Updated.
6218 2001-11-21 Werner LEMBERG <wl@gnu.org>
6220 * doc/groff.texinfo: Improve documentation of the `\v' escape.
6221 Fix explanation of `\D' and `rt'.
6223 2001-11-20 Werner LEMBERG <wl@gnu.org>
6225 * tmac/an-old.tmac (an-header): Set header length equal to page
6227 * doc/groff.texinfo: Improve documentation of `ne' request. Other
6231 2001-11-19 Werner LEMBERG <wl@gnu.org>
6233 * NEWS, man/Makefile.sub: Updated.
6235 2001-11-19 Bernd Warken <bwarken@mayn.de>
6237 * man/ditroff.man: New file.
6239 2001-11-17 Werner LEMBERG <wl@gnu.org>
6241 * man/groff_differences.man: Renamed to ...
6242 * man/groff_diff.man: This. Updated.
6243 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6245 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6246 * src/preproc/html/pushback.cc: This. Updated.
6247 * src/preproc/html/pushbackbuffer.h: Renamed to ...
6248 * src/preproc/html/pushback.h: This.
6249 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6252 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6253 * src/libs/libgroff/htmlhint.cc: This.
6254 * src/libs/libgroff/Makefile.sub: Updated.
6256 * tmac/an-old.tmac (an-end): Fix page length.
6258 2001-11-16 Werner LEMBERG <wl@gnu.org>
6260 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6261 * man/Makefile.sub: Include groff_differences.man.
6262 * VERSION: Set to 1.18.
6263 * REVISION: Set to 0.
6265 2001-11-16 Bernd Warken <bwarken@mayn.de>
6267 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6268 the second dot (or ending macro name) to end a macro.
6269 * doc/groff.texinfo: Doc fix.
6271 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
6273 * tmac/doc-common (doc-header): Handle very long document titles
6276 2001-11-16 Werner LEMBERG <wl@gnu.org>
6278 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6280 2001-11-15 Werner LEMBERG <wl@gnu.org>
6282 * src/roff/troff/troff.man: Revised and split into troff.man and...
6283 * man/groff_differences.man: New file.
6286 2001-11-13 Werner LEMBERG <wl@gnu.org>
6288 * tmac/an-old.tmac (TS, TE): New macros for table support.
6290 2001-11-12 Werner LEMBERG <wl@gnu.org>
6292 * src/include/lib.h: Provide a fix for emx to not include
6295 2001-10-27 Werner LEMBERG <wl@gnu.org>
6297 * src/roff/troff/input.cc (substring_macro): Fix computation of
6300 2001-10-20 Werner LEMBERG <wl@gnu.org>
6302 Undo change from 2001-08-28.
6304 * src/roff/troff/input.cc (have_input): New global variable.
6305 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6306 in compatibility mode.
6307 (process_input_stack): Use it.
6309 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
6311 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6312 being handled as end-of-sentence characters,
6314 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
6316 * src/roff/troff/input.cc (file_iterator): New members
6317 `suppress_newline_flag' and `seen_escape'.
6318 (file_iterator::next_file): Updated.
6319 (file_iterator::fill): Use it.
6320 (string_iterator): New member `suppress_newline_flag'.
6321 (string_iterator::fill): Set it.
6322 (get_color_element): Use MAX_COLOR_VAL.
6323 * src/roff/troff/env.cc (environment): Remove `need_eol'.
6324 (no_fill): Don't set `env->ignore_next_eol'.
6325 (environment::newline): Handle `eol' tag properly.
6327 (environment::add_html_tag): Set `env->ignore_next_eol'.
6329 * src/roff/troff/env.h (environment): Updated.
6331 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6333 (html_printer::outstanding_eol): New member function.
6334 (html_printer::do_title): Use new functions.
6335 (html_printer::troff_tag): Test `id_eol_ce'.
6337 2001-10-10 Werner LEMBERG <wl@gnu.org>
6339 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6340 files work with -C also.
6342 2001-10-05 Werner LEMBERG <wl@gnu.org>
6344 * doc/pic.ms: Minor fix.
6345 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6346 as a valid command line switch.
6347 * src/devices/grohtml/post-html.cc (main): Ditto.
6349 * src/devices/grohtml/grohtml.man: Updated.
6350 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6352 2001-10-04 Werner LEMBERG <wl@gnu.org>
6354 Implementing color support in troff, pic, grops, and grohtml. These
6355 changes are based on a major patch provided by Gaius Mulley
6358 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6359 definitions with both hex values and fractions.
6361 New escapes: \m and \M for drawing and background color,
6362 respectively. This corresponds to the troff output commands `m'
6365 groff and troff accept command line switch `-c' to disable color
6366 output (which is automatically disabled in compatibility mode).
6368 New scaling indicator `f' for fractions (1f = 65536u).
6370 New conditional operator `m' to test for defined colors with `if'
6373 New keywords `color' (or `colour', `colored', `coloured'), `outline'
6374 (or `outlined'), and `shaded' added to pic.
6376 * src/include/color.h: New file.
6377 * src/include/driver.h: Include it.
6378 * src/include/printer.h: Include color.h.
6379 (environment): New members `col' and `fill'.
6380 (printer): Remove `adjust_arc_center' member function.
6381 * src/include/Makefile.sub: Updated.
6383 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6385 Handle `m' and `DF' troff commands.
6386 * src/libs/libgroff/color.cc: New file.
6387 * src/libs/libgroff/Makefile.sub: Updated.
6389 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6391 (createImage): Fix computation of `y2'.
6393 (buffer::write_file_html): Remove calls to `stop'.
6395 * src/preproc/pic/common.h (common_output): New abstract function
6396 members `set_color', `reset_color', `get_last_filled', and
6397 `get_outline_color'.
6398 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6399 (object_spec): Add members `shaded' and `outlined'.
6400 * src/preproc/pic/output.h (output): `command' is now abstract.
6401 New function members `set_color', `reset_color', `get_last_filled',
6402 and `get_outline_color'.
6403 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6404 `outline[d]', and `shaded'.
6405 * src/preproc/pic/object.cc (output::command): Removed.
6406 (output::set_location): Moved to output.h.
6407 (graphic_object): Add protected members `outline_color' and
6409 Add member functions `set_outline_color', `get_outline_color', and
6411 (closed_object): Add member function `set_fill_color'.
6412 Add member `color_fill'.
6413 (graphic_object::print_text): Use `out->set_color' and
6415 (box_object::print, ellipse_object::print, circle_object::print,
6416 line_object::print, spline_object::print, arc_object::print): Ditto.
6417 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6418 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6419 `SHADED', making them `%left'.
6420 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6421 * src/preproc/pic/tex.cc (tex_output): New dummy function members
6422 `set_color', `reset_color', `get_last_filled', and
6423 `get_outline_color'.
6424 * src/preproc/pic/troff.cc (simple_output): New abstract function
6425 members `set_color', `reset_color', and `get_last_filled'.
6426 (simple_output::polygon, simple_output::circle,
6427 simple_output::ellipse): Use `get_last_filled'.
6428 (troff_output): New members `last_filled' and `last_outlined'.
6429 New function members `set_color', `reset_color', `get_last_filled',
6430 and `get_outline_color'.
6431 (troff_output::finish_picture): Use `reset_color'.
6432 (troff_output::set_fill): Test `last_filled'.
6433 * src/preproc/pic/pic.man: Updated.
6435 * src/roff/groff/groff.cc (main): Implement `-c' option.
6436 (synopsis, help): Updated.
6437 src/roff/groff/groff.man: Updated.
6439 * src/roff/troff/troff.h: Include color.h.
6440 (warning_type): Add WARN_COLOR.
6441 * src/roff/troff/env.h (environment): New members
6442 `{cur,prev}_{glyph,fill}_color'.
6443 New member functions `get_{prev_,}{glyph,fill}_color'.
6444 * src/roff/troff/env.cc: Initialize and implement them.
6445 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6446 Replace `NULL' with `0' everywhere for consistency.
6447 (lookup_color, default_black, do_glyph_color, do_fill_color,
6448 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6449 define_color): New functions.
6450 (token::next): Implement \M and \m escapes.
6451 (do_if_request): Implement `m' operator.
6453 (main): Implement `-c' option.
6454 (init_markup_requests): Add `defcolor' request.
6455 (warning_table): Add `color' warning.
6456 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6458 * src/roff/troff/node.cc (troff_output_file): New members
6459 `current_{page,glyph}color'. New member functions `put_hex',
6460 `glyph_color', and `fill_color'.
6461 (glyph_color_node::*, fill_color_node::*): Implement it.
6462 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6463 (parse_term): Add support for `f'.
6464 * src/roff/troff/troff.man: Updated.
6466 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6468 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6469 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6471 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6472 (tag_definition): Use `void *' for arg1.
6473 (html_text): New member functions `do_color' and `done_color'.
6474 Use `void *' for second parameter of `push_para' member function.
6475 New `push_para' member function with a single parameter.
6476 Use `char *' for parameter of `issue_table_begin' member funtion.
6477 New `issue_color_begin' member function.
6478 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6480 (html_text::issue_color_begin): New function.
6481 (html_text::issue_table_begin): Use `char *' for parameter.
6482 (html_text::start_tag, html_text::shutdown,
6483 html_text::check_emit_text): Updated.
6484 (html_text::push_para): Use `void *' for second parameter.
6485 Add same function with only one parameter.
6486 (html_text::do_*): Updated.
6487 (html_text::do_color, html_text::done_color): New functions.
6488 * src/devices/grohtml/post-html.cc (style): New member `col'.
6489 Mew member `style' with 6 parameters.
6490 (style::style, style::operator==): Updated.
6491 (html_printer::do_font): Use it.
6492 (html_printer::draw): Add dummy entry for `F'.
6493 (html_printer::set_char): Updated.
6494 * src/devices/grohtml/grohtml.man: Updated.
6496 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6497 trailing zeroes removed.
6498 (ps_printer): New members `sbuf_color', `fill_color', and
6500 Removed member `fill'.
6501 New member function `set_color'.
6502 (ps_printer::ps_printer, ps_printer::set_char): Updated.
6503 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6504 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6506 * tmac/color-html.tmac, tmac/color.tmac: New files.
6507 * tmac/troffrc: Include them.
6508 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6509 * tmac/Makefile.sub: Updated.
6511 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6512 man/groff.man: Updated.
6513 * font/devps/prologue.ps: Define FC and CO functions.
6515 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
6517 Fix incorrect cropping of images and incorrect handling of special
6518 characters. Fix handling of file names in \O.
6520 * src/include/geometry.h: New file.
6521 * src/libs/libgroff/geometry.cc: New file.
6522 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6524 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6526 (do_suppress): Updated.
6527 * src/roff/troff/node.cc: Include geometry.h.
6528 (troff_output_file::flush_tbuf): Fixed parameters to
6529 `check_output_limits'.
6530 (troff_output_file::check_charinfo): Ditto.
6531 (troff_output_file::determine_line_limits): Add support for `Da'
6534 * src/devices/grohtml/post-html.cc (str_translate_to_html):
6535 Add new parameter `is_special' to decode special characters from
6537 (html_printer::do_title, html_printer::do_heading,
6538 html_printer::do_indentedparagraph,
6539 html_printer::translate_to_html, html_printer::special): Updated.
6541 2001-10-03 Werner LEMBERG <wl@gnu.org>
6543 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6544 Fix entry for config.h.
6545 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6546 * tmac/troffrc: Translate nonbreakable space character to `\~'.
6547 * src/preproc/eqn/eqn.man: Document -d command line option.
6549 2001-09-27 Werner LEMBERG <wl@gnu.org>
6551 * man/groff.man: Use
6559 instead of the old code (`.ad .hy' after the table) to suppress
6560 incorrect hyphenation for grohtml output.
6562 2001-09-22 Werner LEMBERG <wl@gnu.org>
6564 * man/groff_font.man, man/groff_out.man: Minor fixes.
6566 2001-09-20 Werner LEMBERG <wl@gnu.org>
6568 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
6569 Arnold Robbins <arnold@skeeve.com>).
6571 2001-09-09 Werner LEMBERG <wl@gnu.org>
6573 * configure: Regenerated with autoconf 2.52.
6575 * doc/groff.texinfo: Complete revision of indices.
6577 2001-09-07 Werner LEMBERG <wl@gnu.org>
6579 * doc/Makefile (clean): Updated to delete all indices.
6581 2001-09-05 Werner LEMBERG <wl@gnu.org>
6583 * src/roff/troff/troff.man: Remove superfluous line.
6585 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6586 given on the command line (or rather, if only the default warnings
6589 2001-09-03 Werner LEMBERG <wl@gnu.org>
6591 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6592 use .ne for TTY devices.
6594 2001-08-31 Werner LEMBERG <wl@gnu.org>
6596 * src/roff/troff/token.h, src/roff/troff/input.cc:
6597 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6599 2001-08-28 Werner LEMBERG <wl@gnu.org>
6601 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6602 * src/roff/troff/input.cc (token::next): Return
6603 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6605 (token::description): Updated.
6606 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6607 (token::add_to_node_list, token::process): Ignore
6608 TOKEN_TRANSPARENT_ESCAPE.
6610 2001-08-27 Werner LEMBERG <wl@gnu.org>
6612 * tmac/an-old.tmac: Fix `S' string.
6614 2001-08-26 Werner LEMBERG <wl@gnu.org>
6616 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6618 2001-08-25 Werner LEMBERG <wl@gnu.org>
6620 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6622 Many other minor fixes.
6624 * configure.ac: Add message at end to inform how to compile
6626 * configure: Regenerated.
6628 2001-08-24 Werner LEMBERG <wl@gnu.org>
6630 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6631 Updated to latest version of libc.
6633 2001-08-23 Werner LEMBERG <wl@gnu.org>
6635 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6636 Autoconf 2.50 and newer can handle this.
6637 * configure: Regenerated.
6639 2001-08-21 Werner LEMBERG <wl@gnu.org>
6641 * doc/pic.ms: Fix typo.
6642 * src/preproc/tbl/tbl.man: Document case of global options.
6644 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
6646 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6647 handling of `CR' font.
6649 2001-08-20 Werner LEMBERG <wl@gnu.org>
6651 Use a config.h file.
6653 * src/include/lib.h: Include config.h.
6654 * All C files: Ditto (if necessary).
6655 * All C++ source and header files: Include lib.h first (if
6658 * src/include/config.hin: New file (autogenerated by autoheader).
6659 * stamp-h.in: New file.
6660 * configure.ac: Updated.
6661 * aclocal.m4: Add third parameters to AC_DEFINE macros.
6662 (GROFF_ARRAY_DELETE): Simplified.
6663 * Makefile.sub (DISTCLEANFILES): Updated.
6664 Added targets for remaking config.status, config.hin, config.h,
6665 stamp-h.in, and stamp-h.
6666 * configure: Regenerated.
6668 2001-08-19 Werner LEMBERG <wl@gnu.org>
6672 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
6674 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6675 (do_sprintf): Use snprintf().
6677 2001-08-18 Werner LEMBERG <wl@gnu.org>
6679 * src/libs/snprintf/*: Added an snprintf module written by Mark
6681 * src/libs/libgroff/Makefile.sub: Updated.
6682 * configure.ac: Add test for snprintf().
6683 * Makefile.in: Updated.
6684 * configure: Regenerated.
6686 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6689 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
6691 * tmac/doc.tmac (Ex): New implementation.
6692 * tmac/doc-common, tmac/groff_tmac.man: Updated.
6694 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
6696 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6698 * tmac/groff_tmac.man: Updated.
6700 2001-08-13 Werner LEMBERG <wl@gnu.org>
6702 * src/preproc/tbl/tbl.man: Minor documentation update.
6704 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
6706 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6707 * configure.ac: Add declaration test for gettimeofday().
6708 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6709 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6710 * configure: Regenerated.
6712 2001-08-11 Werner LEMBERG <wl@gnu.org>
6714 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6715 * configure.ac: Add declaration test for strcasecmp().
6716 * Makefile.in: Updated.
6717 * configure: Regenerated.
6718 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6719 this is necessary because groff's mkstemp.cc is C++.
6720 Add declaration conditionally for strcasecmp().
6722 2001-08-10 Werner LEMBERG <wl@gnu.org>
6724 Integrated pic2graph, contributed by Eric S. Raymond.
6726 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6728 * Makefile.in, NEWS: Updated.
6730 * src/preproc/tbl/tbl.man: Revised.
6732 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
6734 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6736 2001-08-09 Werner LEMBERG <wl@gnu.org>
6738 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6741 2001-08-08 Paul Eggert <eggert@twinsun.com>
6743 * Makefile.sub (configure): Depend on configure.ac, not
6745 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6747 2001-08-07 Werner LEMBERG <wl@gnu.org>
6749 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6752 2001-08-06 Werner LEMBERG <wl@gnu.org>
6754 * src/roff/troff/troff.man: Improve documentation of -E option.
6756 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6758 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6761 2001-07-27 Werner LEMBERG <wl@gnu.org>
6763 * src/preproc/refer/refer.cc: Undo last change.
6764 * src/devices/grohtml/post-html.cc: Ditto.
6766 2001-07-26 Werner LEMBERG <wl@gnu.org>
6768 * src/preproc/refer/refer.cc: Include `lib.h'.
6769 * src/devices/grohtml/post-html.cc: Ditto.
6771 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6773 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6774 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6775 * Makefile.in: Comment updated.
6776 * configure: Regenerated.
6778 2001-07-25 Werner LEMBERG <wl@gnu.org>
6780 * src/preproc/pic/pic.cc: Removed.
6781 * src/preproc/pic/pic_tab.h: Removed.
6782 * src/preproc/refer/label.cc: Removed.
6784 * doc/Makefile (.ms.html): Don't use a file name extension in
6785 argument to grohtml's -I option.
6786 * Makefile.in (dist): Remove CVS directories.
6787 Call `distfiles' target.
6789 * src/devices/grohtml/grohtml.man: Add information about valid
6790 versions of pnmtopng.
6791 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6792 name instead of number.
6794 2001-07-24 Werner LEMBERG <wl@gnu.org>
6796 * doc/groff.texinfo: Minor fixes.
6798 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6800 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6803 2001-07-20 Werner LEMBERG <wl@gnu.org>
6805 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6806 * src/libs/libgroff/mkstemp.cc: New file.
6807 * src/libs/libgroff/mksdir.cc: New file.
6808 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6809 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6810 * src/libs/libgroff/Makefile.sub: Updated.
6811 * src/include/lib.h: Add mksdir() prototype.
6812 * src/include/posix.h: Define S_IXUSR if not yet defined.
6814 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6815 (createAllPages): Use mksdir() instead of current code.
6816 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6817 (main): [!HAVE_MKSTEMP]: Removed.
6819 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6820 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6822 * configure.ac: Add tests for stdint.h, sys/time.h, and
6824 Call new GROFF_xxx macros.
6825 * configure: Regenerated.
6826 * Makefile.in: Comments updated.
6828 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6830 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6831 instead of current code.
6832 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6833 * src/roff/groff/groff.cc (possible_command::insert_args): New
6835 (main): Use it for predriver handling instead of insert_arg().
6837 2001-07-19 Werner LEMBERG <wl@gnu.org>
6839 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6842 * src/include/posix.h: Define S_IWUSR if not yet defined.
6844 2001-07-18 Werner LEMBERG <wl@gnu.org>
6848 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6850 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6851 Some other minor fixes.
6852 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6854 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6856 Replace call to `troff' with `groff -Z' to make it aware of
6859 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6860 (troff_command, command_prefix): Removed.
6861 (alterDeviceTo): Use groff.
6862 (addZ): New function.
6863 (char_buffer::do_html): Use it.
6864 (scanArguments): Use TROFF_COMMAND.
6865 (findPrefix): Removed.
6867 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6869 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6871 * doc/pic.ms: Documentation fixes.
6873 2001-07-17 Werner LEMBERG <wl@gnu.org>
6875 Replace atexit() with global destructor.
6877 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6878 (xtmpfile_list_init): New global structure to deallocate
6879 xtmpfile_list on exit. Its destructor inherits most code from
6881 (remove_tmp_files): Deleted.
6882 (add_tmp_file): Simplified.
6884 2001-07-16 Werner LEMBERG <wl@gnu.org>
6886 Replace strdup() with strsave().
6888 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6889 (set_papersize): Use strsave() and a_delete.
6890 (main): Use strsave().
6891 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6892 removeAllPages): Use strsave() and a_delete.
6894 * configure.ac: Remove test for strdup.
6895 * Makefile.in: Comment updated.
6896 * configure: Regenerated.
6898 2001-07-15 Werner LEMBERG <wl@gnu.org>
6900 * win32-diffs: Updated.
6902 2001-07-14 Werner LEMBERG <wl@gnu.org>
6904 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6905 removing the old one.
6906 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6908 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6910 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6912 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6914 Merge -xwidth into -width. Add -xwidth functionality to -column
6917 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6919 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6920 string immediately following a leading dot starts with a valid mdoc
6922 Add similar code to the -column branch.
6923 (doc-Bl-usage): Updated.
6924 * groff_mdoc.man: s/-xwidth/-width/.
6926 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6928 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6929 running into centered or non-formatted text.
6931 2001-07-11 Werner LEMBERG <wl@gnu.org>
6933 Introduce short and long prefixes to have the selection at run-time
6934 whether there is a 8+3 limit for names of temporary files.
6936 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6937 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6938 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6940 (temp_init): New global structure to initialize above three
6942 (xtmptemplate): Use two parameters for long and short prefix.
6943 Simplify code use above three variables.
6944 (xtmpfile): Use long and short prefixes as parameters.
6945 * src/include/lib.h: Updated.
6947 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6949 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6950 (createAllPages, makeTempFiles): Updated.
6952 2001-07-09 Werner LEMBERG <wl@gnu.org>
6954 * REVISION: Increased to 3.
6956 Version 1.17.2 released
6957 =======================
6959 2001-07-07 Werner LEMBERG <wl@gnu.org>
6961 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6964 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6966 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6968 * tmac/groff_mdoc.man: Fix synopsis.
6970 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6972 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6973 Restore `doc-Pa-font'.
6975 2001-07-04 Werner LEMBERG <wl@gnu.org>
6977 * src/utils/indxbib/dirnamemax.c: Moved to ...
6978 * src/libs/libgroff/maxfilename.cc: Here.
6979 s/dir_name_max/file_name_max/.
6981 * src/include/lib.h: Add file_name_max.
6982 * src/utils/indxbib/indxbib.cc: Updated.
6983 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6986 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6988 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6990 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6991 REGION_TEMPLATE): New macros.
6992 (createAllPages, makeTempFiles): Use them.
6993 Include `nonposix.h'.
6994 (html_system): New function.
6995 (createAllPages, createImage): Use it.
6998 * tmac/www.tmac: Fix typos.
7000 2001-07-03 Werner LEMBERG <wl@gnu.org>
7002 * tmac/www.tmac: Disable hyphenation in normal text only if output
7004 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7005 * tmac/groff_mwww.man, NEWS: Updated.
7007 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
7009 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7012 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
7014 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7015 doc-display-ps-stack): Implement font and font size stack for
7018 2001-07-02 Werner LEMBERG <wl@gnu.org>
7020 * REVISION: Increased to 2.
7021 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7023 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7024 beginning of a line.
7025 * src/groff/grog/grog.sh: Ditto.
7027 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
7029 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7032 2001-06-27 Werner LEMBERG <wl@gnu.org>
7034 Fix problems with preprocessor string for `man' program.
7036 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
7037 Updated/added copyright.
7038 Moved Emacs's local variable to identify nroff mode to the end of
7039 the file; add local variable if missing.
7041 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
7043 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7044 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7045 * configure: Regenerated.
7047 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
7049 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7050 * configure: Regenerated.
7052 2001-06-24 Werner LEMBERG <wl@gnu.org>
7054 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7056 * doc/pic.ms: Fix typos.
7058 Version 1.17.1 released
7059 =======================
7061 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
7063 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7064 * configure: Updated.
7066 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
7068 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7070 * src/roff/troff/dic.cc (blank_line): Add html tag.
7072 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
7074 * src/roff/troff/input.cc (do_suppress): Fix typo.
7076 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
7078 Added two new options (-D and -I) to specify image names and a
7079 subdirectory to place the images in.
7081 Change syntax from \\Ox to \\O[x].
7083 * src/devices/grohtml/post-html.cc (main): Add options.
7085 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7086 Use `NULL' instead of `0' for null string pointers.
7087 (MAX_RETRIES): New macro.
7088 (lengthOfintToStr, intToStr, make_message): New functions.
7089 (makeFileName): Make function static.
7090 Implement -D and -I options.
7091 (checkImageDir): New function.
7092 (write_end_image, write_start_image): Use new syntax of \O.
7093 (createAllPages, removeAllPages): Implement -D and -I options. Use
7095 (createImage): Use make_message().
7096 (addps4html): Add guard for malloc().
7097 (usage, scanArguments): Updated.
7098 (makeTempFiles): Use mkstemp().
7099 (removeTempFiles): Use unlink().
7100 (findPrefix): Add guard for malloc().
7102 * src/roff/troff/input.cc (get_delim_file_name): New function to
7104 (do_suppress): Updated to parse new syntax.
7105 * src/devices/grohtml/grohtml.man: Updated.
7106 * tmac/www.tmac: Updated to new syntax.
7110 2001-06-15 Werner LEMBERG <wl@gnu.org>
7112 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7114 * src/devices/grohtml/grohtml.man: Minor improvements.
7116 2001-06-14 Werner LEMBERG <wl@gnu.org>
7118 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7120 2001-06-11 Werner LEMBERG <wl@gnu.org>
7122 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7123 line to specify preprocessor options -- mandb 2.3.1 only recognizes
7125 * src/preproc/grn/grn.man: Add proper '\" string.
7127 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
7129 * test-groff: Don't use PATH but GROFF_BIN_PATH.
7131 2001-06-08 Werner LEMBERG <wl@gnu.org>
7133 Updated to autoconf 2.50.
7135 * configure.in: Renamed to...
7136 * configure.ac: This.
7137 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7138 (GROFF_OS390): Updated.
7139 * configure: Regenerated.
7141 2001-05-18 Werner LEMBERG <wl@gnu.org>
7143 * src/roff/troff/env.c, src/roff/troff/env.h,
7144 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7147 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
7149 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7151 2001-05-16 Werner LEMBERG <wl@gnu.org>
7153 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7154 less than or equal zero; set it to 1 then.
7155 * src/roff/troff/node.h (node::node): Initialize `last'.
7157 2001-05-08 Werner LEMBERG <wl@gnu.org>
7159 * tmac/an-old.tmac: Make predefined strings work in compatibility
7161 Add troff version guard.
7162 * tmac/doc.tmac: Simplify version guard.
7164 2001-05-07 Werner LEMBERG <wl@gnu.org>
7166 The .ns and .rs requests are now honoured not only in the top-level
7167 but in all diversions (similar to UNIX troff).
7169 This change is based on a patch from Tadziu Hoffmann
7170 <hoffmann@usm.uni-muenchen.de>.
7172 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7173 (top_level_diversion): Remove `no_space_mode' member.
7174 * src/roff/troff/div.cc (diversion::diversion,
7175 top_level_diversion::top_level_diversion): Updated.
7176 (macro_diversion::output): Reset `no_space_mode'.
7177 (no_space, restore_spacing): Use `curdiv' unconditionally.
7178 (space_request, blank_line): Check `curdiv->no_space_mode'.
7179 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7180 `curdiv' unconditionally.
7181 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7184 2001-05-06 Werner LEMBERG <wl@gnu.org>
7186 Added two new requests `de1' and `am1' which are similar to `de' and
7187 `am' with the difference that compatibility mode is saved on entry,
7188 switched off during macro execution, and restored on exit.
7190 * src/roff/troff/input.h: Added two new special characters
7191 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7192 * src/roff/troff/input.cc (input_iterator): Added two member
7193 functions `save_compatible_flag' and `get_compatible_flag'.
7194 (input_stack): Ditto.
7195 (string_iterator): Ditto. Also add private member
7196 `saved_compatible_flag'.
7197 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7198 (calling_mode): New enumeration.
7199 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
7200 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7201 (define_macro, define_indirect_macro, append_macro, ignore): Use
7203 (define_nocomp_macro, append_nocomp_macro): New functions.
7204 (init_input_requests): Updated.
7205 (do_request): Rename local variable `saved_compatible_flag' to
7206 `old_compatible_flag'.
7207 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7209 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7210 public and trap-invoked macros. As a consequence, the man macros
7211 work in compatibility mode also.
7213 2001-05-06 Solar Designer <solar@openwall.com>
7215 * Makefile.in: Use $(mandir).
7217 2001-05-06 Alexios Zavras <zvr@pobox.com>
7219 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7221 2001-05-05 Werner LEMBERG <wl@gnu.org>
7223 Added `.ns' number register: Returns 1 in no-space mode (if in
7224 top-level diversion), 0 otherwise.
7226 * src/roff/troff/div.cc (no_space_mode_reg): New class.
7227 (init_div_requests): Updated.
7228 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7231 2001-05-04 Werner LEMBERG <wl@gnu.org>
7233 * src/roff/nroff/nroff.man: Improved documentation (especially
7236 2001-05-02 Werner LEMBERG <wl@gnu.org>
7238 Added `brp' request: This is \p as a request.
7240 * src/roff/troff/env.cc (environment::do_break): Add parameter
7242 (do_break_request): New function (was `break_request').
7243 (break_request): Calls `do_break_request'.
7244 (break_spread_request): New; calls `do_break_request'.
7245 (init_env_requests): Updated.
7246 * src/roff/troff/env.h: Updated.
7247 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7249 * REVISION: Increased to 1.
7250 * win32-diffs: Updated.
7252 2001-05-01 Werner LEMBERG <wl@gnu.org>
7254 * tmac/an-old.tmac: Fix minor compatibility mode issue.
7255 * tmac/troffrc-end: Make it really work in compatibility mode.
7257 2001-04-27 Werner LEMBERG <wl@gnu.org>
7259 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7262 2001-04-22 Werner LEMBERG <wl@gnu.org>
7264 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7265 latest versions from glibc CVS archive.
7267 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7268 <c.zeelenberg@hccnet.nl>.
7270 2001-04-21 Werner LEMBERG <wl@gnu.org>
7272 * configure.in: Move check for mkstemp() to...
7273 * aclocal.m4 (GROFF_MKSTEMP): This new function.
7274 * configure: Regenerated.
7276 * src/include/groff-getopt.h: Don't use variable names in
7279 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
7280 * src/devices/grohtml/Makefile.sub,
7281 src/devices/grohtml/post-html.cc: Updated.
7283 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
7285 * configure.in: Add special check for mkstemp().
7286 * src/libs/libgroff/tmpfile.cc: Use it.
7287 * src/utils/indxbib/indxbib.cc: Ditto.
7288 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7289 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7292 2001-04-20 Bruce Lilly <blilly@erols.com>
7294 `Version_string' as C++ object was not visible to linker from C
7296 Add `const' to `Version_string'.
7298 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7299 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7300 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7301 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7302 (scanArguments), src/preproc/refer/refer.cc (main),
7303 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7304 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7305 (main), src/devices/grohtml/post-html.cc (main),
7306 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7307 (main), src/utils/hpftodit/hpftodit.cc (main),
7308 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7309 (main), src/utils/lkbib/lkbib.cc (main),
7310 src/utils/addftinfo/addftinfo.cc (main): Implement it.
7312 * src/roff/groff/pipeline.c: Add _UWIN.
7313 * src/include/nonposix.h: Ditto.
7315 2001-04-20 Werner LEMBERG <wl@gnu.org>
7317 * src/include/lib.h: Use HAVE_STRERROR.
7318 * src/roff/groff/pipeline.c: Ditto.
7319 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7320 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7321 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7322 * win32-diffs: Updated.
7323 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7325 2001-04-19 Werner LEMBERG <wl@gnu.org>
7327 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7328 instead of hardwired `"troff"'.
7329 (char_buffer::read_file): Remove unused variables.
7330 (char_buffer::write_file_troff): Ditto.
7331 (char_buffer::write_file_html): Ditto.
7332 (generateImages): Ditto.
7334 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7336 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7338 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7339 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7340 index_search_item::search1): Ditto.
7341 * src/roff/troff/node.h (width_list): Reorder members.
7342 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7343 (lookup_warning): Ditto.
7344 (prepend_string): Commented out.
7345 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7346 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7347 * src/preproc/tbl/main.cc (process_format): Ditto.
7348 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7350 * src/preproc/pic/pic.cc: Updated.
7351 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7352 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7353 * src/preproc/refer/command.cc (execute_command): Ditto.
7354 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7355 * src/preproc/refer/token.cc (lookup_token): Ditto.
7356 * src/preproc/soelim/soelim.cc: Ditto.
7357 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7358 (isHexDigit): Commented out.
7359 (pushBackBuffer::isString): Remove unused variable.
7360 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7362 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7363 resource_manager::read_resource_arg, read_one_of, parse_extensions):
7365 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7366 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7367 lookup_paper_size): Ditto.
7368 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7369 (text_glob, element_list): Reorder members.
7370 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7372 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7373 return value to `void'.
7374 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7376 * src/devices/grohtml/html.h (simple_output::check_newline,
7377 simple_output::space_or_newline, simple_output::enable_newlines):
7379 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7381 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7382 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7383 output_ligatures, output_charset, read_map): Ditto.
7384 * src/utils/lookbib/lookbib.cc (main): Ditto.
7385 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7386 (do_file): Fix typo (`=' -> `==').
7387 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7388 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7390 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
7392 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7393 Fix usage of GROFF_BIN_PATH.
7394 * src/roff/nroff/nroff.man: Updated.
7396 2001-04-18 Werner LEMBERG <wl@gnu.org>
7398 * NEWS: Fixing typos.
7401 Version 1.17 released
7402 =====================
7404 2001-04-17 Werner LEMBERG <wl@gnu.org>
7406 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7407 directory, not in $(srcdir).
7409 2001-04-16 Werner LEMBERG <wl@gnu.org>
7411 * doc/groff.texinfo: More info on conditionals.
7413 2001-04-15 Werner LEMBERG <wl@gnu.org>
7415 * doc/groff.texinfo: Added some info about groff internals.
7417 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7418 about missing special character only if the name is non-null.
7420 2001-04-14 Werner LEMBERG <wl@gnu.org>
7422 Removing the grohtml-old device driver which is now obsolete.
7424 * src/devices/grohtml-old/*: Removed.
7425 * font/devhtml-old/*: Removed.
7426 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7428 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7429 * test-groff (PATH): Updated.
7430 * tmac/Makefile.sub (NORMALFILES): Updated.
7431 * tmac/an-old.tmac: Remove special code for html-old device.
7432 Replace `html-or-html-old' register with `an-html'.
7433 * tmac/eqnrc: Updated.
7434 * tmac/html-old.tmac: Removed.
7435 * tmac/troffrc, tmac/troffrc-end: Updated.
7436 * tmac/www.tmac: Remove special code for html-old device.
7437 Replace `html-or-html-old' register with `www-html'.
7439 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7440 src/libs/libgroff/htmlindicate.cc (graphic_end),
7441 include/htmlindicate.h, src/preproc/grn/*.cc,
7442 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7443 single argument for consistency with rest of source code.
7445 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7447 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
7449 * src/roff/troff/troff.man: Fixing typos.
7451 2001-04-13 Werner LEMBERG <wl@gnu.org>
7453 * doc/pic.ms: Fixing many font switches.
7454 * doc/groff.texinfo: Fixes, additions.
7455 * MORE.STUFF: Updated.
7457 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
7459 * src/devices/grohtml/grohtml.man: Updated manual page regarding
7461 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7463 (removeTempFiles): New function to tidy up temporary files.
7464 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7465 Many fixes to do with the new inline suppress node and image regions
7467 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7468 (generate_img_src): New function.
7469 (html_printer::do_auto_image): Utilizes it.
7470 (do_heading, do_title): Include inline images within their contents.
7471 (html_printer::begin_page): Tidied up comments that are issued to
7472 the html output file.
7473 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7475 (text_glob::is_br): New method used by do_heading.
7476 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7477 equivalent diversion.
7478 * src/include/html-strings.h: Altered image tags to reflect the
7480 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7482 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7483 it is already inside a pic image. Only emit tags if the argument
7484 `-Tps:html' is present.
7485 * src/preproc/tbl/main.cc: Changes to reflect additional
7486 `html_end_suppress' parameter.
7487 * src/roff/troff/env.cc: Only emit eol tag if a node has been
7488 emitted since the last eol tag was written.
7489 * src/roff/troff/env.h: New boolean `emitted_node'.
7490 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7491 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
7492 * src/roff/troff/node.cc (check_charinfo): New method.
7493 (troff_output_file::determine_line_limits): Alterations to limit
7495 * tmac/www.tmac: Changes to reflect new suppress nodes.
7497 2001-04-12 Bruno Haible <haible@clisp.cons.org>
7499 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7500 Escape the html_glyph in the buffer.
7501 (str_translate_to_html): Output the unescaped escaped_char.
7502 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7503 `frame=void', not `frame=none'. Add `border=0'.
7505 2001-04-12 Werner LEMBERG <wl@gnu.org>
7507 * PROBLEMS: Add some words on how to avoid wrapper macros.
7509 2001-04-11 Blake McBride <blake@florida-software.com>
7511 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7513 2001-04-11 Werner LEMBERG <wl@gnu.org>
7515 * font/devlbp/Makefile.sub (CLEANADD): Set it.
7516 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7517 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7518 * Makefile.sub (DISTCLEANFILES): Here.
7520 * libs/libgroff/new.cc: Include `nonposix.h'.
7521 * win32-diffs: Updated.
7523 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
7525 Added skeleton macro for defunct macros.
7527 Updated documentation.
7529 When inside displays, an empty input line warning should be
7530 suppressed. If another macro call is put inside a display,
7531 all subsequent empty lines found in that display caused a
7532 warning to be emitted.
7534 * tmac/doc.tmac (doc-defunct-macro): New macro.
7535 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7536 (doc-restore-global-vars): Fixed typo.
7537 (doc-empty-line): Check the `doc-display-depth' register to
7538 determine whether we are inside display or not.
7540 * tmac/doc-common: Removed `Or' and `Sf' registers.
7541 Moved obsolete `Ds' macro to doc.tmac.
7543 * tmac/groff_mdoc.man: Bump document date.
7544 Document `.Vt' under ``Variable Types''.
7545 Removed documentation for obsolete `.Or' macro.
7547 2001-04-10 Werner LEMBERG <wl@gnu.org>
7550 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7552 2001-04-10 Bruno Haible <haible@clisp.cons.org>
7554 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7555 (usage): Add stream argument. Don't exit.
7556 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7557 Write --version output to stdout, not stderr.
7558 (usage): Add stream argument. Don't exit.
7559 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7560 (usage): Add stream argument. Don't exit.
7561 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7563 (usage): Add stream argument. Don't exit.
7564 (main): Write --help output to stdout, not stderr.
7565 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7566 (usage): Add stream argument. Don't exit.
7567 * src/devices/grops/ps.cc (main): Accept --help and --version.
7568 (usage): Add stream argument. Don't exit.
7569 * src/devices/grotty/tty.cc (main): Accept --help and --version.
7570 (usage): Add stream argument. Don't exit.
7571 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7572 (main): Accept --help and --version.
7573 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7574 (main): Accept --help and --version.
7575 * src/preproc/html/pre-html.cc (usage): Add stream argument.
7576 (scanArguments): Accept --help and --version.
7577 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7578 (main): Accept --help and --version.
7579 * src/preproc/refer/refer.cc (main): Accept --help and --version.
7580 (usage): Add stream argument. Don't exit.
7581 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7583 (main): Accept --help and --version.
7584 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7585 (main): Accept --help and --version.
7586 * src/roff/groff/groff.cc (main): Accept --help and --version.
7587 (synopsis): Add stream argument.
7588 (help): Write --help output to stdout, not stderr.
7589 (usage): Add stream argument. Don't exit.
7590 * src/roff/grog/grog.pl: Accept --help and --version.
7592 * src/roff/grog/grog.sh: Accept --help and --version.
7593 * src/roff/nroff/nroff.sh: Accept --help and --version.
7594 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7595 (usage): Add stream argument. Don't exit.
7596 (main): Accept --help and --version.
7597 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7598 (usage): New function with stream argument, doesn't exit.
7599 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7600 (usage): New function with stream argument, doesn't exit.
7601 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7602 (usage): Add stream argument. Don't exit.
7603 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7604 (main): Accept --help and --version.
7605 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7607 (main): Accept --help and --version.
7608 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7609 (main): Accept --help and --version.
7610 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7611 (usage): Add stream argument. Don't exit.
7613 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
7615 Fix indentation in SYNOPSIS.
7617 Updated to include changes of latest BSD mdoc version (basically,
7618 the only change is that `.Fn' and `.Fc' put a final semicolon after
7619 a function declaration in the SYNOPSIS section).
7621 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7622 (doc-in-synopsis-section): New variable. Updated all related
7624 (doc-indent-synopsis-active): New register.
7625 (Nd, Fn, Fo): Use it.
7626 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7627 `.Cd' with long argument line produces indented wrapped lines.
7628 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7629 undesirable line break to be output.
7630 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7632 (Fn, Fc): Add final `;' to output.
7633 (doc-save-global-vars, doc-restore-global-vars): Updated.
7634 * tmac/doc-common: Remove `Ex' register.
7636 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7639 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7641 * tmac/doc.tmac (Cd): Simplify code.
7642 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7644 2001-04-06 Werner LEMBERG <wl@gnu.org>
7646 Implement continuous underlining for nroff mode. To do that, a new
7647 request in the ditroff language has been added: `x u N' (N is 0
7650 \X and \Y are now transparent to end-of-sentence recognition.
7652 * src/include/printer.h (printer): Add `type' parameter to `special'
7654 * src/libs/libdriver/printer.cc (printer::special): Updated.
7655 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7657 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7658 specials of type `p'.
7659 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7660 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7661 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7662 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7663 (glyph::order): New method.
7664 (tty_printer::add_char): Use it.
7665 (tty_printer::special): New method.
7666 (tty_printer::end_page): Implement it.
7668 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7669 * src/roff/troff/node.cc (special_node::special_node): Add parameter
7670 to set `no_init_string'.
7671 (special_node::tprint_start): Use it.
7672 (special_node::same, special_node::copy): Updated.
7673 (special_node::ends_sentence): New method.
7674 (troff_output_file::start_special): Add parameter to include
7675 inititialization of special conditionally.
7677 * src/roff/troff/env.h (environment): New member `underline_spaces'.
7678 * src/roff/troff/env.cc (do_underline_special): New function.
7679 (environment::set_font): Use it.
7680 (do_underline): Use it. This was `underline()'.
7681 (underline): Call `do_underline()'.
7682 (continuous_underline): New function which calls `do_underline()'.
7683 (environment::newline): Use `do_underline_special()'.
7684 (init_env_requests): Updated.
7686 * NEWS, man/troff_out.man: Updated.
7688 2001-04-06 Bruno Haible <haible@clisp.cons.org>
7690 * font/devutf8/R.proto: Fix code of 'shc'.
7692 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7694 Many fixes. Diag lists can now be nested also; additionally,
7695 `-compact' and `-offset' are supported.
7697 * tmac/doc.tmac (doc-have-indent): Replaced with ...
7698 (doc-list-have-indent-stackXXX): A new register stack.
7699 (doc-have-diag-list): Removed.
7700 (Bl): Use `doc-list-have-indent-stackXXX'.
7702 (doc-diag-list): Use `doc-compact-list-stackXXX'.
7703 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7704 (doc-set-vertical-and-indent): Ditto.
7705 (doc-next-list-depth): Removed.
7706 (doc-increment-list-stack): Updated.
7707 (doc-decrement-list-stack): Use `doc-list-depth' instead of
7708 `doc-next-list-depth'.
7709 (doc-end-list, doc-end-column-list): Don't use
7710 `doc-increment-list-stack'.
7711 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7712 (doc-save-global-vars, doc-restore-global-vars): Updated.
7713 * tmac/doc-common: Updated.
7714 * tmac/groff_mdoc.man: Updated.
7717 2001-04-02 Werner LEMBERG <wl@gnu.org>
7719 * src/devices/grotty/grotty.man: Fix grammatical error.
7721 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
7723 Remove .Ld from mdoc package; replace it with special handling of
7726 * tmac/doc-common: Remove `Ld' register.
7727 Uncomment `doc-volume-ds-*' strings.
7728 Remove `doc-operating-system-default'.
7730 * tmac/doc-syms (Ld): Removed.
7731 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7735 * tmac/groff_mdoc.man: Many fixes and updates.
7737 2001-03-29 Werner LEMBERG <wl@gnu.org>
7739 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
7740 Bond <tkb@tkb.mpl.com>.
7741 * tmac/www.tmac: Save compatibility mode.
7743 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
7745 * tmac/groff_mdoc.man: Many fixes.
7747 2001-03-28 Werner LEMBERG <wl@gnu.org>
7749 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7752 2001-03-27 Werner LEMBERG <wl@gnu.org>
7754 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7755 diversion. This fixes overlong tags.
7757 2001-03-26 Werner LEMBERG <wl@gnu.org>
7759 * doc/groff.texinfo: Fixed and improved documentation of fonts.
7760 * tmac/doc-syms: Fix error messages.
7761 * tmac/an-old.tmac: Remove incorrect double backslashes.
7763 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
7765 * tmac/Makefile.sub: Strip mdoc.local also
7766 * tmac/strip.sed: Fixed.
7768 2001-03-24 Werner LEMBERG <wl@gnu.org>
7770 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7771 selecting the font size.
7772 * tmac/groff_mdoc.man, NEWS: Document it.
7774 2001-03-23 Werner LEMBERG <wl@gnu.org>
7776 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7778 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7779 argument to restore previous font family.
7780 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7782 * doc/groff.texinfo: More fixes and additions (mainly for font
7783 manipulating commands).
7785 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7786 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7787 * tmac/Makefile.sub, NEWS: Updated.
7789 2001-03-23 Werner LEMBERG <wl@gnu.org>
7791 Replaced mdoc implementation. The new version is `state of the
7792 art', using almost all new features of groff 1.17 -- it won't run
7793 with older versions.
7795 * tmac/doc.tmac: Completely rewritten.
7796 * tmac/doc-common: Ditto.
7797 * tmac/doc-nroff: Ditto.
7798 * tmac/doc-ditroff: Ditto.
7799 * tmac/doc-syms: Ditto.
7800 * tmac/mdoc.local: New file.
7801 * tmac/groff_mdoc.samples.man: Replaced with ...
7802 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7803 * tmac/strip.sed: Updated.
7804 * tmac/Makefile.sub: Updated.
7807 * tmac/groff_man.man: Add `man.local' to the FILES section.
7809 2001-03-22 Werner LEMBERG <wl@gnu.org>
7811 * doc/groff.texinfo: Added many @noindent.
7812 Replaced @end_Example -> @endExample.
7813 Added info whether registers are r/o.
7814 Many other additions and fixes.
7816 2001-03-21 Werner LEMBERG <wl@gnu.org>
7818 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7819 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7820 Improved @Def* macros: Now the exact syntax of request, register,
7821 and escapes is shown.
7822 Added macros for parentheses and brackets to be used in @Def*.
7823 Many fixes and improvements of the documentation.
7825 2001-03-20 Werner LEMBERG <wl@gnu.org>
7827 * doc/groff.texinfo: Added new index: `st' (for strings).
7828 Added macros @Defstr(x).
7829 Added macro @Example (adding @group).
7830 Other minor improvements.
7832 2001-03-19 Werner LEMBERG <wl@gnu.org>
7834 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7835 `rq' for requests. `fn' is no longer used.
7836 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7839 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7840 number with name of man page.
7842 2001-03-19 Larry Kollar <kollar@alltel.net>
7844 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7847 2001-03-19 Werner LEMBERG <wl@gnu.org>
7849 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7850 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7851 * src/devices/grohtml/grohtml.man: Fixing typos.
7853 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7855 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7856 * tmac/groff_mwww.man: Remove .LINE macro
7857 * tmac/www.tmac (LINE): Add `.ti'.
7859 * src/devices/grohtml/post-html.cc (html_printer): New member
7861 (html_printer::emit_raw): Use it.
7862 (html_printer::do_linelength): Ditto.
7863 (html_printer::do_pageoffset): Ditto.
7864 (html_printer::do_indentation): Ditto.
7865 (html_printer::do_tempindent): Ditto.
7866 (html_printer::do_break): Ditto.
7867 (html_printer::begin_page): Ditto.
7868 (html_printer::do_indentedparagraph): New function.
7869 (html_printer::troff_tag): Handle `.ip'.
7870 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7871 Add `<td width=...>' handling.
7872 (html_text::do_table): Add parameter.
7873 (html_text::do_indent): Updated.
7874 * src/devices/groohtml/html-text.h: Updated.
7876 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7878 Introduced simple html tables to implement indentation.
7880 * src/devices/grohtml/html.h (word, word_list): New structures.
7881 (simple_output): Use it.
7882 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7883 (html_printer): Improve indentation handling.
7884 (html_printer::emit_raw): Set `in_table' element. Handle
7886 (html_printer::write_header): Move conditional downwards.
7887 Don't allow whitespace in tags.
7888 (html_printer::do_linelength): Handle line length and indentation
7890 (html_printer::do_pageoffset): Handle indentation conditionally.
7891 (html_printer::do_indentation): Ditto.
7892 (html_printer::do_tempindent): New function member.
7893 (html_printer::do_fill): Take care of indentation.
7894 (html_printer::do_flush): Finish table.
7895 (html_printer::do_links): Ditto.
7896 (html_printer::do_break): New function for handling `.br' and `.ti'.
7897 (html_printer::troff_tag): Use it.
7899 (html_printer::flush_globs): Fix.
7900 (html_printer::flush_page): Finish table.
7901 (html_printer::html_printer): Fix error message. Set up
7903 (html_printer::add_to_sbuf): Remove special handling of character
7905 (to_unicode): Remove `stop()'.
7906 (html_printer::write_title): Cleanup.
7907 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7908 (html_printer::~html_printer): Flush text and end the line.
7910 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7911 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7913 (html_text::start_tag): Disable newlines.
7914 (html_text::table_is_void): New function.
7915 (html_text::issue_table_begin): Ditto.
7916 (html_text::issue_table_end): Ditto.
7917 (html_text::push_para): Better table handling.
7918 (html_text::do_indent): New function.
7919 (html_text::do_table): Ditto.
7920 (html_text::done_table): Ditto.
7921 (html_text::do_tt): Handle PRE_TAG.
7922 (html_text::is_in_table): New function.
7923 (html_text::check_emit_text): Handle tables.
7924 (html_text::do_emittext): Use `nl()'.
7925 (html_text::do_para): Handle table.
7926 (html_text::remove_def): New function.
7927 * src/devices/grohtml/output.cc (word, word_list): Implement
7929 (simple_output::end_line): Flush last word.
7930 (simple_output::simple_comment): Ditto.
7931 (simple_output::begin_comment): Recoded.
7932 (simple_output::end_comment): Ditto.
7933 (simple_output::comment_arg): Removed.
7934 (simple_output::check_newline): Improve test and flush last word.
7935 (simple_output::space_or_newline): Improved.
7936 (simple_output::write_newline): Replaced with...
7937 (simple_output::nl): This.
7938 (simple_output::put_raw_char): Flush last word.
7939 (simple_output::check_space): Removed.
7940 (simple_output::put_translated_string): Ditto.
7941 (simple_output::put_string): Simplified.
7942 (simple_output::put_number): Updated.
7943 (simple_output::put_float): Ditto.
7944 (simple_output::put_symbol): Removed.
7945 (simple_output::enable_newlines): Add `check_newline()'.
7946 (simple_output::flush_last_word): New function.
7948 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7949 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7951 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7952 * tmac/an-old.tmac (TP): Ditto.
7954 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7956 * mdate.sh: Make it POSIX compliant.
7958 2001-03-09 Werner LEMBERG <wl@gnu.org>
7960 Added the `return' request to end a macro immediately. It simply
7961 pops iterators from the input stack until a macro iterator is found.
7963 * src/roff/troff/input.cc (input_iterator::is_macro,
7964 macro_iterator::is_macro): New member.
7965 (input_return_boundary): New class to signal an immediate return
7967 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7969 (input_stack::clear): Use it.
7970 (input_stack::pop_macro): New function.
7971 (while_request): Use `is_return_boundary()'.
7972 (return_macro_request): New function.
7973 (init_input_requests): Use it.
7975 * src/roff/troff/TODO: Updated.
7976 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7978 2001-03-08 Werner LEMBERG <wl@gnu.org>
7980 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7983 2001-03-07 Werner LEMBERG <wl@gnu.org>
7985 Make `\B' more rigid.
7987 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7989 (get_number_rigidly): New function.
7990 * src/roff/troff/input.cc (do_expr_test): Use it.
7991 * src/roff/troff/token.h: Updated.
7993 * src/roff/troff/request.h: Fix typo (init_html_request ->
7994 init_markup_request).
7996 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7998 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7999 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8000 are now `.begin', `.end', `.image'.
8002 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8003 (html_printer::add_to_sbuf): Changing type of `code' parameter.
8004 Use add_char_to_sbuf().
8005 (to_unicode): New function.
8006 (char_translate_to_html): Changing type of `ch' parameter.
8008 (html_printer::~html_printer): Comment out doctype string.
8009 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8010 instead of `.html-end'.
8011 (write_start_image): Use `.begin' and `.image' instead of
8012 `.html-begin' and `.html-image'.
8013 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8014 (html_begin): Renamed to ...
8016 (html_end): Renamed to ...
8018 (html_image): Renamed to ...
8020 (init_html_requests): Renamed to ...
8021 (init_markup_requests): This.
8022 * tmac/www.tmac: Updated.
8024 2001-02-28 Bram <bram@avontuur.org>
8026 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8029 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
8031 * doc/meref.me: Fixing some typos.
8033 2001-02-16 Werner LEMBERG <wl@gnu.org>
8035 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8036 method. Return `HYPHEN_MIDDLE' if it was `\:'.
8037 * src/roff/troff/node.h: Updated.
8039 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
8041 * tmac/groff_tmac.man: Fix typo.
8043 2001-02-16 Werner LEMBERG <wl@gnu.org>
8045 Fixing a bug which prevented proper end-of-sentence recognition
8046 between an `unformatted' box and the following text. As a
8047 consequence, vertical line distances are no longer preserved in
8048 boxes after a call to `.unformat' -- because boxes aren't
8049 line-oriented (contrary to diversions), this doesn't make sense
8052 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8054 (vertical_size_node::set_unformat_flag): New method.
8055 * src/roff/troff/node.hh: Updated.
8056 * src/roff/troff/input.cc (word_space_node::reread,
8057 hmotion_node::reread): Reset `unformat' flag after usage.
8058 (unformat_macro): Append only if `set_unformat_flag()' returns
8060 * src/roff/troff/troff.man: Updated.
8062 2001-02-15 Werner LEMBERG <wl@gnu.org>
8064 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8065 documentation of `asciify' and `unformat' requests.
8067 2001-02-13 Werner LEMBERG <wl@gnu.org>
8069 Redesigned the `unformat' request. It is no longer connected with
8070 `asciify' but rather uses new `reread()' methods if the `unformat'
8071 flag is set. Additionally, the handling of space characters after
8072 unformatting has been fixed so that they retain their width.
8074 * src/roff/troff/node.h (width_list): New structure to store
8075 original widths of spaces.
8076 (node): Added `unformat' member.
8077 Replaced `num_spaces' variable with `orig_width' list.
8078 * src/roff/troff/node.cc (*node::asciify,
8079 asciify_reverse_node_list): Removed `unformat_only' flag and related
8081 (word_space_node::asciify, word_space_node::word_space_node): Use
8083 (word_space_node::~word_space_node): New destructor.
8084 (word_space_node::copy): Updated to handle `orig_width'.
8085 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8086 (*node::merge_space): Update `orig_width' list if necessary.
8087 (*node::set_unformat_flag): New methods to set the `unformat' flag.
8088 * src/roff/troff/enc.cc (environment::space_newline): Use
8090 (environment::space): Added method to handle space width and
8091 sentence space width as parameters. Use `width_list'.
8092 (environment::make_tab_node): Updated.
8093 * src/roff/troff/env.h: Updated.
8094 * src/roff/troff/input.cc (word_space_node::reread,
8095 unbreakable_space_node::reread, hmotion_node::reread): New methods
8096 to handle nodes specially if `unformat' flag is set.
8097 (do_asciify_macro): Renamed back to ...
8098 (asciify_macro): This.
8099 (unformat_macro): New implementation to simply set the `unformat'
8102 * MORE.STUFF: Added more info about deroff.
8104 2001-02-08 Werner LEMBERG <wl@gnu.org>
8106 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8107 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8108 and `add_self()' methods to avoid hyphenation. For example, the
8109 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8110 soft hyphen after `foo'. Now the hyphen list is correctly
8111 `foo<ignore><ignore>bar'.
8113 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
8115 * tmac/groff_tmac.man: Fix `BIR' macro.
8117 2001-02-04 Werner LEMBERG <wl@gnu.org>
8119 A new escape sequence `\:', inserting a zero-width break point.
8121 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8122 * src/roff/troff/input.cc (get_copy, token::next, asciify):
8124 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8126 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
8127 and `asciify()' methods.
8128 * src/roff/troff/node.cc (space_node::space_node): Updated.
8129 (space_node::asciify): Handle `was_escape_colon'.
8130 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8132 Handle `\~' similar to other comparable requests.
8134 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8136 (token::next): Move creation of an unbreakable_space_node to...
8137 (token::add_to_node_list): Here.
8139 Fix a bug which sometimes prevented hyphenation of words connected
8140 with `\~' or `\ ' (and other escape sequences handled as
8141 TOKEN_NODE). This also fixes a hyphenation problem with boxes
8142 (after a call to the `unformat' request).
8144 * src/roff/troff/env.h (environment::possibly_break_line,
8145 environment::hyphenate_line): Introducing `start_here' parameter.
8146 * src/roff/troff/env.cc (environment::space_newline,
8147 environment::space): Use it.
8148 (environment::possibly_break_line, environment::hyphenate_line):
8150 * src/roff/troff/input.cc (process_input_stack): Use it.
8151 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8152 space_char_hmotion_node, overstrike_node): Add
8153 `get_hyphenation_type()' method.
8154 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8155 if `unformat_only' is active.
8157 2001-01-30 Werner LEMBERG <wl@gnu.org>
8159 Implemented new read-only number register `.linetabs' which
8160 returns 1 if in line-tabs mode, 0 otherwise.
8162 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8163 * src/roff/troff/env.cc (get_line_tabs): New function.
8164 (init_env_requests): Use it.
8165 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8167 * VERSION, REVISION: Changing to 1.17.0.
8169 2001-01-28 Werner LEMBERG <wl@gnu.org>
8171 Fixed a bug which prevented hyphenation of words which are finished
8174 * src/roff/troff/token.h (token): Add enum type
8175 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8176 * src/roff/troff/input.cc (token::next, token::description,
8177 get_line_arg, token::add_to_node_list, token::process): Use it.
8179 2001-01-27 Werner LEMBERG <wl@gnu.org>
8181 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8182 * src/roff/troff/div.cc (do_divert): Use it.
8184 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8186 2001-01-25 Werner LEMBERG <wl@gnu.org>
8188 Adding the `linetabs' request. If set, tab distances are not
8189 computed relative to the input line but relative to the output line.
8191 * src/roff/troff/env.h (environment): New member `line_tabs'.
8192 * src/roff/troff/env.cc (line_tabs_request): Implement request.
8193 (environment::environment, environment::copy): Updated.
8194 (environment::distance_to_next_tab): Use `line_tabs'.
8195 (init_env_requests): Register request.
8196 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
8199 2001-01-24 Werner LEMBERG <wl@gnu.org>
8201 Introducing a new read-only register `.int' which is set to a
8202 positive value if the last output line is interrupted (i.e., if it
8205 * src/roff/troff/env.cc (init_env_requests): Add it.
8206 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8208 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
8210 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8211 * src/preproc/html/pre-html.cc (findPrefix): New function which
8212 generates the troff executable name via the system prefix.
8213 * src/preproc/eqn/main.cc: Modified warning message.
8215 2001-01-23 Werner LEMBERG <wl@gnu.org>
8217 troff's `box' and `boxa' requests didn't preserve temporary
8220 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8221 `saved_target_text_length' members.
8222 * src/roff/troff/div.cc (do_divert): Use them.
8224 Tabs (but not yet leaders and fields) are now handled correctly by
8227 * node.h (hmotion_node): Add field `was_tab'.
8228 * env.cc (environment::make_tab_node): Set it.
8229 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8231 Added new request `unformat' which will, contrary to `asciify',
8232 preserve font information after unformatting (i.e., only nodes
8233 dealing with horizontal space are converted back to input
8236 * input.cc (asciify_macro): Renamed to ...
8237 (do_asciify_macro): this, having a new parameter `unformat_only'.
8238 (asciify_macro, unformat_macro): New; using do_asciify_macro.
8239 (init_input_requests): Added `unformat'.
8240 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8241 parameter to control asciification process.
8242 * node.h (*_node::asciify): Ditto.
8243 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8245 2001-01-20 Werner LEMBERG <wl@gnu.org>
8247 * doc/groff.texinfo: Minor improvement of `.in' documentation.
8249 2001-01-18 Werner LEMBERG <wl@gnu.org>
8251 * tmac/ps.tmac: Remove call of psold.tmac.
8252 * tmac/psold.tmac: Comment updated.
8253 * tmac/psnew.tmac: Removed since no longer needed.
8254 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8256 * font/devutf8/R.proto: Adding `shc' glyph.
8257 * font/devutf8/NOTES: Updated.
8259 * test-groff: Updated.
8261 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
8263 First cut of the new html device driver. Changes to pre-html and
8264 the new grohtml are too numerous to be documented here.
8266 Stuff related to `html' has been renamed to `html-old' and `html2'
8267 stuff has been renamed to `html' (including directories). The new
8268 html device driver is therefore invoked as `-Thtml'.
8270 Added new `\O' escape to suppress output (needed by html driver).
8272 Added functions and code to pass info about input-level commands
8273 (`.in', `.fl', etc.) to html driver.
8275 Three new functions (.html-begin, .html-end, and .html-image) for
8276 better html handling: `html-begin' will execute the remaining line
8277 if at the outermost nesting level, increasing an internal counter.
8278 `html-end' does the same but decreases the internal counter.
8279 `html_image' puts its arguments into a special node (suppress_node)
8280 to define an image region.
8282 The `output' request has been removed.
8284 * tmac/html-tags.tmac: Removed.
8285 * tmac/arkup.tmac: Updated and renamed to ...
8286 * tmac/www.tmac: New file.
8287 * tmac/markup.tmac Updated and renamed to ...
8288 * tmac/mwww.tmac: New file.
8289 * tmac/Makefile.sub: Updated.
8290 * tmac/an-old.tmac: Updated.
8291 * tmac/eqnrc: Updated.
8292 * tmac/groff_man.man
8293 * tmac/groff_markup.man: Updated and renamed to ...
8294 * tmac/groff_mwww.man: New file.
8295 * tmac/groff_tmac.man: Updated.
8296 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8297 * tmac/html.tmac: Updated and renamed from html2.tmac.
8298 * tmac/pspic.tmac: Updated html support.
8299 * tmac/s.tmac: Added html output support.
8300 * tmac/troffrc, tmac/troffrc-end: Updated.
8302 * Makefile.in, doc/Makefile: Updated.
8303 * doc/groff.texinfo: Added info about new `\O' escape.
8304 * doc/homepage.ms: Use `MAILTO' macro.
8306 * font/devhtml/DESC.proto: Add `C' font.
8307 * font/devhtml/Makefile.sub: Updated.
8308 * font/devhtml/R.proto: Minor fixes.
8309 * font/devhtml-old/Makefile.sub: Updated.
8311 * src/devices/grohtml-old/Makefile.sub: Updated.
8313 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8315 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8316 graphic_start): Add `inline' parameter. Update.
8317 (html_end_suppress, graphic_end): Update.
8319 * src/include/html-strings.h: New file.
8320 * src/include/htmlindicate.h: Comments updated.
8321 * src/include/printer.h: Updated.
8323 * src/preproc/eqn/main.cc (do_file, main): Updated.
8324 * src/preproc/pic/troff.cc (troff_output::start_picture,
8325 troff_output::finish_picture): Updated.
8326 * src/preproc/tbl/main.cc (process_input_file): Updated.
8328 * src/roff/groff/groff.cc (main): Updated.
8329 Pass device arguments to predrivers also.
8330 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8331 * src/roff/troff/env.h (environment): Updated.
8332 New elements `need_eol' and `ignore_next_eol' (for html output).
8333 * src/roff/troff/env.cc (environment::environment): Add initializers
8334 for `need_eol' and `ignore_next_eol'.
8335 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8337 (point_size, fill, no_fill, center, right_justify, line_length,
8338 indent, temporary_indent, break_request, handle_tab): Use
8340 (set_tabs): Use `add_html_tag_tabs()'.
8341 (environment::add_html_tag): Updated.
8342 (environment::do_break): Updated.
8343 * src/roff/troff/div.cc (space_request, flush_output): Use
8344 `environment::add_html_tag()'.
8345 * src/roff/troff/input.cc: Updated.
8346 New variable `html_level' to indicate nested `html-begin' requests.
8347 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8348 (non_interpreted_char_node, token_node, non_interpreted_node): Add
8349 `force_tprint()' method.
8350 (token::next): Handle `\O'.
8351 (do_suppress): Implement it.
8352 (html_begin, html_end, html_image): New functions.
8353 (init_output_requests): Renamed to ...
8354 (init_html_requests): this.
8356 (macro::append_str, macro::append_unsigned, macro::append_int): New
8358 New variable `output_low_mark_miny' to limit minimal value of y.
8359 (reset_output_registers): Use it.
8360 (output_request): Removed.
8361 (get_output_registers): New function.
8362 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8363 (*_node): Added `force_tprint()' if necessary.
8364 (special_node): New elements `tf' and `get_tfont()'.
8365 (suppress_node): New class.
8366 * src/roff/troff/node.cc:
8367 New global variables `image_no' and `suppress_start_page'.
8368 (real_output_file): New method `is_on()'.
8369 (troff_output_file): New method `start_special(tfont)'.
8370 (troff_output_file::really_print_line): Use `tprint' conditionally.
8371 (real_output_file::print_line): Updated.
8372 (real_output_file::on): Updated.
8373 (*_node): Added `force_tprint()'.
8374 (special_node::special_node): Initializer updated.
8375 (special_node::same, special_node::copy, special_node::tprint_start):
8377 (get_reg_int, get_reg_str): New functions.
8378 (suppress_node::*): New methods.
8379 New global variables last_position, last_image_filename;
8380 (min): New inline function.
8381 * src/roff/troff/reg.h, src/roff/troff/request.h,
8382 src/roff/troff/troff.h: Updated.
8384 2001-01-13 Werner LEMBERG <wl@gnu.org>
8386 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8387 documentation of `asciify' request.
8389 2001-01-12 Werner LEMBERG <wl@gnu.org>
8391 * src/roff/troff/input.cc: Move definition of special characters
8392 like `ESCAPE_TILDE' to ...
8393 * src/roff/troff/input.h: New file.
8394 * src/roff/troff/Makefile.sub (HDRS): Add it.
8396 Extending the .asciify request to `unformat' space characters also.
8398 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8399 to count input space characters.
8400 Update constructors to take care of it.
8401 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8402 `ESCAPE_SPACE' instead of normal space.
8403 (word_space_node::asciify): New method.
8404 (unbreakable_space_node::asciify): New method.
8405 (word_space_node::merge_space): New method.
8406 * src/roff/troff/env.cc (environment::space_newline,
8407 environment::space): Add code to initialize `num_spaces' (using the
8408 constructor of `word_space_node').
8409 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8412 2001-01-09 Werner LEMBERG <wl@gnu.org>
8414 * man/groff_char.man: Use table header traps only conditionally.
8416 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
8418 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8420 2001-01-08 Werner LEMBERG <wl@gnu.org>
8422 Introducing the `box' and `boxa' requests which are similar to
8423 `di' resp. `da' but omitting a partially filled line (which is
8424 restored after ending the diversion).
8426 * src/roff/troff/div.h (diversion): Add elements to save partially
8428 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8429 partially filled line.
8430 (divert, divert_append): Updated.
8431 (box, box_append): New functions.
8432 (init_div_requests): Use them.
8433 * src/roff/troff/env.h (environment): do_divert() is now a friend.
8434 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8436 * doc/groff.texinfo: Fix documentation of `lf' request.
8438 2000-12-25 Werner LEMBERG <wl@gnu.org>
8440 * src/roff/troff/troff.man, NEWS: Document `writem' request.
8442 2000-12-21 Werner LEMBERG <wl@gnu.org>
8444 Ignore `ss' request if in compatibility mode.
8446 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8447 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8448 * src/roff/troff/env.cc (space_size): Use it.
8450 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8451 `ss' request in nroff mode.
8453 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8456 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
8458 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8460 2000-12-13 Werner LEMBERG <wl@gnu.org>
8462 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8463 * src/preproc/eqn/neqn.man: Small fixes and additions.
8465 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
8467 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8470 * src/preproc/eqn/neqn.man: New file.
8472 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8475 * tmac/e.tmac: Add `T&' macro.
8476 Fix `indent cannot be negative' warning.
8477 * tmac/s.tmac: Fix `indent cannot be negative' warning.
8479 2000-12-07 Werner LEMBERG <wl@gnu.org>
8481 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8483 2000-12-06 Werner LEMBERG <wl@gnu.org>
8485 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8488 * MORE.STUFF: Added info about deroff for djgpp.
8490 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8491 documentation of -rcR switch.
8493 2000-12-03 Werner LEMBERG <wl@gnu.org>
8495 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8496 if -rcR=1 (which is now the default in nroff mode), a single, very
8497 long page is created instead of multiple pages: All `ne' and `wh'
8498 requests are put into conditionals; a new macro `an-end' is added to
8499 be called with `em'.
8501 Some other minor cleanups.
8503 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8505 2000-12-02 Werner LEMBERG <wl@gnu.org>
8507 Fixing a bug which prevented hyphenation in words followed
8508 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8510 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8511 Adding possibly_break_line().
8512 * src/roff/troff/env.h (environment): Make possibly_break_line()
8515 Make `\~' usable in .tr request.
8517 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8518 (token): Add stretchable_space().
8519 * src/roff/troff/input.cc (token::next, token::delimiter,
8520 token::description, process_input_stack, do_translate,
8521 add_to_node_list, token::process): Use it.
8522 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8523 for adjusting the space.
8524 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
8525 for stretchable space.
8526 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8527 (make_node): Add code for stretchable space.
8528 * src/roff/troff/env.cc (environment::add_char): Use it.
8529 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8530 (get_copy, token::next, transparent_translate, asciify): Use it.
8532 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8533 doc/groff.texinfo: Updated.
8534 * man/groff.man: Small reorderings.
8536 2000-11-23 Werner LEMBERG <wl@gnu.org>
8539 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8541 * src/roff/troff/input.cc (main): Add `config_macro_path' and
8542 `safer_macro_path' to -M option.
8543 * src/roff/troff/troff.man: Fixes.
8545 2000-11-22 Werner LEMBERG <wl@gnu.org>
8547 Use safer path (except for config files) if -U isn't specified. Add
8548 a special macro path (without home and current directory) for config
8549 files. Add home directory to unsafe path for consistency. Don't
8550 include the home directory in the font path.
8552 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8554 * src/include/macropath.h: Add `config_macrp_path'.
8555 * src/libs/libgroff/fontfile.cc: Fix font path.
8556 * src/roff/troff/input.cc (process_startup_file): Use
8557 `config_macro_path'.
8558 (main): Select unsafe path if -U is given.
8560 * src/preproc/eqn/main.cc (main): Fixing search path for
8562 * src/preproc/eqn/eqn.man: Updated.
8564 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8567 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8568 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8569 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8570 src/devices/grotty/grotty.man: Updated.
8572 * Makefile.in: Fix comments.
8574 2000-11-17 Werner LEMBERG <wl@gnu.org>
8576 * tmac/safer.tmac: Empty file added (again) for compatibility
8578 * tmac/Makefile.sub: Updated.
8580 2000-11-16 Werner LEMBERG <wl@gnu.org>
8582 * src/devices/grodvi/dvi.cc (main),
8583 src/devices/grohtml2/post-html.cc (main),
8584 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8585 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8586 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8587 (main), src/preproc/html2/pre-html.cc (main),
8588 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8589 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8590 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8591 (main), src/utils/hpftodit/hpftodit.cc (main),
8592 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8593 (main), src/utils/lookbib/lookbib.cc (main),
8594 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8595 (main): Use stdout for -v.
8596 * src/roff/groff/groff.cc (run_commands),
8597 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8598 to make direct printing to stdout possible.
8599 * src/roff/groff/pipeline.h: Updated.
8601 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8602 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8603 * src/utils/afmtodit/afmtodit.man: Updated.
8605 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8606 (version): New function.
8608 * src/utils/addftinfo/addftinfo.man: Updated.
8610 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8611 Fixing copyright dates.
8613 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8616 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8619 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8621 2000-11-15 Werner LEMBERG <wl@gnu.org>
8623 In all programs, make -v return immediately with exit status 0 to
8624 be compliant with the GNU standard.
8626 * src/devices/grodvi/dvi.cc (main),
8627 src/devices/grohtml2/post-html.cc (main),
8628 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8629 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8630 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8631 (main), src/preproc/html2/pre-html.cc (main),
8632 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8633 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8634 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8635 (main): Implement it.
8638 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
8639 and postprocessors to the -v option.
8641 * src/roff/grog/grog.pl: Implement -v.
8642 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8643 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8645 * src/roff/nroff/nroff.sh: Implement -v.
8646 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8647 * src/roff/nroff/nroff.man: Updated.
8649 * src/preproc/eqn/main.cc (main): Fix comment typo.
8651 * MORE.STUFF: Added info about djgpp port of grap.
8653 2000-11-14 Werner LEMBERG <wl@gnu.org>
8655 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8656 mode (or rather, implemented non-compatibility mode).
8657 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8659 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8660 replacing it -- we don't find gxditview otherwise.
8661 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8663 * src/preproc/pic/depend: Removed. Unnecessary.
8665 Implemented dummy keyword `solid' in pic for compatibility with
8668 * lex.cc (lookup_keyword): Added `solid'.
8669 * pic.y: Added SOLID with dummy rule.
8670 * pic.cc, pic_tab.h: Regenerated.
8671 * doc/pic.ms: Updated.
8673 2000-11-13 Werner LEMBERG <wl@gnu.org>
8675 For security reasons, don't use the current directory but the home
8676 directory while searching and scanning troffrc and troffrc-end.
8677 Similarly, replace the current directory with the home directory
8680 * Makefile.in (fontpath, tmacpath): Remove current directory.
8682 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8683 two parameters `add_home' and `add_current'.
8684 (search_path::~search_path, search_path::command_line_dir,
8685 search_path::open_file): Remove tests for `dirs' being zero.
8686 * src/include/searchpath.h: Adjust.
8687 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8689 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8691 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8692 * src/roff/troff/input.cc: Use `mac_path', initialized with
8694 (process_startup_file): Set `mac_path' to `safer_macro_path'.
8695 * src/roff/troff/env.cc: Use `mac_path'.
8697 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8699 * NEWS, man/roff.man, src/roff/troff/troff.man,
8700 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8703 2000-11-12 Werner LEMBERG <wl@gnu.org>
8705 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8707 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8708 * configure.in: Fix typo in comment.
8709 * configure: Regenerated.
8711 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8714 2000-11-08 Werner LEMBERG <wl@gnu.org>
8716 Add system tmac directory (/usr/local/lib/groff/site-tmac).
8718 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8719 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8722 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8723 * tmac/Makefile.sub (install_data): Create
8724 $(systemtmacdir) and $(localtmacdir).
8725 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8726 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8727 NEWS, doc/groff.texinfo: Updated and minor fixes.
8729 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8730 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8731 $(systemtmacdir) since the wrapper files are platform-dependent.
8733 2000-11-01 Werner LEMBERG <wl@gnu.org>
8735 * doc/groff.texinfo: Fix typo.
8737 2000-10-26 Werner LEMBERG <wl@gnu.org>
8739 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
8740 tmac.doc.old -> doc-old.tmac
8741 tmac.an.old -> an-old.tmac
8743 * tmac/tmac.*: Moved to ...
8744 * tmac/*.tmac: this.
8745 * tmac/man.local: Fix comment.
8746 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8747 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
8748 Added some `FILES' sections. More use of @...@ directives. Other
8750 * arch/djgpp/README, font/devutf8/NOTES: Updated.
8751 * doc/homepage.ms, doc/groff.texinfo: Updated.
8752 * man/groff.man, man/roff.man: Updated.
8753 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8754 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8755 src/devices/grotty/grotty.man: Updated.
8756 * src/preproc/pic/pic.man: Updated.
8757 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8758 instead of -mdoc.old.
8759 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8760 * src/roff/nroff/nroff.man: Updated.
8763 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8765 * tmac/mm.diff: Removed -- it has no use now since the mm package
8768 * tmac/*: Removed trailing spaces.
8770 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8771 the tmac subdirectory also).
8773 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8774 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8775 stuff since it is no longer needed.
8777 * README, PROBLEMS: Updated.
8779 2000-10-25 Werner LEMBERG <wl@gnu.org>
8781 Invert current behaviour: Search first FOOBAR.tmac, then
8784 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8785 (open_mac_file, macro_source): Implement it.
8786 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8787 doc/groff.texinfo, NEWS: Document it.
8789 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8790 Small documentation improvements.
8792 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8795 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8797 2000-10-24 Werner LEMBERG <wl@gnu.org>
8799 Add local tmac directory (groff/site-tmac).
8801 * Makefile.in: Add $(localtmacdir).
8802 (uninstall_dirs): Add $(localtmacdir).
8803 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8804 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8805 in $(localtmacdir). Create $(localtmacdir).
8806 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8807 Updated and minor fixes.
8809 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8811 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8813 2000-10-23 Werner LEMBERG <wl@gnu.org>
8815 Move hyphen.us to tmac directory.
8817 * src/roff/troff/hyphen.us: Removed.
8818 * src/tmac/hyphen.us: Added.
8819 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8821 Change installation structure for data files from .../groff/... to
8822 .../groff/<version><revision>/... to be conform with other GNU
8825 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8826 doc/Makefile: Implement it.
8827 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8828 * configure: Updated.
8829 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8830 * NEWS: Document it.
8831 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8832 @MACRODIR@ instead of hard-coded directories.
8834 2000-10-22 Werner LEMBERG <wl@gnu.org>
8836 Implement $GROFF_BIN_PATH environment variable (which defaults to
8837 $bindir) used for child programs of groff and similar wrappers.
8839 * gendefs.sh: Improve documentation.
8840 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8841 src/preproc/eqn/Makefile.sub (neqn),
8842 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8843 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8845 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8846 $GROFF_PATH__ (the latter for communication with troff).
8847 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8849 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8850 doc/groff.texinfo: Document it.
8852 * doc/groff.texinfo: Improve documentation of troff's -a option.
8854 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8856 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8857 non-intrusive eol marker.
8858 (troff_output_file::determine_line_limits): New function.
8859 (troff_output_file::draw): Use it.
8860 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8861 output_pending_lines() instead of output_line().
8862 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8863 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8864 createImage): Small fixes.
8866 2000-10-14 Werner LEMBERG <wl@gnu.org>
8868 Replace tmac.safer with a real secure solution.
8870 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8871 system_request, pipe_output): Disable requests if in safer mode.
8872 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8873 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8874 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8875 doc/groff.texinfo, src/roff/groff/groff.man,
8876 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8878 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8879 (resource_manager::output_prolog): Replace setenv() with putenv().
8881 2000-10-09 Werner LEMBERG <wl@gnu.org>
8883 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8884 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8885 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8886 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8887 compilation errors with some compilers. It seems that this code
8888 is no longer necessary -- if yes, it is easy to add some #ifdef's
8889 for that particular old-fashioned compiler.
8891 * MORE.STUFF: Added info about Meta-tbl.
8893 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8895 2000-10-07 Werner LEMBERG <wl@gnu.org>
8897 Adding a new escape sequence \B'...': If the string between
8898 the delimiters is a valid numeric expression, return the character
8899 `1', and `0' otherwise. This is an analogon to \A.
8901 * src/roff/troff/input.cc (do_expr_test): Implement it.
8902 (token::next): Use it.
8903 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8905 * tmac/tmac.trace: Made independent from escape character.
8907 2000-10-06 Werner LEMBERG <wl@gnu.org>
8909 Adding a new request .dei: define indirect. The first and second
8910 parameter of .dei are taken from string registers instead directly;
8911 this very special request is needed to make tmac.trace independent
8912 from the escape character (which might even be disabled).
8914 * src/roff/troff/input.cc (do_define_macro): Implement it.
8915 (define_macro_indirect): New function.
8916 (init_input_requests): Use it.
8918 Adding two requests .ecs and .ecr: Save and restore the escape
8919 character. These two requests are needed to make tmac.trace
8920 independent from the escape character (which might even be
8923 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8925 (init_input_requests): Use it.
8927 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8929 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8931 Adding a new option -P and new environment variable GROPS_PROLOGUE
8932 to grops, selecting a different prologue file (minor modifications
8935 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8936 src/devices/grops/ps.cc (main): Implement it.
8937 * src/devices/grops/grops.man, NEWS: Document it.
8939 2000-09-22 Werner LEMBERG <wl@gnu.org>
8941 * INSTALL: Add info about selecting paper format.
8943 2000-09-21 Werner LEMBERG <wl@gnu.org>
8945 * src/roff/troff/input.cc (main): Fixing compiler warning.
8946 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8947 strings.h from the former to the latter.
8948 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8949 stuff from the former to the latter.
8951 2000-09-11 Werner LEMBERG <wl@gnu.org>
8953 Implementing two new requests .tm1 and .tmc: The former is similar
8954 to .tm but can output leading spaces; its syntax is similar to
8955 defining a string, i.e., a `"' can be used to mark the beginning of
8956 the string to be written to stderr: `.tm1 " test'. The latter is
8957 similar to .tm1 but doesn't write out a final newline character.
8959 * src/roff/troff/input.cc (terminal1, terminal_continue,
8960 do_terminal): New functions.
8961 (init_input_requests): Use them.
8962 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8964 2000-09-09 Werner LEMBERG <wl@gnu.org>
8966 * tmac/groff_mdoc.samples.man: Small fixes.
8968 2000-09-08 Werner LEMBERG <wl@gnu.org>
8970 * tmac/groff_mdoc.man: Fixing typo.
8972 2000-09-02 Werner LEMBERG <wl@gnu.org>
8974 Implementing a .nop request which does nothing.
8976 * src/roff/troff/input.cc (nop_request): New function.
8977 (init_input_requests): Use it.
8978 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8980 2000-09-01 Werner LEMBERG <wl@gnu.org>
8982 * doc/groff.texinfo: Added some comments.
8984 2000-08-30 Werner LEMBERG <wl@gnu.org>
8986 * src/roff/troff/TODO: Updated.
8988 2000-08-25 Werner LEMBERG <wl@gnu.org>
8990 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8992 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8994 * font/devps/generate/Makefile (SHELL): Define explicitly to
8995 "/bin/sh", for non-Unix platforms.
8996 (extraclean): Use a more portable "" quoting instead of a
8997 backslash (which doesn't work on DOS/Windows).
8999 * font/devlj4/generate/Makefile (extraclean): Ditto.
9001 * font/devdvi/generate/Makefile (extraclean): Ditto.
9003 2000-08-25 Werner LEMBERG <wl@gnu.org>
9005 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9006 src/roff/troff/troff.man: Document Eli's latest changes.
9008 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9010 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9011 macro file names of the form NAME.tmac as well as tmac.NAME.
9013 2000-08-25 Werner LEMBERG <wl@gnu.org>
9015 * src/include/posix.h: Remove definition of FILENAME_MAX.
9017 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9018 `sys_fatal' and `stop' function().
9020 * test-groff: Updated.
9022 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
9024 Added the new troff command .output <arg> to suppress output (while
9025 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9026 registers (for passing the output dimensions to the output device).
9028 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9030 * src/roff/troff/node.h, src/roff/troff/node.cc
9031 (troff_output_file::really_print_line,
9032 ascii_output_file::really_print_line,
9033 supress_output_file::really_print_line): Use `width' parameter.
9034 (troff_output_file::really_on, troff_output_file::really_off,
9035 output_file::on, output_file::off, real_output_file::on,
9036 real_output_file::off, real_output_file::really_on,
9037 real_output_file::really_off): New functions.
9038 (real_output_file:public output_file): New variable `output_on'.
9039 (real_output_file::begin_page, real_output_file::copy_file,
9040 real_output_file::transparent_char, real_output_file::print_line):
9042 (real_output_file::print_line): Use check_output_limits.
9043 * src/roff/troff/reg.h, src/roff/troff/request.h,
9044 src/roff/troff/input.cc (assign_registers): New function to remove
9046 (do_ps_file): Use it.
9047 (check_output_limits, reset_output_registers, output_request,
9048 init_output_requests): New functions.
9049 (init_input_requests): Updated.
9051 Added new grohtml2 device and html2 preprocessor (coding
9052 not yet finished) which will eventually replace grohtml.
9054 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9056 * src/include/htmlindicate.h, src/include/htmlindicate
9057 (html_begin_suppress, html_end_suppress): New functions.
9058 * src/preproc/tbl/main.cc: Use it.
9059 * src/roff/groff/groff.cc: Add support for html2 device (which will
9060 automatically invoke the html2 preprocessor).
9061 * src/roff/troff/input.cc (is_html2): New variable.
9062 * src/roff/troff/troff.h, src/roff/troff/env.h,
9063 src/roff/troff/env.cc (environment::add_html_tag): New function
9065 (environment::do_break): Use it.
9066 * font/devhtml2/*: New files.
9067 * src/devices/grohtml2: New device.
9068 * src/preproc/html2: New preprocessor.
9069 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9071 2000-08-23 Werner LEMBERG <wl@gnu.org>
9073 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9075 2000-08-22 Werner LEMBERG <wl@gnu.org>
9077 * src/include/lib.h: Provide a fix for IRIX to not include
9080 2000-08-18 Werner LEMBERG <wl@gnu.org>
9082 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9083 since some non-GNU sed programs can't handle null regexps.
9084 * configure, src/preproc/eqn/Makefile.sub,
9085 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9087 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9088 bug (string.h and strings.h are both needed according to latest
9091 * MORE.STUFF: Added info about unroff and troffcvt.
9093 2000-08-08 Werner LEMBERG <wl@gnu.org>
9095 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9098 * tmac/tmac.man.old: Remove unused number register.
9100 * tmac.doc: Minor documentation fix.
9102 2000-08-07 Paul Eggert <eggert@twinsun.com>
9104 * src/roff/groff/pipeline.c (is_system_shell):
9105 Fix typo: "monocased_shell" no longer exists.
9107 2000-08-07 Paul Eggert <eggert@twinsun.com>
9109 Remove FILENAME_MAX limits.
9111 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9112 that the argument length is less than FILENAME_MAX.
9113 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9114 Use struct hack to allocate and free file name.
9115 (struct xtmpfile_list): fname is now part of the structure,
9116 not a pointer to another string.
9118 2000-08-07 Tom Schmidt <tschmidt@micron.com>
9120 * src/include/posix.h: Add a default value for FILENAME_MAX.
9122 2000-08-06 Paul Eggert <eggert@twinsun.com>
9124 Add support for new BSD-style man pages (with ".Dd" instead of
9125 ".TH"), so that "groff -man" understands both styles, even
9126 when running "groff -man" on a host whose system man page
9127 macros don't support ".Dd".
9129 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9130 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9131 in case the system man macros don't define Dd or TH.
9133 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9134 * tmac/tmac.an: New one-line file.
9135 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9137 2000-08-06 Werner LEMBERG <wl@gnu.org>
9139 * src/roff/troff/troff.man: Fixing typos.
9141 Version 1.16.1 released
9142 =======================
9144 2000-07-31 Werner LEMBERG <wl@gnu.org>
9146 Preparing release 1.16.1.
9148 * REVISION: Revision number set to 1.
9149 * MORE.STUFF: Added info about port to DOS.
9150 * NEWS, win32-diffs: Updated.
9152 * src/include/nonposix.h: Remove first line -- this file is used
9155 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9158 2000-07-30 Werner LEMBERG <wl@gnu.org>
9160 * doc/texinfo.tex: Update to latest version.
9162 2000-06-28 Paul Eggert <eggert@twinsun.com>
9164 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9165 commands that fail. Don't assume that "export a=b" is valid shell
9166 syntax. This is needed for Solaris 2.5.1.
9168 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9169 comment about missing Solaris headers.
9171 * PROBLEMS: Add section about problems with Sun Make and VPATH.
9173 2000-06-25 Werner LEMBERG <wl@gnu.org>
9175 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9178 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9180 * win32-diffs: Updated.
9181 * README.WIN32: Added CRs to make all Windows editors happy.
9183 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9184 src/roff/groff/pipeline.c).
9186 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9188 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9189 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9191 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
9193 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9194 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9196 (main): Support non-Posix systems with several different styles of
9197 slash characters in file names.
9199 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9200 (main) [SET_BINARY]: Switch stdin into binary mode.
9202 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9203 (main): Support file names with several possible slash-type
9204 characters, as given by DIR_SEPS[] in nonposix.h.
9205 (main) [__MSDOS__]: If renaming the temporary index file fails
9206 because it has more than one dot in its trunk, replace the dot
9207 with an underscore and try again.
9208 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
9210 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9212 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9213 (File::File): Open the input file in binary mode. Strip CR
9214 characters from each CR-LF pair.
9215 (xbasename): Support file names with several possible slash-type
9216 characters, as given by DIR_SEPS[] in nonposix.h.
9218 * src/include/Makefile.sub (HDRS): Add nonposix.h.
9220 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9221 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9222 [!_POSIX_VERSION]: Define for traditional Unix systems.
9223 (real_output_file::real_output_file): Remove the MSVC-specific
9224 call to popen, use instead POPEN_WT, appropriately defined on
9225 nonposix.h. #include nonposix.h.
9226 (real_output_file::~real_output_file): Remove the MSVC-specific
9227 call to pclose, a suitable macro is now defined on nonposix.h.
9228 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9229 and WEXITSTATUS instead of assuming traditional Unix
9230 interpretation of the status returned by pclose.
9232 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9233 call to popen, use POPEN_RT instead (appropriately defined on
9234 nonposix.h). #include nonposix.h.
9235 (ps_bbox_request): Open the PostScript file in binary mode.
9236 Close the file after processing it.
9237 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9240 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9241 A version of run_pipeline that doesn't use `fork'.
9242 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9243 (system_shell_name, system_shell_dash_c)
9244 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9245 the ugliness of testing DOS/Windows file names for equality, and
9246 support both stock shells and ports of Unix shells.
9248 * src/roff/groff/groff.cc: #include nonposix.h.
9249 (BSHELL): Definition moved to nonposix.h.
9250 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
9251 instead of a literal "-c".
9252 (xbasename): Support file names with several possible slash-type
9253 characters, as given by DIR_SEPS[] in nonposix.h.
9254 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9257 * src/preproc/soelim/soelim.cc: #include nonposix.h.
9258 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9260 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9263 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9265 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9268 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9270 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9271 P_tmpdir is defined, use it instead of the literal "/tmp".
9272 (remove_tmp_files, add_tmp_file): New functions.
9273 (xtmpfile): Record temporary files and register an atexit function
9274 to delete them explicitly, instead of relying on the OS to do
9275 that, which doesn't work on non-Unix systems.
9277 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9278 (search_path::search_path): Use PATH_SEP instead of a literal
9280 (search_path::command_line_dir): Ditto.
9281 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9282 to support non-Posix systems.
9284 * src/libs/libbib/search.cc: #include nonposix.h.
9285 (search_list::add_file): Open the file in binary mode.
9287 * src/libs/libbib/linear.cc: #include nonposix.h.
9288 (file_buffer::load): Remove \r characters preceding \n from the
9291 * src/libs/libbib/index.cc: #include nonposix.h.
9292 (make_index_search_item): Open index_filename in O_BINARY mode.
9293 (index_search_item_iterator::get_tag): Ditto. Remove \r
9294 characters before \n characters.
9295 (index_search_item::check_files): Open files in binary mode.
9296 (index_search_item::munge_filename): Support DOS-style file names
9297 with backslashes and drive letters, use IS_ABSOLUTE.
9299 * src/devices/grops/ps.cc: #include nonposix.h.
9300 (main) [SET_BINARY]: Switch stdout to binary mode.
9302 * src/devices/grolj4/lj4.cc: #include nonposix.h.
9303 (main) [SET_BINARY]: Switch stdout to binary mode.
9305 * src/devices/grolbp/lbp.cc: #include nonposix.h
9306 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9308 * src/devices/grodvi/dvi.cc: #include nonposix.h.
9309 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9311 (main) [SET_BINARY]: Switch stdout to binary mode.
9312 [_MSC_VER]: Remove an explicit call to _setmode.
9314 * src/include/nonposix.h: New file.
9316 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9317 operation when building with DJGPP.
9318 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9319 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9322 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9324 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9325 etc. can include a semi-colon on DOS/Windows.
9326 (depend.temp): Use depend1.temp instead of depend.temp1, to
9327 prevent files from overerwiting each other on 8+3 filesystems.
9329 * gendef.sh (t): Change definition to work with DOS/Windows.
9331 doc/groff.texinfo: Apart of some typo corrections, I also changed
9332 some index entris, to make them more non-ambiguous, and also put
9333 @ignore around some parts that are not yet written, to allow the
9334 Info output be readable.
9336 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
9338 Replaced specific checks for function declarations with a generic
9339 routine taken from GNU bfd.
9341 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9342 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9343 * configure.in: Use it.
9344 * src/devices/grolbp/lbp.cc, src/include/lib.h,
9345 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9346 src/roff/groff/groff.cc: Use it.
9347 * Makefile.in, configure: Updated.
9349 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
9351 * src/devides/grolbp/lbp.h: Removed unused variables.
9353 2000-05-31 Keith Thompson <kst@sdsc.edu>
9355 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9358 2000-05-31 Werner LEMBERG <wl@gnu.org>
9360 * aclocal.m4 (GROFF_SRAND): New function to test the return value
9361 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9362 * configure.in: Use it.
9363 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9364 * configure, Makefile.in: Updated.
9366 * configure.in: Add test for strncasecmp().
9367 * src/include/lib.h: Use it.
9369 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
9371 * src/preproc/grn/Makefile.sub: Add MLIB.
9373 2000-05-29 Nix <nix@esperi.demon.co.uk>
9375 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9377 2000-05-29 Werner LEMBERG <wl@gnu.org>
9379 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9381 * PROBLEMS: Small update.
9383 * src/devices/grolbp/lbp.cc: Various small fixes.
9385 2000-05-28 Keith Thompson <kst@sdsc.edu>
9387 * src/roff/nroff/nroff.sh: Fix main loop syntax.
9389 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9391 2000-05-25 Werner LEMBERG <wl@gnu.org>
9393 * man/roff.man: Removed unused macro.
9395 2000-05-24 Werner LEMBERG <wl@gnu.org>
9397 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
9398 This is needed e.g. if you do
9399 `make distclean; ./configure; make dist'.
9401 Version 1.16 released
9402 =====================
9404 2000-05-23 Werner LEMBERG <wl@gnu.org>
9406 Adding font CWI (constant width italic) to devdvi.
9408 * font/devdvi/CWI: New file.
9409 * font/devdvi/generate/Makefile: Add generating rule.
9410 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9411 tmac/tmac.dvi: Use it.
9412 * NEWS: Announce it.
9414 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9415 * font/devlj4/generate/Makefile: Cosmetic changes only.
9417 * man/groff.man: Removed most of the redundant description of
9418 special characters (which is in groff_char.man). Added font
9419 translation CB->CR for devdvi. Other minor fixes.
9421 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9422 (registered) symbols.
9424 2000-05-22 Werner LEMBERG <wl@gnu.org>
9426 * doc/Makefile: Added rule for creating info files.
9428 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
9430 * font/devdvi/generate/Makefile: Fixed dependencies.
9432 * font/devps/*: Regenerated. Heavy changes for Bookman and
9433 NewCentury Schoolbook!
9434 * font/devps/generate/afmname: Will now run with GNU awk.
9435 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9436 * font/devps/generate/Makefile: Cosmetic changes only.
9438 2000-05-21 Werner LEMBERG <wl@gnu.org>
9440 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9441 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
9442 `.SS' now produces a heading with a smaller size than `.SH'.
9443 Completely formatted.
9444 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9446 * man/groff.man: Improved table appearance. Use of `eo' request
9447 to reduce number of doubled backslashes in macro definitions.
9448 Replacing `\e' with `\(rs'. Other minor fixes.
9450 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9451 to have correct line number.
9453 * INSTALL: Small improvement.
9455 2000-05-20 Bernd Warken <bwarken@mayn.de>
9457 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9460 2000-05-19 Bernd Warken <bwarken@mayn.de>
9462 * man/groff.man: Complete update (with a lot of corrections by WL).
9464 2000-05-18 Werner LEMBERG <wl@gnu.org>
9466 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9468 * font/*/*: Implement it.
9469 * man/groff_char.man, NEWS: Document it.
9471 * src/include/unix.h: Removed. It isn't used.
9473 * doc/groff.texinfo: Slight improvements.
9475 2000-05-17 Werner LEMBERG <wl@gnu.org>
9477 * README, win32-diffs: Small fixes and improvements.
9479 2000-05-16 Werner LEMBERG <wl@gnu.org>
9481 * FDL: New file (the Free Documentation License version 1.1).
9483 * doc/groff.texinfo: Added many start-up values for gtroff.
9484 Some structural improvements of the source code.
9486 2000-05-15 Werner LEMBERG <wl@gnu.org>
9488 * src/roff/troff/input.cc: Added small comment about troffrc-end.
9489 * src/roff/troff/troff.man: Added info about troffrc-end.
9491 2000-05-14 Werner LEMBERG <wl@gnu.org>
9493 * Makefile.in (EXTRADIRS): Fix typos.
9494 (dist): Handle deletion of old .tar.gz file correctly.
9495 (DISTDIRS): Include all tty output devices.
9497 * doc/groff.texinfo: Adding more cross references; countless other
9500 2000-05-13 Werner LEMBERG <wl@gnu.org>
9502 * MORE.STUFF: Added Robert Marks's utilities.
9504 2000-05-12 Werner LEMBERG <wl@gnu.org>
9506 Added win32 port contributed by Blake McBride
9507 <blake@florida-software.com>.
9509 * README.WIN32, win32-diffs: New files.
9512 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9513 (tmove, tmove2): Added parentheses to avoid compiler warnings.
9514 (change): Removed unused variables.
9516 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9517 (savebounds): Changed return value from `int' to `void'.
9518 * src/preproc/grn/hdb.cc: Ditto.
9520 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9521 final backslash in comment to avoid compiler warning.
9523 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9525 * doc/groff.texinfo: More fixes.
9527 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
9529 * tmac/tmac.doc: Documentation fix.
9531 2000-05-11 Werner LEMBERG <wl@gnu.org>
9533 * doc/groff.texinfo: Reading the source code shows up a lot of
9534 omissions and incorrect data... More conversion to @Deffn macros.
9536 2000-05-10 Werner LEMBERG <wl@gnu.org>
9538 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9541 * src/roff/troff/request.h: Removing unused `no_break_flag'.
9543 2000-05-09 Werner LEMBERG <wl@gnu.org>
9545 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9548 * doc/groff.texinfo: Extended history section. More conversion to
9549 @Deffn macros. More .tr documentation.
9551 2000-05-07 Werner LEMBERG <wl@gnu.org>
9553 * doc/groff.texinfo: Completed tab section. Added info about
9556 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
9558 * PROBLEMS: Describe configure script fix for OS/390 Unix.
9560 2000-05-05 Werner LEMBERG <wl@gnu.org>
9562 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9564 * NEWS: Document it.
9566 * man/troff.man: Minor optical improvements.
9568 2000-05-03 Werner LEMBERG <wl@gnu.org>
9570 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9572 * font/*/*: Implement it.
9573 * man/groff_char.man, NEWS: Document it.
9575 2000-05-02 Werner LEMBERG <wl@gnu.org>
9577 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9579 * NEWS: Document the three new man pages.
9581 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9582 * configure: Updated.
9584 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9586 2000-05-01 Werner LEMBERG <wl@gnu.org>
9588 Added grap support to grog.
9590 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9591 * src/roff/grog/grog.man: Document it.
9593 * doc/groff.texinfo, NEWS: Add info about grap support.
9595 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9596 (with slight fixes by me).
9598 * tmac/groff_tmac.man: New file documenting tmac mechanism.
9599 * tmac/Makefile.sub: Add groff_tmac.man.
9600 * man/roff.man: New file giving overview of roff system.
9601 * man/troff.man: A short reference of troff.
9602 * man/Makefile.sub: Add roff.man and troff.man.
9604 2000-04-30 Werner LEMBERG <wl@gnu.org>
9606 Added grap support to groff.
9608 * src/roff/groff/groff.cc: Implement it.
9609 * src/roff/groff/groff.man: Document it.
9611 * src/devices/grotty/grotty.man: Add cp1047 device.
9612 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9614 * src/roff/groff/groff.man: Ditto.
9615 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9616 * doc/groff.texinfo: Ditto.
9618 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9621 2000-04-29 Werner LEMBERG <wl@gnu.org>
9623 * man/groff_char.man: Add `pc' glyph.
9624 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9625 * tmac/tmac.tty: Add `pc' glyph.
9626 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
9627 we use cp1047 output device.
9629 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9630 there are still hardcoded latin1->unicode values in utf8's font
9632 * configure: Updated.
9633 * NEWS: Minor clarification. Updated.
9635 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
9638 2000-04-28 Werner LEMBERG <wl@gnu.org>
9640 Adding EBCDIC code page 1047.
9642 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9643 font/devcp1047/DESC.proto: New files.
9645 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9646 either ascii/latin1 or cp1047.
9647 * Makefile.in: Use it.
9648 * configure: Updated.
9650 Replacing and/or adding `md' (mathdot) glyph with `pc'
9651 (periodcentered) in all text fonts.
9653 * font/*/*: Change it.
9655 2000-04-27 Werner LEMBERG <wl@gnu.org>
9657 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9659 * configure.in: Add check for strings.h.
9660 * src/include/driver.h: Use HAVE_STRINGS_H.
9661 * src/devices/grolbp/lpb.cc: Remove string.h.
9663 * src/include/groff-getopt.h: New file. It will be used instead of
9664 getopt.h (to be included in lib.h) to avoid endless problems with
9665 picky C++ compilers.
9666 * src/include/lib.h: Use groff-getopt.h.
9667 * src/include/Makefile.sub: Updated.
9669 * configure: Updated.
9670 * Makefile.in: Updated.
9672 * NEWS: Mention EBCDIC support.
9674 2000-04-26 Werner LEMBERG <wl@gnu.org>
9676 * TODO: Some additions.
9678 2000-04-25 Werner LEMBERG <wl@gnu.org>
9680 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9683 2000-04-23 Werner LEMBERG <wl@gnu.org>
9685 * src/roff/troff/troff.man: Minor fixes.
9687 2000-04-22 Werner LEMBERG <wl@gnu.org>
9689 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9690 `.T' string register and the incompatible definition of the `.T'
9691 number register (compared to Unix troff).
9693 * man/groff_char.man: Add some missing characters.
9694 * font/devutf8/NOTES: Update.
9696 2000-04-21 Werner LEMBERG <wl@gnu.org>
9698 * src/include/htmlindicate.h, src/include/lib.h,
9699 src/include/posix.h: Fix copyright.
9701 * src/include/Makefile.sub: Update.
9703 2000-04-20 Werner LEMBERG <wl@gnu.org>
9705 * src/roff/troff/input.cc (input_char_description): Removing
9706 superfluous space char.
9708 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9710 * doc/groff.texinfo: Document EBCDIC.
9712 2000-04-19 Werner LEMBERG <wl@gnu.org>
9714 Introducing `shc' as the glyph name for the soft hyphen character.
9716 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9717 font/devlatin1/R.proto: Use it.
9721 2000-04-18 Werner LEMBERG <wl@gnu.org>
9723 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9724 dependency on ASCII order.
9726 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
9728 * src/libs/libgroff/illegal.c: Added EBCDIC table.
9729 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9731 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9732 to increase portability.
9734 2000-04-15 Werner LEMBERG <wl@gnu.org>
9736 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9737 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9738 the generic `\n' if under OS/390 Unix.
9740 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9742 * configure: Regenerated.
9744 2000-04-14 Werner LEMBERG <wl@gnu.org>
9746 * doc/groff.texinfo: More conversions to @Deffn.
9748 2000-04-12 Werner LEMBERG <wl@gnu.org>
9750 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9753 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9755 2000-04-10 Werner LEMBERG <wl@gnu.org>
9757 * doc/groff.texinfo: More conversions to @Deffn.
9759 2000-04-08 Werner LEMBERG <wl@gnu.org>
9761 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9762 Updated to latest version (glibc 2.1.3).
9764 2000-04-07 Werner LEMBERG <wl@gnu.org>
9766 * doc/Makefile (clean): Include more index files.
9767 Add rule texinfo->dvi.
9769 2000-04-05 Werner LEMBERG <wl@gnu.org>
9771 * doc/groff.texinfo: Added new index `op' for operators. More
9772 info on end of sentence characters. More use of @Deffn.
9774 2000-03-30 Werner LEMBERG <wl@gnu.org>
9776 * */*.man: Adding a note that a whitespace can be inserted between
9777 a command line option and its parameter -- we are using GNU getopt.
9779 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9781 2000-03-28 Werner LEMBERG <wl@gnu.org>
9783 Correct anachronism of calling the man macro file with `-man'
9784 instead of `-m man' etc.
9786 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9787 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9788 load tmac.<package>.
9790 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9794 * doc/groff.texinfo: Updated.
9796 * tmac/groff_man.man: Copyright added.
9798 2000-03-27 Werner LEMBERG <wl@gnu.org>
9800 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9801 typeset the request resp. escape name with a tt font -- due to a
9802 bug in texinfo.tex it is necessary to use the `-e' switch with
9805 Improving info about usage of groff units.
9809 2000-03-20 Werner LEMBERG <wl@gnu.org>
9811 * doc/groff.texinfo: Added section about man macro package
9812 (I've basically taken groff_man.man). Introducing new indices `ma'
9813 for macros/strings and `gl' for glyph names. Other minor fixes.
9815 * tmac/groff_man.man: Fixed some typos.
9817 2000-03-19 Werner LEMBERG <wl@gnu.org>
9819 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9822 * doc/texinfo.tex: New file.
9824 2000-03-18 Werner LEMBERG <wl@gnu.org>
9826 * doc/groff.texinfo: Improved section on number registers. Other
9829 2000-03-16 Werner LEMBERG <wl@gnu.org>
9831 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9834 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9835 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9836 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9837 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9839 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9841 * src/roff/grog/grog.man: Updated copyright date.
9843 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9845 * configure.in: Added test for strdup.
9847 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9850 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9854 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9856 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9858 2000-03-11 Werner LEMBERG <wl@gnu.org>
9860 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9862 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9863 * src/include/lib.h: Remove some spaces.
9865 2000-03-10 Werner LEMBERG <wl@gnu.org>
9867 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9868 initializers from arguments (some compilers don't like this).
9870 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9872 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9873 used by pic and eqn to tell grohtml where the graphic regions start
9875 * src/libs/libgroff/Makefile.sub: Use it.
9876 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9877 graphic_start() and graphic_end() from htmlindicate.cc.
9879 2000-03-09 Werner LEMBERG <wl@gnu.org>
9881 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9882 * tmac/groff_man.man: More fixes.
9884 2000-03-08 Werner LEMBERG <wl@gnu.org>
9886 * doc/Makefile: Added texput.log to the `clean' target.
9887 * doc/groff.texinfo: Added info about delimiters for escapes.
9889 2000-03-08 Bernd Warken <bwarken@mayn.de>
9891 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9892 other graphic formats.
9894 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9896 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9897 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9898 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9901 2000-03-07 Werner LEMBERG <wl@gnu.org>
9903 * doc/groff.texinfo: Spelling fixes.
9905 2000-03-06 Werner LEMBERG <wl@gnu.org>
9907 * tmac/groff_man.man: Completely revised to cover everything in
9910 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9911 Other minor fixings.
9912 * src/roff/troff/env.cc (environment_copy): Improve error message and
9914 * src/roff/troff/TODO: Updated.
9916 * doc/Makefile: Bug fixes -- this is still provisional, though...
9918 * tmac/eqnrc: Small fixes.
9920 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9922 Adding a request `evc' to copy environments.
9924 * src/roff/troff/env.cc (environment::copy, environment_copy):
9926 * src/roff/troff/env.h: Add prototype.
9928 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9930 Adding strsep() -- Solaris 8 doesn't have it.
9932 * configure.in: Test it.
9933 * src/devices/grolbp/lbp.cc: Add code.
9935 2000-03-05 Werner LEMBERG <wl@gnu.org>
9937 * src/roff/troff/div.cc (macro_diversion::output,
9938 top_level_diversion::output): Fixing an incompatibility with
9939 original troff: \x'0' updates the .a register also. Thanks to
9940 <Andries.Brouwer@cwi.nl> for pointing this out.
9941 * doc/groff.texinfo: Document it.
9943 * Makefile.in: Create Makefile.dep if necessary before calling the
9944 submake process to avoid warning about nonexistent file.
9946 * NEWS, PROJECTS: Updated.
9948 2000-03-04 Werner LEMBERG <wl@gnu.org>
9950 * tmac/troffrc: Add tmac.lbp.
9952 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9954 * tmac/tmac.lbp: New file.
9955 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9958 2000-03-03 Werner LEMBERG <wl@gnu.org>
9960 * Makefile.in: Fixing $(subdir).
9962 * README, NEWS: Small fixes.
9964 * test-groff: Adding path to grolbp.
9966 * configure.in: The (new) file src/xditview/Imakefile.in will be
9967 also configured -- it is now possible to build gxditview in a
9968 directory different from $srcdir.
9970 2000-03-02 Blake McBride <blake@florida-software.com>
9972 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9974 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9976 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9978 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9981 2000-02-29 Werner LEMBERG <wl@gnu.org>
9983 Adding GNU getopt to the groff distribution.
9985 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9987 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9988 * aclocal.a4: Remove GROFF_GETOPT function.
9989 * configure.in, Makefile.in, PROBLEMS: Update.
9990 * src/include/lib.h: Replace getopt tests with getopt.h.
9991 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9993 * doc/groff.texinfo: Further checking/updating. Adding more index
9996 * man/groff_out.man: Fix nroff mode activation (for emacs).
9997 * man/groff_font.man: Add missing ligature.
9999 2000-02-28 Werner LEMBERG <wl@gnu.org>
10001 * doc/groff.texinfo: Further checking/updating. Adding more index
10004 * src/devices/grolbp/grolbp.man: Added a comment line at the
10005 beginning of the file (similar to shell scripts) which indicates
10006 that `tbl' should be used as a preprocessor.
10008 2000-02-27 Blake McBride <blake@florida-software.com>
10010 Adapting groff to MS Visual C++ 6.0 compiler (tested with
10011 Windows NT 4.0). Uses _MSC_VER define where necessary.
10013 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10014 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10015 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10016 src/include/lib.h, src/libs/libgroff/errarg.cc,
10017 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10018 src/preproc/refer/label.y, src/preproc/refer/label.cc,
10019 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10020 src/roff/troff/div.cc, src/roff/troff/env.cc,
10021 src/roff/troff/input.cc, src/roff/troff/node.cc,
10022 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10023 if_to_a() to avoid name clashes.
10024 * src/include/posix.h: Don't use unistd.h.
10025 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10026 clause for integrating non-Unix xtmpfile() code.
10027 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10028 structure; use "rt" for popen() in pipe_source(); add getpid()
10030 * src/roff/troff/node.cc: Use special versions of popen() in
10031 real_output_file() and pclose() in ~real_output_file().
10033 2000-02-27 Werner LEMBERG <wl@gnu.org>
10035 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10036 LBP-8 series laser printers). This code has been contributed by
10037 Francisco Andrés Verdú <pandres@dragonet.es>.
10039 * src/devices/grolbp/*: The grolbp output device.
10040 * font/devlpb/*: The font description files.
10041 * Makefile.in: Add grolpb and devlbp subdirectories.
10043 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10044 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10047 * doc/groff.texinfo: Further checking/updating. Adding more index
10052 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10054 * man/groff_font.man: Adding info about obsolete DESC keywords.
10055 * src/devices/grolj4/grolj4.man: Documenting additional DESC
10058 2000-02-26 Werner LEMBERG <wl@gnu.org>
10060 * src/preproc/grn/grn.man: Added info about the gremlin file format
10061 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10063 2000-02-25 Werner LEMBERG <wl@gnu.org>
10065 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10066 friends to be non-integer.
10068 * src/preproc/grn/grn.man: Document it.
10070 * doc/groff.texinfo: Further checking/updating. Adding more index
10073 2000-02-24 Werner LEMBERG <wl@gnu.org>
10075 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10076 line thicknesses to be integer multiples of this value.
10078 * src/preproc/grn/grn.man: Commenting out the -s option -- the
10079 corresponding code doesn't work (yet).
10081 * doc/groff.texinfo: Further checking/updating. Adding more index
10084 2000-02-23 Werner LEMBERG <wl@gnu.org>
10086 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10087 specify line thickness instead of base units. The new default
10088 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10089 thick lines respectively.
10091 Removed unused variable `prevval'.
10093 * src/preproc/grn/grn.man: Updated.
10095 2000-02-22 Werner LEMBERG <wl@gnu.org>
10097 * src/preproc/grn/main.cc: Slight formatting.
10099 * src/roff/groff/groff.man: Formatting fix.
10100 * src/preproc/grn/grn.man: Ditto.
10102 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10104 * doc/groff.texinfo: Further checking/updating.
10106 2000-02-21 Werner LEMBERG <wl@gnu.org>
10108 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10110 * test-groff: Added grn subdir to path.
10112 * doc/groff.texinfo: Some restructing and other small improvements.
10114 * src/roff/groff/groff.cc (help): Fixed info string.
10116 2000-02-20 Werner LEMBERG <wl@gnu.org>
10118 * doc/meref.me: Fix description of .GS request.
10120 * src/roff/troff/troff.man: Fixing typo.
10122 Adding the `grn' preprocessor for gremlin graphic files.
10124 * src/preproc/grn/*: This is the Berkeley distribution written by
10125 David Slattengren and Barry Roitblat, adapted to groff by Daniel
10126 Senderowicz and Werner Lemberg.
10128 * doc/grnexampl.{me,g}: A sample for grn.
10130 * Makefile.in: Added subdirectory entry for grn.
10132 * src/roff/groff/groff.cc: Added support for grn. It can be now
10133 called with the switch `-g'.
10135 * src/roff/groff/groff.man: Updated.
10137 * src/roff/grog/grog.{man,pl,sh}: Updated.
10141 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
10143 * src/include/lib.h: Added xtmptemplate and made xtmpfile
10144 parametrically polymorphic.
10146 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10147 and the alterations to xtmpfile.
10148 xtmpfile can be requested to return the filename created
10149 and asked not to unlink the temp file. The default behaviour
10150 if parameters are absent is exactly the same as before.
10152 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
10154 A new request `length' is available which returns the length of a
10155 string in a number register:
10157 * src/roff/troff/input.cc (length_macro): Implement it.
10158 * src/roff/troff/input.cc (init_input_requests): Register it.
10160 2000-02-11 Werner LEMBERG <wl@gnu.org>
10162 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10163 of the `substring' request.
10165 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10168 * src/roff/troff/TODO, NEWS: Updated.
10170 2000-02-09 Werner LEMBERG <wl@gnu.org>
10172 * src/roff/groff/groff.man: Added an example.
10174 2000-02-06 Werner LEMBERG <wl@gnu.org>
10176 I've considerably modified the directory structure of the
10177 distribution to get a more vertical layout. For example, the number
10178 of top level directories has been reduced from 42 to 6.
10180 As a consequence, many changes, especially to the makefiles, were
10183 * The makefile variables `top_builddir' and `top_srcdir' have been
10184 introduced. Virtually all relative paths have been replaced with
10185 absolute ones using these two variables.
10187 * Dependencies (in the files `Makefile.dep') are no longer part of
10188 the distribution. Instead, they are created during a `make install'
10189 in the build directory.
10191 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10192 make `top_srcdir' and `top_builddir' absolute.
10194 Some other changes:
10196 * Man pages now depend on the files `VERSION' and `REVISION'.
10198 * The added shell script `mkinstalldirs' will replace `mkdir' in
10201 * VERSION: Version number increased to 1.16.
10203 2000-02-04 Werner LEMBERG <wl@gnu.org>
10205 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10207 * Makefile.in: Removed $(tmac_m) since it is no longer needed
10208 (after an update of the mm stuff).
10210 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10212 2000-02-03 Werner LEMBERG <wl@gnu.org>
10214 The .psbb request will now also accept Mac PS images (i.e. using LF
10215 as the EOL character).
10217 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10218 (with slight modifications).
10219 * troff/input.cc (do_ps_file): Use it.
10221 * test-groff: Add grohtml and grolj4 output devices to PATH.
10223 2000-01-30 Werner LEMBERG <wl@gnu.org>
10225 * NEWS, MORE.STUFF: Updated.
10227 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
10229 Add the `srand' command to pic.
10231 * pic/lex.cc, pic/pic.y: Implement it.
10232 * pic/pic.man: Document it.
10233 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10235 2000-01-30 Werner LEMBERG <wl@gnu.org>
10237 Add a new request `.psbb'. This does exactly what the external
10238 program psbb did. It scans a PostScript image file for a
10239 %%BoundingBox comment and extracts the bounding box values (in
10240 PostScript units) which are then stored in the four new (read-only)
10241 number registers `llx', `lly', `urx', and `ury'.
10243 This will allow the usage of the .PSPIC macro without worrying
10244 about unsafe behaviour of groff, i.e., it will work without the
10245 `-U' switch of groff.
10247 * troff/input.cc: Implement it.
10248 * tmac/tmac.pspic: Use it.
10249 * troff/troff.man, grops/grops.man, NEWS: Document it.
10250 * psbb/*, Makefile.in: Remove it since it is no longer needed.
10252 This is bloody C code simply adapted from psbb.c! Any improvements
10255 2000-01-29 Werner LEMBERG <wl@gnu.org>
10257 * man/groff_font.man: Minor clarifications.
10261 2000-01-28 Werner LEMBERG <wl@gnu.org>
10263 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10265 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
10267 * man/groff_font.man: Brought up to date regarding tcommand
10269 * libgroff/font.cc: Handle everything after `--' as a comment
10271 * devps/*: Added comment delimiter inside devps font files.
10273 2000-01-28 Werner LEMBERG <wl@gnu.org>
10275 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10276 \fC...\fP (which now works as expected).
10278 * troff/troff.man: Fix typo.
10280 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
10282 Completed the pass_filenames implementation in troff.
10284 * libdriver/input.cc: Will read the new `F' tcommand.
10285 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10286 * troff/input.cc: Use it.
10288 2000-01-26 Werner LEMBERG <wl@gnu.org>
10290 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
10291 font will now be updated even if an invalid font is selected.
10293 2000-01-24 Werner LEMBERG <wl@gnu.org>
10295 * doc/homepage.ms: Updated for new tmac.arkup.
10297 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10299 * tmac/tmac.arkup: Cleanup.
10301 Added `\&' to .HTML macro to `leave vertical mode', so to say.
10303 Removed obsolete .LINK macro completely.
10305 The macros .URL, .FTP, and .MAILTO now accept a third argument which
10306 will be immediately appended to the second argument (to be used with
10307 punctuation, for example).
10309 Disabled .CDFTP macro temporarily for security reasons.
10311 * tmac/groff_markup.man: Complete revision for latest changes in
10312 tmac.arkup -- note that it does not yet format correctly with
10315 2000-01-23 Bruno Haible <haible@clisp.cons.org>
10317 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10318 * devutf8/R.proto: Add mappings for wp, lh, rh.
10319 * devutf8/NOTES: Updated.
10321 2000-01-23 Werner LEMBERG <wl@gnu.org>
10323 * doc/groff.texinfo: Updated version/copyright info.
10325 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
10327 Added support for two new directives in device descriptions:
10328 `pass_filenames' (to pass the input file name to the output device)
10329 and `use_charnames_in_special' (to support e.g. accented characters
10330 in the `X' request).
10332 * include/font.h, troff/charinfo.h: Declare it.
10334 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10336 * devhtml/DESC: Use it.
10338 * troff/input.cc: New function encoded_char.
10340 * troff/token.h: Add test for `specialness'.
10342 2000-01-21 Werner LEMBERG <wl@gnu.org>
10344 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10345 mistake from the list of files to be installed.
10347 2000-01-18 Werner LEMBERG <wl@gnu.org>
10349 * README: Added info how to apply patches.
10351 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
10353 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
10355 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
10357 * troff/input.cc: Add support for troffrc-end.
10359 * tbl/main.cc: Altered to issue table-start and table-end special
10360 characters if using the html device.
10362 * devhtml/*: Modified font files to incorporate html encoding of
10365 * tmac/groff_markup.man: New file documenting tmac.arkup.
10367 * tmac/troffrc-end: New file. This is invoked after all user
10368 specified macros. Currently used by the html device to include
10369 tmac.html. Thus no need for users to specify -mhtml anymore.
10371 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10372 (MAN7): Add groff_markup.man.
10374 * tmac/tmac.an, tmac/tmac.html: Small html updates.
10376 * tmac/troffrc: tmac.arkup will now be called for the html device.
10378 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10379 extra device specific information about fonts.
10381 * doc/homepage.ms: New file. It is an example how an HTML home page
10382 could look like with grohtml.
10384 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
10386 2000-01-12 Bruno Haible <haible@clisp.cons.org>
10388 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
10391 * devutf8/NOTES: Updated.
10393 2000-01-08 Bruno Haible <haible@clisp.cons.org>
10395 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10396 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10397 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10398 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10399 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10400 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10401 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10402 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10405 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10407 2000-01-12 Fabrizio Polacco <fab@prosa.it>
10409 grolj4: Paper size will be searched case-insensitively.
10411 * include/lib.h: Add check for strcasecmp().
10412 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10413 * configure.in: Check for strcasecmp().
10415 2000-01-11 Werner LEMBERG <wl@gnu.org>
10417 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10420 2000-01-10 Werner LEMBERG <wl@gnu.org>
10422 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10425 Add a new read-only register, `.Y', which contains the groff
10428 * troff/input.cc (init_input_requests): Define it.
10429 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10430 * doc/groff.texinfo, troff/troff.man: Document it.
10432 * libgroff/Makefile.sub (version.cc): Add definition of
10433 `Version_string[]', consisting of `<major>.<minor>.<revision>'
10434 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10435 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10436 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10437 troff/input.cc, pfbtops/pfbtops.c: Use it.
10439 2000-01-10 Fabrizio Polacco <fab@prosa.it>
10441 Add a revision scheme to the groff package.
10443 * REVISION: New file.
10444 * libgroff/Makefile.sub (version.cc): Use it to define
10445 `revision_string[]'.
10446 * grops/psrm.cc: Use revision_string (converted to an unsigned
10447 integer) in constructor of resource_manager.
10449 2000-01-10 Bruno Haible <haible@clisp.cons.org>
10451 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10453 * Makefile.in (DEVDIRS): Add devutf8.
10454 * grotty/tty.cc: Include device.h.
10455 (glyph): Change type of `code' to `unsigned int'.
10456 (tty_printer): New field is_utf8. Constructor takes device argument.
10457 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10458 (tty_printer::add_char): Change type of first arg to `unsigned int'.
10459 (tty_printer::put_char): New function.
10460 (tty_printer::end_page): Use put_char() instead of ::putchar().
10461 (make_printer): Pass device to tty_printer constructor.
10462 * nroff.sh: Determine default device by calling 'locale'. As a
10463 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10464 Recognize UTF-8 locales.
10465 * tmac/eqnrc: Recognize utf8 like latin1.
10466 * tmac/troffrc: Device utf8 needs tmac.tty.
10468 2000-01-07 Werner LEMBERG <wl@gnu.org>
10470 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10472 2000-01-07 Paul Eggert <eggert@twinsun.com>
10474 Add a new predefined writeable number register, `year',
10475 which contains the current year.
10477 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10478 * tmac/tmac.s: Use it.
10479 * troff/input.cc (init_registers): Initialize it.
10481 2000-01-06 Werner LEMBERG <wl@gnu.org>
10483 * PROBLEMS: Fixed typo.
10485 2000-01-04 Paul Eggert <eggert@twinsun.com>
10487 * PROBLEMS: Add Y2k advice for the yr number register.
10489 2000-01-03 Paul Eggert <eggert@twinsun.com>
10491 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10493 2000-01-02 Werner LEMBERG <wl@gnu.org>
10495 * tmac/tmac.arkup: Slight modification of macros to provide better
10496 appearance for non-HTML formats.
10498 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
10500 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10501 does not automatically translate to malloc(n) on all OSes
10502 (e.g., SunOS) so do it explicitly. Also, check the returned
10505 2000-01-01 Werner LEMBERG <wl@gnu.org>
10507 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
10509 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10510 expects this variable
10512 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
10514 * doc/Makefile: Added instructions to create HTML and text
10515 versions of some files.
10517 1999-12-31 Werner LEMBERG <wl@gnu.org>
10519 * Updated INSTALL.gen.
10521 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10522 better resp. correctly with non-HTML devices.
10524 Version 1.15 released
10525 =====================
10527 1999-12-28 Werner LEMBERG <wl@gnu.org>
10529 * NEWS, VERSION: Changed to 1.15
10531 1999-12-27 Paul Eggert <eggert@twinsun.com>
10533 * nroff/nroff.man: -S is safer, not safe.
10535 * groff/groff.cc (main): Use `safer', not `safe', in variable
10536 names. This does not change the behavior.
10538 * troff/input.cc (main): Likewise.
10540 * nroff/nroff.sh: Likewise.
10542 * troff/input.cc (prepend_string): New function.
10543 (main): Prepend -msafer, so that we check macro libraries for
10546 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10548 Version 1.14 released
10549 =====================
10551 1999-12-26 Werner LEMBERG <wl@gnu.org>
10553 * NEWS, VERSION: Changed to 1.14.
10555 1999-12-24 Werner LEMBERG <wl@gnu.org>
10557 * refer/refer.cc: Fixing the last fix.
10559 Version 1.13 released
10560 =====================
10562 1999-12-23 Werner LEMBERG <wl@gnu.org>
10564 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10569 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10571 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10572 document conventions, the version number must be a real.
10574 Version 1.12.1 released
10575 =======================
10577 1999-12-22 Werner LEMBERG <wl@gnu.org>
10579 * VERSION: Changed to 1.12.1.
10581 1999-12-22 Alan Rooks <arooks@istar.ca>
10583 * refer/refer.cc (do_file): Slight modification to satisfy the
10584 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10587 1999-12-20 Werner LEMBERG <wl@gnu.org>
10589 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10592 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10593 list of unsafe requests.
10595 * pic/pic.man: Fixed a typo.
10597 * man/groff_out.man: Fixed a typo.
10599 1999-12-18 Werner LEMBERG <wl@gnu.org>
10601 * Makefile.in: Doc fixes.
10603 1999-12-17 Fabrizio Polacco <fab@prosa.it>
10605 * groff/groff.cc: Missing `U' option added to getopt().
10607 * troff/troff.man: Missing `U' option added to synopsis.
10609 Version 1.12 released
10610 =====================
10612 1999-12-14 Werner LEMBERG <wl@gnu.org>
10614 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10617 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10618 with the more appropriate terms `safer' and `unsafe'.
10620 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10621 sys_nerr and sys_errlist[].
10623 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10625 * pic/pic.y, pic/pic.cc: Added check for fmod().
10627 1999-12-13 Werner LEMBERG <wl@gnu.org>
10629 * VERSION: Changed to 1.12.
10631 Here some patches from various sources; most of them taken from
10632 the Debian distribution.
10634 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10635 tmac/Makefile.sub: New files copied directly from the NetBSD
10636 distribution. Probably, some additional adaptation later on is
10639 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10640 of unsafe requests.
10642 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10643 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10644 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
10645 (`-S') is now the default.
10647 * README, NEWS: Updated.
10649 1999-12-09 Werner LEMBERG <wl@gnu.org>
10651 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10653 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10655 1999-12-06 Werner LEMBERG <wl@gnu.org>
10657 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10658 grief than relief today. Additionally, it is against the GNU
10661 * configure: Recreated.
10663 1999-12-05 Werner LEMBERG <wl@gnu.org>
10665 * configure.in: Added GROFF_LIBM.
10667 * configure: Recreated.
10669 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10672 * Makefile.in: Added definition of $(LIBM).
10674 * Makefile.comm (LIBM): Removed.
10676 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10678 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
10680 * doc/Makefile: Added rule for generation pic.html.
10682 (clean): Files produced by grohtml will be removed also.
10684 * doc/pic.ms: Small fix.
10686 * tmac/tmac.html: Fixed suppression of headers.
10688 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
10690 * tmac/tmac.html: Fixing horizontal arrows.
10692 Turning off hyphenation.
10694 * tmac/tmac.an: Improved support for grohtml; better indentation,
10695 no footers/headers.
10697 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
10699 * tmac/tmac.arkup: Added CDFTP macro
10701 * tmac/tmac.html: All headers are turned off for ms, me, and mm
10704 * tmac/troffrc: Some additions for HTML stuff.
10706 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
10708 * tmac/tmac.html: Small changes.
10710 1999-09-26 Werner LEMBERG <wl@gnu.org>
10712 * doc/groff.texinfo: Minor fixes.
10714 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
10716 * devhtml/TR: Changed spacewidth to 3.
10718 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10720 * tmac/tmac.html: Moved markup macros to tmap.arkup.
10722 * tmac/tmac.arkup: New file.
10724 * grohtml/ChangeLog: New file.
10726 1999-09-16 Werner LEMBERG <wl@gnu.org>
10728 * doc/groff.texinfo (Common Features): Added Copying chapter.
10729 Changed format to @smallbook.
10731 1999-09-15 Werner LEMBERG <wl@gnu.org>
10733 * NEWS: Added info about groff.texinfo.
10735 * doc/groff.texinfo: Will now compile (using texi2dvi) without
10738 1999-09-14 Werner LEMBERG <wl@gnu.org>
10740 * groff/groff.man: More updates.
10742 1999-09-13 Werner LEMBERG <wl@gnu.org>
10744 * doc/groff.texinfo: New file. This manual is still very
10745 rudimentary. It has been originally contributed by Trent
10746 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10749 * INSTALL: Added information about the `doc' subdir
10751 * troff/troff.man: Minor fixes.
10753 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10756 * troff/input.cc (usage): Added missing `-ffam' to usage message.
10758 * Makefile.in (dist): groff-$(version).tar.gz must be removed
10759 also, otherwise it is included itself in another call of `make
10762 * groff/groff.cc (synopsis): Removed superfluous space.
10764 * PROJECTS, PROBLEMS, NEWS: Updated.
10766 * VERSION: Updated to 1.12beta.
10768 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10770 * README: Updated: Included documentation about CVS repository,
10771 mailing lists, and daily snapshots.
10773 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10775 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10777 * tmac/tmac.an: If the tag didn't fit into the space that the
10778 macro `TP' specifies, the rest of the tag went into the space for
10781 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10783 * grolj4/lj4.cc: Added duplex printing (option `-d').
10785 * grolj4/grolj4.man: Document duplex printing.
10787 1999-09-12 Werner LEMBERG <wl@gnu.org>
10789 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10790 non-GNUish sed programs.
10792 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10795 * configure.in (LIBS): Added `-lc'
10797 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10799 * pic/tex.cc (solid_arc): Casting M_PI to double.
10801 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10803 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10804 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10805 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10807 * groff/groff_man.man: New file. This manual page was originally
10808 written for the Debian GNU/Linux system by Susan G. Kleinmann
10811 * eqn/list.cc (list_box::compute_metrics,
10812 list_box::compute_sublist_width): Removed variable declaration to
10813 avoid shadowing warnings.
10815 * grops/psrm.cc (resource_manager::process_file): Ditto.
10817 * tfmtodit/tfmtodit.cc (main): Ditto.
10819 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10820 to avoid shadowing warnings.
10822 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10823 shadowing loop variable.
10825 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10827 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10829 New grohtml frontend to convert groff input to html.
10831 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10833 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10835 * tmac/eqnrc: Added html device.
10837 * tmac/tmac.html: New file.
10839 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10840 (troff_output::start_picture, troff_output::finish_picture),
10841 tbl/main.cc (process_input_file):
10842 Surrounded output with `graphics_start' and `graphics_end' so that
10843 the html driver can identify non-text portions.
10845 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10846 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10847 grotty/tty.ps (tty_printer::set_char): Additional parameter
10850 * include/printer.h: Class printer: New function
10851 set_char_and_width; new variables (is_char_named, is_named_set,
10852 named_command, named_char_s, named_char_n) to hold information
10853 about named characters -- needed by the html driver.
10855 * libdriver/printer.cc (printer::set_ascii_char,
10856 printer::set_special_char): Use set_char_and_width.
10858 * devhtml/*: New device files for html driver.
10860 * grohtml/*: New driver grohtml.
10862 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10864 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10867 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10869 * libgroff/string.cc (search): Small fix to test against NULL
10872 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10874 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10875 \b'abc') were stacked in reverse order when processed in a
10878 * troff/node.h: Added `*last' to struct `node' to make the above
10881 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10882 The default scale for the 'f' and 't' graphics functions were 'm'
10883 rather than 'u' (i.e., no scaling).
10885 1999-09-11 Peter Miller <peterm@jna.com.au>
10887 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10888 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10889 defining include paths.
10891 * soelim/soelim.cc (include_path_append): New function.
10893 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10895 * tbl/main.cc (process_options): Unix (at least Documenter's
10896 Workbench) tbl allows arbitrary non-alpha characters between
10899 1999-09-11 Paul Eggert <eggert@twinsun.com>
10901 Y2k fixes. Don't assume that the current year precedes 2000.
10903 * doc/meref.me: Add \n(y2, \n(y4.
10905 * tmac/doc-common (Yr): New number register.
10906 (Dd): Don't assume current year precedes 2000.
10908 * tmac/tmac.e (td): Likewise.
10909 (y2, y4): New number registers.
10911 * pic/pic.man: Update reference for pic paper to May, 1991
10914 1999-09-11 Werner LEMBERG <wl@gnu.org>
10916 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10917 Removed quotation marks which prevented correct expansion of
10920 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10922 1999-09-10 Werner LEMBERG <wl@gnu.org>
10924 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10927 * Removed configure.old.
10929 1999-08-31 Werner LEMBERG <wl@gnu.org>
10931 * VERSION: Updated to 1.11.1
10933 1999-05-27 Werner LEMBERG <wl@gnu.org>
10935 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10937 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10938 added quotations around $(tmac_wrap) to avoid syntax error if
10941 * configure: Newly generated using autoconf 2.13.
10943 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10945 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10947 * README, PROJECTS, NEWS, INSTALL, VERSION,
10948 doc/Makefile. doc/pic.ms, groff/groff.man:
10949 Prepare for 1.11 release. No code changes.
10950 Documentation for pic added (doc/pic.ms).
10952 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10954 * Version 1.10 released.
10956 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10958 * afmtodit/afmtodit.pl: Avoid comment on first line.
10960 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10962 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10963 * configure.in: Call it.
10965 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10966 (distfiles): Doesn't depend on config.log or config.cache.
10968 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10970 * grog/grog.sh: Use print "" rather than print in END rule.
10972 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10974 * tbl/main.cc (process_data): Don't give error for excess data
10975 entries that are comments.
10977 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10979 * tbl/main.cc (process_data): Fix case where new for-scope rules
10980 silently change meaning of code.
10982 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10984 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10985 of non-zero hyphenation codes.
10987 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10989 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10991 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10993 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10995 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10997 * tmac/tmac.andoc: Make it work in compatibility mode.
10999 * refer/token.h (token_info::is_range_sep): New function.
11000 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11001 * refer/ref.cc (reference::output): More sophisticated check for
11004 * devps/prologue.ps (MANUAL): New procedure.
11005 * grops/ps.cc (main): New -m option.
11006 (usage): Include -m.
11007 (ps_printer::~ps_printer): Implement -m.
11009 * aclocal.m4 (GROFF_G): New macro.
11010 * configure.in: Call it.
11011 * Makefile.in (g): Provided by configure.
11013 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11015 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
11018 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11019 (tmac_m, tmac_s): Deleted.
11020 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11021 tmac_s_prefix): New variables.
11022 (MDEFINES): Change accordingly.
11023 * Makefile.comm (.man.n): Use new TMAC_* variables.
11024 * configure.in (GROFF_TMAC): Call.
11025 * aclocal.m4 (GROFF_TMAC): Define.
11026 * tmac/Makefile.sub (stamp_wrap): New target.
11027 (install_data, uninstall_sub): Handle macro wrapping.
11029 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
11031 * tbl/main.cc (main): Ignore -T option.
11033 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
11035 * devlj4/generate/special.map: Add definition of \(nb.
11037 * tmac/tmac.dvi: Add definition of \(nb.
11039 * troff/dictionary.c (dictionary::dictionary): association::v gets
11040 initialized by association::association.
11042 * tmac/Makefile.sub: Avoid using temporary files when installing.
11044 * troff/env.cc (environment::set_font): Make bad font number a
11047 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11049 * Makefile.in (datadir): Use share rather than lib.
11051 * groff/groff.cc (basename): Rename to xbasename.
11053 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
11055 * Makefile (CCLIBS): Don't use.
11056 * Makefile.ccpg: Likewise.
11058 * acgroff.m4: Rename to...
11059 * aclocal.m4: Modify extensively for autoconf 2.
11060 * configure.in: Likewise.
11061 * Makefile.in: Likewise.
11063 * groff/pipeline.c (const): Declare as empty if __STDC__ not
11065 (xstrsignal): Check for definition of NSIG. Conditionalize
11066 on SYS_SIGLIST_DECLARED. Make return type const.
11068 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
11070 * troff/input.cc (interpolate_macro): Rephrase missing space
11073 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
11075 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11076 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11077 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11078 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11079 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11080 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11081 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11082 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11083 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11084 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11085 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11088 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
11090 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11092 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11094 (macro_iterator::macro_iterator): Add additional argument.
11096 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
11098 * troff/div.cc (vertical_size::vertical_size): In place of integer
11099 specifying line spacing use cunits specifying post vertical
11101 (macro_diversion::output, top_level_diversion::output): Likewise.
11102 * troff/div.h: Change declarations accordingly.
11103 * troff/env.cc (pending_output_line): Replace ls field by post_vs
11105 (pending_output_line::pending_output_line,
11106 pending_output_line::output, environment::output,
11107 environment::output_line, environment::output_title,
11108 environment::hyphenate_line): In place of
11109 integer specifying line spacing use cunits specifying post vertical
11111 (environment::environment): Add post_vertical_spacing and
11112 prev_post_vertical_spacing arguments.
11113 (environment::get_post_vertical_spacing): New function.
11114 (environment::total_post_vertical_spacing): New function.
11115 (environment::post_vertical_spacing): New function.
11116 (init_env_requests): Initialize pvs request and .pvs register.
11117 * troff/env.h: Change declarations.
11119 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
11121 * tmac/tmac.pspic: Immediately remove the temporary file.
11123 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
11125 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11126 height is specified.
11128 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
11130 * tbl/table.c (struct vertical rule, class table_entry): Use int
11131 not short for start_row and end_row.
11133 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
11135 * troff/input.cc (trapping_blank_line, blank_line_macro): New
11137 (diverted_space_node::reread, process_input_stack): Call
11138 trapping_blank_line() rather than blank_line().
11139 (init_input_requests): Bind "blm" to blank_line_macro().
11141 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11143 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
11145 * troff/env.cc (environment::possibly_break_line): Require that
11146 width total excluding width of final space node be greater than
11147 the target text length.
11149 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
11151 * troff/node.cc (kern_pair_node::vertical_extent): New function.
11153 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
11155 * troff/node.cc (charinfo_node): New class.
11156 (glyph_node, composite_node): Derive from charinfo_node. Change
11157 member functions accordingly.
11159 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
11161 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11163 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
11165 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11167 * devps/generate/textmap (notsubset): Add.
11169 * tmac/tmac.a4: New file.
11171 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
11173 * pic/main.cc (had_parse_error): New variable.
11174 (do_picture, do_whole_file): Set had_parse_error if yyparse()
11176 (main): Return 1 if had_parse_error is true.
11178 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
11180 * grolj4/lj4.cc (main): Avoid use of strtoul.
11182 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
11184 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11185 iso_8859_1 or $LESSCHARSET is latin1.
11187 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
11189 * hpftodit: New directory.
11190 * Makefile.in (CCPROGDIRS): Add hpftodit.
11191 * devlj4/generate: New directory.
11193 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
11195 * configure.in: Don't use AC_VFORK.
11196 * groff/pipeline.c (run_pipeline): Use fork() always.
11198 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
11200 * grops/ps.cc (main): Use %1 not %s in error message for -w.
11202 * Makefile.in (CCPROGDIRS): Add grolj4.
11203 (DEVDIRS): Add devlj4.
11204 * grolj4, devlj4: New directories.
11205 * tmac/troffrc: Handle lj4.
11206 * tmac/tmac.lj4: New file.
11208 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
11210 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11212 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
11214 * troff/input.cc (do_if_request): At end of second string, switch
11215 environments before getting next token.
11217 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
11219 * devps/psstrip.sed: Split rule that strips whitespace on either
11220 side of delimiters.
11222 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
11224 * troff/node.h (font_family::make_definition): Add return value to
11225 declaration. * troff/symbol.h (symbol::operator==,
11226 symbol::operator!=): Likewise.
11228 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
11230 * groff/groff.cc (main, help, synopsis): Handle -S.
11231 (possible_command::insert_arg): New function.
11233 * tmac/tmac.safer: New file.
11234 * tmac/msafer.man: New file.
11235 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11237 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
11239 * pic/pic.h, pic/main.cc (safer_flag): New variable.
11240 * pic/pic.y (placeless_element): Avoid unsafe operations if
11241 `safer_flag' is set.
11242 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11244 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
11246 * eqn/lex.cc (get_token): Put call to add_context() in block to
11247 work around Sun C++ 4.0 bug.
11249 * include/stringclass.h (operator +): Use ?: instead of `if' to
11250 work around Sun C++ 4.0 bug.
11252 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
11254 * tbl/main.cc (process_format): Accept - as a synonym for the _
11257 * libbib/index.cc (minus_one): Don't declare as const.
11259 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
11261 * troff/input.cc (get_char_for_escape_name): Push back a newline.
11263 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
11265 * troff/input.cc (write_macro_request): New function.
11266 (init_input_requests): Bind write_macro_request to writem.
11268 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
11270 * tmac/tmac.s (@EN): Turn filling back on even if there was no
11273 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11275 * tmac/tmac.s (@TS): Renamed from TS.
11276 (TS): Call LP then TS again.
11277 (cov*ab-init): Alias @TS to TS.
11279 * tmac/tmac.s: Allow QP or RS to initialize.
11281 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
11282 Move initializations of PS and LL here.
11283 (par@init): Don't initialize HY. Avoid changing environment 0.
11284 (par*env-init): Don't all par@reset.
11286 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
11288 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11290 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
11292 * Makefile.in (MDEFINES): Add LDFLAGS.
11293 (LDFLAGS): Add definition line.
11295 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
11297 * troff/input.cc (get_optional_char): Split off error check into...
11298 (check_missing_character): New function.
11299 * troff/token.h: Declare it.
11300 * troff/env.cc (margin_character): Don't call get_optional_char.
11301 Only call tok.next() after making the node.
11303 * include/lib.h (getopt): Make 2nd argument char *const *.
11305 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
11307 * nroff/conftest.sh: Deleted.
11309 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
11311 * pic/make-dos-dist: Deleted.
11313 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
11315 * devps/psstrip.sed: Strip comments before stripping trailing
11318 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
11320 * Version 1.09 released.
11322 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
11324 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11326 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
11328 * libgroff/font.cc (font::load_desc): Fix typo in error message.
11330 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
11332 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11333 about returning without a value.
11335 * troff/charinfo.h (charinfo::get_special_translation): Cast
11336 TRANSLATE_NONE to int.
11338 * refer/token.cc (lookup_token, store_token): Remove bogus loop
11339 test. Fix test so that it works with n unsigned.
11341 * pic/pic.y (defaults_table): Fully bracket initializer.
11342 * pic/lex.cc (lookup_keyword): Likewise.
11343 * eqn/lex.cc (token_table, def_table): Likewise.
11344 * eqn/box.cc (param_table): Likewise.
11345 * troff/input.cc (warning_table): Likewise.
11346 * libgroff/font.cc (table): Likewise.
11347 * grops/ps.cc (ps_printer::special): Likewise.
11348 * grops/psrm.cc (resource_manager::process_file): Likewise.
11349 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11350 * refer/command.cc (command_table): Likewise.
11351 * addftinfo/addftinfo.cc (param_table): Likewise.
11353 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11354 about temp's being unused.
11355 (unused): New function.
11357 * groff/pipeline.cc: Declare c_fatal.
11359 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11362 * libbib/index.cc (index_search_item::load): Prevent compiler
11363 warnings about fd_closer's being unused.
11364 (unused): New function.
11366 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
11368 * troff/input.cc (copy_mode_error): Make `prefix' static.
11371 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11373 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11374 HAVE_CC_OSFCN_H and modify accordingly.
11376 * troff/input.cc (init_charset_table): radicalex overlaps
11379 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11380 udodo!hans@relay.NL.net).
11381 * groff/configure.in: Call it.
11383 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11384 * groff/configure.in: Call it.
11385 * include/lib.h: Conditionalize declaration of pclose.
11387 * troff/div.cc (last_page_number): New global variable.
11388 (top_level_diversion::begin_page): Exit if we just printed the
11390 * troff/div.h (last_page_number): Declare it.
11391 * troff/input.cc (parse_output_page_list): Set last_page_number.
11393 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11394 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11395 tmac/tmac.X: Likewise.
11396 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11397 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11399 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
11401 * tmac/doc-ditroff (hK): Remove groff specific code which
11402 prevented page-breaks between separate manual entries. If this is
11403 the first page, don't set the page number to 1.
11405 * acgroff.m4 (GROFF_POSIX): New macro.
11406 * configure.in: Use it.
11408 * troff/node.cc (class real_output_file,
11409 real_output_file::real_output_file,
11410 real_output_file::~real_output_file): Conditionalize use of
11411 popen/pclose on POPEN_MISSING.
11412 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11413 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11414 (pipe_source): Similarily.
11416 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11418 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11419 presence of declarations by trying to compile example with
11420 conflicting declarations. (gcc only gives a warning for missing
11423 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
11425 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11426 (from Ulrich Lauther).
11428 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
11430 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11432 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
11434 * indxbib/indxbib.cc (write_hash_table): Add code for case where
11435 pointers and ints have different sizes.
11437 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
11439 * tmac/tmac.s (par*env-init): Call par@reset.
11441 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
11443 * tmac/tmac.s (@IP): Switch to a new environment when diverting
11445 (par*push-tag-env, par*pop-tag-env): New macros.
11447 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
11449 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11450 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
11452 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11453 comment. Include <time.h>.
11455 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
11457 * grops/ps.cc (is_small_h, is_small_v): Deleted.
11458 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11461 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
11463 * troff/input.cc (read_request): Only print a prompt if reading
11464 from the terminal. Also clearerr on EOF if reading from the
11465 terminal. Declare isatty.
11467 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
11469 * refer/label.y: Rename map_t to map_func and extractor_t to
11472 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
11474 * include/assert.h: Don't use volatile.
11475 * libgroff/assert.cc: Likewise.
11477 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
11479 * troff/input.cc (abort_request): Look at character in tok before
11480 calling get_copy().
11482 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
11484 * troff/troff.h (NO_RETURN): Deleted.
11485 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
11486 * troff/input.cc (exit_troff): Likewise
11488 * Makefile.in: Remove `Making ...' messages since GNU make now
11491 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11493 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
11495 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11496 to constant 1 inch.
11498 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
11500 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11502 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
11504 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11505 MARK_REG if there was no left delimiter.
11507 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
11509 * pic/troff.cc (troff_output::text): Set line thickness to
11510 relative before outputting text.
11512 * tmac/tmac.e (@k): Don't zero ?T.
11515 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
11517 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11519 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
11521 * troff/input.cc (decode_args): Warn about unquoted tabs (from
11524 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
11526 * troff/input.cc (ignoring): New variable.
11527 (ignore): Set ignoring during call to do_define_macro.
11528 (do_define_macro): Clear ignoring before interpolating terminating
11530 (copy_mode_error): New function.
11531 (get_char_for_escape_name, read_long_escape_name,
11532 interpolate_arg): Use copy_mode_error.
11533 (warning_table): Add WARN_IG.
11534 * troff/troff.h (WARN_IG): Declare.
11535 (WARN_TOTAL): Change accordingly.
11537 * groff/pipeline.c (strsignal): Rename to xstrsignal.
11538 * groff/groff.cc (strsignal): Delete declaration.
11540 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
11542 * troff/div.cc (page_offset): Use 'm' as default scaling.
11544 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
11546 * nroff/nroff.sh: Ignore -u.
11548 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
11550 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11552 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
11554 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11556 (B2): With -Tascii, leave additional vertical space before
11557 and after. Ensure that the left and right indent is restored to
11558 what it was even if the point size changes. Don't call
11559 par@finish. Change the indent, line length and title length
11560 directly. With -Tascii, make the width of the box 1n less.
11561 (B1): Remember 1n at the current point size. Don't call
11562 par@reset. Change the indent, line length and title length
11563 directly. Ensure that the temporary indent is preserved.
11564 (par*box-mark-top): Turn off no spacing mode.
11566 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
11568 * Makefile.in (dist): Use .gz suffix.
11570 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
11572 * troff/input.cc (main): Add return 0.
11573 * pic/main.cc (main): Use return instead of exit.
11574 * tbl/main.cc (main): Likewise.
11575 * eqn/main.cc (main): Likewise.
11576 * grops/ps.cc (main): Likewise.
11577 * grotty/tty.cc (main): Likewise.
11578 * groff/groff.cc (main): Likewise.
11579 * grodvi/dvi.cc (main): Likewise.
11580 * refer/refer.cc (main): Likewise.
11581 * indxbib/indxbib.cc (main): Likewise.
11582 * lkbib/lkbib.cc (main): Likewise.
11583 * soelim/soelim.cc (main): Likewise.
11584 * addftinfo/addftinfo.cc (main): Likewise.
11585 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11586 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11588 * troff/token.h (process_input_stack): Don't declare as static.
11589 * troff/input.cc: Likewise.
11591 * troff/node.c (invalidate_fontno): Make it a static member of
11592 class font_family. Change callers.
11593 * troff/node.c: Change declaration.
11595 * tbl/main.cc (struct input_entry_format): Add explicit public
11597 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11598 struct double_hline_stuff): Likewise.
11599 * tbl/table.h (struct entry_format): Likewise.
11600 * pic/object.h (struct saved_state): Likewise.
11602 * include/stringclass.h: Add forward declarations of friend
11603 functions that are later declared as inline. Don't include inline
11604 specifier in friend declaration.
11606 * libgroff/lib.h: Declare popen and pclose.
11607 * acgroff.m4 (GROFF_POPEN): New macro.
11608 * configure.in: Call it.
11610 * include/lib.h (PI): New constant. Undef first if necessary.
11611 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11612 * grops/ps.cc (degrees, radians): Likewise.
11613 * libgroff/font.cc (font::get_skew): Likewise.
11615 * grops/ps.cc (is_ascii): New function.
11616 (ps_output::put_string): Use is_ascii. Use csprint rather than
11618 (ps_printer::define_encoding): Use csspace.
11619 * libgroff/strtol.c (ISASCII): New macro.
11620 (strtol): Cast arguments to is*() and tolower() to unsigned char.
11621 Use ISASCII rather than isascii.
11622 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11623 * libgroff/cset.cc: Likewise.
11624 * libdriver/input.cc: Include cset.h.
11625 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11628 * refer/refer.cc (main): Use %ld rather than %d for longs.
11630 * libbib/index.cc (index_search_item_iterator::get_tag): Use
11633 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11635 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
11637 * troff/input.cc (hyphenation_code): Skip white space between
11640 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
11642 * tbl/table.h (table::entry_list_tailp): New member.
11643 (table::table): Initialize it.
11644 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11647 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
11649 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11650 with negative horizontal positions. Remove casts of glyph::hpos to
11652 (USHRT_MAX): Delete definition.
11653 (SHRT_MAX, SHRT_MIN): New definitions.
11654 (glyph::hpos): Change type to short.
11655 (tty_printer::end_page): Output multiple backspaces if necessary.
11656 Remove casts of glyph::hpos to int.
11658 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
11660 * tmac/tmac.s (@RT): New definition.
11662 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
11664 * refer/refer.cc (do_file): Make sure current_filename is set when
11667 * pic/common.cc (common_output::dot_line): Handle zero length
11670 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
11672 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11673 (par@init): Initialize \n[HY].
11675 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
11677 * troff/dictionary.cc (dictionary::remove): Continue when
11680 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
11682 * Makefile.com (.y.cc): Avoid ending up with two versions of
11685 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
11687 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11688 (\(,C): Likewise. Also fix typo.
11690 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
11692 * lib.h: Delete extraneous semi-colon.
11694 * Add pso request: `so' from a pipe.
11695 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11696 (file_iterator::close): New function.
11697 (file_iterator::~file_iterator, file_iterator::next_file): Use
11698 file_iterator::close.
11699 (file_iterator::backtrace): Say `process' rather than `file' when
11700 the stream is popened.
11701 (pipe_source): New function.
11702 (init_input_requests): Bind ".pso" to pipe_source.
11704 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
11706 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11708 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
11709 digits in lower case.
11711 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
11713 * Version 1.08 released.
11715 * Makefile.in (dist): Insert || true after ln -s commands that
11718 * mm: Update to mm 1.16.
11720 * acgroff.m4 (GROFF_CSH_HACK): New macro.
11721 * configure.in: Call GROFF_CSH_HACK. Substitute for
11723 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
11725 * nroff/Makefile.sub (nroff): New target.
11726 (install_data): Install nroff.
11727 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11728 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11730 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
11732 * eqn/Makefile.sub (neqn): Add chmod +x.
11734 * grog/Makefile.sub (grog): Remove spurious semi-colon.
11736 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
11738 * troff/input.cc (string_iterator::string_iterator()): Initialize
11741 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
11743 * troff/div.cc (macro_diversion::space,
11744 top_level_diversion::space): Don't set high_water_mark.
11745 (macro_diversion::output, top_level_diversion::output): Don't
11746 include post line space in high water mark.
11748 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
11750 * eqn/eqn.y: Don't define YYDEBUG.
11751 * pic/pic.y: Likewise.
11753 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
11755 * tmac/tmac.e ([3): Add space after comma following editors.
11756 Change double spaces to single spaces.
11757 ([4): Change double spaces to single spaces.
11759 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11760 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11761 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11762 after %!PS-Adobe- (for Newsprint).
11764 * troff/div.cc (top_level_diversion::begin_page): When
11765 before_first_page is 1, set page_number to 1.
11767 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11769 * eqn/box.cc (box::top_level): Protect equation with \&.
11771 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11773 * groff/groff.cc (possible_command::set_name): Delete old name.
11775 * groff/groff.cc (possible_command::~possible_command): Use
11778 * troff/node.cc (troff_output_file::begun_page): New member.
11779 (troff_output_file::troff_output_file): Initialize it.
11780 (troff_output_file::really_begin_page): Only output V command if a
11781 page has been begun.
11783 * pic/pic.y (placeless_element): Delete argument to PRINT after
11786 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11788 * Make wrapman work.
11789 * troff/div.h (class top_level_diversion): Replace
11790 first_page_begun by before_first_page (with opposite sense).
11791 * Change first_page_begun to before_first_page inverting sense.
11792 * troff/div.cc (class nl_reg): New class.
11793 (init_div_requests): Use class nl_reg for \n(nl.
11794 (top_level_diversion::begin_page): Don't call
11795 output_file::begin_page if before_first_page is 2;
11796 reset before_first_page afterwards. If have_next_page_number is
11797 false, then always increment page_number.
11798 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11799 Restore compatibility mode after loading, and then disable
11800 compatibility mode in TH.
11802 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11804 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11806 * troff/node.h (output_file::trailer): Declare.
11807 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11808 * troff/node.cc (output_file::trailer): New function.
11809 (troff_output_file::~troff_output_file): Move most code into...
11810 (troff_output_file::trailer): New function.
11811 (class troff_output_file): Delete page_length member. Declare
11813 (troff_output_file::really_begin_page): Use current page length
11814 for final V command.
11816 * tbl/main.cc (struct options): New decimal_point_char member.
11817 (options::options): Initialize this.
11818 (process_options): Implement decimalpoint option.
11819 (process_data): Pass decimal_point_char option to table::table.
11820 * tbl/table.h (class table): New decimal_point_char member.
11821 (table::table): Add additional argument.
11822 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11823 second argument specifying decimal point character. Use this
11825 (table::table): Initialize decimal_point_char.
11826 (table::add_entry): Change call to find_dot.
11828 * troff/input.cc (get_copy, token::next): Implement \V.
11829 (interpolate_environment_variable): New function.
11831 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11833 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11834 * pic/pic.y: Likewise.
11836 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11838 * refer/ref.cc (reference::insert_field, reference::delete_field):
11840 * troff/number.cc (parse_term): Likewise.
11842 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11843 * configure.in: Use GROFF_PROG_YACC.
11845 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11847 * Makefile.in (OPTIMIZE): New define.
11848 (DEBUG): Empty by default.
11849 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11851 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11852 (GROFF_ARRAY_DELETE): Likewise.
11853 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11855 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11857 * devps/psstrip.sed: Use different delimiter on last line (so that
11858 it works with BSD 4.4 sed.)
11860 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11862 * devps/psstrip.sed: Delete comments.
11864 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11865 optind, opterr, optarg.
11866 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11869 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11871 * Makefile.in (check): Dummy target.
11873 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11875 * Version 1.07 released.
11877 * Integrate mm 1.11.
11879 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11880 where start_col was meant.
11882 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11884 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11886 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11888 * troff/input.cc (token::next): Make \z\o'...' and similar things
11891 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11893 (environment): Add margin_character_flags member.
11894 * env.cc (environment::environment(symbol),
11895 environment::environment(const environment *): Initialize
11896 margin_character_flags.
11897 (margin_character): Rewrite.
11898 (environment::output_line): Add a margin character if
11899 margin_character_flags is non-zero. Turn off the
11900 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11901 zero, use margin_character_node without copying and then set
11902 margin_character_node to 0.
11904 * devps/DESC.in: Change minimum size to 1000.
11906 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11908 * troff/symbol.h (symbol::hash): Change return type to unsigned
11910 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11913 * test-groff: Use -r rather than -x.
11915 * grops/psfig.diff: Include in distribution again.
11917 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11919 * Makefile.in (dist): Use gzip.
11921 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11923 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11924 unistd.h as well as in stdlib.h.
11925 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11926 defined; otherwise include <sys/types.h> and <unistd.h> if
11927 UNISTD_H_DECLARES_GETOPT is defined.
11929 * configure.in: use builtin(include, ... rather than include(...
11930 * configure: Regenerate with autoconf 1.3.
11932 * libdriver/print.cc (printer::adjust_arc_center): Use new
11933 algorithm suggested by Andy Fyfe.
11935 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11936 * include/printer.h: Declare this.
11937 * grops/ps.cc (ps_printer::draw): Use it.
11938 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11940 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11942 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11944 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11946 * eqn/main.cc (main): Handle "eqn -".
11948 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11950 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11952 * mm: Integrate version 1.08.
11954 * pic/troff.cc (troff_output::finish_picture): Set
11955 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11956 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11957 if it's not defined. Check whether the register is non-zero rather
11958 than whether it's not defined.
11959 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11961 * indxbib/indxbib.cc: Move all signal handling into...
11962 * indxbib/signal.c: New file.
11963 * configure.in: Call AC_RETSIGTYPE.
11965 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11966 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11967 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11969 * troff/input.cc (token::token, token::operator=): Work round SGI
11971 * pic/object.cc (position::position): Likewise.
11973 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11975 * pic/pic.h: Move declaration of hypot().
11977 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11979 * pic/pic.h: Declare hypot().
11981 * pic/pic.h: Define M_PI if necessary.
11983 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11985 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11988 * devps/prologue.ps (RE): Handle the possibility that the old font
11989 doesn't have a FontName entry.
11991 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11993 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11994 (@C): Use @fam not fam.
11996 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11998 * lookbib/lookbib.cc (main): Change type of start to const char *.
11999 * lkbib/lkbib.cc (main): Likewise.
12001 * eqn/lex.cc (definition::definition): Don't use member
12002 initializer syntax for members of anonymous unions.
12004 * troff/input.cc (input_stack::backtrace): Change type of to const
12007 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
12009 * include/stringclass.h (class string): Declare inline friend
12010 functions as inline in class declaration.
12011 * troff/hvunits.h (class hunits, class vunits): Likewise.
12012 * include/refid.h (class reference_id): Likewise
12013 * troff/troff.h (points_to_units(units), scale(units, double)):
12014 Delete declarations.
12015 * libdriver/input.cc (get_char): Delete declaration.
12016 * include/lib.h: Change 2nd argument of getopt from const char **
12018 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12019 char **' before assigning to a `const char **'.
12020 * tbl/table.cc: Delete extra declarations of prints().
12022 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
12024 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12025 char **' before assigning to a `const char **'.
12027 * libgroff/errarg.cc (errarg::errarg): Don't use member
12028 initializer syntax for members of anonymous unions.
12030 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
12032 * mm: Integrate version 1.07.
12034 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
12036 * troff/input.c (translate2): Rename to
12037 (translate_no_transparent).
12038 (init_input_requests): Rename tr2 to trnt.
12040 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
12042 * troff/charinfo.h (class charinfo): Add transparent_translate field.
12043 (charinfo::set_translation, charinfo::set_special_translation):
12044 Add second argument that specifies value for
12045 transparent_translate.
12046 (charinfo::get_translation, charinfo::get_special_translation):
12047 Add optional second argument that specifies whether translation is
12048 being used for transparent throughput.
12049 * troff/input.cc (charinfo::set_translation,
12050 charinfo::set_special_translation): Handle second argument.
12051 (charinfo::charinfo): Initialize transparent_translate.
12052 (translate): Split main part off into
12053 (do_translate): New function. Pass argument saying whether
12054 translation applies to transparent throughput.
12055 (translate2): New request.
12056 (init_input_requests): Bind translate2 to `tr2'.
12058 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
12060 * tbl/table.h (class table): Add `nokeep' flag.
12061 * tbl/main.cc (process_options): Handle `nokeep' option.
12062 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12063 table::do_bottom): Don't output keep/release macro definitions or
12064 calls when `nokeep' option has been specified.
12066 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
12068 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12070 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
12072 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12073 block_entry::divert, alphabetic_block_entry::divert): Add extra
12074 argument giving column separation.
12075 (table::compute_widths): Pass column separation to
12076 table_entry::divert().
12077 (block_entry::do_divert): If an entry spans multiple columns and a
12078 minimumum width has been specified for each column, then set the
12079 line length to the sum of the widths (plus possibly the column
12082 * troff/input.cc (set_escape_char): Don't set the escape_char
12083 until after calling has_arg().
12085 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
12087 * tbl/table.cc (table::do_top): Add missing \s0 for double box
12090 * tbl/table.cc (table::print_double_hline): Avoid extra new line
12091 in case where r > nrows - 1.
12093 * tbl/table.cc (BODY_HEIGHT): Deleted.
12094 (LINE_SEP): New definition.
12095 (table::print_single_hline, table::print_double_hline,
12096 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12097 table::do_row, table::do_top): Use LINE_SEP space before a line
12098 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12100 * tbl/table.cc (text_entry::print_contents): New function.
12101 (text_string_name, right_text_string_name): Deleted.
12102 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12103 (simple_text_entry::do_width, numeric_text_entry::do_width,
12104 alphabetic_text_entry::do_width): Don't store the contents of the
12106 (left_text_entry::simple_print, right_text_entry::simple_print,
12107 center_text_entry::simple_print,
12108 alphabetic_text_entry::simple_print,
12109 numeric_text_entry::simple_print): Print the entry directly
12110 instead of using the stored string.
12112 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
12114 * devps/Makefile: Strip PostScript files.
12115 * devps/prologue: Rename to...
12116 * devps/prologue.ps.
12117 * devps/psstrip.sed: New file.
12118 * devps/download: Use .pfa rather than .ps for installed versions
12121 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
12123 * troff/env.cc (input_trap): Give a warning if the argument is out
12126 * troff/env.cc (adjust): Treat negative argument as missing. Round
12127 argument > 5 down to 5.
12129 * troff/env.cc (center, right_justify): Make negative argument zero.
12131 * troff/div.cc (page_offset, vertical_position_traps): Treat
12132 invalid argument as missing.
12133 * troff/env.cc (line_spacing, line_length, title_length, indent,
12134 underline, hyphen_line_max_request, control_char,
12135 no_break_control_char, widow_control_request, adjust, input_trap,
12136 point_size): Likewise.
12137 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12138 constant_space): Likewise.
12139 * troff/input.cc (compatible, shift, warn_request,
12140 set_escape_char): Likewise.
12142 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12143 * tbl/table.cc (table::table): Likewise.
12145 * Makefile.dev (install_dev): depends on $(DEVFILES).
12147 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
12149 * devX75, devX75-12, devX100, devX100-12: New directories.
12150 * Makefile.in: Add these to DEVDIRS.
12152 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12153 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12154 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12155 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12157 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12158 (uninstall): New target.
12159 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12160 uninstall_prog, uninstall_dev): New targets.
12162 * troff/div.cc (return_request): Treat an invalid argument as
12165 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
12167 * tmac/tmac.e ((f): Set up the environment even when there's a
12168 current diversion. Transperently throughput a call to @N.
12171 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
12173 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12174 up to vertical resolution.
12176 * tbl/table.cc (table::do_row): Change row number after printing
12179 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12181 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
12183 * Rename CHANGES to NEWS.
12185 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
12187 * libgroff/new.cc (operator new): Avoid calling malloc(0).
12189 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
12191 * man.ultrix: Removed.
12193 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
12195 * Makefile.comm (extraclean): Delete files whose names begin with
12198 * pic/troff.cc (troff_output::text): Fix typo in implementation of
12201 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
12203 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12204 * troff/div.cc (page_length, need_space, space_request): Treat
12205 invalid optional argument as missing.
12206 * troff/env.cc (number_lines): If the first argument is present
12207 but not a number, turn on line numbering, don't change the next
12208 line number and parse the remaining arguments.
12210 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12212 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
12214 * eqn/box.h: Change declaration accordingly.
12215 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
12216 the specified size was bad but don't give an error. Check for
12218 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12219 * eqn/lex (do_size): Likewise.
12221 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
12223 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12224 compatible headers.
12226 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
12228 * tbl/table.cc (table::init_output): Improve error message when
12229 table won't fit on one page.
12231 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
12233 * pic/troff.cc (troff_output::start_picture): Generate line
12234 containing a horizontal motion equal to the width of the picture.
12236 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12237 using GROFF_COMMAND_PREFIX environment variable.
12239 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
12241 * mdate.sh: Use $NF rather than $(NF).
12243 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
12245 * pic/main.cc (main): Use %1 not %c in argument to warning.
12247 * eqn/main.cc (main): Output code to check that geqn was given the
12250 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
12252 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12253 `ln -s ../Makefile .; make; rm -f Makefile'.
12255 * troff/hyphen: Rename to...
12257 * troff/input.cc (main): Delete -H option. Don't call
12258 read_hyphen_file().
12259 * troff/env.cc: Include searchpath.h and macropath.h.
12260 (exception_dictionary): Deleted.
12262 (read_hyphen_file): Deleted.
12263 (hyphenation_language): New struct.
12264 (class trie, class hyphen_trie): Move declarations up.
12265 (trie_node::~trie_node): Deleted.
12266 (trie::delete_trie_node): New function.
12267 (trie::do_delete): New pure virtual function.
12268 (hyphen_trie::do_delete): New function.
12269 (trie::~trie): New function.
12270 (hyphen_trie::~hyphen_trie): New function.
12271 (trie::clear): No need to chcek that tp is not 0.
12272 (current_language, language_dictionary): New variables.
12273 (hyphen_word): Give an error if no current language. Use
12274 exceptions dictionary in current language.
12275 (hyphen_trie::read_patterns_file): Find file using macro_path.
12276 Allow comments (starting with %) in patterns file. Don't make it
12277 a fatal error if the file can't be found.
12278 (hyphenate): Return if no current language. Get the exceptions
12279 dictionary and the hyphenation patterns from the current language.
12280 (set_hyphenation_language): New variable.
12281 (hyphenation_patterns_file): New function.
12282 (hyphenation_language_reg): New class.
12283 (hyphenation_language_reg::get_string): New function.
12284 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12285 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
12287 * groff/groff.cc (main, help, synopsis): Delete -H option.
12288 * include/Makefile.sub: Don't define HYPHENFILE.
12289 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12290 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12291 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12292 hyphenation patterns.
12294 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
12296 * eqn/neqn.sh: New file.
12297 * eqn/Makefile.sub: Handle neqn.sh.
12299 * eqn/eqn.h: Declare `nroff' variable.
12300 * eqn/box.cc (param_table): Add `nroff' param.
12301 (nroff): Define it.
12302 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12304 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12306 * troff/troff.h (WARN_FONT): New warning.
12307 (WARN_TOTAL): Change accordingly.
12308 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12309 (warning_table): Add WARN_FONT.
12310 * troff/node.cc (mount_font_no_translate): Pass argument to
12311 font::load_font. If this is non-zero, give a warning.
12312 Don't give an error message when accessing a font that has already
12313 been found to be invalid.
12314 * include/font.h (font::load, font::load_font): Add additional
12315 optional argument which suppresses error message if the font is
12317 * libgroff/font.cc (font::load_font): Handle additional argument.
12318 (font::load): Add additional argument. If this is non-null, set it
12319 to 1 and don't give error message.
12321 * include/printer.h (printer::end_page): Add argument giving
12323 * libdriver/input.cc (do_file): Pass this.
12324 * grops/ps.cc (ps_printer::end_page): Add argument.
12325 * grodvi/dvi.cc (dvi_printer::end_page,
12326 draw_dvi_printer::end_page): Add argument.
12327 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12328 columns_per_page members. New member nlines.
12329 (DEFAULT_LINES_PER_PAGE): Deleted.
12330 (tty_printer::tty_printer): Don't compute lines_per_page from
12331 font::paperlength. Don't compute columns_per_page from
12333 (tty_printer::add_char): Don't check horizontal position against
12334 columns_per_page. Grow glyphs vector if neccessary.
12335 (tty_printer::end_page): Add argument giving page_length in units.
12336 Discard lines past end of page.
12338 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
12340 * tmac/tmac.tty-char: Fix definition of \(/l.
12342 * tmac/tmac.X: Define \(en.
12344 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
12346 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12347 lpq, then use lp rather than lpr.
12349 * tmac/tmac.s (par@reset): Don't call `ad'.
12350 (par*env-init): Call `ad'.
12352 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
12354 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12357 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12358 * indxbib/indxbib.cc: Likewise.
12360 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
12362 * libgroff/putenv.c: New file.
12363 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12364 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12365 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12366 stdlib.h with AC_HAVE_HEADERS.
12368 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
12370 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12373 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
12375 * eqn/box.cc (gsize): Make it an int.
12376 (set_gsize): Parse argument handling increment or decrement.
12377 (box::top_level): Convert gsize to a string.
12379 * troff/input.cc (exit_troff): Make buf unsigned char [].
12380 Call to make_temp_iterator casts buf to char*.
12382 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12384 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12385 * Makefile.cpg (depend.temp): Likewise.
12387 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12389 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12391 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
12393 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12395 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
12397 * Version 1.06 released.
12399 * Integrate mm 1.04.
12401 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
12403 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12405 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
12407 * afmtodit/afmtodit.pl: Add -n option that disables generation of
12409 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12410 afmtodit. Regenerate.
12412 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12413 @f back past the current position.
12415 * tmac/tmac.e: Change calls to @R so that comments are not part of
12418 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
12420 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12422 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12423 check that we can link a call to a function declared in <stdio.h>.
12424 (GROFF_UNISTD_H): New macro.
12425 * configure.in: Call it.
12426 * Makefile.in: Document it.
12427 * include/posix.h: New file.
12428 * troff/troff.h: Don't include <osfcn.h>
12429 * troff/input.cc: Include posix.h.
12430 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12432 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12433 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12435 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12436 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12437 * libbib/search.cc (O_RDONLY): Delete definition.
12438 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12439 Don't include <osfcn.h>.
12441 * acgroff.m4 (GROFF_TIME_T): New macro.
12442 * configure.in: Call it.
12443 * Makefile.in: Document it.
12445 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12446 * configure.in: Call it.
12447 * Makefile.in: Document -DTRADITIONAL_CPP.
12448 * include/ptable.h: Don't include generic.h.
12449 (name2): Define it.
12451 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12452 Afterwards remove [T1 and [T2.
12453 (ref*spec!0, ref*spec!2): Use T1 rather than T.
12454 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12455 (ref*add-T2): Renamed from ref*add-T.
12456 (ref*add-T1): New macro.
12458 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
12460 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12462 * libbib/index.cc: Include <fcntl.h>.
12463 (O_RDONLY): Define if necessary.
12464 (make_index_search_item, index_search_item_iterator::get_tag,
12465 index_search_item::check_files): Use O_RDONLY.
12466 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12467 (O_RDONLY): Define if necessary.
12468 (search_list::add_file): Use O_RDONLY.
12469 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12471 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12474 * libbib/index.cc (S_ISREG): Define it if necessary.
12475 (index_search_item::load): Use S_ISREG.
12477 * include/driver.h: Include <errno.h>.
12479 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
12481 * eqn/box.cc (body_height): Increase default value to 85.
12482 (body_depth): Increase default value to 35.
12484 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
12486 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12487 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12488 protected from expansion with \E.
12490 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12492 * Makefile (Makefile): New target.
12494 * Makefile.sub (configure, distfiles): New targets.
12496 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12499 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
12501 * eqn/box.cc (param_table): Add body_height and body_depth.
12503 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12505 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
12507 * psbb/Makefile.sub: Don't link with libgroff.a.
12509 * acgroff.m4 (GROFF_PUTENV): New macro.
12510 * configure.in: Call GROFF_PUTENV.
12511 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12512 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12515 * troff/env.cc (distribute_space): Rename force_forward argument
12516 to force_reverse. Reverse the list if force_reverse is true.
12518 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
12520 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12522 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12523 height or depth to be negative. Guard against SUP_RAISE quantity
12526 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
12528 * devps/generate/textmap: Add `an' (arrowhorizex).
12529 * tmac/tmac.ps: \(an overlaps horizontally.
12530 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12532 * devps/symbolchars: Add arrowverttp, arrowvertbt.
12533 * devps/textmap: Add arrowvertex.
12534 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12535 updownarrow delimiters.
12536 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12538 * tbl/table.cc (simple_entry::position_vertically,
12539 block_entry::position_vertically): For a centered entry, perform
12540 the motion in two stages.
12542 * refer/refer.cc (split_punct): Don't call lookup_token if there
12545 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
12547 * troff/input.cc (token::next): Delete token_node after copying
12550 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12553 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12555 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12557 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
12559 * grops/ps.cc (usage): -b option takes an argument.
12561 * devps/prologue (PLG): New procedure.
12562 * grops/ps.cc (main, usage): New -g option.
12563 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
12566 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
12568 * include/cset.h: Include <limits.h> if we have it.
12570 * libgroff/illegal.cc: New file.
12571 * include/lib.h (illegal_input_char): Use table.
12572 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12573 * pic/lex.cc (ARG1): Renumber to 14.
12574 * eqn/lex.cc (ARG1): Likewise.
12576 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12577 (eg 1.05.90) correctly.
12579 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
12581 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12582 Rename $r and $R registers to $v and $V.
12583 ($r, $R): Initialize to 0.
12584 (@v, @V): New macros.
12588 * troff/input.cc (main, usage): Add -R option that says not to
12590 * eqn/main.cc (main, usage): Rename -n to -R.
12592 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
12594 * devps/DESC.in: Leave font positions 5-9 blank.
12595 * devdvi/DESC.in: Likewise.
12597 * grog/grog.pl: Handle `.PS <file' correctly.
12599 * troff/input.cc (input_stack::push): Improve error message when
12600 input stack limit exceeded.
12602 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
12604 * refer/refer.cc (main): Fix typo in handling of `a' option.
12606 * refer/refer.cc (do_bib): In state START after a newline remain
12609 * groff/groff.sh: Deleted.
12610 * groff/Makefile.sub: Delete handling of groff.sh.
12612 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12613 to determine whether to use \X'ps:...'.
12614 * tmac/troffrc: Set 0p register to 0.
12615 * tmac/tmac.ps: Set 0p register to 1.
12617 * groff/groff.cc: Support -X option. Give warning for -TXps and
12618 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12619 * tmac/troffrc: Support -r.X=1.
12621 * pic/troff.cc (troff_output::dot): Don't test
12622 zero_length_line_flag.
12624 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
12626 * include/lib.h: Declare getopt() and friends unless
12627 STDLIB_H_DECLARES_GETOPT is defined.
12629 * doc/chars.tr: Delete.
12630 * man/groff_char.man: New file.
12632 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
12634 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12635 user has changed register format.
12637 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
12639 * groff/groff.cc: Get rid of device_table. Get postprocessor from
12640 `postpro' command in DESC file. Get spooler command from `print'
12641 command in DESC file. Execute spooler command with /bin/sh.
12643 * groff/groff.cc: Split Unix-specific parts into...
12644 * groff/pipeline.c: New file.
12647 * COPYING: New file.
12648 * all files: Update copyright notices.
12650 * Rearrange files. Redo Makefiles. Use autoconf.
12652 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
12654 * troff/input.c (charinfo_to_node_list): Interpret character
12655 definition with escape_char of `\'.
12657 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
12659 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12660 Define INT_DIGITS as big enough for 64-bit integer.
12661 * lib/strtol.c: Don't include lib.h.
12662 * lib/lib.h: Delete ifdef __cplusplus stuff.
12664 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
12666 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
12667 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
12668 get DESC from current directory.
12670 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
12672 * tbl/main.c (main): Always reset the line number when reading
12675 * tbl/table.c (table::print_single_hline, table::print_double_hline,
12676 table::define_bottom_macro, table::do_row, table::do_top): Round
12677 vertical spacing up to vertical resolution.
12679 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
12681 * ps/ps.h (enum resource_type): Avoid comma at end of
12683 * dvi/dvi.c (class dvi_printer): Likewise.
12684 * dvi/tfmtodit.c (gf::load): Likewise.
12685 * refer/label.y (struct expression): Likewise.
12686 * refer/refer.c (class label_processing_state): Likewise.
12687 * refer/indxbib.c (do_file): Likewise.
12688 * troff/troff.c (enum warning_type): Likewise.
12689 * tbl/main.c (process_data): Likewise.
12690 * troff/charinfo.h (class charinfo):
12692 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
12694 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
12696 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
12698 * groff.c: Move to new groff subdirectory.
12699 * groff/Makefile: New file.
12700 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12702 * man/mdate.sh: Use ls -L if supported.
12704 * Consolidate all header files produced by gendef into lib/defs.h.
12705 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12706 Don't include path.h.
12707 * lib/Makefile (path.h): Don't generate.
12708 * troff/input.c: Include defs.h. Don't include config.h.
12709 * troff/Makefile (config.h): Don't generate.
12710 * refer/index.h: Don't include suffix.h.
12711 * refer/index.c: Include defs.h.
12712 * refer/indxbib.c: Include defs.h.
12713 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12715 * refer/Makefile (suffix.h, path.h): Don't generate.
12716 * groff.c: Don't include config.h. Include defs.h.
12717 * Makefile (config.h): Don't generate.
12718 (lib/defs.h): Generate.
12719 (topclean): Remove lib/defs.h.
12721 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
12723 * lib/malloc.c, lib/getpagesize.h: Deleted.
12724 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
12726 * lib/Makefile: Delete malloc-related stuff.
12727 * lib/new.c: Workaround COOKIE_BUG if necessary.
12729 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
12730 needed header files directly.
12731 * refer/refer.h: Omit definition of DEFAULT_INDEX.
12732 * Makefile: Include definition of DEFAULT_INDEX in path.h.
12734 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
12736 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12738 * lib/font (font::load_desc, font::load): Don't split argument of
12740 (font::handle_unknown_font_command): Change type.
12741 * ps/ps.c (ps_font::handle_unknown_font_command,
12742 handle_unknown_desc_command): Change type.
12743 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12745 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
12747 * lib/font.h (font::handle_unknown_font_command): Add file and
12749 * lib/font.c (font::handle_unknown_font_command):
12750 * ps/ps.c (ps_font::handle_unknown_font_command):
12751 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12752 lineno arguments. Use _with_file_and_line functions for error
12755 * lib/fontfile.c (font::unknown_desc_command_handler): New static
12757 * lib/font.c (font::set_unknown_desc_command_handler): New
12759 (font::load_desc): For unknown commands, call
12760 unknown_desc_command_handler if not null.
12761 * lib/font.h (class font): Declare them.
12762 (FONT_COMMAND_HANDLER): New typedef.
12763 * ps/ps.c (handle_unknown_desc_command): New function.
12764 (main): Set bflag if we had a -b option. Call
12765 font::set_unknown_desc_command_handler.
12766 (broken.h): Don't include.
12767 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12769 * ps/devps/Makefile: Add `broken' command to DESC file using
12770 BROKEN_SPOOLER_FLAGS.
12772 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12774 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12776 * macros/tmac.e (@R, @S): New macros.
12777 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12778 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12779 Declare $H, $[0-9], .. macros with @S.
12780 Declare |0, |1, |2, |3 strings with @S.
12782 * macros/tmac.e (@S): Rename to @U.
12784 * macros/tmac.e (@z): Define @b and bp as empty instead of
12787 * macros/tmac.e (@m): Deleted.
12788 (@h): Don't call @m.
12789 (@z): Don't set @m trap.
12791 * macros/tmac.e ($h, $f): Define |z as empty string.
12793 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12796 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12798 ()f): Likewise for * register.
12800 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12801 argument is missing, don't change $R. Call sr with three
12802 arguments when initializing.
12804 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12806 * macros/tmac.e (sr): New macro.
12807 Initialize $r and $R using sr.
12809 * macros/tmac.e (,): Delete \*(#[.
12811 * troff/env.c (set_tabs): Read the tab type even if the position
12812 is bad. Allow the position of the first tab stop to be negative.
12814 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12816 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12818 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12819 rather than -DPATHCONF_MISSING.
12820 * Makefile: Get rid of PATHCONF_MISSING.
12822 * refer/map.c: New file.
12823 * refer/index.c: Interface to mmap through map.c. Rename map_size
12825 * refer/Makefile: Handle map.c.
12826 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12828 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12830 * Makefile: RANLIB should be `true' if there is no ranlib.
12831 * lib/Makefile (libgroff.a): Simplify.
12832 * driver/Makefile (libdriver.a): Simplify.
12834 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12835 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12838 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12840 * troff/env.c (compare_ranges): Declare as extern "C".
12842 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12844 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12846 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12848 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12849 but conditionalize use of \X based on \*(.T.
12850 (grops_output::*): Deleted.
12851 * pic/output.h: Delete declaration of make_grops_output.
12852 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12853 by default. -n sets it to 0.
12854 (usage): Corresponding changes.
12855 * groff.c (main): Don't pass -x or -p to pic.
12856 * groff.sh: Likewise.
12858 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12861 * ps/devps/afmtodit: Change calculation of asc_boundary and
12862 desc_boundary. Make these bounds inclusive.
12863 * ps/devps: Regenerate font files.
12865 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12867 * macros/tmac.latin1: New file.
12868 * macros/tmac.tty-char: Use tmac.latin1.
12869 (tmac.tty-tr): Deleted.
12870 * macros/Makefile: Install tmac.latin1.
12871 * macros/tmac.dvi: Use tmac.latin1.
12872 * macros/troffrc: Translate \[char160] onto no-break space here.
12873 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12875 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12877 * macros/tmac.Xps: Use `do' request.
12879 * macros/tmac.ps: Use `do' request.
12881 * macros/tmac.e (@C): Use `do' request.
12883 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12884 * macros/Makefile: Install tmac.X*.
12886 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12887 * tty/Makefile: Don't install tmac.tty*.
12888 * macros/Makefile: Install tmac.tty*.
12890 * dvi/tmac.dvi: Move to macros.
12891 * dvi/Makefile: Don't install tmac.dvi.
12892 * macros/Makefile: Install tmac.dvi.
12894 * ps/tmac.ps*: Move to macros.
12895 * ps/Makefile: Don't install tmac.ps*.
12896 * macros/Makefile: Install tmac.ps*.
12898 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12900 * macros/eqnrc: Set draw_lines parameter based on device.
12901 * groff.c: Don't pass -D flag to eqn.
12902 * groff.sh: Likewise.
12903 * eqn/main.c: Warn about use of -D.
12905 * troff/input.c (process_startup_file): New function.
12906 (main): Call process_startup_file().
12907 * macros/troffrc: New file.
12908 * macros/Makefile: Install troffrc.
12909 * groff.c (main): Don't pass extra -m option to troff. For a
12910 pseudo device pass the name of the pseudo device to troff using
12912 * groff.sh: Likewise.
12913 * groff.c (possible_command::prepend_arg): Deleted.
12915 * troff/input.c (do_request): New function.
12916 (init_input_requests): Bind "do" to do_request.
12918 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12919 load eqnrc from macro directory.
12920 * macros/eqnrc: New file.
12921 * macros/Makefile: Install eqnrc.
12922 * ps/devps/eqnchar: Deleted.
12923 * ps/devps/Makefile: Don't install eqnchar.
12924 * dvi/devdvi/eqnchar: Deleted.
12925 * dvi/devdvi/Makefile: Don't install eqnchar.
12926 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12929 * lib/device.[ch]: New files.
12930 * lib/font.h (font::set_device_name, font::get_device_name):
12932 * lib/fontfile.c: Use device.h.
12933 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12934 * troff/input.c: Delete definition of `device'.
12935 (main): Don't initialize device.
12936 * troff/troff.h: Include device.h rather than declaring device.
12937 * troff/Makefile: No need to handle DEVICE.
12938 * driver/input.c: Include device.h. Don't use
12939 font::{set,get}_device_name.
12940 * groff.c, Makefile: Rename device.h to config.h.
12941 * groff.c: Use library device variable.
12942 * eqn/main.c: Use library device variable.
12943 * eqn/Makefile: No need to handle DEVICE.
12945 * lib/searchpath.[ch]: New files.
12946 * lib/Makefile: Handle searchpath.[ch].
12947 * troff/input.c (open_file, init_dirs): Deleted.
12948 (macro_dirs): Deleted.
12949 (open_mac_file, macro_source): Use class search_path.
12950 (add_string, struct string_list): Move definition.
12951 (main): Change -M option to use macro_path. Delete call to
12953 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12954 Rewrite to use class search_path.
12955 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12956 * lib/Makefile: fontfile.c depends on searchpath.h.
12957 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12959 * lib/macropath.[ch]: New files.
12960 * troff/Makefile: No need to handle MACROPATH.
12962 * troff/input.c: Delete DUMP code.
12963 * lib/fontfile.c, lib/font.h: Delete
12964 font::forget_command_line_font_dirs.
12966 * troff/input.c (push_token): New function.
12967 (handle_first_page_transition): Use push_token().
12968 (process_input_stack): Change handling of a space at the beginning
12971 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12973 * troff/input.c (font_dirs): Delete unused variable.
12975 * eqn/lex.c (do_set): Correct error messages.
12977 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12979 * troff/input.c (do_define_string): Allow the string name to be
12980 followed immediately by a tab.
12981 (define_character): Likewise.
12983 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12985 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12988 * troff/input.c (input_iterator::is_file): New virtual function.
12989 (file_iterator::is_file): New function.
12990 (input_stack::end_file): New function.
12991 (input_stack::next_file): Handle the situation where there is no
12992 file on the input stack correctly. Avoid making two passes over
12994 (next_file): Make the filename optional; in this case call
12995 input_stack::end_file().
12997 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12999 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13000 produce a real _ charater when the current font is CW and _
13003 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13004 expression to work around gcc 2.2 bug.
13006 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
13008 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13010 * troff/env.c (environment::add_padding): New function.
13011 (environment::add_char): Use add_padding().
13012 (environment::space): Likewise.
13013 (environment::wrap_up_field): Add some padding if there is none
13014 and there's no current tab.
13015 * troff/env.h: Declare environment::add_padding.
13017 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
13019 * pic/pic.y: undef fmod and rand before declaring them.
13021 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
13023 * troff/input.c (main): If the DESC file specifies a font name of
13024 0, then leave the corresponding font position empty.
13026 * nroff.sh: New file.
13027 * Makefile (install.nobin): Install nroff.sh.
13029 * tty/devlatin1/R.proto: Add ao as synonym for de.
13030 * tty/tmac.tty-char: Define ao as o.
13032 * tty/dev{ascii,latin1}/R.proto: Add aq.
13033 * tty/tmac.tty-char: Delete definition of aq.
13035 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
13037 * troff/input.c (init_charset_table): Don't translate 0240.
13038 * ps/tmac.ps: Translate char160 to space.
13039 * dvi/tmac.dvi: Likewise.
13040 * tty/tmac.tty: Likewise.
13042 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
13044 * dvi/tmac.dvi: Add support for all Latin-1 characters.
13046 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13047 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13050 * tty/tmac.tty-char: Add \(ah.
13052 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13053 No need to define \(FM and \(!/. Conditionalize all character
13056 * ps/devps/lgreekmap: Add +h, +f, +p.
13058 * ps/tmac.psnew: New file.
13059 * ps/Makefile: Install tmac.psnew.
13061 * troff/input.c (charinfo_to_node_list): Don't ever interpret
13062 character definitions in compatible mode.
13064 * troff/input.c (remove_character): New function.
13065 (init_input_requests): Bind remove_character to "rchar".
13067 * ps/tmac.psold: New file.
13068 * ps/Makefile: Install tmac.psold.
13069 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13070 characters into tmac.psold. Make these definitions unconditional.
13072 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13074 * ps/tmac.ps: Don't define \('c and \('C.
13076 * ps/devps/textmap: Move Greek characters to...
13077 * ps/devps/symbolchars:
13079 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
13081 * ps/devps/text.enc: Add quotesingle.
13082 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13083 * tty/tmac.tty-char: Likewise.
13084 * dvi/devdvi/texmi.map: Add +h, +f, +p.
13085 * dvi/devdvi/texi.map: Add Fn.
13086 * dvi/devdvi/msam.map: Add lz.
13087 * dvi/tmac.dvi: Handle Bq, bq, aq.
13089 * pic/lex.c (get_token): Recognize 'th.
13090 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13092 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
13094 * ps/devps/textmap: Move di, mu, +- to...
13095 * ps/devps/symbolchars:
13097 * macros/tmac.s (@XS): Don't call par@reset or fi.
13098 (XA): Call LP. Turn off adjustment. Reduce line length.
13100 * macros/tmac.s: Initially alias XS to LP.
13101 (XS): Rename to @XS.
13102 (cov*ab-init): Alias XS to @XS.
13104 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
13106 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13107 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13108 (token::is_size, token::changes_env): Deleted.
13109 * troff/number.c (parse_term): No need to process \s explicitly.
13110 Call tok.next() only after scale indicator has been processed.
13111 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13113 (token::next): Handle \s, \f, \S, \H immediately rather than
13114 returning them as tokens.
13115 (token::operator==, token::description, token::add_to_node_list,
13116 token::process): Remove handling of deleted tokens.
13118 * troff/env.c (environment::add_char): When adding padding
13119 indicator character, call start_line() if necessary.
13121 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
13123 * ps/devps/afmtodit: Don't output 0 kerns.
13125 * ps/devps/afmtodit: Remove directory from name of encoding in
13126 font description file.
13128 * ps/devps/afmtodit: Improve error messages.
13130 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13132 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13133 * ps/devps/FontMakefile: Deleted.
13134 * ps/devps/afmname: New file.
13136 * ps/devps/symbol.sed: New file.
13137 * ps/devps/symbol.diff: Deleted.
13138 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13139 Generate zapfdr.afm from zapfd.afm.
13141 * tty/tmac.tty (tty-char): Prefix definition with ".
13143 * macros/tmac.an (TP): Don't start a diversion if one has already
13146 * tty/tmac.tty-char: Add Latin-1 characters.
13148 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13150 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
13152 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13153 Move declaration of struct horizontal_span.
13155 * tbl/table.c (table::table): Initialize span_list.
13156 (table::~table): Delete span_list.
13158 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13160 * ps/devps/Makefile: Avoid dependency on GNU make.
13162 * ps/tmac.ps: Check that character does not already exist before
13165 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13166 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13167 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13170 * tty/tmac.tty-char: New file.
13171 * tty/Makefile: Install tmac.tty-char.
13172 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13175 * tty/tmac.tty: Fix definition of \(34.
13177 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13178 bracket-drawing characters onto |. Add *o.
13180 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13181 only if current_field.
13183 * troff/dictionary.c (dictionary::lookup): Free old_table after
13186 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
13188 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13189 whose glyphs are identical to glyphs of some Roman character.
13191 * tty/devlatin1/R.proto (bu): Deleted.
13192 * tty/devascii/R.proto (bu): Deleted.
13193 * tty/tmac.tty: Add definition of \(bu.
13195 * eqn/main.c (do_file): Pass FILE as argument.
13196 (main): Automatically load eqnchar. New options -F and -n.
13197 Pass do_file an opened FILE.
13198 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13199 No need to include font.h.
13200 * groff.sh: Likewise. Don't need to use - for standard input.
13201 Prefix files with -- if first file starts with -.
13203 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13205 * troff/env.c (environment::possibly_break_line): Don't set line
13206 to 0 across call to output_line(). Don't call output_line() until
13207 after discarding nodes after break.
13209 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
13211 * request.h (macro::empty): Declare it.
13212 * input.c (macro::empty): New method.
13213 (interpolate_macro): Don't give a WARN_SPACE if the two-character
13216 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
13218 * troff/env.c (environment::start_field): Decrement space_total
13219 when a space is frozen.
13221 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
13223 * macros/tmac.an (R): Delete macro.
13225 * troff/input.c (get_copy, token::next): Support \# (like \" but
13226 newline is ignored).
13228 * troff/input.c (token::next): Fix error message in 'Y' case.
13230 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
13232 * eqn/delim.c (define_extensible_string): Recognize any prefix of
13235 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
13237 * c++test.c: Include <osfcn.h>.
13239 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13242 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
13244 * tbl/table.c (table::divide_span): Don't count column separation
13245 if expand was specified.
13247 * tbl/main.c (process_format): Don't ignore width specs in
13248 continued format. Give warning for changing equal widths or
13249 column separation in continued format.
13250 (process_data): Set column separation, minimum width, equal
13251 columns at end of table.
13253 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
13255 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13256 node::add_discretionary_hyphen): Use soft_hyphen_char.
13257 (set_soft_hyphen_char): New function.
13258 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
13260 * Makefile (c++tested): Give more helpful message if test fails.
13262 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
13264 * troff/input.c (init_charset_table): Translate 0240 to
13265 an unbreakable space.
13267 * troff/token.h (token::hyphen_indicator): New function.
13268 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13270 * troff/input.c (translate): Allow translation to \%.
13271 * troff/node.c (node::add_char): Handle
13272 TRANSLATE_HYPHEN_INDICATOR.
13273 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13275 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13278 * tty/devlatin1/R.proto: \(hy and - should print as 055.
13280 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
13282 * groff.c (run_commands): If the last command gets a SIGPIPE send
13283 a SIGPIPE to all children than haven't yet terminated. When
13284 command terminates, set pid field to -1.
13286 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
13288 * groff.c (main): Pass an appropriate -filename option to gxditview.
13290 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
13292 * Makefile.bd (install): Remove existing program before copying.
13294 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13295 programs which have Unix counterparts to be installed with
13296 user-specified prefix.
13298 * troff/input.c (exit_troff): Don't check if exit_started.
13299 (exit_request): Don't call exit_troff if exit_started.
13301 * Makefile.bd (install.mm): Rename to install.dwbmm.
13303 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
13305 * driver/input.c (do_file): Add missing break for '#' case.
13307 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
13309 * troff/input.c (input_stack::clear): Clear past any boundaries and
13310 then add the boundaries back.
13312 * troff/input.c (exit_troff): Return immediately if already
13315 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
13317 (pg*end-page): If the text has ended and there are no more
13318 footnotes or keeps, exit.
13320 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13322 * troff/input.c (init_charset_table): Make \(rq transparent by
13325 * macros/tmac.an: Define lq and rq strings.
13327 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13329 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
13331 * troff/env.c (environment::final_break): New function.
13332 (environment::newline): Set prev_line_interrupted to 2 if
13334 * troff/env.h: Declare environment::final_break.
13335 * troff/input.c (exit_troff): Call environment::final_break()
13336 instead of environment::do_break().
13338 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13339 doesn't already exist.
13340 * macros/man.local: New file.
13341 * macros/tmac.an: Load man.local.
13342 * macros/man.ultrix: New file.
13344 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
13346 * troff/input.c (exit_groff): Rename to...
13347 (exit_troff): New function.
13349 * troff/div.c (exit_started, done_end_macro,
13350 seen_last_page_ejector): New global variables.
13351 (began_page_in_end_macro): New static variable.
13352 (exit_flag): Deleted.
13353 (top_level_diversion::top_level_diversion): Initialize
13355 (top_level_diversion): More elaborate test for whether
13356 cleanup_and_exit() should be called.
13357 Set began_page_in_end_macro if the end macro isn't yet finished.
13358 * troff/div.h (top_level_diversion::last_page_count): New data
13360 (top_level_diversion::set_last_page): New function.
13361 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13362 * troff/env.c (do_break): Zero prev_line_interrupted.
13363 * troff/input.c (exit_flag): Delete declaration.
13364 (LAST_PAGE_EJECTOR): New magic cookie.
13365 (token::next): Handle LAST_PAGE_EJECTOR.
13366 (exit_groff): Set exit_started and done_end_macro instead of
13367 exit_flag. Call top_level_diversion::set_last_page. Push a
13368 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
13369 another ejection after setting seen_last_page_ejector.
13371 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
13373 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13375 * macros/tmac.e (TH): Make sure there's room for the initial
13378 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13379 Set FVS in points rather than units.
13381 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
13383 * troff/div.c (top_level_diversion::add_trap): Don't consider the
13384 position of empty slots.
13386 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
13388 * ps/devps/S: Fix height and depth of parenrightex.
13389 * ps/devps/symbol.diff: Regenerate.
13391 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
13393 * tmac.e (u): Do underlining as in -mgs.
13395 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
13397 * tty/tty.c (tty_printer::end_page): If overstriking is
13398 suppressed, still turn overstruck horizontal and vertical lines
13401 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13404 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13406 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
13408 * Version 1.05 released.
13410 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
13412 * tty/tty.c: Instead of keeping an array of glyphs and then
13413 sorting it, keep a ordered linked list of glyphs for each line.
13415 * driver/driver.h: Include stddef.h.
13417 * tty/tty.c (compare_glyph):
13418 * refer/refer.c (rcompare):
13419 * troff/env.c (compare_ranges): Arguments of qsort comparison
13420 function should be const void *.
13422 * troff/number.c (parse_term):
13423 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13426 * refer/label.y (consider_authors): Don't access variables
13427 constructed under a condition outside that condition: put braces
13428 round for statement containing declaration; redeclare use of same
13431 * pic/pic.y (text_expr): Delete production that allows
13432 parenthesised text_expr.
13433 (expr): Allow a conditional_expr to appear in parentheses.
13434 (conditional_expr): Rename to any_expr.
13436 * mm: Install new version 1.01 from jh.
13438 * lib/font.c (font::get_width): Cache scaled widths.
13439 (font::font): Initialize widths_cache.
13440 (font::~font): Destroy widths_cache.
13441 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13443 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
13445 * c++test.c, c++test.ref: New files.
13446 * Makefile: Check that the C++ compiler works.
13448 * ps/tmac.pspic (PSPIC): Do a break.
13450 * ps/tmac.ps: Move definition of PSPIC into...
13451 * ps/tmac.pspic: New file.
13452 (PSPIC): Draw box around picture, but make it invisible to grops.
13453 * ps/tmac.ps: Load tmac.pspic.
13454 * ps/Makefile: Install tmac.pspic.
13456 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
13458 * lib/font.c (scale_round): If n is negative,
13459 subtract .5 before truncating floating point result.
13461 * lib/fontfile.c: Include <errno.h>.
13463 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
13465 * driver/input.c (get_char): Inline. Don't update current_lineno.
13466 Change callers to up date current_lineno if necessary.
13467 Use get_char() instead of getc(current_file).
13469 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
13471 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13473 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
13475 * tty/tty.c (tmac.tty): Define \(rg as (R).
13477 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
13479 * lib/lib.h: New define a_delete.
13480 * Use a_delete instead of delete when deleting an array of objects
13481 without destructors.
13483 * lib/lib.h: Rename adelete to ad_delete.
13484 * Change uses of adelete.
13486 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
13488 * eqn/eqn.y: Include lib.h.
13490 * troff/node.c (grow_font_table): Delete old_font_table.
13492 * mm: Install new version from jh.
13494 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
13496 * tbl/table.h (format_type): Make global instead of local to class
13497 entry_format. Prefix enumerators with FORMAT_.
13498 * tbl/table.c, tbl/main.c: Corresponding changes.
13499 * refer/token.h (token_type): Make global. Prefix enumerators
13501 * refer/token.[ch]: Corresponding changes.
13502 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13504 * troff/div.c (node::set_vertical_size): Don't name argument.
13506 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
13508 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13509 * lib/lib.h: Define adelete accordingly.
13510 * pic/object.c (graphic_object::graphic_object):
13511 * tbl/main.c (format::~format):
13512 * tbl/table.c (table::~table):
13513 * refer/ref.c (reference::~reference, reference::merge,
13514 reference::insert_field, reference::delete_field): Use adelete.
13516 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13518 * tbl/table.h: Corresponding changes.
13520 * common.c (common_output::dashed_arc, common_output::dotted_arc):
13521 Ensure total_angle is positive.
13523 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
13525 * refer/ref.c (reference::merge, reference::insert_field,
13526 reference::delete_field): Avoid delete[0].
13528 * refer/token.c (init_special_chars): Move calls to cmupper
13529 outside calls to init_two_char_letter to work around bug in gcc
13532 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
13534 * lib/new.c (operator new): Use __builtin_new for g++.
13536 * pic/object.c (graphic_object::~graphic_object): Don't use
13539 * pic/object.c (output::compute_scale): Initialize max_width and
13542 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
13544 * troff/input.c (write_request): Call fflush.
13546 * troff/node.h (class composite_node): Move declaration to node.c
13547 * troff/input.c (charinfo_to_node): Rename to ...
13548 (charinfo_to_node_list): Return node list rather than composite
13550 * troff/node.c (make_composite_node): New function.
13551 (make_node, add_char): Call make_composite_node instead of
13553 (class composite_node): Add a tfont * member. Delete font_size
13555 (composite_node::composite_node, composite_node::copy,
13556 composite_node::size): Corresponding changes.
13557 (composite_node::tprint): Provide constant spacing, emboldening
13558 and track kerning as specified in tfont.
13559 (composite_node::width): Change width calculation accordingly.
13560 * troff/env.h (environment::composite): New member.
13561 (environment::is_composite, environment::set_composite): New
13563 * troff/env.c (environment::environment): Initialize composite.
13564 * troff/input.c (charinfo_to_node): Call
13565 environment::set_composite.
13566 * troff/node.c (make_composite_node, make_glyph_node): Use the
13567 plain version of the tfont if the environment is composite.
13569 * troff/node.c (font_info::get_space_width): Additional argument
13570 giving space_size. Handle constant space correctly. Scale by
13571 space_size unless constant spaced.
13572 (env_sentence_space_width): New function.
13573 * troff/node.h: Declare it.
13574 * troff/env.h (environment::get_space_size,
13575 environment::get_sentence_space_size,
13576 environment::get_narrow_space_width,
13577 environment::get_half_narrow_space_width): Make inline.
13578 (environment::get_space_width): Make inline. Just call
13580 * troff/env.c: Delete definitions for funtions made inline.
13581 (environment::space_newline, environment::space): Use
13582 env_sentence_space_width(). Don't scale by space_size.
13583 * troff/node.h: Move declarations of env*space_width() functions
13586 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
13588 * macros/tmac.s (PS): Don't try to set negative indent.
13590 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
13592 * pic/pic.y: Fix min function.
13594 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
13596 * man/mdate.sh: Clear LANGUAGE.
13598 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
13600 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13601 * pic/lex.c: New COMMAND keyword.
13602 * pic/pic.y (print_args, print_arg): New rules.
13603 (placeless_element): Use print_args for PRINT.
13604 New COMMAND element.
13606 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
13608 * troff/input.c (terminal): Handle missing argument correctly.
13610 * pic/pic.y (text_expr): New rule.
13612 * pic/pic.y: Implement := operator.
13614 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
13616 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13619 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
13621 * ps/devps/dingbatsrmap: Include this in the distribution.
13623 * macros/tmac.doc: Replace with new version from 2nd Networking
13624 Release. Fix loading of doc-* files.
13625 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13626 * macros/tmac.doc.old: New file. Apply fixes that had been
13627 applied to old tmac.doc.
13628 * macros/tmac.andoc: Check that we're running under groff.
13629 * macros/Makefile: Rework.
13631 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
13633 * tbl/table.h (format_type):
13634 * refer/token.h (token_type): If NESTED_TYPES is defined, use
13635 typedef to make these types visible at file scope.
13636 * Makefile: Add NESTED_TYPES configuration option.
13638 * troff/div.c (mark): At the top level use the value of
13639 nl_reg_contents rather than the current vertical position.
13641 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
13643 * tty/tty.c: Implement \D for horizontal or vertical lines.
13644 (tty_printer::set_char): Use vec_used+2 as serial number.
13645 Don't allow size of vector to exceed USHRT_MAX-2.
13646 Split off part into...
13647 (tty_printer::add_char): New function.
13648 (tty_printer::draw): New function.
13649 (compare_glyph): Handle equal serial numbers.
13650 (tty_printer::end_page): Handle overstruck characters from \D.
13651 (main, usage): Implement -d option.
13653 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
13655 * tbl/main.c (process_format):
13656 * eqn/text.c (split_text):
13657 * troff/input.c (token::next): Use inner block for declarations
13658 with initializers in switch statement.
13660 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
13662 * pic/common.c (common_output::dash_line): Cope with zero-length
13665 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
13667 * Version 1.04 released.
13669 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
13671 * macros/tmac.an (TH): Define a macro an-init to define variables
13672 based on command line arguments.
13673 (an-header): Call it.
13675 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
13677 * Makefile (install.mm): Rename to install.dwbmm.
13679 * Makefile: Integrate mm.
13680 * mm: New directory.
13682 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
13684 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13687 * pic/troff.c (troff_output::simple_spline,
13688 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13689 shadowing parameter.
13691 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13693 * lib/ptable.h: Add explicit casts when converting from unsigned
13696 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13697 * dvi/devdvi/Makefile: Install SA, SB.
13699 * refer/indxbib.c: Add declaration of mktemp.
13701 * refer/lookbib.c: Add declaration of isatty.
13703 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
13705 * pic/lex.c (interpolate_macro_with_args): While collecting
13706 arguments, keep track of whether we're in a string.
13708 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
13710 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13711 down with \v, so as to avoid problems with top of page trap
13712 setting no space mode.
13714 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
13716 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13718 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
13720 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13721 Improve error message.
13723 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
13725 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13728 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
13730 * groff.c (possible_command::execp): Always use _exit() after a
13733 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13734 NO_SYS_WAIT_H configuration options.
13735 * groff.c: Use these options. Use POSIX-style macros to extract
13736 fields from the status returned by wait().
13738 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
13740 * tbl/table.c (table::compute_separation_factor): Allow the
13741 separation factor to drop to 0.
13743 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
13745 * refer/search.c: Include <errno.h>.
13747 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
13749 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13751 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13754 * pic/lex.c (input_stack::bol): Move definition out of class body.
13756 * pic/main.c: On MSDOS munge argv[0].
13758 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13760 * lib/ptable.c (hash_string): Use unsigned long rather than
13762 (next_ptable_size): Use unsigned rather than int. Give an error
13763 message if we've hit the largest table size.
13764 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
13767 * pic/object.h (object_spec): Make flags unsigned long. Declare
13768 flags as const unisgned long rather than as enums.
13770 * pic/output.c: Deleted.
13772 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13774 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13775 Add additional argument.
13776 (line_entry::note_double_vrule_on_{left,right}): Set value of
13777 douvle_vrule_on_{right,left} flag according to argument.
13778 (simple_line_entry::simple_print,
13779 simple_line_entry::double_line_print): If adjacent to double vrule
13780 on a corner extend rather than shorten the rule by half the double
13783 * troff/number.c (parse_term): In checking for overflow, handle the
13784 case where the current horizontal position is negative.
13786 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13788 * pic/object.c (draw_arrow): Check for object having zero length.
13790 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13792 * eqn/main.c (do_file): Split off inline equation handling into...
13793 (inline_equation): New function. Search for starting delimiter
13795 (delim_search): New function. Don't recognize a delimiter that
13796 occurs in the name of an escape sequence, number register, string
13799 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13801 * eqn/delim.c (delim_box::compute_metrics): Don't call
13802 define_extensible_string if left is 0.
13803 (delim_box::output): Don't print the left delimiter if left is 0.
13804 (delim_box::debug_print): Check for left == 0 before calling printf.
13806 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13808 * troff/Makefile (majorminor.c): Include only digits in
13811 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13813 * refer/dirnamemax.c: new file.
13814 * refer/genlimits.c: Deleted.
13815 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13816 Don't check path length.
13817 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13818 * Makefile: Add PATHCONF_MISSING option.
13820 * refer/indxbib.c (get_cwd): New function.
13821 (main): Use get_cwd().
13822 * lib/getcwd.c: New file.
13823 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13824 GETCWD in SUBFLAGS.
13825 * lib/Makefile: Compile getcwd.o.
13827 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13830 * refer/indxbib.c (main): Check success of mktemp.
13832 * lib/tmpfile.c: New file.
13833 * lib/Makefile: Add tmpfile.c.
13834 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13835 * ps/ps.h: Delete declaration of mktemp().
13836 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13837 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13838 * driver/driver.h: No need now to include errno.h.
13840 * everywhere: Set errno to 0 before calling fopen().
13842 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13843 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13844 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13846 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13848 * troff/env.h (translate_space_to_dummy): Declare it.
13849 * troff/env.c (environment::space_newline, environment::space):
13850 If translate_space_to_dummy is set then make the width of spaces 0.
13851 * troff/input.c (translate): If the second character of a
13852 translation is a space, translate to unbreakable space. If the
13853 first character is a space, set or clear translate_space_to_dummy
13854 according to whether the second character is \&. Weird!
13856 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13858 * groff.c (run_commands): Don't use non-zero exit code because a
13859 command gets SIGPIPE.
13861 * groff.c, groff.sh: Use -mXps with -TXps.
13863 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13864 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13865 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13866 (ps_printer::special): New specials invis and endinvis.
13867 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13868 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13869 (ps_printer::end_page): Check that invis_count == 0.
13870 (ps_printer::invis_count): New member.
13871 (ps_printer::ps_printer): Initialize invis_count to 0.
13873 * troff/env.c (environment::hyphenate_line): Hyphenation
13874 indicator at beginning of word inhibits splitting after -, \(em
13877 * pic/pic.y (element): Allow another element to follow } without
13878 any intervening separator.
13880 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13882 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13884 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13886 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13887 declaration of wait() in header files.
13888 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13890 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13892 * lib/lib.h: Declare return type of strerror as char *.
13894 * man/Makefile: Add g flag to sed substitutions.
13895 * Makefile (shgroff, bindist): Likewise.
13897 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13899 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13900 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13903 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13905 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13908 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13910 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13913 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13915 * troff/input.c (define_number_reg): If currently undefined,
13916 don't define it if the argument is an invalid expression.
13918 * Makefile: Ignore return value of `if' commands without `else'
13921 * Makefile: Split up CPPDEFINES into a series of separate
13922 configuration options.
13924 * troff/input.c (init_registers): Use time_t instead of long
13925 unless LONG_FOR_TIME_T is defined. Use returned result rather
13926 than passing pointer.
13927 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13929 * lib/Makefile (fontpath.h): Use gendef.
13931 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13933 * troff/input.c (input_iterator::shift): Delete argument name.
13934 * troff/node.c (suppress_output_file::really_begin_page,
13935 suppress_output_file::really_transparent_char, node::ascii_print,
13936 node::tprint): Delete names of unused arguments.
13938 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13940 * refer/label.y (string): Pass $4 to command_error.
13942 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13944 * Version 1.03 released.
13946 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13948 * Makefile: Pass definition of SHELL in SUBFLAGS.
13950 * gendef: New file.
13951 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13952 ps/Makefile: Use gendef to construct header files that are
13953 constructed from the Makefile.
13955 * macros/Makefile: make all should build stripped version of tmac.e.
13957 * refer/Makefile (clean): Remove y.output.
13959 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13961 * ps/pfbtops.c (main): Add -v option which prints out a version
13963 * ps/Makefile (pfbtops): Link with libgroff.a.
13965 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13967 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13968 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13970 * refer/lkbib.c (main): Always terminate reference with blank
13972 * refer/lookbib.c (main): Likewise.
13974 * refer/linear.c (file_buffer::load): Check that the file is not a
13977 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13978 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13979 Delete second inclusion of <sys/param.h>.
13981 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13983 * troff/token.h (token::special): Deleted.
13985 * tbl/main.c (process_format): Rework so that opt->tab_char is
13986 recognized only when appropriate.
13988 * ps/Makefile (clean): Remove pfbtops.
13990 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13992 * lib/font.c (text_file::next): Don't return if we have got a
13995 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13997 * refer/refer.c (store_reference): Get hash code from old_table[i]
13998 when rehashing the table.
14000 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
14002 * eqn/box.c (box::top_level): Save size and prev size using \R and
14003 restore it afterwards. Set the size to the size at the beginning
14005 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14006 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14008 * refer/Makefile (limits.h): Use ./genlimits.
14010 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
14012 * refer/index.c: Delete declarations of stat() and fstat().
14014 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
14016 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14018 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
14020 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14022 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
14024 * troff/input.c (token::get_char): Handle \e.
14026 * refer/linear.c: Delete declarations of fstat() and stat().
14028 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
14030 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14031 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14033 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
14035 * troff/input.c (do_define_macro): Improve error handling for end
14036 of file while defining macro.
14038 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
14040 * eqn/box.h: Fix declaration of set_gsize.
14041 * eqn/box.c (set_gsize): Make argument const char *.
14042 (gsize): Declare as char *.
14043 * eqn/main.c (main): Don't convert gsize to int.
14044 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14046 * Version 1.02 released.
14048 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
14050 * macros/tmac.andoc: New file.
14051 * macros/Makefile: Install tmac.andoc.
14053 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14054 operator new and delete on OP_DELETE_BROKEN not being defined.
14055 * Makefile: Mention OP_DELETE_BROKEN.
14057 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
14059 * Makefile (bindist): Pass SUBFLAGS.
14061 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
14063 * Makefile, groff.c: Pass definitions to groff.c via device.h.
14065 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14068 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14070 * ps/ps.h, ps/psrm.c: Make comment_table and
14071 header_comment_table local to resource_manager::process_file.
14073 * groff.sh: With -TXps pass -printCommand option to gxditview.
14075 * groff.c (possible_command::print): Implement using
14076 append_arg_to_string.
14078 * xditview: Merge in new implementation with own ChangeLog.
14080 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
14082 * groff.c (main): Implement PRINT_OPTION.
14083 (append_arg_to_string): New command.
14084 (device_table): Set PRINT_OPTION flag for Xps.
14086 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
14088 * troff/groff.h: Rename to troff.h.
14090 * pic/lex.c (lookup_keyword, docmp): New functions.
14091 (get_token): Use new lookup_keyword.
14092 Don't include key.h.
14093 * pic/key.[ch], pic/pic.gperf: Deleted.
14094 * pic/Makefile: Remove gperf stuff.
14096 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14098 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14100 * troff/Makefile, troff/node.c: Move definition of
14101 STORE_WIDTH into node.c.
14103 * etc/grog.pl, etc/grog.sh: Support -mdoc.
14105 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
14107 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14108 dvi/devdvi/texb.map: Add lq and rq.
14109 dvi/devdvi: Regenerate fonts.
14110 * ps/devps/textmap: Add lq and rq.
14111 * ps/devps: Regenerate fonts.
14112 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14113 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14115 * pic/object.c (position_rectangle): When checking radius
14116 cope with possiblity that width or height is negative.
14117 (box_object::box_object): Have separate xrad and yrad with
14118 signs matching signs of dim components.
14119 (box_object::{north,south}_{east,west}): Use xrad and yrad.
14120 (box_object::print): With rounded boxes use absolute values
14121 for dim and rad arguments.
14123 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14126 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14128 * various files: Add explicit destructors to keep Saber CC +d
14131 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
14133 * eqn/box.c (box::top_level): Restore fonts correctly after
14134 font changes in line containing inline equation. Also
14135 restore previous font as well as current font.
14136 * eqn/pbox.h: Define necessary string and register names.
14138 * troff/input.c (token::next): Case 'R' calls do_register.
14139 (do_register): New function.
14141 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
14143 * groff.c, groff.sh: Support Xps device. Allow each device
14144 to have a pseudo_name and a real_name.
14146 * groff.c (run_commands): Don't print `Broken pipe' messages.
14148 * ps/pfbtops.c: New file.
14149 * ps/Makefile: Add pfbtops.
14151 * troff/number.c (parse_term): Improved error message.
14153 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
14155 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14157 * Makefile: Integrate refer.
14158 * refer: New directory.
14159 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14160 man/lkbib.man: New files.
14161 * man/Makefile: Support refer man pages.
14163 * lib/lib.h: Declare is_prime.
14164 * lib/prime.c: New file.
14166 * troff/input.c (macro_source): New function.
14167 (init_input_requests): Bind "mso" to macro_source.
14169 * troff/env.c (environment::possibly_break_line): Maintain
14170 pointer to pointer to node to be split in ndp so as to avoid
14171 using address of freed node.
14173 * troff/env.c (environment::hyphenate_line): Maintain pointer to
14174 pointer to first node to be hyphenated in startp so as to
14175 avoid using address of freed node.
14177 * troff/env.c (class trie, class hyphen_trie): Make the
14178 elements of the trie be of type char not unsigned char.
14179 Declare arguments to be const char* instead of unsigned char *.
14181 * troff/env.c (hyphenate): Initialize hbuf[0].
14183 * troff/input.c (set_string): Declare p to be char * and cast
14184 *p to unsigned char when necessary.
14186 * troff/input.c (do_define_macro): Declare s to be const
14187 char*. Cast element to unisgned char when necessary, Declare
14188 d to be an int. Handle EOF better.
14190 * troff/Makefile, troff/input.c: Different scheme for passing
14191 definitions of MACROPATH, HYPHENFILE and DEVICE.
14193 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
14195 * tty/devascii/R.proto: Delete entry for em.
14196 * tty/devlatin1/R.proto: Likewise.
14198 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
14200 * troff/input.c (translate): Stop when we get a space. Treat eof
14203 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14205 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
14207 * tbl/main.c (process_format): A font name following a `f'
14208 modifier that starts with a digit can be only one character long.
14209 Also deal with EOF on the second character of the font name.
14211 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
14213 * troff/input.c (token::next): Turn \~ into an
14214 unbreakable_space_node.
14215 * troff/node.c (unbreakable_space_node): New class.
14216 * troff/node.h: Declare it.
14218 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
14220 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
14221 it's >= 0, before outputting it as a single byte.
14223 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
14225 * lib/font.c: Make font_char_metric::code an int.
14226 (font::get_code): Change return type to int.
14227 (font::load): Allow code to be arbitrary integer.
14228 * lib/font.h (font::get_code): Change return type to int.
14229 (font::number_to_index): Change argument type to int.
14230 * troff/input.c (token::next): In case 'N', allow any value.
14231 Store value in token::val.
14232 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14233 (token::get_char, token::add_to_node_list, token::process): Get
14235 (charinfo::set_number): Change argument to int.
14236 (charinfo::get_number): Require that NUMBERED flag be set.
14237 (get_charinfo_by_number): Store numbered characters not between 0
14238 and 255 in a dictionary.
14239 * troff/charinfo.h (get_charinfo_by_number): Change argument type
14241 (charinfo::number): Change type to int.
14242 (charinfo::set_number): Change type of set_number to int.
14243 * troff/node.c (troff_output_file::put_char_width,
14244 troff_output_file::put_char): Test whether character is numbered
14245 using charinfo::numbered().
14246 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14248 * lib/nametoindex.c: New implementation to cope with arbitrary
14251 * troff/input.c (token::operator==): Test val for
14252 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14255 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14256 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
14258 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
14260 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
14263 * all Makefiles: rm targets of cp and >.
14265 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14268 * eqn/lex.c (def_table): Add dollar.
14270 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
14272 * troff/input.c (do_width): Push back newline before closing delim
14275 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
14277 * groff.c (possible_command::prepend_arg): New function.
14278 (main): Prepend device -m option.
14279 * groff.sh: Put device -m options before command-line options.
14281 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
14283 * macros/tmac.an (IP): Quote argument to TP.
14285 * ps/ps.c (main): New option -b, which sets...
14286 (broken_flags): New variable.
14287 (ps_printer::~ps_printer): Incorporate the setup section in the
14288 prolog if (broken_flags & NO_SETUP_SECTION).
14289 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14290 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14291 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14292 ps_printer::print_needed_font_comment,
14293 ps_printer::print_supplied_font_comment,
14294 ps_printer::print_include_font_comments,
14295 ps_printer::lookup_doc_font, ps_printer::download_fonts,
14296 ps_printer::read_download_file, read_document_fonts, add_font,
14297 skip_line, parse_fonts_arg, document_font::document_font,
14298 document_font::~document_font, document_font::download,
14299 ps_output::include_file): Deleted.
14300 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14301 rather than %!PS-Adobe-2.0. Make calls to
14302 resource_manager::need_font for each font that we used. Replace
14303 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14304 print_supplied_font_comment, print_needed_font_comment by call to
14305 resource_manager::print_header_comments. Output %%Orientation
14306 comment. Output %%Requirements: numcopies comment if ncopies > 1.
14307 Don't output the prolog directly. Instead call
14308 resource_manager::output_prolog. Only define #copies when ncopies
14309 > 1. Delete calls to print_include_font_comments and
14310 download_fonts. Add call to resource_manager::document_setup.
14311 (ps_printer::do_file): Call resource_manager::import_file instead
14312 of including it ourselves.
14313 (ps_printer::do_import): Likewise. Also don't call
14314 merge_import_fonts. Push userdict on the dictionary stack before
14315 and pop it afterwards.
14316 Move declaration of ps_output into ps.h.
14317 * ps/psrm.c: New file implementing resource_manager class.
14318 * ps/ps.h: New file declaring ps_output and resource_manager
14320 * ps/devps/zapfdr.ps:
14321 * ps/devps/symbolsl.ps:
14322 * ps/devps/prologue: Use 3.0 conventions.
14323 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14324 Add default definition of BROKEN_SPOOLER_FLAGS.
14325 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
14326 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14328 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
14330 * etc/grog.pl: New file.
14331 * Makefile (GROG): New variable.
14332 Add GROG to SUBFLAGS.
14333 * etc/Makefile (GROG): New variable.
14334 (install.nobin): Install $(GROG) rather than grog.sh.
14336 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
14338 * eqn/special.c (special_box::compute_metrics): Make the input and
14339 output strings the same. Get the new height and depth from the
14340 predefined height and depth registers. Also make subscript kern
14341 and skew available.
14342 (special_box::compute_subscript_kern, special_box::compute_skew):
14345 * eqn/box.c (pointer_box::compute_skew,
14346 simple_box::compute_metrics, box::top_level)
14347 * eqn/text.c (prime_box::compute_metrics,
14348 prime_box::comput_subscript_kern)
14349 * eqn/limit.c (limit_box::compute_metrics):
14350 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14351 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14352 negative numbers in `nr' requests with a leading 0.
14354 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
14356 * eqn/special.c: New file.
14357 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
14358 Add new rule for simple.
14359 * eqn/lex.c (token_table): Add SPECIAL.
14360 * eqn/box.h: Declare make_special_box.
14361 * eqn/Makefile: Add special.[co].
14363 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
14365 * ps/devps/prologue: Possibly set packing to true while defining.
14366 Create grops dictionary here. Initialize local variables before
14367 defining procedures.
14368 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14369 the dictionary stack. Set strokeadjust and overprint to false if
14370 the relevant operators are defined.
14371 (PEND): New procedure.
14372 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14373 prologue. Do everything else in the setup section.
14374 (ps_printer::do_import): Just call PBEGIN and PEND around the
14375 picture. Also push userdict before, and pop it afterwards.
14377 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
14379 * troff/node.c (bracket_node::tprint): Brackets were being printed
14382 * macros/tmac.an (SH, SS): Set fill mode.
14384 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
14386 * troff/div.c (top_level_diversion::begin_page): Set
14387 high_water_mark to 0.
14389 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
14391 * man/mdate.sh: New file.
14392 * man/mdate.c: Deleted.
14393 * man/Makefile: Use mdate.sh instead of mdate.
14396 * eqn/lex.c (do_gsize): Supply missing argument to error message.
14398 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
14400 * man/mdate.c: New file.
14401 * man/*.man: Replace modification date by @MDATE@.
14402 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14403 (mdate): New target.
14405 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14406 Remove illegal input characters.
14408 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
14410 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14412 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
14414 * troff/div.c (begin_page): Change behaviour when
14415 !first_page_begun and !break_flag.
14417 * troff/input.c (do_name_test): Return 0 if argument is empty.
14419 * troff/input.c (read_long_escape_name): Require closing ] to be
14420 at same input level as opening [.
14422 * troff/input.c (read_increment_and_escape_name): New function.
14423 (get_copy, process_input_stack): Use this for \n.
14425 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
14427 * troff/div.c (top_level_diversion::begin_page): Ignore the
14428 current value of page_number if !first_page_begun.
14430 * groff.c (main): Fix declaration of buf.
14432 * troff/input.c (do_name_test): New function.
14433 (token::next): Implement \A.
14434 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14435 (token::description, token::add_to_node_list, token::process):
14436 Handle TOKEN_ESCAPE.
14437 * troff/token.h: New token TOKEN_ESCAPE.
14439 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
14441 * pic/main.c (do_picture): Allow space before and after filename
14442 following `<'. Check that the filename is not empty.
14444 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
14446 * Version 1.01 released.
14448 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14450 * dvi/tmac.dvi: ftr HR to H.
14452 * macros/tmac.e: Round up computation of $r.
14454 * xditview/tmac.X: Don't give up completely in compatibility mode.
14455 Use \n(.s instead of \n[.s].
14457 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14458 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14459 Add u to factors inside \s[...]. Rename frac to dvi-frac.
14460 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14461 short names in the char definitions.
14463 * ps/tmac.ps: Don't give up completely in compatibility mode.
14464 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14465 quote in front of \n(.s. Add u to factors inside \s[...].
14467 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
14469 * tty/tmac.tty: Call the nroff request.
14471 * macros/tmac.e ((x, )x): Better definitions that work properly
14473 (@0, @1): Helper macros for (x.
14475 * macros/tmac.e ($s, hl): Use \l rather than \D.
14477 * tty/tmac.tty: Make it work better in compatibility mode.
14478 (pchar): Rename to tty-char.
14480 * macros/tmac.e (@E): New macro.
14481 (r, i, b, rb, bi): Use @E.
14483 * macros/tmac.e (@F): Don't use (;...) syntax.
14485 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
14486 it was modified for groff.
14488 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14490 * macros/tmac.e (<., .>): Removed.
14491 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14493 * macros/tmac.e: Remove check that groff is being used.
14495 * macros/tmac.e (@C): Change families only if using groff; turn
14496 compatibility mode off while changing familes. Save compatibility
14497 mode before changing families and restore it afterwards.
14499 * macros/tmac.e (@h): Remove test for offset + line length.
14501 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
14502 (lo, th, ac): Define to call @S instead of using als.
14504 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14505 the ratio of the vertical spacing to the point size in units
14506 expressed as a percentage. Use these instead of $10r and $10R,
14507 Delete $10r and $10R.
14509 * lib/font.c (font::load): In default computation of space_width,
14510 divide by sizescale. Use scale_round.
14512 * macros/tmac.an (TP): Don't call `nf'.
14513 (an-do-tag): Don't call `fi'.
14515 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
14517 * troff/input.c (process_input_stack): Handle the case where
14518 spaces at the beginning of an input line are followed by a
14521 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
14523 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14524 * groff.sh: Use pic -x with the dvi device.
14526 * dvi/devdvi/FontMakefile (H): Don't use -s.
14528 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14529 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14530 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14533 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
14535 * ps/psfig.diff: New file.
14536 * ps/tmac.psfig: New file.
14538 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
14540 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14541 (]-): Don't call ref*do-tl.
14543 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14545 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14546 (fn@do-FS): Rename to fn*do-FS.
14548 * troff/input.c (transparent_translate): New function.
14549 (process_input_stack): Apply transparent_translate before calling
14550 diversion::transparent_output(unsigned char).
14552 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
14554 * troff/input.c (do_define_macro): Define the macro before calling
14557 * xditview/Makefile: Add DEVICES variable. Change install target
14560 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
14562 * groff.c (run_commands): Handle the possibility that there are
14563 child processes other than those forked by us.
14565 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
14567 * lib/string.c (string::append): New function.
14568 * lib/stringclass.h: Declare it.
14570 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
14572 * eqn/main.c (main): New option -N which sets
14573 no_newline_in_delim_flag.
14574 (do_file): If no_newline_in_delim_flag is set don't allow newlines
14576 * groff.c (main): Pass -N on to eqn.
14577 (help, synopsis): Mention -N.
14578 * groff.sh: Implement -N.
14580 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
14582 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14583 (]-): Call ref*do-tl if ref*need-tl is non-zero.
14584 (XP): Allow as initializer.
14586 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
14588 * troff/env.c (environment::wrap_up_field): If field_spaces are
14589 non-zero and we have a current_tab, subtract padding from
14590 tab_distance. If this makes tab_distance <= 0, use the next tab
14591 stop instead. If there isn't any next tab or it's a left tab,
14592 wrap up the current tab.
14593 (environment::start_field): Initialize tab_precedes_field.
14594 (environment::wrap_up_tab): If there's a current field, update
14595 pre_field_width, field_distance and tab_precedes_field.
14596 * troff/env.h (environment::tab_precedes_field): New member.
14598 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
14600 * ps/ps.c (ps_printer::do_file): New function.
14601 (ps_printer::special): Bind to `file' special.
14602 (ps_printer::do_exec): Set ndefined_styles to 0.
14604 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
14606 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14607 Avoid stripping first character from the start of unrecognized
14608 escapes. Use lex_error instead of error to report errors.
14609 * eqn/lex.c (get_token): Rework handling of escapes.
14610 (lex_error): Move declaration into...
14613 * xditview/xditview.c (main): Make -page option work.
14615 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14617 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
14619 * macros/tmac.s (B2): Correct size of box.
14621 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
14623 * macros/tmac.s (B2): Postpone drawing the box until in the
14624 top-level diversion.
14626 * tty/tmac.tty: Add font translations for C, CR, CW.
14628 * groff.c (synopsis, help): Document -i.
14629 * groff.sh: Implement -i.
14631 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14632 Simplify the construction of SN.
14634 * troff/number.c (parse_term): Give `|' a higher precedence.
14635 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14638 * macros/tmac.s (B2): Use par@finish instead of par@reset.
14640 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
14642 * lib/string.c (string::move): New function.
14643 * lib/stringclass.h: Declare it.
14645 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
14647 * troff/env.c (distribute_space): Add optional argument
14649 (environment::wrap_up_field): Call distribute_space with
14650 `force_forward' argument of 1.
14652 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
14654 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14655 Inline it. Move reallocation into...
14656 (string::grow1): New function.
14657 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14658 dependencies to include library header files.
14659 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14661 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
14663 * macros/tmac.s (@NH): Use the same number registers than -ms does
14664 for the heading level counters. Use the same string that -ms does
14665 for the number for this heading.
14667 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
14669 * lib/new.c (operator new): Cast result of malloc to char *.
14671 * troff/input.c (spring_trap, lookup_request): Add assert that nm
14674 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
14676 * groff.c (main): Support -i.
14678 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
14680 * pic/pic.h: Include <osfcn.h>.
14682 * ps/ps.c: Add declaration of mktemp.
14684 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14685 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14686 argument as union wait *.
14687 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14688 argument to union wait *.
14690 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
14692 * tty/tmac.tty: Add definition of \(co.
14694 * pic/object.c (make_arc): Only increase radius when radius
14695 strictly less than d.
14696 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14699 * troff/env.c (environment::environment(symbol),
14700 environment::environment(const environment *)): Initialize
14703 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
14705 * tbl/main.c (main): Add exit(0).
14707 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14709 * pic/main.c (main):
14710 * eqn/main.c (main):
14711 * tbl/main.c (main):
14712 * etc/soelim.c (main):
14713 * driver/printer.c (printer::~printer):
14714 * troff/node.c (real_output_file::~real_output_file,
14715 real_output_file::flush): Check for errors on stdout.
14717 * most files: Add 1991 to copyright notice.
14719 * macros/tmac.s: Don't test \n(.x and \n(.y.
14721 * troff/input.c (token::next): Rename `escape_char' label to
14722 `handle_escape_char' and `normal_char' label to
14723 `handle_normal_char'.
14725 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
14727 * groff.c (main, synopsis, help): Support -a option.
14728 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
14729 to trflags while parsing options.
14731 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
14733 * troff/number.c (parse_term): With `m', `M' and `n' scale
14734 indicators, convert scale factor to hunits before scaling.
14736 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
14738 * lib/font.c (scale_round): Better test for overflow when n is
14741 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
14743 * tbl/main.c (process_format): Add second argument of type
14744 options*. Change callers. Allow opt->tab_char as well as '\t'
14745 between format items.
14747 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
14749 * macros/tmac.an (PD): With no arguments, make sure register PD is
14751 (TH): Call PD with no argument, instead of setting register PD
14754 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
14756 * Version 1.00 released.
14758 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
14760 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14762 * dvi/devdvi/DESC: Mount CW instead of CR.
14764 * dvi/tmac.dvi: Add definition of \(tm.
14766 * dvi/devdvi/texsy.map: Add lh, and rh.
14767 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14768 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14770 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14771 * dvi/devdvi/Makefile: Install H.
14772 * dvi/devdvi/H: New file.
14774 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14776 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14779 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14781 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14783 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14785 * macros/tmac.s (@EN): Handle the case where the equation is empty
14786 but the label is not.
14788 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14790 * troff/groff.h: New warning category WARN_SPACE.
14791 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14792 WARN_SPACE to warning_table.
14793 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14794 is longer than two characters and is not defined, but the first
14795 two characters do make a defined name.
14797 * PROBLEMS: New file.
14799 * CHANGES: New file.
14800 * README-0.6, README-1.00: Deleted.
14802 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14803 * xditview/devX75/Makefile: Make devX75-12.
14804 * xditview/devX100/Makefile: Make devX100-12.
14806 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14807 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14809 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14811 * README-0.7: Rename to README-1.00.
14813 * macros/tmac.pic: New file.
14814 * macros/Makefile (install.nobin): Install tmac.pic.
14816 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14818 * troff/env.c (hyphen_word): Correct the test for whether the
14819 token is a hyphen. Reset npos to 0.
14821 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14823 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14825 * macros/tmac.s (ds*common-end): Call par*reset.
14827 (par@reset-indent): Deleted.
14829 * macros/tmac.s (@IP): Divert the label.
14831 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14833 * xditview/draw.c (setGC): Use a line width of .1m rather than
14834 .04m by default; round rather than truncate value.
14836 * tbl/table.c (class empty_entry): New class.
14837 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14838 (table::add_entry): Represent empty entries by objects of type
14840 (table_entry::line_type): Return -1.
14841 (table::determine_row_type): Ignore entries with line_type 0.
14842 Treat type -1 as non-lines.
14844 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14846 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14847 macros/tmac.s: Rename \(-d to \(Sd.
14849 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14851 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14852 * xditview/libXdvi/DviChar.c: Likewise.
14853 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14855 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14857 * troff/div.c (top_level_diversion::begin_page): Call
14858 init_output() if the_output is 0.
14860 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14862 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14864 (get_copy): Turn \E into ESCAPE_E.
14865 (token::process, asciify): Handle ESCAPE_E.
14867 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14869 (DS): Implement `.DS R'.
14871 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14873 * macros/tmac.s (FS): New macro.
14875 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14877 * macros/tmac.s (cov*tl-init): Remove after first execution
14878 instead of aliasing to @nop. Call top of page macro explicitly
14879 instead of setting trap; call @init first. Set pg@top as top of
14881 (cov*auto-init): Deleted. Set cov*tl-init instead of
14882 cov*auto-init as top of page trap.
14883 (TL, LP): Do a break instead of calling cov*tl-init.
14884 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14885 @FE; in this case also give a warning and always start another
14886 page. No need to set pg@top here.
14887 (cov*tl-init): Rename to cov*first-page-init.
14889 * macros/tmac.s (RP): Do `.pn 0'.
14890 (cov*tl-init): With RP format don't do `.pn 0'.
14892 * macros/tmac.s (pg@cs-top): Set no space mode.
14894 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14895 (cov*ab-init): Alias TL, AU and AI to these.
14897 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14899 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14900 (@EN): Do nothing unless \n[dl] is > 0.
14902 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14904 * pic/object.c (ellipse_object::radius): New function.
14906 * VERSION: Change version to 0.7.
14908 * tbl/table.c (block_entry::do_divert): Declare return type as
14910 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14912 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14914 * troff/column.c: New file.
14915 * troff/Makefile: Corresponding changes.
14917 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14920 * troff/div.c (top_level_diversion::space): If the space causes
14921 the first-page transition and springs a trap, truncate the space
14924 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14926 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14929 * pic/troff.c (troff_output::line_thickness,
14930 troff_output::set_fill): Do a horizontal motion to compensate for
14931 the width of the \D escape sequence.
14933 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14935 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14938 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14941 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14942 Supply empty definition.
14943 (text_entry::simple_print, simple_text_entry::simple_print):
14944 Delete declarations.
14945 (table::add_entry): Represent empty entries by objects of type
14948 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14950 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14952 * tbl/table.c (left_text_entry::add_tab): New function.
14954 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14955 initialize like LP.
14957 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14959 * troff/env.c (environment::start_field): Give an error message if
14960 there is no next tab.
14962 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14964 * troff/env.c (hyphenate): Skip initial elements with zero
14967 * macros/tmac.s (par@init): Keep VS in points rather than units.
14969 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14971 * pic/main.c (main): Implement `-c' option.
14972 * pic/output.h: Declare make_tpic_output().
14973 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14975 (tpic_output): New class.
14976 (tpic_output::tpic_output, tpic_output::set_pen_size,
14977 tpic_output::command, make_tpic_output): New functions.
14979 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14981 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14982 if they're not already defined.
14983 * tbl/table.c (init_output): Don't test \n(.g.
14985 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14986 `d', `r' and `c' conditions even in compatibility mode.
14988 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14990 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14993 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14995 * troff/env.h (environment::prev_line_interrupted): New member.
14996 (environment::get_prev_line_interrupted): New function.
14997 * troff/env.c (environment::newline): Set prev_line_interrupted.
14998 (environment::environment(const environment *),
14999 environment::environment(symbol)): Initialize
15000 prev_line_interrupted.
15001 * troff/input.c (process_input_stack): Don't give special
15002 treatment to space and newline at the beginning of the line if the
15003 previous line was interrupted.
15005 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
15007 * eqn/eqn.y: Disallow PRIME by itself.
15008 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15010 (def_table): Remove definition of '. Define prime to be `.
15012 * eqn/eqn.y: Split off part of rule `script' into a new rule
15015 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
15017 * macros/tmac.s ({, }): New string aliases.
15019 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
15021 * README-0.7: New file.
15023 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
15025 * macros/tmac.s: New file.
15026 * man/groff_ms.man: New file.
15027 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15028 * Makefile.bd: Similarily.
15029 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15030 definition of TMAC_S.
15031 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15032 * macros/TODO: New file.
15034 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
15036 * troff/env.c (right_justify): New function.
15037 (init_env_requests): Bind this to request "rj".
15038 (center_lines): Set right_justify_lines to 0. If we get a bad
15039 integer, center 1 line.
15040 (environment::environment(symbol), environment::environment(const
15041 environment *)): Initialize right_justify_lines.
15042 (environment::get_right_justify_lines): New function.
15043 (init_env_requests): Bind this to number_register ".rj".
15045 * troff/env.c (environment::choose_breakpoint): Implement
15046 hyphenation_margin and hyphenation_space.
15047 (environment::get_hyphenation_space,
15048 environment::get_hyphenation_margin): New functions.
15049 (init_env_requests): Bind these to .hys and .hym.
15050 (hyphenation_space_request, hyphenation_margin_request): New
15052 (init_env_requests): Bind these to hys and hym.
15053 (environment::environment(symbol), environment::environment(const
15054 environment *)): Initialize hyphenation_margin and
15056 * troff/env.h: Corresponding changes to class environment.
15058 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
15060 * troff/div.c (blank_line): Always do a break.
15062 * eqn/box.c (do_text): Turn off escapes while appending text to
15065 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
15067 * troff/input.c (while_break_request, while_continue_request): New
15069 (init_input_requests): Bind these to "break" and "continue".
15070 (while_depth, while_break_flag): New variables.
15071 (while_request): Update while_depth. Break out of loop if
15072 while_break_flag is set.
15074 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
15076 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15079 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
15081 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
15083 * stringify: New file.
15084 * Makefile (groff.o): Use stringify.
15086 * xditview/tmac.X: Remove definition of \(rn.
15087 * xditview/libXdvi/DviChar.c: Remove radicalex from
15090 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
15092 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15093 (alphabetic_block_entry::alphabetic_block_entry,
15094 alphabetic_block_entry::divert, alphabetic_block_entry::print):
15096 (block_entry::divert): Split off body into ...
15097 (block_entry::do_divert): If the block is alphabetic, subtract 2n
15098 from the line length; also update the span width to dl+2n, and the
15099 alphabetic span width to dl.
15101 * driver/input.c (do_file): While reading argument to D command,
15102 when expanding buffer, multiply szp by sizeof(int) rather than 2
15103 in the argument to memcpy.
15105 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15106 width of alphabetic columns.
15108 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
15110 * troff/node.c (lookup_family): Supply second argument to lookup.
15112 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15113 search, return immediately if v is 0.
15115 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15116 (troff_output::start_picture): Set this reg.
15117 (troff_output::end_picture): Remove this reg
15118 * eqn/box.c (box::extra_space): Don't produce `\x's if
15119 EQN_NO_EXTRA_SPACE_REG is defined.
15121 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15122 * eqn/text.c (split_text): Map ' to \(fm when it's the first
15125 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
15127 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15130 * troff/div.c (top_level_diversion::top_level_diversion):
15131 Initialize page_number to 0.
15133 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
15135 * groff/troff (environment::environment(const environment *)):
15136 Initialize name to e->name, rather than "anonymous".
15138 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
15140 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15141 requested_page. Split middle part into ...
15142 (FindPage): New function.
15143 (SetValues): If we don't yet know the last page, and the requested
15144 page is greater than the current page, call FindPage.
15145 Update the font_map_string before doing this.
15147 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15148 Translate \(lh and \(rh into left and right double arrows.
15150 * troff/node.c (class hyphen_inhibitor_node): New class.
15151 (hyphen_inhibitor_node::hyphen_inhibitor_node,
15152 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15153 hyphen_inhibitor_node::type,
15154 hyphen_inhibitor_node::get_hyphenation_type): New functions.
15155 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15156 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15159 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
15161 * troff/node.h (dummy_node::get_hyphenation_type,
15162 transparent_dummy_node::get_hyphenation_type): Declare them.
15163 * troff/node.c: (dummy_node::get_hyphenation_type,
15164 transparent_dummy_node::get_hyphenation_type): New functions.
15166 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
15168 * xditview/libXdvi/draw.c: If M_PI not defined after including
15169 math.h, then define it.
15171 * xditview/Makefile: Add definition of AR. Pass it to the submake
15173 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15175 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
15177 * troff/dictionary.h (object_dictionary::alias): Declare return
15179 * troff/dictionary.c (object_dictionary::alias): Return non-zero
15180 if the old name was defined.
15181 * troff/input.c (alias_macro): Give a warning if the old name was
15183 * troff/reg.c (alias_reg): Likewise.
15185 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
15187 * troff/input.c (token::next): Delete implementation of \R.
15189 * macros/Makefile: Strip comments from tmac.e while installing it.
15191 * troff/input.c: New variable `nroff_mode'.
15192 (troff_request, nroff_request): New functions.
15193 (init_input_requests): Bind `troff' and `nroff' to troff_request
15195 (do_if_request): Compute results of t and n conditions from
15198 * text/text.c (split_text): Fix typo in >=.
15200 * eqn/lex.c: Add definition of `==' to def_table.
15202 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
15204 * pic/tex.c (tex_output::start_picture): Change the definitions of
15205 \graph and \graphtemp so that they work properly with Plain TeX.
15207 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15208 argument to `ar' is not less than the first.
15210 * pic/pic.y: Allow a comma between elements of the variable list
15211 in the argument to `reset'.
15213 * pic/object.c (arc_object::arc_object): Fix computation of
15216 * eqn/main.c (main): Add exit(0).
15218 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
15220 * troff/div.c (begin_page): Test no_space_mode after doing the
15221 break, but still push the page ejector cookie before doing the
15222 break. Also set the next page number after doing the break.
15224 * xditview/xditview.c (NewFile): Don't set the title and icon name
15225 if this is the first file and its name is `-'.
15226 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
15227 the X75 and X100 devices.
15228 (main): If a device has the XT_OPTION flag set and there's exactly
15229 one file argument, pass the driver -xrm and -title options to set
15230 the icon name and window title to the name of the file.
15232 * troff/env.c (environment_switch): If there was an argument but
15233 it wasn't a valid number or name, then pop an environment but
15234 don't give an error message on underflow.
15236 * troff/number.c (start_number): Correct spelling in error message.
15238 * troff/input.c (token::delimiter): Don't print an error message
15241 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15242 ParseDrawFunction if dw->display_enable is true.
15244 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
15246 * pic/pic.y: Parse text positioning like normal attributes, so as
15247 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
15248 positioning attribute.
15250 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
15252 * tbl/main.c (process_data): When in state START while reading a
15253 text block, don't change to state MIDDLE if c is a newline.
15255 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
15257 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15258 so as to avoid shadowing parameter.
15260 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
15262 * tbl/table.c (trim_space): Deleted.
15263 (table::add_entry): Don't call trim_space.
15265 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
15267 * VERSION: Change version to 0.6.
15269 * troff/number.c (parse_expr): Make == work.
15271 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
15273 * man/grog.man: New file.
15274 * man/Makefile: Add grog.n to MAN1PAGES.
15275 * etc/grog.sh: New file.
15276 * etc/Makefile: Install grog.sh as grog.
15278 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
15280 * troff/input.c (token::next): Implement \E.
15282 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
15284 * xditview/tmac.X: Change font translations to match tmac.ps.
15286 * troff/input.c (non_empty_name_warning): Don't give a warning if
15287 `\{' terminates the name.
15289 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
15291 * ps/devps/symbol.diff: New file.
15292 * ps/devps/FontMakefile: Mention symbol.diff.
15294 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
15296 * troff/node.c (font_position): Use get_long_name to read the
15299 * troff/env.c (environment_switch): If we get a number that's < 0
15300 or >= NENVIRONMENTS, treat it like a name.
15301 Change NENVIRONMENTS to 10.
15303 * troff/groff.h: Remove definition of FONTS_MAX.
15304 * troff/node.h (class font_family): Make map a pointer instead of
15305 an array. Add a map_size member. Make it a class. Make nm const
15306 and public. Make invalidate_fontno a friend.
15307 * troff/node.c: Define font_table_size. Make font_info a pointer
15308 rather than an array.
15309 (class troff_output_file): Allocate font_position dynamically. Add
15310 nfont_positions member.
15311 (troff_output_file::set_font): Grow font_position if necessary.
15312 (troff_output_file::~troff_output_file): Delete font_position.
15313 (troff_output_file::troff_output_file): Allocate font_position.
15314 (grow_font_table): New function.
15315 (troff_output_file::really_begin_page,
15316 troff_output_file:really_copy_page): Use nfont_positions rather
15318 (mount_font_no_translate, mount_style): Call grow_font_table if
15320 (font_family::font_family): Allocate map.
15321 (font_family::make_definite): Grow map if necessary. Use
15322 font_table_size instead of FONTS_MAX.
15323 (font_family::~font_family): New function.
15324 (invalidate_fontno): Use font_family::map_size.
15325 (get_fontno, env_space_width, env_half_narrow_space_width,
15326 env_narrow_space_width, symbol_fotno, is_good_fontno,
15327 get_bold_fontno, make_glyph_node): Use font_table_size rather than
15329 (next_available_font_position): Never return 0.
15331 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
15333 * ps/tmac.ps: Add font translations for compatibility with dpost.
15335 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
15337 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15338 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15339 Move definitions baseline_sep, shift_down, column_sep,
15340 matrix_side_sep into...
15341 * eqn/box.c: Add them to param_table.
15342 * eqn/pbox.h: Add declarations to pbox.h.
15344 * troff/input.c (set_string): Cast value to unsigned char *.
15346 * troff/token.h (process_input_stack): Declare it static before
15347 declaring it a friend.
15349 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
15351 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15353 * dvi/devdvi/EX: Regenerate.
15355 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15358 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
15360 * eqn/lex.c: In defaults_table, make definition of `dot' call
15361 `dot_def'. Don't explicitly make it roman. Similarily for other
15364 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15366 (for_input::get, for_input::peek): Use this.
15367 (do_for): Add by_is_multiplicative argument.
15368 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15369 Change semantic value of optional_by to be a double plus a flag
15370 saying whethet the by clause is multiplicative.
15372 * eqn/lex.c (get_delimited_text): Remember location of start of
15373 definition. Improve error handling when EOF is encountered.
15375 * lib/font.h: Rename handle_x_command to
15376 handle_unknown_font_command.
15377 * lib/font.c (font::load): Call handle_unknown_font_command for
15378 any unknown command in the font description file. Don't call
15379 handle_x_command. Include the name of the command in the argv.
15380 Improve message for unknown command after kernpairs or charset
15382 * ps/ps.c (ps_font::handle_x_command): Rename to
15383 handle_unknown_font_command. Remove message about `x download'
15384 command. Give error message for wrong number of arguments.
15385 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15386 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15387 handle_unknown_font_command. Give an error message for wrong
15388 number of arguments. Rename design_size to designsize.
15389 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15390 checksum', `designsize' instead of `design_size'.
15392 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
15394 * eqn/*.[chy]: Change underaccent to uaccent.
15396 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
15397 give it the same precedence as ACCENT.
15398 * eqn/other.c (make_underaccent_box): New function.
15399 * eqn/box.h: Declare it.
15400 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15403 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
15405 * pic/pic.y (reset_all): New function. Called in rule for RESET.
15406 (parse_init): Call reset_all.
15407 (define_variable): When defining scale reset only those
15408 pre-defined variables that are scaled.
15409 (defaults_table): Add `scale' as non-scaled value.
15411 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15412 together with the text; allow any number of positioning words;
15413 allow center as a positioning word.
15415 * pic/object.c (output::compute_scale): Get picture maximum height
15416 and width from variables called maxpswid and maxpsht.
15417 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15419 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
15421 * pic/object.c (object_spec::make_text): Multiply textht by number
15424 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15426 (do_sprintf): New function.
15427 (pic.gperf): Add sprintf token.
15428 (text, sprintf): New rules.
15430 * pic/pic.y: `rand()' with no arguments returns a random number
15431 in the range [0,1).
15433 * pic/pic.y: Allow a bare expression to be an attribute: change
15434 precedences to support this. Change optional_ordinal rule to
15435 optional_ordinal_last to avoid reduce/reduce conflict.
15436 * pic/object.c (object_spec::object_spec): Initialize direction.
15438 * pic/pic.y: Implement ^ operator meaning exponentiation.
15440 * troff/node.h: Add default argument to mount_font.
15441 * troff/node.c (font_position): Read an optional third argument
15442 giving the external_name.
15443 (mount_font): Add optional argument giving the external_name.
15444 (mount_font_not_translate): Have additional argument giving
15445 external name. Use this name to load the font. Pass both names
15446 to font_info::font_info.
15447 (font_info::font_info): Have additional argument giving
15449 (class tfont): New member external_name.
15450 (font_info::get_tfont): Use external name to construct tfont_spec.
15452 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
15454 * eqn/lex.c (init_table): Add argument giving device. Define
15455 name of device to be "1".
15456 (do_ifdef): Counts as true if the argument has been defined with
15458 * eqn/main.c (main): Call init_table with device argument. Make
15459 device local to main.
15460 * eqn/eqn.h: Change declaration of init_table. Remove declaration
15463 * pic/lex.c (get_delimited): Allow text to be delimited by
15464 matching {}s. Don't recognize ending delimiter within a string.
15466 * troff/input.c (get_delim_name): New function.
15467 (token::next): Implement \C.
15469 * lib/font.c (font::load): Grok ---. Add an alias for each
15470 character based on its code.
15471 (font::get_code_width): Deleted.
15472 * lib/font.h (class font): Declare font::number_to_index().
15473 Remove declaration of font::get_code_width.
15474 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15475 to indices of named characters.
15476 (font::number_to_index): New function.
15477 * troff/input.c (font::number_to_index): New function.
15478 (get_charinfo_by_number, charinfo::get_number,
15479 charinfo::set_number): New functions.
15480 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15481 (token::process, token::description, token::get_char,
15482 token::add_to_node_list, token::operator==): Handle
15483 TOKEN_NUMBERED_CHAR.
15484 * troff/charinfo.h: Declare get_charinfo_by_number,
15485 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
15487 (charinfo::numbered): New function.
15488 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15489 * troff/env.h (class environment): Remove declaration of ...
15490 * troff/env.c (environment::make_numbered_char_node): Deleted.
15491 * troff/node.c (make_numbered_node): Deleted.
15492 (class numbered_glyph_node): Remove.
15493 (troff_output_file::put_char_width, troff_output_file::put_char):
15494 Handle numbered chars.
15495 (troff_output_file::numbered_char): Removed.
15496 (tfont::get_code_width): Removed.
15497 (make_glyph_node): Don't search special fonts for numbered
15499 * troff/node.h: Remove declaration of make_numbered_node.
15500 * driver/input.c (do_file): Handle N command.
15501 * driver/printer.h: Add declaration of ...
15502 * driver/printer.c (printer::set_numbered_char): New function.
15503 * dvi/tfmtodit.c (main): Generate unnamed entries.
15504 * ps/devps/afmtodit: Likewise.
15505 * xditview/xtotroff.c (MapFont): Likewise.
15506 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15508 * tbl/main.c (process_format): If multiple widths are specified
15509 for a column but all the widths are the same, don't give an error
15512 * tbl/table.c (table::do_row): If the current row is all lines and
15513 the stuff doesn't contains a line, mark the top of the row after
15514 printing stuff before the row. If the current row is not all
15515 lines and the stuff doesn't contain a line, don't unnecessarily
15516 mark the top of the row before printing the stuff.
15518 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
15520 * troff/groff.h: Remove MAX_PATH.
15521 * troff/input.c (open_file): Dynamically allocate space for the
15523 (open_mac_file, process_macro_file): Corresponding changes.
15525 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
15527 * troff/node.h (class output_file): Make copy_file pure. Add
15528 vspace method ifdef COLUMN. Add is_printing method.
15529 * troff/node.c: Add class printing_reg. Add class
15530 real_output_file. Derive other output_file classes from
15531 real_output_file; in these classes rename begin_page to
15532 really_begin_page, print_line to really_print_line, copy_file to
15533 really_copy_file, transparent_char to really_transparent_char.
15534 Move output_file::flush to real_output_file. Add printing member
15535 to class output_file.
15536 * troff/div.h: Remove printing member from top_level_diversion.
15537 Add vspace member function to class diversion ifdef COLUMN. Add
15538 some declarations ifdef COLUMN.
15539 * troff/div.c (top_level_diversion::copy_file,
15540 top_level_diversion::transparent_output,
15541 top_level_diversion::output): Don't test printing member before
15543 * troff/input.c: Handle initial variable_space_request ifdef
15545 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15546 but comment it out.
15548 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
15550 * troff/div.c (diversion::need): Make any space forced. If we
15551 sprung a trap, set truncated_space to minus the distance to the
15552 trap and set needed_space to the amount that was needed.
15553 (top_level_diversion::space): A forced space turns no_space_mode
15555 (class constant_vunits_reg): New class.
15556 (init_div_requests): Implement number registers .trunc and .ne
15557 using constant_vunits_reg.
15558 (class truncated_space_reg): Deleted.
15560 * troff/div.h: Don't have a no_space_mode member in diversion.
15561 Instead have it in top_level_diversion.
15562 * troff/div.c (diversion::diversion): Don't initialize
15564 (top_level_diversion::top_level_diversion): Initialize
15566 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15567 (macro_diversion::output): Don't clear no_space_mode.
15569 * troff/input.c (diverted_space_node::reread): Don't call
15570 environment::do_break. In fill mode, act like a blank line.
15571 (diverted_copy_file_node::reread): Don't call
15572 environment::do_break.
15574 * troff/div.c (blank_line): New function.
15575 * troff/div.h: Declare it.
15576 * troff/input.c (process_input_stack): Call it.
15578 * troff/div.c (truncated_space_reg::get_string): New function.
15579 (init_div_requests): Bind to .trunc.
15580 (space_request, top_level_diversion::space,
15581 top_level_diversion::output, macro_diversion::space,
15582 macro_diversion::output): Update truncated_space.
15583 (macro_diversion::output): Redo calculations when trap sprung.
15584 (macro_diversion::output, macro_diversion::space): No need for
15587 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15588 after truncating post line spacing.
15590 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
15592 * ps/devps/prologue (MF, SF): Make them work even if setfont is
15593 defined as a procedure rather than as an operator.
15595 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
15597 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15599 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
15601 * troff/div.c (top_level_diversion::output): Merge
15602 output_file::print_line and output_file::end_of_line member
15604 * troff/div.h (class output_file):
15605 * troff/node.c (troff_output_file::print_line,
15606 troff_output_file::end_of_line, output_file::end_of_line,
15607 ascii_output_file::print_line, suppress_output_file::print_line):
15608 Corresponding changes.
15610 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
15612 * troff/input.c (token::next): Don't give a warning for `\.'.
15614 * troff/env.c (environment::get_center_lines): New function.
15615 (init_env_requests): Bind number register .ce to it.
15616 * troff/env.h: Declare it.
15617 * tbl/table.c (table::init_output): Define reset macro to restore
15618 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
15620 (table::print): If center option not given, then imply center
15621 option if SAVED_CENTER_REG > 0.
15623 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
15625 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15626 Troff.ps from DOWNLOAD.
15628 * troff/Makefile: Change comment in DEFINES to avoid confusing
15631 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15632 code. Don't try to catch errors with stopped.
15633 (check_line_lengths): New function.
15634 * ps/devps/prologue (EXEC): Deleted.
15635 (EBEGIN, EEND): New procedures.
15637 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
15639 * troff/input.c: Include request.h before node.h.
15640 * troff/node.c: Likewise.
15641 * troff/env.c: Likewise.
15642 * troff/div.c: Likewise.
15643 * troff/node.h (class special_node): Store argument as a macro
15644 rather than a char *.
15645 * troff/node.c (special_node::special_node, special_node::copy):
15647 (special_node::~special_node): Deleted.
15648 (special_node::tprint): Deleted.
15649 (special_node::tprint_start, special_node::tprint_end,
15650 special_node::tprint_char): New functions.
15651 (troff_output_file::special): Deleted.
15652 (troff_output_file::start_special, troff_output_file::end_special,
15653 troff_output_file::special_char): New functions.
15654 * troff/input.c (special_node::tprint): New function.
15655 (do_special): Use macro not char *.
15656 (do_transparent_macro): Deleted.
15657 (token::next): Don't call do_transparent_macro.
15659 * troff/input.c (token::next): Add 'Y' case.
15660 (do_transparent_macro): New function.
15661 * troff/node.c (troff_output_file::special): Handle newlines with
15662 argument using new continuation convention.
15663 * driver/input.c (get_string): Cope with continuation convention.
15664 (do_file): Don't call skip_line after calling get_string(1).
15665 * ps/ps.c (ps_printer::special, ps_printer::do_import,
15666 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15668 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15671 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
15673 * troff/input.c (asciify): By default, illegal input characters
15674 should return empty string.
15676 * troff/input.c (copy_file): Handle first page transition like title.
15677 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15679 * troff/input.c (token::next): Improve error message for EOF after
15681 (input_char_description): New function.
15682 (get_char_for_escape_name): Use input_char_description.
15683 (token::next): Warn about unrecognized escape sequences.
15684 (warning_table): Add WARN_ESCAPE.
15685 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15688 * troff/token.h: Remove declaration of process_input_stack.
15690 * troff/input.c: Remove declaration of init_hyphen_requests.
15691 * troff/request.h: Correct spelling in declaration of same.
15693 * troff/input.c (token::next): Check whether escape_char is 0.
15695 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
15697 * groff.c (main, usage, help): Implement -P and -L options.
15698 * groff.sh: Likewise.
15700 * troff/input.c (token::next): Use some gotos to avoid code
15703 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15704 Avoid calling symbol::symbol if name empty.
15706 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
15708 * troff/input.c (init_input_requests): Make \n(.x return the major
15709 version number and \n(.y return the minor version number.
15710 * troff/Makefile: Construct file majorminor.c defining
15711 major_version and minor_version automatically from ../VERSION.
15713 * troff/node.c (class glyph_node): Make operator new and operator
15715 (class ligature_node): Similarily.
15717 * troff/input.c (operator==(const macro &, const macro &)): New
15719 (non_interpreted_node::same): Use this.
15720 (string_iterator::string_iterator): Make macro& argument const.
15722 * troff/input.c (input_iterator::get): New function. Don't make
15723 asciify_macro or class non_interpreted_node friends of class
15725 (non_interpreted_node::interpret): Use input_iterator::get.
15726 (asciify_macro): Likewise.
15728 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15729 ~non_interpreted_node): Deleted.
15730 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15733 * troff/symbol.h: Make all symbol member functions const.
15735 * lib/strtol.c: New file.
15736 * lib/Makefile: Add strtol.c.
15737 * Makefile: Define STRTOL as strtol.o to include strtol in
15740 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
15742 * pic/troff.c (troff_output::simple_circle): Divide by scale.
15744 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
15746 * troff/input.c (do_special): Use input_level.
15748 * troff/token.h (TOKEN_BACKSPACE): New token.
15749 (token::backspace): New function.
15750 * troff/input.c (token::description, token::next, token::process):
15751 Grok TOKEN_BACKSPACE.
15752 (do_special): Turn TOKEN_BACKSPACE back into \b.
15754 * troff/token.h (token::leader): New function.
15755 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15757 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15759 * troff/input.c (do_special): Use token::description in error
15762 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
15764 * troff/input.c (decode_args): Combine quoted and
15765 quote_input_level variables. Make it a for (;;) loop.
15767 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15769 * troff/input.c (read_long_escape_name): The test for whether to
15770 expand buffer was off by 1.
15771 (read_string): Similarily.
15773 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15775 * troff/input.c: Use `const int' rather than `static const int'.
15777 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15778 (macro_diversion::copy_file): New function.
15779 * troff/node.h: New class diverted_copy_file_node.
15780 * troff/node.c: Implement it.
15781 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15782 first page transition by pushing a diverted_copy_file_node.
15783 * troff/input.c (token::next, process_input_stack): Don't handle
15786 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15788 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15789 whether space widths need adjusting.
15791 * troff/charinfo.h: Generalize translated_to_space to
15792 special_translation so as to allow translation to \&.
15793 * troff/input.c (translate): Allow translation to \&.
15794 (charinfo::*): Corresponding changes.
15795 * troff/node.c (make_node, node::add_char): Corresponding changes.
15796 * troff/node.h (dummy_node::dummy_node): Allow optional first
15799 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15800 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15802 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15803 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15804 (token::process): Grok that.
15805 * troff/input.c (copy_file): Handle first page transition like
15806 title by pushing a COPY_FILE_REQUEST cookie.
15807 (token::next, process_input_stack): Grok that.
15808 * troff/node.h (output_file::copy_file): Add x and y arguments.
15810 * troff/div.c (top_level_diversion::copy_file): Supply them.
15811 * troff/node.c (troff_output_file::copy_file): Add x and y
15812 arguments; moveto specified position. Invalidate font_position
15813 array after copying file.
15814 (output_file::copy_file): New function.
15815 (suppressed_output_file::copy_file, ascii_output::copy_file):
15817 * troff/input.c (transparent_file): New function.
15818 (init_input_requests): Bind to "trf".
15819 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15820 (process_input_stack): Likewise.
15822 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15824 * troff/node.c (init_node_requests): New number registers .kern
15825 pointing to global_kern_mode, and .lg pointing to
15826 global_ligature_mode.
15828 * troff/node.c (ligature): Don't change it if we get a bad
15831 * troff/input.c (do_define_string): Don't strip tabs.
15833 * troff/input.c (asciify_macro): Make the string_iterator auto.
15835 * troff/node.c (init_font_requests): Rename to...
15836 (init_node_requests):
15837 * troff/node.h: Change declaration.
15838 * troff/input.c (main): Change call.
15840 * troff/input.c (node::reread, diverted_space_node::reread): New
15842 (process_input_stack): Call reread rather than
15843 get_diverted_space_node.
15844 * troff/node.c (node::get_diverted_space_node,
15845 diverted_space_node::get_diverted_space_node): Removed.
15846 * troff/node.h: Declare reread methods instead of
15847 get_diverted_space_node methods. Make `n' member private.
15848 * troff/input.c: (token::diverted_space): Removed.
15849 * troff/token.h: Removed declaration.
15852 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15854 * eqn/script.c (script_box::compute_metrics): Don't let
15855 SUP_RAISE_FORMAT become negative.
15857 * tbl/table.c (table::do_row): Entries that don't end in the
15858 this row shouldn't make the row non-blank.
15860 * tbl/table.c (table::make_columns_equal): Only set the width of
15861 columns which are marked as equal.
15863 * tbl/main.c (process_data): Before issuing excess data error,
15864 if last character was a newline unget it; then get it again after
15865 the error. Also include the contents of the entry in the message.
15867 * groff.c: New file.
15868 * Makefile: Build groff from groff.c. Make it possible to use
15869 either groff.sh or groff.c as groff.
15870 * Makefile.bd: Similarily.
15872 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15874 * groff.sh: Don't delay expansion of $@ in assignment to files.
15875 Remove occurrences of \".
15877 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15879 * all Makefiles: Simplify and rearrange.
15881 * Makefile: Handle fmod like malloc.
15882 * lib/Makefile: Similarily.
15883 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15885 * Makefile: Rename OPTIMISE to OPTIMIZE.
15887 * groff.sh: Remove assignment to PATH.
15888 * Makefile: Remove SHPATH variable.
15889 * Makefile.bd: Similarily.
15891 * groff.sh: Add -V option to print the pipeline instead of
15894 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15896 * lib/font.c: Split off file searching into ...
15897 * lib/fontfile.c: New file.
15899 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15901 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15903 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15904 Also change misleading comment.
15905 (table::do_vspan): Change similarily misleading comment.
15906 * tbl/main.c (process_data): A format row with an explicit `s'
15907 uses up a data line, even if all the other columns are `_' or `='.
15909 * troff/input.c (token::description): Fix description of
15910 TOKEN_DUMMY and TOKEN_EMPTY.
15912 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15914 * groff.sh: Fix description of -Z in help message.
15916 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15918 * pic/object.c (object_spec::make_object): Allow negative and zero
15920 * pic/pic.y: Give linethick default value of -1.0.
15921 * pic/troff.c (troff_output::troff_output): Initialize
15922 last_line_thickness to BAD_THICKNESS.
15923 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15924 (troff_output::line_thickness): Canonicalize negative thicknesses
15925 to RELATIVE_THICKNESS.
15926 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15927 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15929 (tex_output::start_picture): Set pen_size to -2.0.
15931 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15932 0, then use 0 linewidth.
15933 (ps_printer::ps_printer): Initialize line_thickness to -1.
15935 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15937 * ps/devps/symbolchars: Remove `or'.
15938 * ps/tmac.ps: Implement \(or with .char.
15940 * ps/devps/symbolchars: Move most characters into textmap.
15941 * ps/devps/textmap: Add names for troff bracket characters. Remove
15944 * ps/devps/TSymbol.ps: Removed.
15945 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15946 * ps/tmac.ps: Do with .char what TSymbol did.
15947 * ps/devps/download: Remove TSymbol.
15949 * ps/devps/T: Removed.
15950 * ps/devps/Troff.ps: Removed.
15951 * ps/devps/Troff.afm: Removed.
15952 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15953 * ps/devps/download: Remove Troff.
15954 * ps/devps/FontMakefile: Remove T target.
15955 * ps/devps/DESC-A4: Remove T from font list.
15956 * ps/devps/DESC-letter: Likewise.
15958 * troff/input.c (macro_to_node): Rename to ...
15959 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15960 character's definition while processing it.
15961 * troff/node.c (node::add_char, make_node): Change calls to
15962 macro_to_node accordingly.
15964 * troff/input.c (token::next): Translate \_ to \(ul.
15966 * tty/devascii/R.proto: Add `|'.
15967 * tty/devlatin1/R.proto: Likewise.
15969 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15971 * man: Put the version number in all the man pages.
15973 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15975 * Makefile.bd: New file.
15976 * README.bd: New file.
15978 * VERSION: New file.
15979 * lib/version.c: Removed.
15980 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15983 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15984 environment variable.
15986 * all Makefiles: Split install target into install.bin for
15987 binaries, and install.nobin for everything else.
15988 * Makefile: Add bindist target.
15990 * man/afmtodit.man: New file.
15991 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15992 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15994 * ps/Makefile: Pass BINDIR to make install in devps.
15996 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15997 the space character.
15999 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16001 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
16003 * ps/ps.c: Redo font downloading.
16004 * ps/devps/download: New file.
16005 * ps/devps/Makefile: Add download to DEVICEFILES.
16006 * ps/devps/afmtodit: Remove -d option.
16007 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16008 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16009 * ps/devps/zapfdr.ps: Likewise.
16010 * ps/devps/TSymbol.ps: Likewise.
16012 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
16014 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16016 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
16018 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16019 then strip the first line if it starts with %.
16020 * Makefile: Add a comment about this.
16022 * man/tfmtodit.man: New file.
16023 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16024 * dvi/Makefile: Install tfmtodit in BINDIR.
16026 * dvi/tfmtodit.c (usage): Mention -v option.
16028 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
16030 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16031 * troff/node.c (troff_output_file::transparent_char): Don't call
16034 * eqn: Add check_tabs method to most box classes.
16035 * eqn/box.c (box::top_level): Call check_tabs.
16037 * eqn/script.c (script_box::output): Use \Z.
16038 * eqn/limit.c (limit_box::output): Use \Z.
16040 * eqn/box.c (box::top_level): Use itoa.
16042 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
16044 * dvi/tmac.dvi: Add font translations for CR, C, TT.
16045 * dvi/devdvi/Makefile: Don't make links to CW.
16047 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16049 * xditview/tmac.X: Likewise.
16051 * troff/node.c: Add font translation feature.
16052 (get_font_translation): New function.
16053 (symbol_fontno): Translate the font name.
16054 (mount_font_no_translate): Rename to mount_font to this.
16055 (mount_font): New function.
16056 (font_family::make_definite): Call mount_font_no_translate instead
16058 (mount_style): Translate the font name.
16059 (font_translate): New function.
16060 (init_font_requests): Bind "ftr" to font_translate.
16062 * ps/devps/prologue (SN): New procedure that rounds a position to
16063 the nearest (pixel + (.25,.25)).
16064 (DL): Use SN to round endpoints.
16066 * lib/version.c: Changed version to 0.5.
16068 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
16070 * Makefile: Move definition of PAGE to the very beginning, so that
16071 people are less likely to miss it.
16073 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
16075 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16077 * troff/env.c (environment::choose_breakpoint): Make `can't find
16078 breakpoint' error a warning of type WARN_BREAK. Change message to
16079 `can't break line'.
16080 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16082 * troff/input.c: Add WARN_BREAK to warning_table. Include
16083 WARN_BREAK in DEFAULT_WARNING_MASK.
16085 * tty/tmac.tty: Add definition of \(+-.
16087 * groff.sh: Remove `--' option to set command.
16089 * dvi/devdvi/texsy.map: Remove duplicate md entry.
16091 * ps/devps/eqnchar: Better definition of cdot using md.
16092 * dvi/devdvi/eqnchar: Likewise.
16093 * xditview/devX100/eqnchar: Likewise.
16094 * xditview/devX75/eqnchar: Likewise.
16095 * eqn/lex.c: Add definition of cdot.
16097 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
16099 * troff/input.c (get_optional_char): New function.
16100 * troff/input.c (set_page_character): Use get_optional_char(),
16101 rather than has_arg() and tok.get_char(1).
16102 * troff/env.c (tab_character, leader_character, hyphen_char,
16103 field_characters): Likewise.
16104 (margin_character): Likewise. Also always delete the
16105 margin_character_node.
16107 * troff/input.c (token::get_char): Use token::description.
16109 * troff/input.c (has_arg): Don't skip over tab and \}.
16110 * troff/number.c (start_number): Give a warning if the number
16111 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16113 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
16115 * troff/input.c (empty_name_warning, non_empty_name_warning): New
16117 (get_name, get_long_name): Use these. Rename `warn' argument to
16120 * troff/node.c (get_fontno): Test that the symbol is not null.
16122 * troff/input.c (token::description): New function.
16123 * troff/number.c (parse_term): Use token::description in `numeric
16124 expression expected' message.
16125 * troff/groff.h: Add WARN_MISSING.
16126 * troff/number.c (start_number): New function.
16127 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16128 get_incr_number): Use start_number().
16129 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16131 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16132 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16134 * troff/input.c (token::get_char): Use WARN_MISSING.
16135 * troff/input.c (token::delimiter): Use token::description.
16136 * troff/env.c (environment_switch): Back out Aug 3 change.
16137 * troff/input.c (has_arg): Skip over \}s and tabs but give a
16139 * troff/token.h (token::tab): New function.
16140 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16141 * troff/reg.c (alter_format): Likewise.
16142 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16144 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
16146 * troff (most files): Redo warnings. Divide warnings into various
16147 categories; warning() has an additional first argument indicating
16148 the category it falls into.
16149 * troff/input.c (main): -w now takes an argument. New option -W.
16150 (enable_warning, disable_warning): New functions.
16152 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16153 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16155 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
16157 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16158 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16159 * xditview/devX75/eqnchar: Likewise.
16160 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16162 * eqn/other.c: When bar or over applies to a single character
16163 don't produce an overline_box or an underline_box. Instead produce
16164 an accent_box or an underaccent_box, with the accent a line
16165 whose width is accent_width. New classes underaccent_box,
16166 overline_char_box and underline_char_box.
16167 * eqn/box.h: Move overline_box, underline_box, accent_box class
16168 declarations into eqn/other.c. Add declarations of
16169 make_underline_box, make_overline_box, make_accent_box.
16170 * eqn/eqn.y: Call make_overline_box, make_underline_box
16171 make_accent_box instead of constructors.
16172 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16174 * eqn/other.c: Add accent_box::~accent_box.
16175 * eqn/box.h: Declare it.
16177 * groff.sh: With -Tps, use eqn -D.
16179 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16181 (underline_box::output): Similarily.
16182 (accent_box::output): Use \Z.
16184 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16187 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
16189 * troff/div.c (top_level_diversion::transparent_output(unsigned
16190 char)): Use asciify.
16191 * troff/input.c (asciify): Don't make it static.
16192 * troff/token.h (asciify): Declare it.
16194 * troff/input.c (get_name, get_long_name, token::get_char,
16195 token::delimiter): Add an extra default argument which says
16196 whether a warning should be printed.
16197 * troff: Pass a non-zero argument to one of these rather than
16198 printing a warning directly.
16200 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
16202 * troff: Consistently use symbol::is_null.
16204 * troff/dictionary.h: Move some inline functions into
16207 * troff/request.h: Move inline functions into input.c.
16208 (request_or_macro::invoke): Make it pure.
16210 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16211 * troff/input.c (init_input_requests): Use class constant_int_reg.
16212 (class compatible_reg): Deleted.
16213 * troff/div.c (init_div_requests): Use class constant_int_reg.
16214 (class last_post_line_extra_space_reg): Deleted.
16216 * troff/env.c (tab_character): Don't change the tab character if
16217 we get an invalid argument.
16218 (hyphen_char): Similarily.
16220 * troff/reg.c (alter_format): Check that nm is not null.
16222 * Makefile, groff.sh: Make it possible to customize the commands
16223 used for printing PostScript and dvi files. Also make it possible
16224 to customize the path used by groff.sh.
16226 * eqn/eqn.y: Make `left' right associative.
16228 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
16230 * pic/pic.h: Added definition of M_SQRT2 for those systems that
16233 * pic/pic.h: Removed definition of INT_MAX.
16235 * troff/node.c (italic_corrected_node::vertical_extent): Omit
16238 * troff/input.c (token::next): Handle \R like \n.
16240 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
16242 * ps/tmac.pc (PSPIC): Simplify.
16244 * troff/env.c (tab_stops::to_string):
16245 * pic/pic.y (object_type_name):
16246 * pic/troff.c (simple_output::line):
16247 * pic/tex.c (tex_output::spline):
16248 * pic/object.c (object_spec::make_object):
16249 * tbl/main.c (process_data): Add cases to switch statements to
16250 avoid cfront warnings. (Some of these are spurious, since the
16251 switch already has a default case.)
16253 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
16254 `ps-'. Don't test systat; instead check number of arguments to
16257 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
16259 * macros/tmac.e: Do not decrease the page offset by 0.5i.
16261 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16262 Unlink the file as soon as we have opened it, so that we don't
16263 have to bother with signal handlers.
16264 (handler): Deleted.
16265 (fatal_error_exit): Deleted.
16266 (main): Don't call signal.
16268 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16270 * dvi/devdvi/Makefile: Use the -k option with S and MI.
16272 * pic/pic.y: If there is a label, or an nth construction before
16273 the first `.' in the argument to `with', ignore it and generate a
16275 * pic/lex.c (lex_warning): New function.
16277 * tbl/table.c (table::init_output): In section keep and release
16278 macro, use 0 indent when diverting and the correct indent when
16281 * troff/input.c (interpolate_number_format): Do not interpolate
16282 anything if the number register is not defined.
16284 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16286 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
16288 * ps/devps/prologue (PICTURE): Set components of graphics state to
16289 their default values.
16291 * ps/devps/text.enc: Add trademark
16292 * ps/devps/textmap: Add names for club, spade, heart, diamond,
16293 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16294 * ps/devps/symbolchars: Add names for summation and product.
16296 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16297 suchthat. Add pp. Add upper-case letters.
16299 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16300 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16303 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16304 rA (right angle bracket) to ra. Introduce names for double-headed
16305 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16306 * ps/devps/textmap: Likewise for ps device.
16307 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16308 * tty/devascii/R.proto: Rename lA to la and rA to ra.
16309 * tty/devascii/R.proto: Likewise.
16310 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16312 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16314 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16316 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16319 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
16321 * troff/div.c (when_request): Use symbol::is_null rather than
16322 has_arg to determine whether we have an argument.
16323 (change_trap): Remove the trap if we get an invalid number. Give
16324 an error if we don't get at least the macro name.
16325 (diversion_trap): Remove trap if we get an invalid name or number.
16327 * troff/env.c (environment_switch): Pop if we get an invalid
16328 symbol or numeric expression.
16330 * troff/input.c (do_define_macro): If EOF is encoutered while
16331 defining the macro, do tok.next() before returning.
16333 * troff/token.h (has_arg): Move definition from here, to ...
16334 * troff/input.c (has_arg): ... here
16336 * troff/env.c (space_size): Do nothing if we get an invalid argument.
16337 * troff/input.c (shift): Likewise.
16339 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
16342 * pic/troff.c (troff_output::start_picture): Comment out calls to
16345 * eqn/main.c (do_file): Subtract 1 from current_lineno if
16346 interpret_lf_args succeeds.
16348 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16349 \\. This avoids problems with \$N.
16351 * groff.sh: Pass -C to preprocessors.
16353 * lib/lf.c (interpret_lf_args): Be more flexible.
16355 * tbl/main.c (main): Add -C option.
16356 (table_input::get): Do not recognize TE if followed by character
16357 other than a space or newline unless -C option given.
16358 (process_input_file): Likewise for lf, TS.
16359 (process_data): Likewise for lf in text blocks.
16361 * eqn/main.c (main): Add -C option.
16362 (do_file): Don't recognize EQ, EN or lf if followed by character
16363 other than space or newline unless -C option given.
16364 * eqn/lex.c (file_input::read_line): Similarily.
16365 * eqn/eqn.h: Declare compatible_flag.
16367 * etc/soelim.c (main): Add -C option.
16368 (interpret_lf_args): Use version in libgroff.
16371 * pic/main.c (main): Add -C option, which sets compatible_flag.
16372 (top_input::get), (top_input::peek): If -C option not given,
16373 do not recognize .PS/.PE/.PF/.lf if followed by a character
16374 other than space or newline.
16375 * pic/lex.c (file_input::read_line): Similarily.
16376 * pic/pic.h: Add declaration of compatible_flag.
16378 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
16380 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16382 * troff/node.c, troff/node.h: Add `asciify' methods to classes
16383 derived from node. New class space_char_hmotion_node.
16384 * troff/input.c (asciify_macro): New function.
16385 * troff/input.c (init_input_requests): New request `asciify' bound
16387 * macros/mm.diff: New file.
16388 * Makefile: In install.mm target use `patch' to apply
16391 * troff/input.c (macro::print_size): Just print the size in bytes.
16393 * troff/div.c (return_request): Correct the argument
16396 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
16398 * troff/node.h (class composite_node): Add sz member.
16399 * troff/node.c (composite_node::size): Return sz.
16400 * troff/input.c (macro_to_node): Use the initial size in the
16401 environment as the size of the composite_node.
16403 * troff/node.c (node::zero_width_tprint): Provide a reasonable
16406 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
16408 * troff/div.c (change_trap): If we get a bad number expression,
16411 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
16413 * lib/matherr.c (matherr): Define this only if math.h defines
16416 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
16418 * troff/div.c (macro_diversion::distance_to_next_trap): If there
16419 no diversion trap return vunits(INT_MAX - vresolution).
16421 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
16423 * troff/input.c (do_zero_width): New implementation that doesn't
16424 use a temporary environment. Use instead:
16425 (token::add_to_node_list): New function.
16426 * troff/env.c (environment::get_prev_char_height),
16427 (environment::get_prev_char_height),
16428 (environment::get_prev_char_skew): New functions.
16429 (environment::get_prev_char): New function.
16430 (environment::get_prev_char_width): Change to use get_prev_char.
16431 (init_env_request): Implement new registers .cht, .cdp, .csk.
16432 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16433 \Z being processed in a separate environment.
16435 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
16437 * tbl/table.c: Removed TABLE_BOTTOM_REG.
16439 * tbl/table.c (table::init_output): In the section release macro,
16440 give a warning message if the section won't fit on one page.
16442 * tbl/table.c (table::do_top): Emit table keep only if table is
16444 (table::do_bottom): Likewise for table release.
16445 (table::table), (table::add_vertical_rule): Remove reference to
16447 * tbl/table.h: Remove keep member.
16449 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16450 SECTION_RELEASE_MACRO, if there's not enough space before the next
16451 trap to output the diversion, call T# ourselves, set
16452 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16453 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
16454 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
16455 vertical position and return to it before turning traps on again.
16457 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
16459 * troff/node.c, troff/node.h: In classes derived from node,
16460 replace prev_char_width method by last_char_node method.
16461 * troff/env.c (environment::get_prev_char_width): Use
16462 node::last_char_node rather than node::get_prev_char_width.
16464 * Makefile: Added comment about -fno-inline on 68030-based
16467 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16468 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16469 expressions using sizeof to int.
16470 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16472 * macros/tmac.e (TS): Don't move @f back past the current
16475 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
16477 * ps/ps.c (main): Buffer stderr.
16478 * dvi/dvi.c (main): Likewise.
16479 * tty/tty.c (main): Likewise.
16481 * ps/ps.c (ps_printer::do_import): Improve error handling.
16483 * troff/input.c (abort_request): Use asciify.
16485 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16486 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16487 type of first argument int rather than char. This works around a
16488 bug on the 68030 based Apollo using g++ 1.37.1.
16490 * tbl/table.h (class table): Add `keep' member.
16491 * tbl/table.c (table::table): Initialize `keep'.
16492 (table::add_vertical_rule): Set `keep' to 1.
16493 (table::do_top): Only emit table keep macro is `keep' is non-zero.
16494 (table::do_bottom): Likewise for table release macro.
16495 (table::do_row): Emit section keep macro even if the row is 0.
16497 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
16499 * macros/tmac.e (@C): Preserve the font family across the change
16502 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
16504 * lib/font.c: Initialize font::hor and font::vert to 1.
16505 (font::load_desc): Check the values of font::hor and font::vert.
16507 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16508 be included in a C compilation.
16509 (iftoa): Use INT_DIGITS. Include lib.h.
16511 (as_string): Likewise.
16512 * tbl/table.c: Removed definition of INT_DIGITS.
16513 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16514 * troff/input.c (input_input_requests): Likewise.
16515 * ps/ps.c (make_encoding_name): Likewise.
16516 (ps_printer::set_style): Likewise.
16517 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16519 * tty/devascii/R.proto: Map fm onto '.
16520 * tty/devlatin1/R.proto: Likewise.
16522 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
16524 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16525 argument to \w is at a different input level.
16527 * tbl/table.c (table::init_output): Define a new macro
16528 REPEATED_VPT_MACRO, like vpt but if in a diversion also
16529 transparently outputs itself.
16530 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16532 (table::do_row): Likewise.
16534 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16535 TRANSPARENT_STRING_NAME.
16537 * tbl/table.c (table::init_output): In the table release macro
16538 print an error message and don't produce any output if after
16539 issuing the need request the table still will not fit. Also
16540 remove the diversion after bringing it back.
16542 * tbl/table.c (table::init_output): Define a new macro
16543 REPEATED_MARK_MACRO, like mk but if in a diversion also
16544 transparently outputs itself.
16545 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16546 is necessary because .TH might not call .T#.
16547 (table::do_top): Likewise TOP_REG.
16548 (table::define_bottom_macro): If TOP_REG is no longer valid, use
16549 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16550 table header might contain just the two top rules.
16552 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
16554 * troff/div.c: Implement new request `ptr' to print all traps.
16556 * troff/env.c (init_env_requests): Implement `.tabs' reg with
16557 init_string_env_reg.
16558 * troff/env.c (class tab_reg): Deleted.
16560 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
16562 * troff/div.c: New number register .pn returns the number of the
16563 next page as set by the pn request.
16565 * macros/tmac.an: Redid headers and footers. Number each manual
16566 entry starting from 1 unless \nC is > 0, like Sun. Added an
16567 optional 5th argument to .TH which specifies the manual name and
16568 appears in the center of the header. Understand the X, P and D
16569 registers like Sun.
16571 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
16573 * troff/env.c (init_env_requests): New number register `.lt' to
16574 return the title length.
16576 * troff/node.h (class transparent_dummy_node): New class.
16577 * troff/node.c (class transparent_dummy_node): Provide member
16579 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16582 * troff/input.c (token::next): New escape sequence \).
16583 * troff/input.c (get_copy): Recognize \) in copy mode.
16585 * troff/input.c (input_stack::clear): New function.
16586 * troff/input.c (exit_request): Use input_stack::clear.
16588 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16589 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16591 * troff/env.c: Move set_page_character to input.c. Move
16592 page_character to input.c also.
16593 * troff/env.c (title): Split off the reading of the parts of the
16594 title into read_title_parts.
16595 * troff/input.c (read_title_parts): New function. Check the
16596 input_level when testing whether a token matches the delimiter.
16598 * troff/input.c (exit_request): New function.
16599 * troff/input.c (init_input_requests): Bind ex request to
16600 exit_request rather than exit_groff.
16602 * troff/input.c (exit_groff): Call tok.next() before
16603 process_input_stack().
16605 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
16607 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16608 * troff/env.h: ditto.
16609 * troff/input.c: ditto.
16611 * troff/env.c (environment::is_empty): Test pending_lines.
16613 * troff/env.c (environment::have_pending_lines): Removed.
16615 * troff/input.c: Add request to flush pending lines from the
16618 * troff/env.c, troff/env.h: Add automatic widow control feature.
16620 * troff/input.c (exit_groff): Do process_input_stack() after
16621 do_break() but before setting exit_flag to 2.
16623 * troff/input.c: Remove FLUSH_PENDING_LINES and
16624 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16625 environment after END_TRAP token seen, but only if there aren't
16626 any more traps still unfinished.
16627 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16629 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
16631 * troff/env.c: Rename the `retain_size' member of class
16632 pending_output_line to `no_fill'.
16634 * troff/env.c (title): When the line is output, make the
16635 retain_size argument !fill.
16637 * troff/node.h: Add `hyphenated' member to struct breakpoint.
16638 * troff/node.c (space_node::get_breakpoints),
16639 (dbreak_node::get_breakpoints): Fill this in.
16640 * troff/env.c: Allow specification of maximum number of
16641 consecutive hyphenated lines.
16643 * troff/env.c (environment::is_empty): Add test for !current_tab.
16645 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
16647 * troff/env.c (environment::hyphenate_line): Don't completely give
16648 up if the word is not to be hyphenated; continue so that breaks
16649 can be made at break_char_node's.
16651 * lib/lib.h: Only define INT_MAX if it's not already defined;
16652 undef INT_MIN if it's already defined.
16654 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16656 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16657 This works around a bug in AT&T C++ 2.0 used with an ANSI C
16660 * macros/tmac.an (an-header): Set no-space mode.
16662 * macros/tmac.an (TH): Start a new page if necessary.
16664 * Started using ChangeLog at version 0.4.
16667 version-control: never