1 2003-02-11 Werner LEMBERG <wl@gnu.org>
3 * doc/groff.texinfo: Improve documentation of `ad'.
4 Document that \D'f...' is dependent on the horizontal resolution.
5 * man/groff_diff.man: Improve documentation of \D'f...'.
7 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
8 compensating \h'...' for \D'f ...' since the latter no longer moves
10 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
12 2003-02-10 Werner LEMBERG <wl@gnu.org>
14 Improve error messages for `x F' (and `F') commands.
16 * src/include/error.h: Add declaration for
17 `current_source_filename'.
18 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
19 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
20 parameter for source file string.
23 * src/libs/libdriver/input.cc: Add `current_source_filename'.
24 (remember_source_filename): New function.
25 (parse_x_command <'F'>, do_file <'F'>): Use it.
27 2003-02-09 Werner LEMBERG <wl@gnu.org>
29 Make grotty not emit warnings about unknown colors more than
32 * src/devices/grotty/tty.cc: Include `ptable.h'.
33 (TTY_MAX_COLORS): Removed.
34 (DEFAULT_COLOR_IDX): Defined to -1.
35 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
36 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
37 Change `tty_colors' to be a ptable.
38 First arg of `put_color' is now `char'.
39 New functions `make_rgb_string' and `tty_color'.
40 (tty_printer::tty_printer): Use `tty_color'.
41 (tty_printer::color_to_idx): Return value is now `char'.
44 * src/include/color.h (color): Add `print_color' member function.
45 * src/libs/libgroff/color.cc (color::print_color): Implement it.
47 2003-02-08 Werner LEMBERG <wl@gnu.org>
51 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
54 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
55 assume that value has been allocated with `new[]', thus use
56 `a_delete' for deallocation.
58 * src/libs/libdriver/input.cc (get_integer_arg,
59 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
62 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
63 * src/libs/libgroff/nametoindex.cc
64 (character_indexer::named_char_index): Use `new <type>[1]'.
66 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
68 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
69 (split_text): Use `a_delete'.
71 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
74 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
76 (hyphen_trie::read_patterns_file): Initialize `buf'.
77 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
78 Initialize `current_fill_color'and `current_glyph_color'.
79 * src/roff/troff/glyphuni.cc
80 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
81 * src/roff/troff/uniuni.cc
82 (unicode_decompose_init::unicode_decompose_init): Ditto.
83 * src/roff/troff/uniglyph.cc
84 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
86 2003-01-26 Werner LEMBERG <wl@gnu.org>
88 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
89 `access' before calling `unlink'.
90 (do_file): Handle __EMX__.
92 * src/include/nonposix.h: Handle __EMX__.
94 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
95 (fontpath,tmacpath): Use it.
97 Sorted alphabetically.
99 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
101 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
104 2003-01-27 Werner LEMBERG <wl@gnu.org>
106 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
107 New files, copied from gnulib.
108 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
109 * configure.ac: Updated.
110 * configure: Regenerated.
112 * src/include/config.hin: Regenerated.
113 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
114 Don't define `strcasecmp' as `strcmp'.
115 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
116 Dont define `strncasecmp' as `strncmp'.
118 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
121 2003-01-26 Werner LEMBERG <wl@gnu.org>
123 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
126 2003-01-25 Werner LEMBERG <wl@gnu.org>
128 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
130 2003-01-24 Werner LEMBERG <wl@gnu.org>
132 Add US-english hyphenation exceptions (converted from Barbara
133 Beeton's hyphenation exception log reports which appear irregularly
136 * tmac/hyphen.us: Updated to latest version.
137 * tmac/README: Updated.
138 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
139 * tmac/troffrc: Load `hyphenex.us'.
140 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
141 * doc/groff.texinfo: Updated.
143 2003-01-23 Werner LEMBERG <wl@gnu.org>
145 Improve hyphenation slightly. This is a first step in redesigning
146 the hyphenation algorithm to make it more flexible (e.g. allowing
147 kerns and ligatures between the hyphenation character and the
148 following character -- while not used normally in English, other
149 languages like German would benefit).
151 * src/roff/troff/env.cc (environment::hyphenate_line): Use
152 assertion instead of if-clause.
153 Let `get_hyphen_list' return the number of involved characters in
154 the hyphenation pattern instead of computing it directly (which
155 often yields too small values).
156 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
157 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
160 2003-01-22 Werner LEMBERG <wl@gnu.org>
162 Fixing a bug which caused groff to hang if the hyphenation exception
163 dictionary tried to grow.
165 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
166 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
167 pointer to dictionary.
169 2003-01-20 Werner LEMBERG <wl@gnu.org>
171 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
172 negative left italic correction.
173 * src/utils/afmtodit/afmtodit.man: Document it.
175 * font/devps/generate/Makefile (RFLAG): Add `-m'.
176 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
177 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
181 2003-01-16 Werner LEMBERG <wl@gnu.org>
185 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
187 * src/preproc/refer/refer.man: Mention REFER environment variable.
189 2003-01-05 Werner LEMBERG <wl@gnu.org>
191 Similar to \[is], the square root glyph (\[sr]) and the square root
192 extension glyph (\[radicalex]) are now text symbols. The new
193 mathematical versions are called \[sqrt] and \[sqrtex],
196 * font/devX*/S: Regenerated.
197 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
198 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
199 * font/devdvi/EX, font/devdvi/S: Regenerated.
200 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
201 * font/devlj4/generate/special.map: Add `sqrt'.
202 * font/devlj4/S: Regenerated.
203 * font/devps/generate/textmap: Add `sqrt'.
204 * font/devps/S, font/devps/symbolmap: Regenerated.
206 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
207 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
208 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
209 overlap horizontally.
211 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
212 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
215 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
216 and `sqrtex' are overlapping glyphs.
218 2003-01-04 Werner LEMBERG <wl@gnu.org>
220 * font/devdvi/generate/texsy.map: Add `is'.
221 * font/devps/symbolmap: Regenerated.
222 * font/devdvi/*TC, MI, S: Regenerated.
224 * tmac/dvi.tmac: Remove `is'.
226 2003-01-03 Werner LEMBERG <wl@gnu.org>
228 `is' is now a text symbol (only relevant for dvi). The math variant
229 can be accessed with `integral'.
231 * font/devX*/S: Regenerated.
232 * font/devdvi/generate/texex.map: Remove `is'.
233 * font/devdvi/EX: Updated.
234 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
235 * font/devlj4/generate/special.map: Ditto.
236 * font/devlj4/S: Regenerated.
237 * font/devps/generate/textmap: Add `integral'.
238 * font/devps/S: Regenerated.
240 * tmac/dvi.tmac: Define `is'.
242 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
244 * src/preproc/tbl/main.cc (process_format): Fix error message.
246 2003-01-02 Werner LEMBERG <wl@gnu.org>
248 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
249 * font/devps/textmap: Fix entries for `ne' and `nc'.
250 * font/devps/symbolmap: Regenerated.
252 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
253 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
254 `38', `58', `78', `-+', `|=', `nc', `ne'.
256 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
257 Use `schar' for `aq'.
258 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
259 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
260 * tmac/tty.tmac: Add `ne'.
262 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
265 2002-12-29 Werner LEMBERG <wl@gnu.org>
269 * font/devX*/*: Regenerated.
270 * font/devdvi/generate/ec.map: Remove `eq'.
271 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
272 Assign `|=' to position 39.
273 * font/devdvi/*EC, S: Regenerated.
274 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
275 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
276 Assign `|=' to position 549.
277 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
279 Add `uni2243' for `|='.
281 * tmac/ec.tmac: Add `eq'.
282 * tmac/dvi.tmac: Add `=~'.
283 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
286 2002-12-21 Werner LEMBERG <wl@gnu.org>
288 * font/devdvi/generate/tc.map: Remove `**'.
289 * font/devdvi/*TC: Regenerated.
290 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
292 * font/devutf8/NOTES: Updated.
294 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
295 Don't give default parameter to `set_macro'.
296 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
297 instead of `set_macro'.
298 (charinfo::setx_macro): Implement it.
299 (charinfo::set_macro): Don't change `mode'.
301 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
302 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
303 * tmac/dvi.tmac: Define `!=' with `.schar'.
305 2002-12-20 Werner LEMBERG <wl@gnu.org>
307 * font/devX*/S: Regenerated.
308 * font/devdvi/generate/ec.map: Remove `pl'.
309 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
310 * font/devdvi/*{TC,EC}: Regenerated.
311 * font/devhtml/R.proto: Add `-+'.
312 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
313 * font/devlbp/*: Remove `or'.
314 * font/devlj4/generate/special.map: Remove `or'.
315 * font/devlj4/S: Regenerated.
316 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
317 `seveneighths', `threeeighths'.
319 Replace `minusplus' with `uni2213'.
320 * font/devps/symbolmap: Regenerated.
321 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
324 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
326 * src/roff/troff/node.cc (troff_output_file::put_char_width):
327 Call glyph_color and fill_color even if tcommand_flag isn't set.
328 (make_node, node::add_char): Check not ci->is_fallback but
331 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
332 * tmac/ec.tmac: Add .rchar entry for `f/'.
333 Don't remove `12', `14', `34'.
334 Define `pl' to be always roman.
335 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
336 Define `18', `38', `58', `78'.
337 * tmac/tty.tmac: Add `-+'.
338 * tmac/dvi.tmac: Define `f/'.
339 (dvi-frac): Use `f/'.
340 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
341 Define `18', `38', `58', `78'.
343 2002-12-15 Colin Watson <cjwatson@debian.org>
345 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
347 2002-12-10 Werner LEMBERG <wl@gnu.org>
349 Add glyph `tno', a textual variant of `no'.
351 * font/devX*/*: Regenerated.
352 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
353 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
354 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
355 * font/devdvi/*: Regenerated.
356 * font/devlbp/*: Add `tno'.
357 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
358 * font/devlj4/*: Regenerated.
359 * font/devps/generate/textmap: Replace `no' with `tno'.
360 * font/devps/generate/symbolchars: Add `no'.
361 * font/devps/*: Regenerated.
363 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
365 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
366 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
370 * tmac/dvi.tmac: Replace most `\\' with `\E'.
371 Add definition for `sd'.
372 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
374 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
376 2002-12-08 Werner LEMBERG <wl@gnu.org>
378 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
379 mode to avoid rounding errors.
380 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
382 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
383 src/roff/troff/troff.man: Improve documentation of -T.
385 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
387 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
388 (run_pipeline) [_WIN32]: Provide working function without `fork'.
390 2002-12-06 Werner LEMBERG <wl@gnu.org>
392 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
393 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
394 Scaling Euro.sansserif glyphs down to have the same height as
396 Removed unnecessary points; added some extrema.
398 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
401 2002-12-04 Werner LEMBERG <wl@gnu.org>
403 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
404 and `Euro.symbol.bold.slanted'.
405 Improve some glyph offsets and widths.
406 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
408 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
410 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
413 * tmac/europs.tmac: Updated to new glyph indices.
414 Use Euro.symbol for font familiy `A'.
416 * doc/groff.texinfo: Minor improvements.
418 2002-12-02 Werner LEMBERG <wl@gnu.org>
420 * font/devdvi/generate.tc.map: s/%O/%0/.
421 * font/devdvi/*TC: Regenerated.
423 * src/roff/troff/div.cc (init_div_requests): Sorted.
425 * tmac/dvi.tmac: Remove `Ye'.
426 * tmac/ec.tmac: Remove `Ye'.
427 Add .rchar entry for `de'.
429 * man/groff.man, man/groff_diff.man: Document register `.pe'.
430 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
433 2002-11-30 Werner LEMBERG <wl@gnu.org>
435 Add PS font for various Euro glyphs.
437 * font/devps/generate/freeeuro.sfd: New master font file for
439 * font/devps/generate/sfdtopfa.pe: New conversion script for
441 * font/devps/generate/Makefile (FONTS): Add `EURO'.
442 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
443 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
445 * font/devps/EURO: Generated from `freeeuro.afm'.
446 * font/devps/download: Add `freeuro.pfa'.
447 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
450 * tmac/europs.tmac: New file.
451 * tmac/ps.tmac: Include `europs.tmac'.
452 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
454 2002-11-29 Werner LEMBERG <wl@gnu.org>
456 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
457 * font/devdvi/S: Regenerated.
458 * font/devhtml/R.proto: Fix `CR' and `ci'.
460 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
462 * font/devps/symbolmap: Regenerated.
463 * font/devutf8/R.proto: Fix `CR' and `ci'.
465 * font/devutf8/NOTES: Updated.
467 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
470 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
472 * tmac/dvi.tmac: Add `lh' and `rh'.
473 * tmac/Xps.tmac: Fix `lh' and `rh'.
474 * tmac/X.tmac: Add `OK'.
475 * tmac/lj4.tmac: Ditto.
477 2002-11-24 Werner LEMBERG <wl@gnu.org>
479 * font/devX*/S: Regenerated.
480 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
481 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
482 * font/devdvi/generate/texsy.map: Remove `or' glyph.
483 * font/devdvi/S: Regenerated.
484 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
485 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
486 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
487 `bracketleftbt', `bracketrighttp', `bracketrightex',
488 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
489 `braceex', `braceleftex', `bracerightex', `bracerighttp',
490 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
492 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
493 * font/devutf8/NOTES: Updated.
494 * font/devlj4/generate/special.map: Add glyph `braceex'.
495 * font/devlj4/S: Regenerated.
497 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
499 2002-11-14 Werner LEMBERG <wl@gnu.org>
501 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
504 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
506 * doc/texinfo.tex: New version from texinfo 4.3.
507 * doc/groff.texinfo: Updated for texinfo 4.3.
508 Use @tie{} where appropriate.
509 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
510 * font/devdvi/generate/tc.map: Remove `rn'.
511 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
512 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
514 * font/devX100/*, font/devX100-12/*, font/devX75/*,
515 font/devX75-12/*: Regenerated.
517 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
518 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
519 Improve definition of `an'.
520 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
522 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
523 * tmac/X.tmac: Add definition for `or'.
524 * tmac/Xps.tmac: Undo change 2002-11-05.
525 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
527 2002-11-11 Werner LEMBERG <wl@gnu.org>
529 * src/roff/troff/node.cc (troff_output_file::put_char): Always
532 2002-11-10 Werner LEMBERG <wl@gnu.org>
534 Added three new requests `schar', `fschar', and `rfschar'. `schar'
535 defines a glyph which is searched after the check for fonts declared
536 with `.special' (and before the check for all mounted special
537 fonts). `fschar' defines a glyph for a particular font which is
538 searched after the check for fonts declared with `.fspecial' (and
539 before the check for fonts declared with `.special'). `rfschar'
540 removes glyphs defined with `fschar'.
542 * src/roff/troff/token.h (char_mode): New enum.
543 Declare do_define_character.
544 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
546 (charinfo::is_fallback): Updated.
547 (charinfo::is_special): New method.
548 * src/roff/troff/input.cc (do_define_character): Add and use
549 optional second parameter used as a prefix for font-specific glyph
551 (define_character, define_fallback_character): Updated.
552 (define_special_character): New function.
553 (init_input_requests): Add `schar'.
554 (charinfo::charinfo, charinfo::set_macro): Updated.
555 * src/roff/troff/node.cc: Include `stringclass.h'.
556 (make_glyph_node): Handle special glyphs defined with `.schar' and
558 (define_font_special_character, remove_font_special_character): New
560 (init_node_requests): Sorted.
561 Add `fschar' and `rfschar'.
562 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
563 Document new requests.
565 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
566 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
568 2002-11-08 Werner LEMBERG <wl@gnu.org>
570 Added new font `SC' (cmtex10) to devdvi.
572 * devdvi/generate/Makefile (FONTS): Add `SC'.
574 * devdvi/generate/textex.map: New map file for cmtex.
576 * devdvi/Makefile.sub (DEVFILES): Updated.
577 * tmac/dvi.tmac: Add fspecial entries for SC.
578 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
579 found before `S' since the font position of `SC' is lower due to the
580 gaps in DESC's `font' line.
581 * tmac/ec.tmac: Add a `special' call.
584 * font/devhtml/R.proto: Remove double entry for `ti'.
585 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
586 * tmac/tty-char.tmac: Remove entry for `bq'.
587 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
588 * tmac/ec.tmac: Don't remove `aq' glyph.
589 * tmac/X.tmac: Fix entry for `em'.
590 Add entries for `fo' and `fc'.
591 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
593 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
594 documentation of `special' and `fspecial' requests.
596 2002-11-05 Werner LEMBERG <wl@gnu.org>
598 * font/devascii/R.proto, font/devcp1047/R.proto,
599 font/devlatin1/R.proto: Remove entry for `.i'.
600 * font/devdvi/generate/textt.map: Add entry for `ad'.
601 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
602 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
603 We need this for getting kerning values to compose `/l' and `/L'.
604 * font/devdvi: Regenerated font definition files for CM fonts.
605 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
606 * font/devutf8/R.proto: Ditto.
607 Remove double entry for `ti'.
609 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
610 for (groff) ligatures, `la', and `ra'.
611 Add "'C", "'c", `IJ', and `ij'.
612 Remove double entry for `ti'.
613 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
615 Add "'C", "'c", `IJ', and `ij'.
616 Fix entries for (groff) ligatures, `la', and `ra'.
618 * tmac/ps.tmac (ps-achar): New macro.
619 Define "'c" and "'C".
620 * tmac/tty.tmac: Add entry for `.i'.
621 * tmac/X.tmac (X-achar): New macro.
622 Define "'c", "'C", and `:Y'.
623 Add entries for `IJ' and `ij'.
624 * tmac/Xps.tmac (Xps-achar): New macro.
625 Define "'c" and "'C".
626 Add entries for `IJ' and `ij'.
627 * tmac/lbp.tmac (lbp-achar): New macro.
628 Add fallback characters for all groff ligatures and many other
630 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
631 Add entries for `/l' and `/L'.
632 Define "'c" and "'C".
633 Add entries for `IJ' and `ij'.
635 2002-11-02 Larry Kollar <kollar@alltel.net>
637 * PROBLEMS: Document how to solve Mac OS X compilation problems.
639 2002-11-02 Werner LEMBERG <wl@gnu.org>
641 Adding support for composite glyphs: \[xxx yyy ...] and the
644 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
645 to Unicode-based glyph names.
646 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
647 glyph names to groff glyph names.
648 * src/roff/troff/uniuni.cc: New file for canonically decomposing
649 Unicode-based glyph names.
650 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
651 for handling Unicode glyph names.
652 * src/roff/troff/input.cc: Include unicode.h.
653 (composite_glyph_name): New function.
654 (token::next) <'['>: Handle Unicode glyph names and composite
656 (composite_dictionary): New dictionary for the `composite' request.
657 (composite_request): Implement `composite' request.
658 (init_input_requests): Add `composite'.
659 Alphabetically sorted.
660 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
662 (init_env_requests): Alphabetically sorted.
663 Removed `tas' and `tar' (already commented out).
664 * src/roff/troff/Makefile.sub: Updated.
666 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
668 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
671 2002-10-29 Werner LEMBERG <wl@gnu.org>
673 Fix computation of .trunc register. Additionally, its value (and
674 the value of the .ne register) is now always set before entering the
677 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
678 `needed_space' before calling `space'.
679 (top_level_diversion::space): Remove special code for 'sp before the
681 Call `begin_page' with the discarded space as a parameter.
682 (top_level_diversion::begin_page): Add optional parameter to set
684 * src/roff/troff/div.h: Updated.
686 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
689 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
690 (LP): Remove superfluous call to `br'.
691 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
692 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
694 2002-10-26 Werner LEMBERG <wl@gnu.org>
696 * tmac/doc-ditroff: Remove useless switch/variable -rC.
697 (doc-setup-header): Don't set page register `%'.
698 * tmac/doc-nroff: Remove variable `C'.
699 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
700 (doc-setup-header): Don't set page register `%'.
702 * tmac/doc-common (doc-header): Call `ns'.
703 (doc-paragraph): Protect .sp with .br so that it survives traps
704 possibly set by the user.
705 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
707 * tmac/doc*: Replace ' with . for consistency if no effect.
709 2002-10-26 Werner LEMBERG <wl@gnu.org>
711 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
712 so that it survives traps possibly set by the user.
714 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
715 (troff_output_file::set_font): Call flush_tbuf if necessary.
716 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
717 flush_tbuf and do_motion only if necessary.
718 (troff_output_file::start_special,
719 troff_output_file::put_char_width, troff_output_file::put_char,
720 troff_output_file::draw): Updated.
721 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
722 vmotion_node::tprint): Undo change 2002-10-23.
724 2002-10-25 Werner LEMBERG <wl@gnu.org>
726 * tmac/www.tmac (DC): Fix case of overlapping images.
728 2002-10-23 Werner LEMBERG <wl@gnu.org>
730 * src/roff/troff/node.cc (troff_output_file::fill_color,
731 troff_output_file::glyph_color): Set current color before testing
733 (troff_output_file::put_char_width, troff_output_file::put_char,
734 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
736 (troff_output_file::file_color, troff_output_file::glyph_color):
738 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
739 vmotion_node::tprint): Move first, then call fill_color.
741 2002-10-20 Werner LEMBERG <wl@gnu.org>
743 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
744 possible to use multiple main macro packages.
746 2002-10-19 Werner LEMBERG <wl@gnu.org>
748 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
749 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
750 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
752 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
753 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
755 2002-10-16 Werner LEMBERG <wl@gnu.org>
757 * NEWS, doc/webpage.ms: Updated.
759 2002-10-14 Werner LEMBERG <wl@gnu.org>
761 * src/roff/troff/node.cc (troff_output_file::put_char_width,
762 troff_output_file::put_char, troff_output_file::fill_color,
763 troff_output_file::glyph_color): Handle case where color pointer
766 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
768 Add the new -r option to grotty. It is similar to the -i option
769 except it tells grotty(1) to use the "reverse video" attribute to
772 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
773 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
774 (tty_printer::make_underline, tty_printer::put_color,
775 tty_printer::end_page): Use it.
776 (main): Add -r switch.
778 * src/devices/grotty/grotty.man: Document it.
780 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
782 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
783 cast to `unsigned char' to properly read patterns with 8bit
786 2002-10-08 Werner LEMBERG <wl@gnu.org>
788 * REVISION: Increased to 2.
790 Version 1.18.1 released
791 =======================
793 2002-10-08 Werner LEMBERG <wl@gnu.org>
795 * doc/webpage.ms, NEWS: Updated.
797 2002-10-07 Werner LEMBERG <wl@gnu.org>
799 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
800 suppress additional whitespace after the header.
802 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
805 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
807 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
809 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
810 (Dt): Use it to improve language localization (especially Russian
813 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
815 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
816 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
818 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
820 Call `picurve' for BSPLINE.
821 (HGPrintElt): Handle BSPLINE.
822 * src/preproc/grn/README: Document it.
824 2002-10-03 Werner LEMBERG <wl@gnu.org>
826 * src/roff/troff/node.cc (break_char_node::col): New variable.
828 (space_node::tprint, word_space_node::tprint): Call `fill_color'
830 (space_node::space_node): Remove assertion.
831 (break_char_node::add_self): Pass color argument to space node.
832 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
834 * src/roff/troff/env.cc (environment::do_break,
835 environment::add_padding): Ditto.
837 2002-10-02 Werner LEMBERG <wl@gnu.org>
839 Redesigning color support in troff. Colors are no longer
840 represented as separate nodes but are now part of glyph nodes and
841 friends. This fixes the current formatting misbehaviour due to the
842 changes introduced on 2002-09-20. Some extra code is necessary for
843 proper grotty support: Without adding color variables to
844 space-related nodes, the background color would be changed too late.
846 * src/roff/troff/node.h, src/roff/troff/node.cc:
847 s/current_pagecolor/current_fill_color/.
848 s/current_glyphcolor/current_glyph_color/.
849 (glyph_color_node, fill_color_node): Removed.
850 (node::get_glyph_color, node::get_fill_color): New virtual member
852 (space_node::col): New variable.
853 Updated constructors of space_node and derived classes accordingly.
854 (hmotion_node::col): New variable.
855 Updated constructors of hmotion_node and space_char_hmotion_node
857 (vmotion_node::col): New variable.
858 Updated constructor accordingly.
859 (draw_node::gcol, draw_node::fcol): New variables.
860 Updated constructor accordingly.
861 (special_node::gcol, special_node::fcol): New variables.
862 Updated constructors accordingly.
863 (troff_output_file::put_char, troff_output_file::put_charwidth,
864 troff_output_file::draw): Set glyph and fill color.
865 (troff_output_file::start_special): Set glyph and fill color.
866 Always set current font.
867 (troff_output_file::fill_color, troff_output_file::glyph_color):
868 Don't call `do_motion'.
869 (glyph_node::gcol, glyph_node::fcol): New variables.
870 Updated constructors of glyph_node and ligature_node accordingly.
871 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
873 (glyph_node::merge_glyph_node,
874 kern_pair_node::add_discretionary_hyphen,
875 node::add_discretionary_hyphen): Updated.
876 (break_char_node::merge_self): Updated.
877 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
878 vmotion_node::tprint): Handle color.
879 (make_glyph_node, make_node, node::add_char): Updated.
881 * src/roff/troff/env.cc (environment::space_newline,
882 environment::space, environment::output_line, environment::do_break,
883 environment::make_tab_node, environment::add_padding, title):
885 (environment_switch, environment_copy): Don't add color nodes.
887 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
889 (token::next): Updated.
890 \m and \M now are as transparent as \s.
891 (process_input_stack, token::add_to_node_list, token::process,
892 read_draw_node): Updated.
893 (charinfo_to_node_list): Don't add color nodes.
895 * doc/groff.texinfo: Updated.
897 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
899 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
902 2002-09-27 Colin Watson <cjwatson@debian.org>
904 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
906 2002-09-23 Werner LEMBERG <wl@gnu.org>
908 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
910 (DEFAULT_LINEWIDTH_FACTOR): New macro.
911 (linewidth_factor): New global variable.
912 (lbp_printer::set_line_thickness): Fix case for size < 0, using
914 (long_options): Add -w/--linewidth option.
916 (main): Handle -w option to set linewidth_factor.
917 (lbp_printer::lbp_printer): Initialize req_linethickness, not
920 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
922 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
924 Fixed a bug in the line thickness setting code.
926 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
928 (lbp_printer::set_line_thickness): Pass environment as second
930 Implement it actually.
931 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
932 and `set_line_thickness, depending on the current font size.
934 2002-09-21 Werner LEMBERG <wl@gnu.org>
938 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
939 * src/roff/troff/node.cc (bracket_node::copy): Initialize
942 2002-09-20 Werner LEMBERG <wl@gnu.org>
944 * configure: Regenerated with autoconf 2.54.
946 2002-09-20 Werner LEMBERG <wl@gnu.org>
948 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
950 Rename cur_fill_color to fill_color.
951 * src/roff/troff/env.cc: Updated.
953 2002-09-20 Werner LEMBERG <wl@gnu.org>
955 * src/roff/troff/env.cc (title): Copy color status after processing
957 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
958 fill color nodes to reset colors properly.
960 * tmac/www.tmac (DC): Fix color handling.
962 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
963 * doc/groff.texinfo: Fixing documentation of `tl' request.
964 * doc/webpage.ms: Updated.
966 2002-09-19 Werner LEMBERG <wl@gnu.org>
968 * src/roff/troff/env.cc (environent_switch, environment_copy):
969 Emit glyph and fill color nodes to initialize colors properly.
971 2002-09-17 Colin Watson <cjwatson@debian.org>
973 * src/roff/troff/env.cc (environment::set_glyph_color,
974 environment::set_fill_color): Fix typo which prevented \m[] work
977 2002-09-17 Werner LEMBERG <wl@gnu.org>
979 Add left and right italic correction to non-slanted PS fonts. This
980 is an experimental feature to improve image rendering of grohtml.
982 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
983 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
984 * font/devps/*: All non-slanted fonts regenerated.
987 2002-09-16 Werner LEMBERG <wl@gnu.org>
989 Add a site-specific font directory.
991 * Makefile.in (localfontdir, legacyfontdir): New variables.
992 (fontpath): Use them.
993 (MDEFINES, uninstall_dirs): Updated.
994 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
995 Remove `FONTPATH' and `MACROPATH'.
997 * src/roff/troff/troff.man, NEWS: Updated.
998 * doc/groff.texinfo (Font Directories): New section.
1001 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1002 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1003 src/preproc/grn/grn.man: Minor fixes.
1005 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
1006 Remove unused variable.
1008 2002-09-11 Werner LEMBERG <wl@gnu.org>
1010 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
1011 * man/groff_out.man: Fix documentation of 'N'.
1013 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
1015 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
1016 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
1018 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
1019 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
1020 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
1021 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
1022 PRE_TAG>: Call `begin' with `FALSE'.
1024 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1026 * src/libs/libgroff/string.cc (string::extract): Fix position of
1027 terminating null byte.
1029 2002-09-08 Werner LEMBERG <wl@gnu.org>
1031 Add global option `nospaces' to tbl so that leading and trailing
1032 spaces in data items are ignored.
1034 * src/libs/libgroff/string.cc (string::remove_spaces): New member
1035 function to remove leading and trailing spaces.
1036 * src/include/stringclass.h: Updated.
1038 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
1040 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
1042 Fix typo in error messages.
1043 (process_data): Implement `nospaces' option.
1044 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
1046 2002-09-07 Werner LEMBERG <wl@gnu.org>
1048 * src/include/config.hin: Add `HAVE_ISATTY'.
1049 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
1051 * src/libs/libgroff/tmpname.cc: Include `time.h'.
1052 * src/libs/libdriver/input.cc (Char): Add `operator==' and
1053 `operator!=' for `char'.
1054 * doc/groff.texinfo: Replace @ifnottex block for top node with
1057 2002-09-06 Werner LEMBERG <wl@gnu.org>
1059 * doc/Makefile.in (.texinfo.html): Add -I switch.
1060 * doc/groff.texinfo: Add @ifnottex block for top node to make
1061 translation to HTML work.
1063 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
1065 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
1066 (get_papersize, determine_vertical_offset): Removed.
1067 (char_buffer::do_image): Always specify letter size.
1069 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
1072 2002-09-05 Werner LEMBERG <wl@gnu.org>
1074 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
1075 default indentation.
1077 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
1079 * src/preproc/html/pre-html.cc (imageList::createPage): Use
1081 (generateImages): Clean up push-back buffer.
1083 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1085 * doc/groff.texinfo: Minor fixes.
1087 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1089 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
1090 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
1092 (determine_vertical_offset): Use LETTER_LENGTH.
1093 (createPage): Moved to ...
1094 (imageList::createPage): This.
1095 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
1096 (imageList::getMaxX): New function.
1097 (createImage): Moved to ...
1098 (imageList::createImage): This.
1099 (imageList::createImages): New function.
1100 (generateImages): Read `maxx' directly.
1102 (scanArguments): Don't specify `gsPaper' for `-o'.
1103 (makeTempFiles): Call `xtmpfile' with the last argument set to
1106 2002-08-24 Werner LEMBERG <wl@gnu.org>
1108 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
1109 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
1110 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
1111 * src/preproc/html/pushback.cc: Include nonposix.h.
1112 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
1115 2002-08-23 Werner LEMBERG <wl@gnu.org>
1117 Use $(OBJEXT) for the object file extension.
1119 * Makefile.comm (.SUFFIXES): Add .obj.
1120 (.cc.obj, .c.obj): New implicit rules.
1121 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
1122 (MDEFINES): Add EXEEXT and OBJEXT.
1123 * */Makefile.sub: s/.o/.$(OBJEXT)/.
1125 2002-08-22 Werner LEMBERG <wl@gnu.org>
1127 * INSTALL: Mention texinfo 4.2 as a prerequisite.
1129 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1131 * src/devices/grohtml/post-html.cc (colType): Make enum global to
1133 (html_printer::update_min_max, html_printer::add_table_end): New
1135 (html_printer::lookahead_for_tables): Use them.
1136 Reset page offset correctly.
1137 (html_printer::~html_printer): Add creation of creator comment up.
1139 2002-08-20 Werner LEMBERG <wl@gnu.org>
1141 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
1142 * man/groff_tmac.man: Fix typos.
1143 * man/groff_font.man: Minor reordering.
1144 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
1145 * contrib/groffer/groffer.man: Fix typos.
1147 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1149 Avoid endless loops while scanning for tables.
1151 * src/devices/grohtml/post-html.cc (list::insert): Set
1153 (html_printer::next_horiz_pos): Add `text_glob' argument; update
1155 Return immediately if that argument is NULL.
1156 (html_printer::calc_nf): Don't test if `g' is NULL.
1157 (html_printer::lookahead_for_tables): Use
1158 `glyphs.move_right_get_data'.
1159 Don't test if `g' is NULL.
1161 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1163 A better fix, replacing fix 2002-08-15, for increasing SIZE.
1165 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
1167 (char_block::char_block): Allocate `buffer'.
1168 (char_buffer::add_string): Use it.
1170 2002-08-15 Werner LEMBERG <wl@gnu.org>
1172 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
1173 src/devices/grodvi/grodvi.man: Document default line thickness.
1175 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
1177 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
1180 2002-08-14 Werner LEMBERG <wl@gnu.org>
1182 * doc/webpage.ms: Updated.
1184 2002-08-09 Werner LEMBERG <wl@gnu.org>
1186 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
1189 2002-08-08 Aaron Campbell <aaron@monkey.org>
1191 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
1194 2002-08-08 Werner LEMBERG <wl@gnu.org>
1196 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
1199 Don't push back a space but a newline onto the stack.
1201 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
1203 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
1206 * src/devices/grohtml/post-html.cc (html_printer::end_font,
1207 html_printer::start_font): Handle them.
1208 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
1210 (html_text::do_bold): Don't reset italic and tt.
1211 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
1212 * font/devhtml/DESC.proto: Add those fonts.
1213 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
1215 2002-08-07 Werner LEMBERG <wl@gnu.org>
1217 * MORE.STUFF: Added gpresent.
1219 * tmac/trace.tmac: Show nesting level by a corresponding amount of
1220 whitespace before printing the logging message.
1222 2002-07-31 Colin Watson <cjwatson@debian.org>
1224 * src/devices/grohtml/html-table.cc (html_table::finish_row):
1225 Initialize `n' to zero. This fixes a segfault on ARM.
1227 2002-07-30 Werner LEMBERG <wl@gnu.org>
1229 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
1231 2002-07-29 Werner LEMBERG <wl@gnu.org>
1233 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
1236 2002-07-28 Colin Watson <cjwatson@debian.org>
1238 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
1240 (html_printer::html_printer): Initialize `pointsize'.
1242 2002-07-26 Werner LEMBERG <wl@gnu.org>
1244 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
1246 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
1247 (gnu.eps): Add -rle switch to pnmtops.
1248 (distfiles): Add gnu.eps and gnu.png.
1250 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
1252 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
1255 2002-07-24 Werner LEMBERG <wl@gnu.org>
1257 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
1258 ' \+' but ' *' for sed.
1259 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
1261 2002-07-23 Werner LEMBERG <wl@gnu.org>
1263 * doc/groff.texinfo: Document `papersize' keyword.
1264 * NEWS, man/groff_font.man: Updated.
1266 2002-07-23 Colin Watson <cjwatson@debian.org>
1268 Extend papersize keyword to accept more than a single entry. The
1269 first valid will be used.
1271 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
1272 (font::scan_papersize): Really skip final newline.
1273 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
1275 2002-07-23 Werner LEMBERG <wl@gnu.org>
1277 * configure.ac: Test for isatty.
1278 * configure: Regenerated.
1279 * src/include/posix.h: Check HAVE_ISATTY.
1280 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
1281 * src/utils/lookbib/lookbib.cc: Include posix.h.
1282 Don't declare isatty.
1284 2002-07-21 Werner LEMBERG <wl@gnu.org>
1286 * NEWS: Add `output' request.
1288 * REVISION: Increased to 1.
1290 Version 1.18.0 released
1291 =======================
1293 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
1295 Allow internal glyph indices > 0xFF in grohtml for input characters.
1297 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
1299 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
1300 Updated all callers.
1301 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
1302 (html_printer): Updated.
1304 2002-07-19 Werner LEMBERG <wl@gnu.org>
1306 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
1307 * font/devutf8/R.proto: Adding some missing glyphs.
1308 * font/devutf8/NOTES: Updated.
1310 * tmac/dvi.tmac: Add more composite glyphs.
1311 * tmac/html.tmac: Updated.
1313 * man/groff_char.man: Add `sum' and `product' entities.
1317 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
1319 Improved table, tab, and indenting support.
1321 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
1322 string_iterator::suppress_newline_flag): Removed. Updated all
1323 function which have used it.
1325 * src/roff/troff/env.cc: Include `input.h'.
1326 (environment::add_node): Accept 0 as parameter.
1327 (environment::add_html_tag): Add `force' parameter.
1328 Updated all callers.
1329 (environment::add_html_tag_tabs): Ditto.
1330 For the moment, support left-aligned tabs only.
1331 (environment::make_html_tag): New function.
1332 (fill, no_fill): Set .br html tag additionally.
1333 (environment::newline): Emit `eol.ce' or `eol' tag for html.
1334 (environment::add_html_tag_eol): Removed.
1335 (tab_stops::distance_to_next_tab): Add variant for handling
1337 (environment::distance_to_next_tab): Ditto.
1338 Updated all callers.
1339 (environment::handle_tab): Handle tabs for html.
1341 * src/roff/troff/env.h: Updated.
1343 * src/roff/troff/div.cc: Updated all callers of
1344 `environment::add_html_tag'.
1346 * src/devices/grohtml/html-table.cc,
1347 src/devices/grohtml/html-table.h: New files.
1349 * src/devices/grohtml/html-text.cc (html_text): New members
1350 `blank_para' and `start_space'.
1351 (html_text::issue_tag): Don't emit TABLE_TAG.
1352 Handle indentation for PRE_TAG and P_TAG.
1353 (html_text::end_tag): Updated.
1354 (html_text::table_is_void, html_text::issue_table_begin,
1355 html_text::issue_table_end): Removed.
1356 (html_text::do_push): Simplified.
1357 [DEBUGGING]: Small fix.
1358 (html_text::push_para): Add new parameter for indentation; updated
1361 (html_text::do_indent, html_text::do_table, html_text::done_table,
1362 html_text::is_in_table): Removed.
1363 (html_text::do_pre): Handle P_TAG also.
1364 (html_text::shutdown): Handle p->indent.
1365 (html_text::check_emit_text): Simplified.
1366 (html_text::do_emittext): Reset `blank_para'.
1367 (html_text::do_para): Add new parameter for indentation; updated
1369 (html_text::remove_indent): New function.
1370 (html_text::do_space): Handle verbatim text properly.
1371 (html_text::ever_emitted_text, html_text::starts_with_space,
1372 html_text::remove_para_align): New functions.
1373 (html_text::dump_stack_element, html_text::dump_stack): Updated.
1375 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
1378 * src/devices/grohtml/post-html.cc: Include html-table.h.
1379 (INDENTATION): Removed.
1380 (text_glob): Added many `is_<foo>' functions.
1381 Added table description `tab'.
1382 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
1384 (list): Add `insert' and `move_to' member functions.
1385 (page): Add `insert_tag' member function.
1386 (page::dump_page) [DEBUG_TABLES]: Improved.
1387 (html_printer): Add `table' and `max_linelength' elements.
1388 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
1389 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
1390 `remove_tabs', `remove_courier_tabs'.
1391 (html_printer::emit_raw): Handle indentation.
1392 (html_printer::do_center, html_printer::write_header): Updated.
1393 (html_printer::is_courier_until_eol): Check for tag.
1394 (html_printer::do_linelength): Handle max_linelength.
1395 (html_printer::do_page_offset, html_printer::do_indentation): Handle
1397 (html_printer::do_tempindent): Updated.
1398 (html_printer::do_indentedparagraph): Removed.
1399 (html_printer::do_indent): Simplified.
1400 (html_printer::do_eol): Use `ever_emitted_text'.
1401 (html_printer::do_flush, html_printer::do_links): Don't call
1403 (html_printer::do_break): Handle end_tempindent.
1404 (html_printer::troff_tag): Get argument.
1406 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
1407 (html_printer::flush_page): Call `lookahead_for_tables'.
1408 Don't call `done_table'.
1409 (html_printer::add_to_sbuf): Always call do_indent.
1411 * src/devices/grohtml/Makefile.sub: Updated.
1413 * tmac/an-old.tmac (TP): Don't handle html device specially.
1414 (an-do-tag-html): New function which will be used instead of
1415 `an-do-tag' if html device is used.
1417 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
1419 * tmac/s.tmac (@IP): Don't handle html device specially.
1420 (@IP-html): New function which will be used instead of `@IP' if
1421 html device is used.
1423 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
1424 is a hack which will eventually vanish again.
1425 (PIMG): Handle `-C' option correctly if not html.
1428 2002-07-17 Werner LEMBERG <wl@gnu.org>
1430 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
1432 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
1434 * contrib/pic2graph/pic2graph.*: Use convert(1).
1435 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
1437 2002-07-14 Bernd Warken <bwarken@mayn.de>
1439 * tmac/groff_trace.man: New file.
1440 * tmac/Makefile.sub: Updated.
1443 2002-07-13 Werner LEMBERG <wl@gnu.org>
1445 * src/roff/groff/groff.man: Add some cross references.
1447 2002-07-12 Werner LEMBERG <wl@gnu.org>
1449 * src/roff/troff/input.cc (substring_request): Add warnings for
1450 string indices out of range.
1452 2002-07-11 Werner LEMBERG <wl@gnu.org>
1454 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
1455 * font/devdvi/*EC: Regenerated.
1457 2002-07-10 Bernd Warken <bwarken@mayn.de>
1459 * man/groff_char.man: Updated and extended.
1461 2002-07-10 Werner LEMBERG <wl@gnu.org>
1463 * src/roff/troff/input.cc (length_macro): Renamed to...
1464 (length_request): This.
1465 Move call of `tok.next()' to the very end, otherwise the register
1466 value hasn't been updated yet.
1467 (init_input_requests): Updated.
1469 2002-07-09 Werner LEMBERG <wl@gnu.org>
1471 * src/roff/troff/input.cc (substring_macro): Renamed to...
1472 (substring_request): This.
1473 (init_input_requests): Updated.
1474 * src/roff/troff/request.h: Updated.
1476 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
1478 * src/roff/grog/grog.sh: Fix typo.
1480 2002-07-08 Werner LEMBERG <wl@gnu.org>
1482 * win32-diffs: Updated.
1484 Handle `papersize' keyword properly in DESC.
1486 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
1488 Updated all callers.
1489 * src/libs/libgroff/paper.cc: Add four more paper formats used by
1491 * src/include/paper.h: Updated.
1493 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
1494 Other minor C syntax fixes.
1495 (papersize, paperlength, paperwidth): Renamed to `user_*'.
1496 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
1498 (lbp_printer::lbp_printer): Pass three arguments.
1499 Set paper dimensions properly.
1500 (make_printer, main): Updated.
1501 (handle_unknown_desc_command): Fix error messages.
1502 (main): Handle papersize keyword in DESC properly.
1504 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
1506 (lbp_printer::lbp_printer): Pass an argument.
1507 Set paper_size properly.
1508 (handle_unknown_desc_command): Removed.
1509 (make_printer, main): Updated.
1510 * src/devices/grolj4/grolj4.man: Minor documentation fix.
1512 * man/groff_font.man, NEWS: Updated.
1514 2002-07-07 Werner LEMBERG <wl@gnu.org>
1516 Integrated eqn2graph, contributed by Eric S. Raymond.
1518 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
1520 * Makefile.in, NEWS: Updated.
1522 2002-06-04 Werner LEMBERG <wl@gnu.org>
1524 Changing the substring request to make it fit better with other
1525 string manipulation functions in other programming languages:
1526 Index 0 is now the first character in the string, and index -1
1527 indicates the last character. Since this request didn't work
1528 properly anyway in the last release, it doesn't harm too much to
1531 * src/roff/troff/input.cc (substring_macro): Use loops to get
1532 the real string length (ignoring COMPATIBLE_SAVE and
1533 COMPATIBLE_RESTORE) and offsets.
1534 Implement change described above.
1536 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
1537 (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
1539 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
1541 2002-06-03 Werner LEMBERG <wl@gnu.org>
1543 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
1544 COMPATIBLE_RESTORE are completely ignored.
1546 * src/roff/troff/input.cc (char_list::set, char_list::get): New
1548 (macro): `length' field renamed to `len'.
1549 Added new field `empty_macro' (1 if macro is empty), to be used
1550 instead of checking `len'.
1551 Updated all callers.
1552 (macro::empty): Updated.
1553 (macro::length, macro::set, macro::get): New functions.
1554 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1556 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
1557 COMPATIBLE_RESTORE pairs.
1558 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1559 * src/roff/troff/request.h: Updated.
1561 * doc/groff.texinfo: Document .chop's behaviour better.
1563 2002-06-02 Werner LEMBERG <wl@gnu.org>
1565 * doc/pic.ms: Fix documentation for the addition of positions.
1567 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
1569 2002-06-29 Werner LEMBERG <wl@gnu.org>
1571 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
1573 * src/roff/troff/input.cc (have_string_arg): New global variable.
1574 (read_mode): New enumeration.
1575 (read_escape_name): Use it. Update all calls.
1576 (read_long_escape_name): Use it. Update all calls.
1577 Set have_string_arg if appropriate.
1578 (get_char_for_escape_name): Add parameter for handling space
1580 (interpolate_string_with_args, decode_string_args): New functions.
1581 (get_copy, token::next): Call it if necessary.
1582 (interpolate_string): Fix error message.
1584 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1587 2002-06-24 Bernd Warken <bwarken@mayn.de>
1589 * man/groff_tmac.man: Updated and extended.
1591 2002-06-24 Werner LEMBERG <wl@gnu.org>
1593 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
1595 2002-06-23 Werner LEMBERG <wl@gnu.org>
1597 * doc/pic.ms: Improve documentation of composite block objects.
1599 2002-06-22 Werner LEMBERG <wl@gnu.org>
1601 * src/roff/troff/input.cc (init_registers): Add three registers
1602 `seconds', `minutes', and `hours' to hold the current time.
1604 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1607 2002-06-20 Werner LEMBERG <wl@gnu.org>
1609 Make \X accept both `\ ' and `\~', converting them to single space
1612 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
1613 (token::unstretchable_space): New inline function.
1614 * src/roff/troff/input.cc (token::next, token::delimiter,
1615 token::description, token::add_to_node_list, token::process): Handle
1616 TOKEN_UNSTRETCHABLE_NODE.
1617 (encode_char): Handle tok.stretchable_space and
1618 tok.unstretchable_space.
1620 * NEWS, doc/groff.texinfo: Document it..
1622 2002-06-19 Werner LEMBERG <wl@gnu.org>
1624 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
1626 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
1627 keyword to enable/disable SGR output.
1628 (tty_printer::change_fill_color): New function.
1629 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
1631 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
1634 2002-06-18 Werner LEMBERG <wl@gnu.org>
1636 Add a `color' request and a `.color' register to control usage of
1639 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
1640 (color_flag): This (which is the inverse).
1641 (activate_color): New function.
1642 (main, init_input_requests): Updated.
1643 * src/roff/troff/troff.h, src/roff/troff/node.cc
1644 (troff_output_file::fill_color, troff_output_file::glyph_color):
1647 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1648 Document the changes.
1650 2002-06-17 Colin Watson <cjwatson@debian.org>
1652 Circumvent bug in autoconf 2.53 regarding top_builddir.
1654 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
1655 * Makefile.in, doc/Makefile.in:
1656 s/@top_builddir@/@groff_top_builddir@/.
1657 * configure: Regenerated (with autoconf 2.53).
1659 2002-06-17 Werner LEMBERG <wl@gnu.org>
1661 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
1662 `paperwidth' and `paperlength' for the `papersize' keyword.
1664 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
1666 * src/devices/grops/grops.man: Add info about Type 42 fonts.
1668 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
1670 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
1671 html_printer::do_linelength, html_printer::do_pageoffset,
1672 html_printer::do_indentation, html_printer::do_tempindent,
1673 html_printer::do_break, html_printer::begin_page): Clear indented
1675 * tmac/html.tmac: Disable hyphenation.
1677 2002-06-15 Werner LEMBERG <wl@gnu.org>
1679 Don't produce HTML files if utility programs are missing.
1681 * Makefile.in (make_html, make_install_html): New variables.
1682 (MDEFINES): Updated.
1684 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
1686 * configure.ac: Use it.
1687 * configure: Regenerated.
1689 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
1690 (HTMLEXAMPLESFILES): This new variable.
1691 (EXAMPLESIMAGEFILES): Renamed to...
1692 (HTMLEXAMPLEIMAGEFILES): This.
1693 (CLEANADD): Add HTMLEXAMPLEFILES.
1694 (all): Use `make_html'.
1696 (install_data): Use `make_install_html'.
1697 Move html stuff to...
1698 (install_html): This new target.
1699 (uninstall_sub): Updated.
1701 2002-06-14 Bernd Warken <bwarken@mayn.de>
1703 * src/roff/grog/Makefile.sub (grog): Renamed to...
1705 (grog): New rule to always install grog.sh as grog.
1707 2002-06-08 Bernd Warken <bwarken@mayn.de>
1709 * src/roff/grog/grog.pl: Fix typo.
1711 2002-06-07 Werner LEMBERG <wl@gnu.org>
1713 * doc/groff.texinfo: Add more info on .tr arguments.
1715 2002-06-05 Werner LEMBERG <wl@gnu.org>
1717 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1719 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
1720 * configure: Regenerated.
1722 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1724 * src/roff/troff/symbol.cc (table_sizes): Add more values.
1726 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
1728 2002-06-04 Werner LEMBERG <wl@gnu.org>
1730 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
1731 is not initialized at the time we need it in case `--prefix' hasn't
1732 been set. Check for `ac_default_prefix' also.
1733 Test for `papersize' keyword also and generalize allowed whitespace.
1734 * configure: Regenerated.
1736 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
1739 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
1741 (src_version, src_revision): New variables to avoid overwriting
1742 from parent make process.
1743 (version.cc): Updated.
1745 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
1746 (linebuf, linebufsize): New global variables.
1747 (sys_fatal): Use `fatal' to abort properly.
1748 (get_line): New function.
1749 (get_resolution): Use it.
1750 Improve error messages.
1751 (get_papersize): Check `papersize' also.
1753 Improve error messages.
1755 2002-06-03 Werner LEMBERG <wl@gnu.org>
1757 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
1758 should be removed only if builddir is not srcdir.
1759 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
1760 (clean): Depend on `mostlyclean'.
1761 (distclean): Depend on `clean'.
1762 (realclean, extraclean): Depend on `distclean'.
1763 (.y.cc, .y.o): Simplified. The output files are no longer written
1764 to srcdir but to builddir.
1765 * Makefile.in (MDEFINES): Add `version' and `revision'.
1766 (uninstall_dirs): Fix order of directories.
1767 * doc/Makefile.sub (version, revision): Removed.
1768 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
1769 Added `HTMLDOCFILES'.
1770 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
1771 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
1772 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
1775 * doc/texinfo.tex (\authortt): New macro.
1776 (\shortcontt): Define.
1777 (\titlepage): Set \tt to \authortt while defining \authorfont.
1778 (\appendixbox): New macro.
1779 (\chapmacro, \appendixentry): Use \appendixbox to get even
1780 indentation for letters.
1781 (\summarycontents): Set \tt.
1782 (\internalpagesize): Add two arguments for real paper width and
1783 height as needed by pdfTeX.
1784 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1786 (\tempdima, \tempdimb): New temporary dimensions.
1787 (\pagesizesyyy): Updated.
1789 2002-06-02 Werner LEMBERG <wl@gnu.org>
1791 Adding a new keyword `papersize' to the DESC file format (similar
1792 but not completely identical to grolbp's extension). grops now has
1793 a -p command line option to override `papersize'. Finally, grolbp
1794 has been adapted to the new syntax.
1796 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
1797 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1799 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1800 (CCSRCS): Add `paper.cc'.
1802 * src/include/font.h (font): Add `papersize' element.
1803 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1804 (font::scan_papersize): New function.
1805 (font::load_desc): Use it for handling `papersize' keyword.
1806 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1808 * src/devices/grops/ps.cc: Include paper.h.
1809 (user_paper_length): New global variable.
1810 (ps_printer): Use paper length as initializer.
1811 (make_printer): Updated.
1812 (main): Handle new `-p' option.
1813 * src/devices/grops/grops.man: Updated.
1815 * src/devices/grolbp/lbp.cc: Include paper.h.
1816 s/papersizes/lbp_papersizes/.
1817 (set_papersize): Use new `papersizes' array.
1818 (handle_unknown_desc_command): Don't handle `papersize'.
1819 (main): Use `font::scan_papersize' for handling `-p' option.
1820 * src/devices/grolbp/grolbp.man: Updated.
1822 * man/groff_font.man: Document `papersize'.
1825 2002-05-30 Werner LEMBERG <wl@gnu.org>
1827 * src/devices/grops/TODO: Updated.
1828 * src/devices/grops/grops.man: More info on paper formats.
1829 * man/groff_font.man: Document `paperheight' and `paperwidth'.
1831 2002-05-29 Werner LEMBERG <wl@gnu.org>
1833 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1834 to list only if srcdir != currdir.
1835 (distfiles): New target.
1837 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1838 (NOMAKEDIRS): New variable.
1841 2002-05-26 Werner LEMBERG <wl@gnu.org>
1843 Add .output request, similar to \! at top-level.
1845 * src/roff/troff/input.cc (transparent): Remove unused declaration.
1846 (output_request): New function.
1847 (init_input_requests): Add it.
1849 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1852 * Makefile.in (MDEFINES): Add INSTALL_INFO.
1853 (prepare_examples): Fix typo.
1854 * doc/groff.texinfo (@direntry): Fix it.
1856 2002-05-25 Werner LEMBERG <wl@gnu.org>
1858 Including the doc subdir into groff's Makefile system.
1860 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1861 * configure.ac: Use it.
1862 Generate `doc/Makefile'.
1863 * configure: Regenerated.
1865 * Makefile.in (infodir, INSTALL_INFO): New variables.
1866 (MDEFINES, uninstall_dirs): Updated.
1867 (OTHERDIRS): Add `doc'.
1868 * Makefile.comm (CLEANDIRADD): New variable.
1869 (mostlyclean): Use it.
1871 * doc/Makefile.sub, doc/Makefile.in: New files.
1872 * doc/Makefile: Removed.
1874 * NEWS, INSTALL: Updated.
1876 2002-05-24 Werner LEMBERG <wl@gnu.org>
1878 * doc/homepage.ms: Renamed to ...
1879 * doc/webpage.ms: This.
1882 2002-05-23 Werner LEMBERG <wl@gnu.org>
1884 Integrating the `mom' macro package, contributed by Peter Schaffter
1887 * contrib/mom/*: New subdirectory tree.
1888 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1889 be used for documentation files.
1890 (MDEFINES, uninstall_dirs): Use them.
1891 (OTHERDIRS): Add contrib/mom.
1892 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1894 * MANIFEST, NEWS: Updated.
1896 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
1898 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1899 if at outer level; at start-up we are at outer level.
1901 * src/roff/troff/input.cc (do_suppress): Implement it.
1904 Add option -p to show progress information.
1905 pre-grohtml will now render only one page at a time, reducing the
1906 size of needed disk resources enormously.
1908 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1909 (imagePageName): New global variable.
1910 (psPageName, show_progress, currentPageNo): New global variables.
1911 (html_system): Close saved stderr and stdout handles.
1912 (write_end_image): Accept a parameter to control \O escape.
1913 (write_start_image): Adapted to new \O meaning.
1914 (char_buffer::write_upto_newline): Updated.
1915 (createAllPages): Replaced with...
1916 (createPage): This new function to create a single page for images.
1917 It uses `psselect' from the psutils package.
1918 (removeAllPages): Removed.
1919 (createImage): Updated.
1920 Handle progress display.
1921 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1922 (scanArguments): Add option -p.
1923 (makeTempFiles): Updated to create temp files for psPageName and
1925 (removeTempFiles): Removed.
1928 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1929 html_printer::write_header): Append `\0' to `buffer'.
1930 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1932 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1933 Handle `text_emitted'.
1934 (html_text::table_is_void): Slightly rewritten.
1935 (stop): New external symbol.
1936 (html_text::do_push) [DEBUGGING]: Use it and simplify.
1937 (html_text::shutdown): Call `dump_stack'.
1938 (html_text::do_space): Rewritten.
1939 * src/devices/grohtml/grohtml.man: Document -p and the need of
1942 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1944 Call \O[0] if `ps4html' is active.
1945 * tmac/s.tmac (@EQ, @EN): Handle html better.
1947 * tmac/html.tmac: Don't use black for background colour.
1949 * src/roff/troff/node.cc: Include `div.h'.
1950 (troff_output_file::really_print_line): Don't use `is_on'.
1951 (troff_output_file::word_marker, troff_output_file::flush_tbuf
1952 troff_output_file::check_charinfo,
1953 troff_output_file::put_char_width, troff_output_file::put_char,
1954 troff_output_file::determine_line_limits, troff_output_file::draw,
1955 real_output_file::begin_page, glyph_color_node::tprintf,
1956 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1958 (troff_output_file::really_on): Call `do_motion'.
1959 (suppress_node::tprint): Use `get_page_number' instead of `%'
1961 Call `reset_output_registers' conditionally on `is_on'.
1963 * doc/groff.texinfo: Document new syntax of \O.
1964 * NEWS, man/groff_diff.man: Updated.
1966 2002-05-22 Werner LEMBERG <wl@gnu.org>
1968 * MORE.STUFF: Add info about David Frey's deroff implementation.
1971 2002-05-16 Werner LEMBERG <wl@gnu.org>
1973 Pic's `with' attribute now accepts positions.
1975 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1976 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1978 (object_spec): Add rule for `WITH' and `position'.
1979 (relative_path): Give `corner' the precedence of `CHOP'.
1980 * src/preproc/pic/object.h (path): New members `pos' and
1982 * src/preproc/pic/object.cc: Updated initializers of `path'.
1983 (path::follow): Handle `is_position'.
1985 * doc/pic.ms: Completely updated grammar description.
1986 Many typographical improvements.
1988 2002-05-15 Werner LEMBERG <wl@gnu.org>
1990 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1991 code of x in range 0-127) also.
1992 * doc/groff.texinfo, man/groff_diff.man: Updated.
1994 Added keywords `north', `south', `east', and `west' for corners
1997 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1999 (yylex): Handle them.
2000 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
2001 (corner): Handle them.
2003 2002-05-14 Werner LEMBERG <wl@gnu.org>
2005 * src/devices/grops/grops.man: Clarify handling of `download' file.
2007 2002-05-11 Werner LEMBERG <wl@gnu.org>
2009 Adding `warnscale' and `spreadwarn' requests, based on a patch from
2010 Jeffrey Friedl <jfriedl@yahoo.com>.
2012 * src/roff/troff/input.cc (spread_limit, warn_scale,
2013 warn_scaling_indicator): New global variables.
2014 (warnscale_request, spreadwarn_requests): New functions.
2015 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
2016 (init_input_requests): Updated.
2017 (error_type): Add `OUTPUT_WARNING'.
2018 (do_error): Handle it.
2019 (output_warning): New warning function which shows output location.
2020 * src/roff/troff/env.h (spread_limit): New external variable.
2021 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
2023 (distribute_space): Emit warning if added space is larger than
2025 (environment::possibly_break_line): Emit warning if a line can't
2026 be adjusted on both sides.
2028 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
2030 2002-05-08 Werner LEMBERG <wl@gnu.org>
2032 * src/roff/troff/node.cc (special_node::special_node): Use
2033 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
2034 \X''\% crashes, for example.
2036 * doc/groff.texinfo: Document \! and \? used at top-level.
2038 2002-05-06 Werner LEMBERG <wl@gnu.org>
2040 * src/preproc/pic/pic.man: Fix some keyword syntax.
2041 Other minor typographical fixes.
2043 * src/roff/groff/groff.man: Fix typos.
2045 2002-05-04 Werner LEMBERG <wl@gnu.org>
2047 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
2048 (ShortOpt[]): This to avoid problems with refer.
2050 * doc/pic.ms: Fix typo.
2051 Fix pic grammar description.
2053 * tmac/an-old.tmac (ne): Use de1, not de.
2055 2002-05-03 Werner LEMBERG <wl@gnu.org>
2057 * doc/groff.texinfo: Finished separation of glyphs and characters.
2058 Don't use the string `Appendix' for appendix headers (both in
2059 the text and the table of contents).
2060 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
2063 Use registers LL and LT (similar to -ms) for controlling the
2064 length of title and line, respectively, in the -man and -mdoc
2067 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
2068 (doc-setup-page-layout): Use \n[LL] and \n[LT].
2069 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
2071 (an-header, an-p-footer): Use \n[LT].
2072 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
2073 doc/groff.texinfo: Document it.
2075 2002-05-02 Werner LEMBERG <wl@gnu.org>
2077 * doc/fdl.texi: New file.
2078 * doc/groff.texinfo: Include it.
2079 Define and use @copying.
2080 Starting with separating glyph, symbol, and character.
2082 2002-04-27 Werner LEMBERG <wl@gnu.org>
2084 * Makefile.in (EXEEXT): Set it.
2085 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
2088 * src/include/nonposix.h: Define GS_NAME.
2089 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
2091 Some preliminary changes for EMX support under OS/2.
2093 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
2094 __EMX__ similar to __MSDOS__.
2095 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
2097 2002-04-25 Werner LEMBERG <wl@gnu.org>
2099 * doc/groff.texinfo: Integrated groff_out.man.
2102 2002-04-23 Werner LEMBERG <wl@gnu.org>
2104 * man/groff_out.man: Minor fixes.
2106 2002-04-23 Werner LEMBERG <wl@gnu.org>
2108 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
2109 correct page references.
2110 Fixed many index entries.
2112 2002-04-23 Bernd Warken <bwarken@mayn.de>
2114 * man/roff.man: Enlarged.
2116 2002-04-22 Werner LEMBERG <wl@gnu.org>
2118 * doc/groff.texinfo: More examples, other fixes.
2120 2002-04-20 Werner LEMBERG <wl@gnu.org>
2122 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
2123 will now form a chain, e.g.
2132 This is for compatibility with plan 9's troff.
2134 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
2138 * doc/groff.texinfo: Add documentation of remaining requests and
2141 2002-04-19 Werner LEMBERG <wl@gnu.org>
2143 * doc/groff.texinfo: Add documentation of remaining escapes.
2145 * font/devdvi/generate/tc.map: Remove entry for `sr'.
2146 * font/devdvi/*TC: Regenerated.
2148 2002-04-18 Werner LEMBERG <wl@gnu.org>
2150 * src/roff/troff/input.cc (token::next): Make \H behave consistently
2151 if not in compatibility mode, i.e., increment relative to the
2153 * doc/groff.texinfo: Updated accordingly.
2155 2002-04-17 Werner LEMBERG <wl@gnu.org>
2157 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
2159 2002-04-16 Bernd Warken <bwarken@mayn.de>
2161 * src/roff/groff/groff.man: Improve documentation of -P option.
2164 2002-04-15 Werner LEMBERG <wl@gnu.org>
2166 Add new escape \F to switch font family.
2168 * src/roff/troff/input.cc (token::next): Handle \F.
2169 * src/roff/troff/env.cc (environment::set_family): Handle
2171 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2174 2002-04-14 Werner LEMBERG <wl@gnu.org>
2176 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
2179 2002-04-13 Werner LEMBERG <wl@gnu.org>
2181 Implement \f[] as an alternative to \fP. Change \mP and \MP to
2182 \m[] and \M[], respectively.
2184 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
2185 (symbol::symbol): Handle NULL string and empty string differently.
2186 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
2187 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
2188 Add optional parameter.
2189 Updated calling functions.
2190 (get_copy, do_glyph_color, do_fill_color, token::next): Use
2192 * src/roff/troff/env.cc (environment::set_font): Ditto.
2194 * src/preproc/pic/troff.cc (troff_output::set_fill,
2195 troff_output::reset_color: Updated.
2197 * tmac/www.tmac: Updated.
2199 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
2200 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
2203 * tmac/Xps.tmac: Remove some redundant code.
2205 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
2206 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
2207 man/groff_out.man, man/groff.man, man/groff_diff.man,
2208 src/roff/groff/groff.man: Replace \f[P] with \f[].
2210 2002-04-13 Bernd Warken <bwarken@mayn.de>
2212 * src/include/printer.h, src/libs/libdriver/printer.cc
2213 (printer::change_fill_color): New member function.
2214 * src/libs/libdriver/input.cc (parse_D_command): Use it.
2216 2002-04-12 Werner LEMBERG <wl@gnu.org>
2218 * doc/groff.texinfo: Completed pass on gtroff reference.
2220 2002-04-11 Werner LEMBERG <wl@gnu.org>
2222 * doc/groff.texinfo: More fixes.
2224 2002-04-11 Bernd Warken <bwarken@mayn.de>
2226 * src/include/color.h: Decorate with `const'.
2229 * src/libs/libgroff.color.cc: Decorate with `const'.
2231 (color::color): Initialize members.
2232 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
2233 command according to the documentation.
2235 * man/groff_out.man: Updated.
2238 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
2240 * src/preproc/html/pre-html.cc (write_start_image): Remove
2242 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
2244 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
2245 \C'hy' caused an assertion failure.
2247 * src/roff/troff/env.cc (environment::environment): Initialize
2249 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
2251 2002-04-10 Werner LEMBERG <wl@gnu.org>
2253 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
2254 Document pvs request and .pvs register.
2256 2002-04-09 Werner LEMBERG <wl@gnu.org>
2258 * doc/groff.texinfo: Improve and fix documentation of diversions
2261 2002-04-08 Werner LEMBERG <wl@gnu.org>
2263 * doc/groff.texinfo: Fix documentation of drawing functions.
2266 2002-04-07 Werner LEMBERG <wl@gnu.org>
2268 * doc/groff.texinfo: Better documentation of double quotes as
2272 2002-04-06 Werner LEMBERG <wl@gnu.org>
2274 * man/groff_font.man: Document names of special characters better.
2275 * doc/groff.texinfo: Minor improvements.
2277 * tmac/lbp.tmac: Load latin1.tmac.
2278 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
2280 * font/devX*/*: Regenerated (all chars > 0x80 removed).
2282 2002-04-05 Werner LEMBERG <wl@gnu.org>
2284 * tmac/tty.tmac: Don't use shc request.
2285 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
2288 * man/groff_diff.man: Minor fixes.
2290 * font/devlbp/*: Remove all `charXXX' entities.
2292 * src/libs/libgroff/font.cc (font::~font): Deallocate
2293 `special_device_coding'.
2294 (font::load): Use `new' for allocating `special_device_coding'.
2295 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
2296 Removed unused member.
2298 2002-04-05 Werner LEMBERG <wl@gnu.org>
2300 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
2301 (resource_manager::do_begin_binary,
2302 resource_manager::do_begin_data): Use it.
2304 * doc/texinfo.tex: Updated to version 4.2.
2306 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
2307 (token::zero_width_break): New inline function.
2308 * src/roff/troff/input.cc (token::next): Use it.
2309 (token::description): Updated.
2310 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
2311 (token::add_to_node_list, token::process): Use it.
2312 * NEWS, doc/groff.texinfo: Updated.
2314 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
2315 * tmac/tty.tmac: Add missing backslash.
2317 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
2319 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
2320 `.ps' register instead of `.s' to handle fractional point sizes.
2321 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
2322 limit_box::output): Ditto.
2323 * src/preproc/eqn/other.cc (size_box::compute_metrics,
2324 size_box::output): Ditto.
2325 * src/preproc/eqn/over.cc (over_box::compute_metrics,
2326 over_box::output): Ditto.
2327 * src/preproc/eqn/script.cc (script_box::compute_metrics,
2328 script_box::output): Ditto.
2329 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
2330 sqrt_box::output): Ditto.
2332 2002-04-03 Michael Selway <mas@ssl.co.uk>
2334 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
2337 2002-04-03 Werner LEMBERG <wl@gnu.org>
2339 * doc/homepage.ms: Reduce title size.
2340 * doc/groff.texinfo: Fix documentation of .t register.
2341 Fix handling of colon.
2344 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
2345 only if page length is positive to avoid a loop.
2347 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
2350 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
2352 * src/include/nonposix.h, src/roff/groff/pipeline.c:
2353 s/__CYGWIN32__/__CYGWIN__/.
2355 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
2357 * doc/gnu.xpm: New image contributed by Emily Mulley.
2358 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
2359 (homepage.html): Be dependent on gnu.eps.
2360 * doc/homepage.ms: Updated to new image.
2362 * src/devices/grohtml/post-html.cc (html_printer): New member
2364 (html_printer::flush_sbuf, html_printer::set_char): Set it.
2365 (html_printer::sbuf_continuation): Use it.
2367 2002-03-28 Werner LEMBERG <wl@gnu.org>
2369 * src/libs/libgroff/getopt.c: Updated to latest version.
2371 * tmac/README: More on hyphen.tex license.
2373 2002-03-26 Larry Kollar <kollar@alltel.net>
2375 * doc/groff.texinfo: Add documentation of most missing requests.
2377 2002-03-25 Werner LEMBERG <wl@gnu.org>
2379 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
2380 of `+-', `mu', and `di', respectively.
2382 * font/devascii/R.proto, font/devutf8/R.proto,
2383 font/devlatin1/R.proto, font/devhtml/R.proto,
2384 font/devcp1047/R.proto, font/devlpb/*: Add them.
2385 * font/devps/generate/textmap: Ditto.
2386 * font/devps/*: Regenerated.
2387 * font/devlj4/generate/text.map: Add them.
2388 * font/devlj4/*: Regenerated.
2389 * font/devdvi/generate/tc.map: Use them.
2390 * font/devdvi/generate/texsy.map: Add them.
2391 * font/devdvi/*: Regenerated.
2392 * font/devX*/*: Regenerated.
2394 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
2395 tmac/tty-char.tmac: Updated.
2397 * NEWS, man/groff_char.man: Updated.
2399 2002-03-24 Werner LEMBERG <wl@gnu.org>
2401 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
2402 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
2403 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
2404 we use `.fchar' in dvi.tmac.
2405 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
2406 * tmac/Xps.tmac: Simplify some char definitions.
2407 Add definition for \[f/].
2408 * man/groff_char.man: Updated for new X.tmac.
2410 * tmac/README: New file.
2412 2002-03-23 Phil Lobbes <phil@perkpartners.com>
2414 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
2415 internal .y.o rule took precendence over the .y.cc rule, compiling
2416 the yacc files with gcc instead of g++.
2418 2002-03-23 Werner LEMBERG <wl@gnu.org>
2420 * tmac/dvi.tmac: Add replacement font for `CB'.
2422 * tmac/doc.tmac: s/request/macro/ in messages.
2423 (doc-generic-macro): Improve error message.
2424 * tmac/groff_mdoc.man: Minor improvements.
2426 2002-03-22 Werner LEMBERG <wl@gnu.org>
2428 * doc/groff.texinfo: Document possible conflict between `tr' and
2431 2002-03-21 Werner LEMBERG <wl@gnu.org>
2433 Improve handling of hyphenation patterns. It is now possible to
2434 use most of TeX's pattern files unmodified. To make the process
2435 more flexible, a new request `hpfcode' has been added which
2436 provides a character code mapping for the `hpf' request. See
2437 comment before hpf_getc() for more details.
2439 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
2441 (read_patterns_file): Additional parameter for exception dictionary.
2442 Extended to recognize \pattern, \hyphenation, and \endinput.
2443 (do_hyphenation_patterns_file): Updated.
2444 * src/roff/troff/env.h (hpf_code_table): New extern.
2446 * src/roff/troff/input.cc (hpf_code_table): New array.
2447 (init_hpf_code_table, hyphenation_patterns_file_code): New
2449 (hyphenation_code): Handle translation from `trin' correctly.
2450 (main, init_input_requests): Updated.
2451 (charinfo::set_translation): Handle hyphenation code also.
2453 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
2456 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
2457 char' is used for offsets in hyphenation exceptions.
2459 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
2461 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2463 2002-03-20 Larry Kollar <kollar@alltel.net>
2465 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
2468 2002-03-18 Werner LEMBERG <wl@gnu.org>
2470 * tmac/html.tmac: Fix serious typo.
2472 2002-03-17 Larry Kollar <kollar@alltel.net>
2474 * doc/groff.texinfo: Add documentation for `writec' request.
2476 2002-03-17 Werner LEMBERG <wl@gnu.org>
2478 Added request `hpfa' to append hyphenation patterns.
2480 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2482 (hyphenation_patterns_file): Renamed to...
2483 (do_hyphenation_patterns_file): This.
2484 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
2486 (init_hyphen_requests): Updated.
2487 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2489 2002-03-16 Werner LEMBERG <wl@gnu.org>
2491 Added request `writec' in analogy to `tmc'.
2493 * src/roff/troff/input.cc (write_request): Renamed to...
2494 (do_write_request): This.
2495 Added one parameter.
2496 (write_request, write_request_continue): New functions.
2497 (init_input_requests): Updated.
2498 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2500 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
2502 * NEWS: Document it.
2504 2002-03-15 Werner LEMBERG <wl@gnu.org>
2506 * man/groff.man: Add writem request.
2508 Add request `trin' (translate input) to make `.asciify' work
2509 correctly. This is necessary since `charXXX' entity names are no
2510 longer hardcoded in font definition files.
2512 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
2513 `translate_input' members.
2514 (charinfo::set_asciify_code, charinfo::get_asciify_code,
2515 charinfo::set_translation_input): New methods.
2516 (charinfo::set_translation): Add third argument.
2517 * src/roff/troff/input.cc (charinfo:set_translation): Set
2519 (do_translate): Add second argument.
2520 (translate_input): New function.
2521 (init_input_requests): Updated.
2522 * src/roff/troff/node.cc (glyph_node::asciify,
2523 composite_node::asciify): Use `get_asciify_code'.
2525 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
2527 * NEWS, man/groff.man, man/groff_diff.man: Updated.
2529 2002-03-14 Larry Kollar <kollar@alltel.net>
2531 * doc/groff.texinfo: Improve documentation of .RS and .RE.
2533 2002-03-14 Werner LEMBERG <wl@gnu.org>
2535 Add a new request `sizes' similar to the `sizes' command in DESC
2538 * src/roff/troff/env.cc (override_sizes): New function.
2539 (init_env_requests): Use it.
2540 * src/roff/troff/token.h: Export `read_string'.
2541 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2543 2002-03-12 Werner LEMBERG <wl@gnu.org>
2545 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
2547 2002-03-10 Werner LEMBERG <wl@gnu.org>
2549 * tmac/pspic.tmac: Add support for -Tdvi.
2550 * tmac/dvi.tmac: Include pspic.tmac.
2551 * src/devices/grodvi/grodvi.man: Document it.
2554 * font/devlj4/generate/Makefile: Fix URL of metric files.
2556 2002-03-09 Werner LEMBERG <wl@gnu.org>
2558 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
2560 2002-03-09 Larry Kollar <kollar@alltel.net>
2562 * tmac/groff_ms.man: Add documentation for RS and RE macros.
2564 2002-03-08 Werner LEMBERG <wl@gnu.org>
2566 * doc/groff.texinfo: Fixes for texinfo 4.1.
2568 2002-03-07 Werner LEMBERG <wl@gnu.org>
2570 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
2572 Handle CYGWIN properly.
2574 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
2576 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
2577 * tmac/lbp.tmac: Add some font translations.
2579 2002-03-02 Werner LEMBERG <wl@gnu.org>
2581 * font/devcp1047/R.proto, font/devlatin1/R.proto,
2582 font/devhtml/R.proto: Remove `charXXX' entries.
2583 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
2586 * font/devlj4/generate/text.map: Remove `charXXX' entries.
2587 * font/devlj4/*: Regenerated all font definition files.
2588 * tmac/lj4.tmac: Load latin1.tmac.
2590 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
2591 from 2000-06-17: LJ4 metric files are *not* text files.
2593 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
2594 register to test for EBCDIC.
2596 2002-03-01 Werner LEMBERG <wl@gnu.org>
2598 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
2599 files (as grops already does).
2600 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
2602 * src/devices/grops/grops.man: Document comment lines in encoding
2605 * tmac/cp1047.tmac: New file.
2606 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
2607 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
2608 * tmac/Makefile.sub (NORMALFILES): Updated.
2610 * tmac/ec.tmac: Don't load latin1.tmac again.
2612 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
2613 font/devps/generate/dingbats.map,
2614 font/devps/generate/dingbats.rmap, font/devps/text.enc,
2615 font/devps/generate/Makefile (symbolmap): Add header comment.
2616 * font/devps/generate/textmap: Ditto.
2617 Remove `charXXX' entries.
2618 * font/devps/symbolmap: Regenerated.
2619 * font/devps/*: Regenerated all font definition files.
2621 2002-02-28 Werner LEMBERG <wl@gnu.org>
2623 Add color support to grodvi (for drawing colors are currently
2624 translated to gray values).
2626 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
2627 (dvi_printer): Add `cur_color' member.
2628 (dvi_printer::set_color): New function.
2629 (draw_dvi_printer): Remove `fill'.
2630 (draw_dvi_printer::fill_next): Pass environment as parameter.
2631 Update code for new color support translated to gray.
2632 (dvi_printer::set_char): Updated.
2633 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
2634 changes crossing the page border.
2635 (dvi_printer::draw): Updated.
2636 Remove cases `f' and `F'.
2637 * tmac/dvi.tmac: Add color definitions.
2638 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2640 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
2643 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
2644 versions of autoconf.
2645 * configure: Updated.
2647 * doc/homepage.ms: Use `.blm'.
2648 * tmac/www.tmac (www-depth): New auxiliary variable.
2649 (www-pop-level): Don't issue HTML tag.
2650 (ULS, ULE, LI): Use absolute indentation.
2652 * src/devices/grops/ps.cc (ps_printer::begin_page,
2653 ps_printer::end_page): Switch forth and back to default color while
2654 starting a new page.
2656 2002-02-27 Werner LEMBERG <wl@gnu.org>
2658 Add EC and TC fonts to devdvi.
2660 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
2661 * font/devdvi/generate/cork.map: Renamed to...
2662 * font/devdvi/generate/ec.map: This.
2663 Remove entry for `aq'.
2664 * font/devdvi/generate/tc.map: New file.
2665 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
2668 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
2669 * font/devdvi/Makefile.sub (DEVFILES): Updated.
2670 * tmac/ec.tmac: New file.
2671 * tmac/Makefile.sub (NORMALFILES): Updated.
2672 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2673 * man/groff_char.man: Check `ECFONTS' register.
2675 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
2677 2002-02-26 Werner LEMBERG <wl@gnu.org>
2679 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
2680 * font/devdvi/generate/cork.map: Add 'y and 'Y.
2681 * font/devdvi/*: Updated.
2682 * tmac/dvi.tmac: Formatting.
2684 Add font `HBI' for the dvi output.
2685 Add support for font families `T' and `H'.
2687 * font/devdvi/HBI: New file.
2688 * font/devdvi/B: Renamed to ...
2689 * font/devdvi/TB: This.
2690 * font/devdvi/BI: Renamed to ...
2691 * font/devdvi/TBI: This.
2692 * font/devdvi/I: Renamed to ...
2693 * font/devdvi/TI: This.
2694 * font/devdvi/R: Renamed to ...
2695 * font/devdvi/TR: This.
2696 * font/devdvi/H: Renamed to ...
2697 * font/devdvi/HR: This.
2698 * font/devdvi/Makefile.sub (DEVFILES): Updated.
2699 * font/devdvi/generate/Makefile (HBI): New rule.
2701 (R, I, B, BI, H): Renamed to ...
2702 (TR, TI, TB, TBI, HR): This, respectively.
2704 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2705 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
2706 Add `styles' and `family' keywords.
2707 * tmac/dvi.tmac: Alias `H' to `HR'.
2708 Add some fspecial requests for italic fonts.
2709 Add TR and TI as special.
2710 Add support for `_' with font CWI.
2712 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
2713 operator `:'. Until now, the expression `0:1' would return 2
2716 2002-02-25 Werner LEMBERG <wl@gnu.org>
2718 * man/groff_char.man: Added some missing PS glyph names (from the
2720 * font/devps/generate/textmap, font/devps/symbolmap: Add
2723 * doc/groff.texinfo: Minor additions and fixes.
2724 * man/groff_diff.man: Remove documentation of fp request. This
2725 is already covered in the original troff manual.
2726 Updated to be consistent with other doc files.
2729 2002-02-24 Werner LEMBERG <wl@gnu.org>
2731 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
2733 Define new variable OTHERDEVDIRS (containing `font/devlj4
2734 font/devlbp' if not EBCDIC).
2735 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
2736 (OTHERDEVDIRS): New variable.
2737 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
2738 * configure: Regenerated.
2740 * NEWS, src/devices/grotty/grotty.man: Updated.
2742 2002-02-23 Werner LEMBERG <wl@gnu.org>
2744 * src/roff/troff/input.cc (do_overstrike, do_bracket,
2745 get_line_arg): Honour input level.
2747 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
2749 * font/*/*: Implement it in all font files.
2750 * font/devps/generate/textmap, font/devps/generate/symbolchars,
2751 * font/devps/symbolmap: Updated.
2752 * font/devlj4/generate/text.map: Updated.
2753 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
2754 * font/devdvi/generate/texmi.map: Updated.
2756 * font/devutf8/R.proto: Remove all `charXXX' entries.
2757 * font/devutf8/NOTES: Updated.
2759 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
2762 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
2764 * NEWS, man/groff_char.man: Updated.
2766 2002-02-21 Phil Lobbes <phil@perkpartners.com>
2768 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
2770 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2772 * src/roff/grog/grog.pl: Fix computation of $refer.
2774 2002-02-19 Werner LEMBERG <wl@gnu.org>
2776 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
2777 `snprintf' and `vsnprintf'.
2779 * src/include/htmlindicate.h: Renamed to...
2780 * src/include/htmlhint.h: This.
2781 * src/include/Makefile.sub: Updated.
2782 * src/preproc/eqn/main.cc: Updated.
2784 2002-02-18 Werner LEMBERG <wl@gnu.org>
2786 * man/roff.man, man/groff_out.man, man/groff.man,
2787 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2788 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2790 * win32-diffs: Updated.
2792 2002-02-17 Werner LEMBERG <wl@gnu.org>
2794 * doc/Makefile (clean): Add *.eps.
2795 (MEMACROS): Removed.
2796 (TFLAG): New variable.
2799 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2801 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2803 * tmac/www.tmac: Use dummy diversion while resetting and disabling
2805 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2807 * src/roff/troff/troff.man: Fix order of parameter description.
2811 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
2813 Simplify image handling for grohtml.
2816 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2818 (html_text::dump_stack): Don't emit newline while debugging.
2819 (html_text::do_push) [DEBUGGING]: Print more info.
2820 (html_text::check_emit_text): Fix handling of <p>.
2821 * src/devices/grohtml/html.h: Updated.
2822 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2823 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
2824 send its data to stderr also.
2826 (simple_output::space_or_newline) [DEBUGGING]: Removed.
2827 * src/devices/grohtml/post-html.cc (html_printer::do_links,
2828 html_printer::html_printer): Remove `DEBUGGING' conditionals.
2830 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2832 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2833 is_inline_image): Removed.
2834 (html_begin_suppress, html_end_suppress): Don't take a parameter.
2835 (graphic_start, graphic_end): Removed.
2836 * src/include/htmlindicate.h: Updated.
2837 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2838 (macroset_template): New global variable.
2839 (makeFileName): Use `macroset_template'.
2840 (write_end_image): Don't take a parameter.
2842 (write_start_image: Don't emit newline.
2843 (char_buffer::write_upto_newline): Updated.
2844 (char_buffer::skip_to_newline): Renamed to ...
2845 (char_buffer::skip_until_newline): This.
2847 (char_buffer::write_file_troff, char_buffer::write_file_html):
2849 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2850 (removeAllPages): Remove `DEBUGGING' conditionals.
2851 (addRegDef, dump_args): New functions.
2852 (char_buffer::do_html, char_buffer::do_image): Handle
2853 `www-image-template' command line variable.
2854 Add more debugging code.
2855 (addps4html): Removed.
2856 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2858 * src/preproc/eqn/main.cc: Include `ctype.h'.
2859 (suppress_html): Removed.
2861 (inline_equation): Use `html_begin_suppress' and
2862 `html_end_suppress'.
2863 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2864 (troff_output::start_picture, troff_output::finish_picture):
2866 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2867 (process_input_file): Updated.
2869 * src/roff/troff/div.cc (page_number): Set page number only if the
2870 `ps4html' register isn't defined.
2871 * src/roff/troff/input.cc (image_no): New external variable.
2872 (do_suppress): Use it.
2873 * src/roff/troff/node.h (suppress_node::image_id): New member.
2874 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2875 (suppress_node::suppress_node): Initialize `image_id' member.
2876 (suppress_node::same): Handle `image_id' also.
2877 (suppress_node::copy): Updated.
2878 (last_image_id): New global variable.
2879 (suppress_node::tprint): Use it.
2881 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2883 * tmac/pspic.mac (PSPIC): Fix html support.
2884 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2885 * tmac/www.tmac (www-image-template): Set up.
2886 (HTMLINDEX): Renamed to...
2888 (BODYCOLOR): Renamed to...
2890 (BACKGROUND): Renamed to...
2892 (URL): Change order of parameters for consistency.
2893 (MAILTO): Renamed to...
2895 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2896 (IMG, PIMG, MPIMG): This.
2897 (HTML-H-BEGIN, HTML-H-END): Renamed to...
2899 (LINKS): Renamed to...
2901 (LINE): Renamed to...
2903 (NO-AUTO-RULE): Renamed to...
2905 (HTML-TL): Renamed to...
2907 (UL-BEGIN, UL-END): Renamed to...
2909 (DROPCAP): Renamed to...
2911 (TS, TE, EQ, EN): Provide default definitions.
2912 (www-make-unique-name): Updated.
2913 (HTML-IMAGE-INLINE): Fix typo.
2914 * tmac/groff_www.man: Updated.
2916 * doc/Makefile (homepage.html): Add option -r to grohtml.
2917 Use shortened image name.
2918 * doc/groff.texinfo: Updated info on grohtml strings and macros.
2919 * doc/homepage.ms: Updated and extended.
2921 2002-02-14 Werner LEMBERG <wl@gnu.org>
2923 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2925 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2926 SGR_BACK_DEFAULT_COLOR): Replaced with ...
2927 (tty_printer::put_color): Use it.
2928 (ttr_printer::end_page): Simplify.
2930 2002-02-13 Werner LEMBERG <wl@gnu.org>
2932 * tmac/groff_tmac.man: Moved to...
2933 * man/groff_tmac.man: This place.
2934 * tmac/Makefile.sub, man/Makefile.sub: Updated.
2936 2002-02-12 Werner LEMBERG <wl@gnu.org>
2938 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2939 $(COMPILE.c) to not include groff's assert.h.
2941 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2943 * NEWS, src/drivers/grotty/grotty.man: Document it.
2945 2002-02-11 Werner LEMBERG <wl@gnu.org>
2947 * src/libs/snprintf/snprintf.c: Updated to latest version
2950 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
2951 test whether there is `.]' also.
2952 Don't check for spaces after `.['.
2953 * src/roff/grog/grog.sh: Do the same.
2955 2002-02-10 Werner LEMBERG <wl@gnu.org>
2959 * src/libs/libgroff/illegal.cc: Renamed to ...
2960 * src/libs/libgroff/invalid.cc: This.
2961 (illegal_char_table): Renamed to ...
2962 (invalid_char_table): This.
2963 * src/libs/libgroff/Makefile.sub: Updated.
2964 * win32-diffs: Updated.
2966 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2967 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2968 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2969 font::load), src/preproc/eqn/main.cc (read_line, main),
2970 src/preproc/eqn/lex.cc (file_input::read_line),
2971 src/preproc/pic/lex.cc (file_input::read_line,
2972 simple_file_input::get, simple_file_input::peek),
2973 src/preproc/pic/main.cc (top_input::get, top_input::peek),
2974 src/preproc/pic/pic.man, src/preproc/refer/main.cc
2975 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2976 do_bib), src/preproc/tbl/main.cc (table_input::get),
2977 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2978 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2979 do_zero_width, read_request, encode_char, ps_get_line,
2980 transparent_file, get_char_for_escape_name, transparent_translate,
2981 asciify, input_char_description, read_string, set_string),
2982 src/roff/troff/env.cc (environment::add_html_tag),
2983 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2985 * src/include/lib.h: Updated.
2987 * src/preproc/eqn/eqn.cc: Removed.
2991 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2993 2002-02-09 Werner LEMBERG <wl@gnu.org>
2995 * doc/gnu.xpm: New image.
2996 * doc/Makefile (DOCS): Add homepage.ps.
2997 Add rules for converting xpm->png and xpm->eps.
2998 Use `gnu.{xpm,eps}' as image names.
2999 * doc/homepage.ms: Updated.
3001 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
3003 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
3004 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
3005 Remove calls to `B1' and `B2'
3006 (PNG-IMAGE): New macro for inclusion of images in PNG format.
3007 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
3008 auxiliary variables for MARGIN-PNG-IMAGE.
3009 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
3010 auxiliary macros for MARGIN-PNG-IMAGE.
3011 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
3013 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
3014 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
3015 (DROPCAP): New macro to produce dropcap characters.
3016 (www-do-image): Renamed back to...
3017 (HTML-DO-IMAGE): This.
3018 Updated all callers.
3020 * doc/Makefile (gnubw.eps): Updated.
3021 * doc/homepage.ms: Updated.
3023 2002-02-08 Werner LEMBERG <wl@gnu.org>
3025 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
3026 Added `linethick' to table in section `Style Variables'.
3028 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
3030 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
3032 2002-02-07 Werner LEMBERG <wl@gnu.org>
3034 Adding options -C (compatibility mode) and -c (grotty's old output
3037 * src/roff/nroff/nroff.sh: Implement it.
3039 * NEWS, src/roff/nroff/nroff.man: Updated.
3041 * PROBLEMS: Document bison 1.32 bug.
3043 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
3045 * src/roff/troff/node.cc (make_tfont): Define it earlier.
3046 * src/roff/troff/div.h: Add prototype for `end_diversions'.
3047 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
3048 * src/roff/troff/env.h: Add prototype for `title'.
3050 Adding EBCDIC support to grotty.
3052 * src/devices/grotty/tty.cc (CSI): New macro.
3053 (SGR_*, tty_printer::put_color): Use it.
3055 2002-02-06 Werner LEMBERG <wl@gnu.org>
3057 Implementing color support in grotty. The new switch -c activates
3058 the old drawing scheme, disabling color at the same time. The new
3059 switch `-i' selects italic instead of underlining (SGR only).
3061 * src/devices/grotty/tty.cc (putstring): New define instead of
3062 `fputs'. Updated all callers.
3063 (old_drawing_scheme): New global variable.
3064 (COLOR_CHANGE): New enum value.
3065 (SGR_*): New defines containing color handling escape sequences.
3066 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
3067 (glyph): New members `back_color_idx' and `fore_color_idx'.
3068 (glyph::order): Add COLOR_CHANGE.
3069 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
3070 `is_underline', `is_bold', `cu_flag', `tty_colors'.
3071 New methods `make_underline', `make_bold', `color_to_idx',
3072 `change_color', `put_color'.
3073 (cu_flag): Moved into `tty_printer' class.
3074 (tty_printer::tty_printer): Initialize colors.
3075 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
3076 tty_printer::draw, tty_printer::end_page): Handle colors also.
3077 (main): Add options `-c' and `-i'.
3079 * NEWS, src/devices/grotty/grotty.man: Updated.
3081 * src/include/errarg.h (errarg): Add support for `unsigned int'.
3082 * src/libs/libgroff/errarg.c: Implement it.
3084 * src/include/printer.h (printer): Add `change_color' method
3085 (currently used by grotty only).
3086 * src/libs/libdriver/printer.cc: Implement it.
3087 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
3088 call to `pr->change_color'.
3090 * src/roff/troff/node.cc (troff_output_file::fill_color,
3091 troff_output_file::glyph_color): Call `do_motion'.
3093 * tmac/tty.tmac: Add color definitions.
3095 * src/roff/groff/groff.man: Minor fixes.
3097 2002-02-05 Bernd Warken <bwarken@mayn.de>
3099 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
3100 it. This is a preparation for future changes.
3102 2002-02-05 Werner LEMBERG <wl@gnu.org>
3104 * src/roff/troff/input.cc (process_input_stack): Fix the case
3105 where leading spaces are followed by \f or \s; previously, an
3106 incorrect space width has been used.
3108 * doc/roff.man (quoted_char): Fix argument.
3109 (comment): Define string.
3111 2002-02-04 Larry Kollar <kollar@alltel.net>
3113 * doc/groff.texinfo: More fixes.
3115 2002-02-04 Werner LEMBERG <wl@gnu.org>
3117 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
3118 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
3119 `restore_compatibility' before `output_string' -- the LINE_STRING
3120 register now already contains proper switches from and to
3123 * man/groff_char.man: Add Euro symbol.
3124 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
3125 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
3126 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
3129 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
3131 (.texinfo.html): Add support for texinfo->html.
3133 2002-02-03 Werner LEMBERG <wl@gnu.org>
3135 Added three new requests `ds1', `as1', and `ami'. The former two
3136 are equivalent to `ds' and `as' with the difference that
3137 compatibility mode is saved on entry, switched off during string
3138 expansion, and restored on exit. The latter is the pendant to `dei'
3141 (do_define_string): Use `define_mode' and `calling mode'.
3142 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
3143 end of string, respectively.
3144 (define_string, append_string): Use `calling_mode'.
3145 (define_nocomp_string, append_nocomp_string,
3146 define_string_indirect): New functions.
3147 (init_input_requests): Updated.
3148 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3150 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
3151 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
3152 mm macro package accesses this string register directly.
3153 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
3155 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
3158 2002-02-02 Larry Kollar <kollar@alltel.net>
3160 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
3162 2002-01-31 Werner LEMBERG <wl@gnu.org>
3164 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
3166 2002-01-31 Bernd Warken <bwarken@mayn.de>
3168 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
3169 * man/groff_out.man: Revised and updated.
3171 2002-01-30 Bernd Warken <bwarken@mayn.de>
3173 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
3174 out the unused `{' and `}' commands. Undefined by default.
3175 (IntArray): Make `data' private.
3176 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
3177 new methods instead.
3178 (skip_line_D, skip_to_end_of_line): New functions.
3179 (get_D_fixed_args): Use `skip_line_D'.
3180 Changed to handle dummy odd arguments by ...
3181 (get_D_fixed_args_odd_dummy): This new function.
3182 (get_D_variable_args): Split some code into ...
3183 (get_possibly_integer_args): This new function.
3184 (send_draw): Use more `const'.
3185 (delete_current_env): New function.
3186 (position_to_end_of_args): Use `size_t'.
3188 (send_draw): Updated.
3189 (parse_D_command): Handle `c', `C', and `t' better.
3193 2002-01-29 Werner LEMBERG <wl@gnu.org>
3196 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
3197 @Def...ListEnd which replaces @Def...x. This is necessary to get
3198 proper HTML output -- see the comment in the file for more
3202 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
3204 Fixes to make color changes of 2002-01-21 work with grohtml.
3206 * src/devices/grohtml/post-html.cc (style): Updated.
3207 (html_printer): Remove unused methods.
3208 (html_printer::do_font, html_printer::draw, html_printer::set_char,
3209 html_printer::special): Updated.
3210 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
3211 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
3212 Added some debugging code.
3213 (html_text::start_tag): Updated.
3214 (html_text::do_push): New method.
3215 (html_text::push_para): Call it.
3216 Add method for handling color.
3217 (html_text::do_color): Updated.
3218 (html_text::shutdown): Handle color.
3219 * src/devices/grohtml/html-text.h (tag_definition): New member
3223 2002-01-28 Werner LEMBERG <wl@gnu.org>
3225 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
3227 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
3229 Add two switches -a and -g to control the antialiasing bits for
3230 text and graphics, respectively.
3232 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
3234 * src/devices/grohtml/grohtml.man: Document them.
3235 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
3237 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
3238 (setupAntiAlias): New function.
3239 (createAllPages): Updated.
3240 (scanArguments): Handle `-a' and `-g'.
3241 (main): Call `setupAntiAlias'.
3244 2002-01-27 Werner LEMBERG <wl@gnu.org>
3246 * doc/groff.texinfo (Def*): Call index function after deffn.
3248 * tmac/html.tmac: Call `nroff' request.
3250 2002-01-26 Larry Kollar <kollar@alltel.net>
3252 * tmac/groff_ms.man: Add some omissions.
3254 2002-01-25 Larry Kollar <kollar@alltel.net>
3256 * tmac/groff_ms.man: Typographical improvements.
3258 2002-01-25 Werner LEMBERG <wl@gnu.org>
3260 * doc/groff.texinfo: Updated version and copyright.
3261 * src/devices/grops/grops.man: Updated.
3263 * tmac/groff_tmac.man: Fix `ig' macro.
3265 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
3267 Use `.ne' unconditionally everywhere.
3268 (TS): Only insert some vertical space. Doing a page break is no
3269 longer necessary due to the redefinition of the `ne' request.
3271 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
3272 warning for unknown subcommands but parse and pass them to the
3275 2002-01-24 Werner LEMBERG <wl@gnu.org>
3277 * tmac/groff_www.man, NEWS: Fix typos.
3279 2002-01-21 Werner LEMBERG <wl@gnu.org>
3281 Complete revision of color support:
3283 Adapt programs to the new libdriver/input.cc.
3285 Color spaces are no longer converted to RGB but transferred as-is
3286 in the troff intermediate output format.
3288 Handle default color gracefully. troff now supports a `default'
3289 color (which can't be changed).
3291 grops will now use the proper color space functions if available.
3295 Note that currently grohtml doesn't handle colors properly. This
3298 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
3299 (ui_to_a): New function.
3300 * src/include/lib.h: Updated.
3302 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
3303 (color): Simplified; removed all `double' members and methods.
3304 A new array `components' now holds the color parameters.
3305 (color::is_default, color::get_components): New methods.
3306 (color::operator==, color:operator!=): New.
3307 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
3308 to make access to the `components' array more comprehensible.
3309 * src/libs/libgroff/color.cc: Implement new color support.
3310 (atoh): Small fixes.
3311 (color::read_encoding): Simplified for new troff intermediate color
3313 (default_color): New global variable.
3315 * src/roff/troff/input.cc (default_symbol): New global variable.
3316 (lookup_color): Use it.
3317 (default_black): Removed.
3318 (do_glyph_color, do_fill_color): Simplified.
3319 (define_color): Handle default color.
3321 (do_if_request): Handle default color.
3322 * src/roff/troff/env.cc (environment::environment): Initialize
3323 colors with `default_color'.
3324 * src/roff/troff/node.cc (troff_output_file::put): Add method
3326 (troff_output_file::hex): Removed.
3327 (troff_output_file::fill_color, troff_output_file::glyph_color):
3328 Updated to include/color.h and libdriver/input.cc.
3330 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
3331 fill color properly (identically to the outline color). \D'f...'
3332 doesn't work any more.
3333 All function calls to it updated.
3335 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
3337 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
3340 * src/devices/grops/ps.cc (ps_output::put_color): New method.
3341 (ps_printer::sbuf_color): Make a real member instead of pointer.
3342 (ps_printer::fill_color, ps_printer::output_color): Removed.
3343 (ps_printer::ps_printer): Updated.
3344 (ps_printer::set_char): Ditto.
3345 (ps_printer::set_color): Use various color schemes.
3346 Use `put_color' method.
3347 (ps_printer::flush_sbuf): Don't set color.
3348 (ps_printer::fill_path): Take `environment' as parameter.
3349 Simplify color handling.
3350 (ps_printer::set_line_thickness): Renamed to ...
3351 (ps_printer::set_line_thickness_and_color): This (and updated).
3352 (ps_printer::set_color): Change second parameter from `complete'
3353 to `fill' which better describes what it does.
3354 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
3355 and text in the right order.
3357 Remove branches for `f' and `F'; this is handled by
3359 * src/devices/grops/ps.h: Updated.
3360 * font/devps/prologue (FL): Redefined.
3361 ({F,C}r,k,g: New color functions (with and without filling).
3363 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
3364 * man/groff_diff.man, man/groff.man, man/groff_out.man,
3365 doc/groff.texinfo, NEWS: Updated.
3367 2002-01-20 Bernd Warken <bwarken@mayn.de>
3369 * src/libs/libdriver/input.cc: Completely rewritten. See comments
3370 in this file for what has been changed.
3372 2002-01-19 Werner LEMBERG <wl@gnu.org>
3374 * test-groff: Fix GROFF_FONT_PATH.
3375 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
3376 is read before .TH or .Dd is parsed.
3378 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
3380 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
3381 quadrant boundaries.
3383 2002-01-18 Werner LEMBERG <wl@gnu.org>
3385 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
3388 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3390 * tmac/doc.common: Initialize %I register for the %I macro to
3391 avoid (harmless) warning.
3392 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
3393 when in the SYNOPSIS section.
3395 2002-01-17 Bruno Haible <haible@clisp.cons.org>
3397 * src/preproc/pic/lex.cc (get_token): Fix typo.
3399 2002-01-17 Werner LEMBERG <wl@gnu.org>
3401 * devices/grops/ps.cc: Fix incorrectly applied last patch.
3403 2002-01-17 Larry Kollar <kollar@alltel.net>
3405 * tmac/groff_ms.man: Completely rewritten.
3407 2002-01-16 Werner LEMBERG <wl@gnu.org>
3409 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
3411 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
3413 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
3415 (ps_printer::draw): Ditto.
3417 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
3419 * tmac/groff_mdoc.man: Minor fixes.
3421 2002-01-13 Werner LEMBERG <wl@gnu.org>
3423 * man/groff_out.man: Some fixes.
3425 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
3427 * doc/pic.ms: Fix typos.
3429 2002-01-12 Werner LEMBERG <wl@gnu.org>
3431 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
3433 2002-01-10 Werner LEMBERG <wl@gnu.org>
3435 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
3439 2002-01-09 Bernd Warken <bwarken@mayn.de>
3441 * man/groff_out.man: Revised.
3442 * man/roff.man: Minor fixes.
3443 * src/roff/troff/troff.man: Some reordering.
3445 2002-01-09 Werner LEMBERG <wl@gnu.org>
3447 * tmac/an-old.tmac: Add dummy macros for equation support.
3449 2002-01-07 Werner LEMBERG <wl@gnu.org>
3451 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
3453 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
3455 * tmac/groff_man.man: Small improvements.
3457 2002-01-07 Bernd Warken <bwarken@mayn.de>
3459 * man/groff_diff.man: Revised.
3461 2002-01-06 Werner LEMBERG <wl@gnu.org>
3463 * tmac/www.tmac: Remove extraneous backslash.
3465 2002-01-06 Bernd Warken <bwarken@mayn.de>
3467 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
3469 2002-01-05 Werner LEMBERG <wl@gnu.org>
3471 Integrated groffer, contributed by Bernd Warken.
3473 * contrib/groffer/*: New.
3474 * Makefile.in, NEWS: Updated.
3476 2002-01-04 Werner LEMBERG <wl@gnu.org>
3478 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
3479 registers defined in macro packages.
3480 Revising the ms part.
3482 2002-01-04 Larry Kollar <kollar@alltel.net>
3484 * doc/groff.texinfo: Add documentation for ms macros.
3486 2002-01-02 Werner LEMBERG <wl@gnu.org>
3488 First step in adding PS support for the Euro symbol. `eu' is the
3489 official Euro logo, `Eu' is a font-specific glyph variant.
3491 * font/devps/text.enc: Add `Euro' at position 9.
3492 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
3493 * font/devps/symbolmap: Regenerated.
3497 2002-01-02 Bernd Warken <bwarken@mayn.de>
3499 * man/roff.man: Revised.
3501 2002-01-01 Bernd Warken <bwarken@mayn.de>
3503 * src/roff/groff/groff.man: Completely rewritten.
3505 2001-12-31 Werner LEMBERG <wl@gnu.org>
3507 * doc/Makefile: Updated.
3509 2001-12-30 Werner LEMBERG <wl@gnu.org>
3511 * tmac/www.tmac: Make all names of internal macros/registers/strings
3512 lowercase, and prepend `www-'.
3513 Other minor changes.
3514 * src/roff/troff/troff.man: Add preprocessor string at BOF.
3516 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
3518 Implement option `-b' in grohtml to set the HTML background colour.
3520 * src/devices/grohtml/post-html.cc (default_background): New global
3522 (html_printer::html_printer): Initialize `background' to
3523 `default_background'.
3524 (main): Implement option `-b'.
3526 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
3528 * src/devices/grohtml/grohtml.man: Updated.
3529 * doc/Makefile (.ms.html): Use `-b'.
3530 * tmac/html.tmac: Don't set background color.
3532 Add new grohtml tag `.html-tl'.
3534 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
3536 (title_desc::title_desc): Updated.
3537 (html_printer::troff_tag): Handle `.html-tl'.
3538 (html_printer::write_title): Use `with_h1'.
3539 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
3540 (HTML-TL): New macro.
3542 Add support for unordered lists in HTML.
3544 * tmac/www.tmac (www-level): New auxiliary register.
3545 (www-level1, www-level2, www-level3): New auxiliary strings.
3546 (www-push-level, www-pop-level): New auxiliary macros
3547 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
3551 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
3552 (DEFAULT_VERTICAL_OFFSET): Removed.
3553 (IMAGE_BOARDER_PIXELS): Set to 0.
3554 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
3555 (vertical_offset): Initialize with 0.
3556 (gsPaper): New global variable.
3557 (get_resolution): Scan for and return unsigned int.
3558 (get_papersize): New function to get paper length from devps/DESC.
3559 (determine_vertical_offset): New function.
3560 (createAllPages): Produce gray-level images and use proper page
3562 (createImage): Use `-quiet' option of pnmcrop.
3563 (addZ): Fix passing of `-Z'.
3564 (scanArguments): Fix handling of `-o'.
3565 (main): Call `determine_vertical_offset'.
3566 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
3569 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
3570 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
3571 glyph descenders properly.
3573 * doc/homepage.ms: Include `gnubw.eps'.
3574 * doc/Makefile (gnubw.eps): New rule.
3575 (homepage.html): Depend on `gnubw.eps'.
3577 2001-12-25 Werner LEMBERG <wl@gnu.org>
3579 * src/roff/troff/input.cc (default_black): Fix return value.
3581 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
3583 * tmac/doc-common (Dt): Change output of architecture strings.
3584 Do some syntax cleanup.
3585 * tmac/groff_mdoc.man: Updated.
3587 2001-12-23 Werner LEMBERG <wl@gnu.org>
3589 Adding an `itc' request (input line trap accepting \c).
3591 * src/roff/troff/env.h (environment): New member
3592 `continued_input_trap'.
3593 Make `do_input_trap' a friend function instead of `input_trap'.
3594 * src/roff/troff/env.cc (environment::environment,
3595 environment::copy): Updated.
3596 (environment::newline): Implement it.
3597 (do_input_trap): New function.
3598 (input_trap): Call `do_input_trap'.
3599 (input_trap_continued): New function.
3600 (init_env_requests): Updated.
3601 * src/roff/troff/TODO: Updated.
3603 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
3606 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
3608 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
3610 * tmac/doc-common, tmac/doc-syms: Small updates.
3612 2001-12-22 Colin Watson <cjwatson@debian.org>
3614 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
3616 2001-12-22 Bernd Warken <bwarken@mayn.de>
3618 * MANIFEST: New file.
3620 2001-12-22 Werner LEMBERG <wl@gnu.org>
3622 * src/preproc/grn/grn.man: Updated.
3624 2001-12-22 Solar Designer <solar@openwall.com>
3626 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
3629 2001-12-19 Werner LEMBERG <wl@gnu.org>
3631 Implement a fallback character request `.fchar'.
3633 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
3634 (is_fallback): New inline function.
3635 * src/roff/troff/input.cc (do_define_character): New function.
3636 (define_character): Call `do_define_character'.
3637 (define_fallback_character): New function.
3638 (init_input_requests): Add `fchar'.
3639 (charinfo::charinfo): Updated.
3640 (charinfo::set_macro): New argument to set `fallback' flag.
3641 * src/roff/troff/node.cc (make_glyph_node, make_node,
3642 node::add_char): Check `fallback' flag.
3643 * NEWS, man/groff_diff.man, man/groff_man: Updated.
3645 2001-12-16 Werner LEMBERG <wl@gnu.org>
3647 * groff.texinfo: Document exact search algorithm for glyphs.
3649 2001-12-15 Werner LEMBERG <wl@gnu.org>
3651 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
3652 the left side of $(MANPAGES) rule to make it always non-empty.
3654 2001-12-14 Werner LEMBERG <wl@gnu.org>
3656 * src/roff/troff/input.cc (default_black): Define default color
3657 `black' if not yet defined.
3659 2001-12-13 Werner LEMBERG <wl@gnu.org>
3661 Implement new string-valued register `.fn' to return the current
3662 real (internal) font name.
3664 * env.cc (environment::get_font_name_string): New function.
3665 (init_env_requests): Add `.fn' register.
3666 * env.h (environment): Updated.
3667 * node.cc (font_info): Make `get_font_name' a friend.
3668 (get_font_name): New function.
3671 * man/groff_diff.man, man/groff.man, NEWS: Updated.
3673 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3675 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
3677 2001-12-12 Werner LEMBERG <wl@gnu.org>
3679 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
3681 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
3683 * man/groff_diff.man: Adding documentation for \O.
3685 2001-12-10 Werner LEMBERG <wl@gnu.org>
3687 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
3688 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
3690 2001-12-09 Werner LEMBERG <wl@gnu.org>
3692 * man/roff.man: Revised.
3693 * src/roff/groff/groff.man: Replace man page references with a
3694 pointer to roff.man.
3696 2001-12-09 Bernd Warken <bwarken@mayn.de>
3698 * man/roff.man: Completely rewritten.
3700 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3702 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
3704 2001-12-05 Werner LEMBERG <wl@gnu.org>
3706 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
3708 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
3709 order of initializers.
3712 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
3714 * doc/groff.texinfo: Fix documentation of \O.
3716 * src/devices/grohtml/html-text.cc (html_text::do_indent,
3717 html_text::do_table, html_text::do_emittext, html_text::do_para):
3718 Use `const' for first argument.
3719 (html_text::do_table): Use cast.
3720 * src/devices/grohtml/html-text.h: Updated.
3721 * src/devices/grohtml/output.cc (simple_output::put_string): Add
3722 method for `const string &s'.
3723 * src/devices/grohtml/html.h: Updated.
3724 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
3725 (ANCHOR_TEMPLATE): Modified.
3726 (manufacture_headings): New global variable to handle `-h' option.
3727 (is_subsection): Removed.
3728 (char_buffer::add_string): Add `const' to first argument.
3729 Protect against invalid string argument.
3730 Add method for `const string &s'.
3731 (text_glob): Completely redesigned.
3732 (page): Use `const' for strings and remove string length variable.
3733 (page::add_html): Removed.
3734 (page::add_end_encode): New member function.
3735 (to_unicode): Moved upwards.
3736 (title_desc, header_desc): Updated.
3737 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
3739 (html_printer::is_bold, html_printer::make_bold): New member
3741 (html_printer::end_of_line): Updated.
3742 (generate_img_src, html_printer::do_auto_image,
3743 html_printer::do_title, html_printer::write_header,
3744 html_printer::determine_header_level, html_printer::do_heading,
3745 html_printer::do_linelength, html_printer::do_pageoffset,
3746 html_printer::do_indentation, html_printer::do_tempindent,
3747 html_printer::do_indentedparagraph, html_printer::do_break,
3748 html_printer::flush_sbuf, get_html_translation,
3749 html_printer::begin_page, html_printer::special): Rewritten to get
3750 rid of static string length limit.
3751 (html_printer::troff_tag): Added `.no-auto-rule'.
3752 (html_printer::flush_globs): Small fix.
3753 (html_printer::determine_space): Don't compute `space_width'.
3754 (html_printer::translate_to_html): Renamed to ...
3755 (html_printer::emit_html): This (with updates).
3756 (html_printer::write_header): Implement `-h' option.
3757 (html_printer::draw): Remove commented-out code. Handle `F'
3759 (html_printer::add_char_to_sbuf): Removed.
3760 (html_printer::add_to_sbuf): Rewritten.
3761 (html_printer::sbuf_continuation): Fixed.
3762 (html_printer::seen_backwards_escape, reverse,
3763 html_printer::remove_last_char_from_sbuf): Removed.
3764 (char_translate_to_html, str_translate_to_html): Removed.
3765 (html_printer::overstrike): New function member.
3766 (html_printer::set_char): Use it.
3767 (html_printer::do_body): New function member.
3768 (html_printer::~html_printer): Use it.
3769 (main): Handle `-h' option.
3771 * src/devices/grohtml/grohtml.man: Document -h switch.
3773 * src/preproc/html/pre-html.cc: Include searchpath.h
3774 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
3775 (get_resolution): New function.
3776 (checkImageDir): Use `0777' permissions in mkdir()
3777 (write_start_image): Rewritten to use `\O[5...]'.
3778 (createImage, generateImages): Updated.
3779 (main): Handle `F' and `h' options.
3780 Use `get_resolution'.
3782 * src/roff/troff/input.cc (begin, end, image): Removed.
3783 (do_suppress): Take parameter.
3784 Handle modified syntax of `\O'.
3785 (token::next): Updated.
3786 (init_markup_requests): Removed.
3789 * src/roff/troff/div.h: Add declaration for begin_page().
3791 * tmac/color-html.tmac: Removed. Contents moved to...
3792 * tmac/html.tmac: Here. Set background color.
3793 * tmac/color.tmac: Removed. Contents moved to...
3794 * tmac/ps.tmac: Here.
3795 * tmac/www.tmac: Remove the title command when generating images
3797 (NO_AUTO_RULE): New macro.
3798 (HTML_DO_IMAGE): Use revised `\O' escapes.
3799 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3801 2001-12-02 Werner LEMBERG <wl@gnu.org>
3803 * tmac/groff_mdoc.man: Fix typo.
3805 2001-12-01 Colin Watson <cjwatson@debian.org>
3807 * man/roff.man: Fix typo.
3809 2001-11-29 Werner LEMBERG <wl@gnu.org>
3811 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3814 * src/roff/troff/input.cc (read_draw_node): Emit error message if
3815 more than one argument to \D'f ...'.
3817 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3819 2001-11-28 Werner LEMBERG <wl@gnu.org>
3821 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3824 * tmac/groff_man.man: Minor cosmetic fix.
3826 2001-11-27 Werner LEMBERG <wl@gnu.org>
3828 * src/roff/groff/groff.man, tmac/groff_tmac.man,
3829 tmac/groff_www.man: s/mwww/www/.
3831 2001-11-26 Werner LEMBERG <wl@gnu.org>
3833 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3834 * configure: Regenerated.
3835 * win32-diffs: Updated.
3837 * tmac/groff_mwww.tmac: Renamed to ...
3838 * tmac/groff_www.tmac: This.
3839 * tmac/mwww.tmac: Removed.
3840 * NEWS, tmac/Makefile.sub: Updated.
3842 2001-11-21 Werner LEMBERG <wl@gnu.org>
3844 * doc/groff.texinfo: Improve documentation of the `\v' escape.
3845 Fix explanation of `\D' and `rt'.
3847 2001-11-20 Werner LEMBERG <wl@gnu.org>
3849 * tmac/an-old.tmac (an-header): Set header length equal to page
3851 * doc/groff.texinfo: Improve documentation of `ne' request. Other
3855 2001-11-19 Werner LEMBERG <wl@gnu.org>
3857 * NEWS, man/Makefile.sub: Updated.
3859 2001-11-19 Bernd Warken <bwarken@mayn.de>
3861 * man/ditroff.man: New file.
3863 2001-11-17 Werner LEMBERG <wl@gnu.org>
3865 * man/groff_differences.man: Renamed to ...
3866 * man/groff_diff.man: This. Updated.
3867 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3869 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3870 * src/preproc/html/pushback.cc: This. Updated.
3871 * src/preproc/html/pushbackbuffer.h: Renamed to ...
3872 * src/preproc/html/pushback.h: This.
3873 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3876 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3877 * src/libs/libgroff/htmlhint.cc: This.
3878 * src/libs/libgroff/Makefile.sub: Updated.
3880 * tmac/an-old.tmac (an-end): Fix page length.
3882 2001-11-16 Werner LEMBERG <wl@gnu.org>
3884 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3885 * man/Makefile.sub: Include groff_differences.man.
3886 * VERSION: Set to 1.18.
3887 * REVISION: Set to 0.
3889 2001-11-16 Bernd Warken <bwarken@mayn.de>
3891 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3892 the second dot (or ending macro name) to end a macro.
3893 * doc/groff.texinfo: Doc fix.
3895 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
3897 * tmac/doc-common (doc-header): Handle very long document titles
3900 2001-11-16 Werner LEMBERG <wl@gnu.org>
3902 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3904 2001-11-15 Werner LEMBERG <wl@gnu.org>
3906 * src/roff/troff/troff.man: Revised and split into troff.man and...
3907 * man/groff_differences.man: New file.
3910 2001-11-13 Werner LEMBERG <wl@gnu.org>
3912 * tmac/an-old.tmac (TS, TE): New macros for table support.
3914 2001-11-12 Werner LEMBERG <wl@gnu.org>
3916 * src/include/lib.h: Provide a fix for emx to not include
3919 2001-10-27 Werner LEMBERG <wl@gnu.org>
3921 * src/roff/troff/input.cc (substring_macro): Fix computation of
3924 2001-10-20 Werner LEMBERG <wl@gnu.org>
3926 Undo change from 2001-08-28.
3928 * src/roff/troff/input.cc (have_input): New global variable.
3929 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3930 in compatibility mode.
3931 (process_input_stack): Use it.
3933 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
3935 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3936 being handled as end-of-sentence characters,
3938 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
3940 * src/roff/troff/input.cc (file_iterator): New members
3941 `suppress_newline_flag' and `seen_escape'.
3942 (file_iterator::next_file): Updated.
3943 (file_iterator::fill): Use it.
3944 (string_iterator): New member `suppress_newline_flag'.
3945 (string_iterator::fill): Set it.
3946 (get_color_element): Use MAX_COLOR_VAL.
3947 * src/roff/troff/env.cc (environment): Remove `need_eol'.
3948 (no_fill): Don't set `env->ignore_next_eol'.
3949 (environment::newline): Handle `eol' tag properly.
3951 (environment::add_html_tag): Set `env->ignore_next_eol'.
3953 * src/roff/troff/env.h (environment): Updated.
3955 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3957 (html_printer::outstanding_eol): New member function.
3958 (html_printer::do_title): Use new functions.
3959 (html_printer::troff_tag): Test `id_eol_ce'.
3961 2001-10-10 Werner LEMBERG <wl@gnu.org>
3963 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3964 files work with -C also.
3966 2001-10-05 Werner LEMBERG <wl@gnu.org>
3968 * doc/pic.ms: Minor fix.
3969 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3970 as a valid command line switch.
3971 * src/devices/grohtml/post-html.cc (main): Ditto.
3973 * src/devices/grohtml/grohtml.man: Updated.
3974 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3976 2001-10-04 Werner LEMBERG <wl@gnu.org>
3978 Implementing color support in troff, pic, grops, and grohtml. These
3979 changes are based on a major patch provided by Gaius Mulley
3982 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3983 definitions with both hex values and fractions.
3985 New escapes: \m and \M for drawing and background color,
3986 respectively. This corresponds to the troff output commands `m'
3989 groff and troff accept command line switch `-c' to disable color
3990 output (which is automatically disabled in compatibility mode).
3992 New scaling indicator `f' for fractions (1f = 65536u).
3994 New conditional operator `m' to test for defined colors with `if'
3997 New keywords `color' (or `colour', `colored', `coloured'), `outline'
3998 (or `outlined'), and `shaded' added to pic.
4000 * src/include/color.h: New file.
4001 * src/include/driver.h: Include it.
4002 * src/include/printer.h: Include color.h.
4003 (environment): New members `col' and `fill'.
4004 (printer): Remove `adjust_arc_center' member function.
4005 * src/include/Makefile.sub: Updated.
4007 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
4009 Handle `m' and `DF' troff commands.
4010 * src/libs/libgroff/color.cc: New file.
4011 * src/libs/libgroff/Makefile.sub: Updated.
4013 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
4015 (createImage): Fix computation of `y2'.
4017 (buffer::write_file_html): Remove calls to `stop'.
4019 * src/preproc/pic/common.h (common_output): New abstract function
4020 members `set_color', `reset_color', `get_last_filled', and
4021 `get_outline_color'.
4022 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
4023 (object_spec): Add members `shaded' and `outlined'.
4024 * src/preproc/pic/output.h (output): `command' is now abstract.
4025 New function members `set_color', `reset_color', `get_last_filled',
4026 and `get_outline_color'.
4027 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
4028 `outline[d]', and `shaded'.
4029 * src/preproc/pic/object.cc (output::command): Removed.
4030 (output::set_location): Moved to output.h.
4031 (graphic_object): Add protected members `outline_color' and
4033 Add member functions `set_outline_color', `get_outline_color', and
4035 (closed_object): Add member function `set_fill_color'.
4036 Add member `color_fill'.
4037 (graphic_object::print_text): Use `out->set_color' and
4039 (box_object::print, ellipse_object::print, circle_object::print,
4040 line_object::print, spline_object::print, arc_object::print): Ditto.
4041 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
4042 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
4043 `SHADED', making them `%left'.
4044 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
4045 * src/preproc/pic/tex.cc (tex_output): New dummy function members
4046 `set_color', `reset_color', `get_last_filled', and
4047 `get_outline_color'.
4048 * src/preproc/pic/troff.cc (simple_output): New abstract function
4049 members `set_color', `reset_color', and `get_last_filled'.
4050 (simple_output::polygon, simple_output::circle,
4051 simple_output::ellipse): Use `get_last_filled'.
4052 (troff_output): New members `last_filled' and `last_outlined'.
4053 New function members `set_color', `reset_color', `get_last_filled',
4054 and `get_outline_color'.
4055 (troff_output::finish_picture): Use `reset_color'.
4056 (troff_output::set_fill): Test `last_filled'.
4057 * src/preproc/pic/pic.man: Updated.
4059 * src/roff/groff/groff.cc (main): Implement `-c' option.
4060 (synopsis, help): Updated.
4061 src/roff/groff/groff.man: Updated.
4063 * src/roff/troff/troff.h: Include color.h.
4064 (warning_type): Add WARN_COLOR.
4065 * src/roff/troff/env.h (environment): New members
4066 `{cur,prev}_{glyph,fill}_color'.
4067 New member functions `get_{prev_,}{glyph,fill}_color'.
4068 * src/roff/troff/env.cc: Initialize and implement them.
4069 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
4070 Replace `NULL' with `0' everywhere for consistency.
4071 (lookup_color, default_black, do_glyph_color, do_fill_color,
4072 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
4073 define_color): New functions.
4074 (token::next): Implement \M and \m escapes.
4075 (do_if_request): Implement `m' operator.
4077 (main): Implement `-c' option.
4078 (init_markup_requests): Add `defcolor' request.
4079 (warning_table): Add `color' warning.
4080 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
4082 * src/roff/troff/node.cc (troff_output_file): New members
4083 `current_{page,glyph}color'. New member functions `put_hex',
4084 `glyph_color', and `fill_color'.
4085 (glyph_color_node::*, fill_color_node::*): Implement it.
4086 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
4087 (parse_term): Add support for `f'.
4088 * src/roff/troff/troff.man: Updated.
4090 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
4092 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
4093 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
4095 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
4096 (tag_definition): Use `void *' for arg1.
4097 (html_text): New member functions `do_color' and `done_color'.
4098 Use `void *' for second parameter of `push_para' member function.
4099 New `push_para' member function with a single parameter.
4100 Use `char *' for parameter of `issue_table_begin' member funtion.
4101 New `issue_color_begin' member function.
4102 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
4104 (html_text::issue_color_begin): New function.
4105 (html_text::issue_table_begin): Use `char *' for parameter.
4106 (html_text::start_tag, html_text::shutdown,
4107 html_text::check_emit_text): Updated.
4108 (html_text::push_para): Use `void *' for second parameter.
4109 Add same function with only one parameter.
4110 (html_text::do_*): Updated.
4111 (html_text::do_color, html_text::done_color): New functions.
4112 * src/devices/grohtml/post-html.cc (style): New member `col'.
4113 Mew member `style' with 6 parameters.
4114 (style::style, style::operator==): Updated.
4115 (html_printer::do_font): Use it.
4116 (html_printer::draw): Add dummy entry for `F'.
4117 (html_printer::set_char): Updated.
4118 * src/devices/grohtml/grohtml.man: Updated.
4120 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
4121 trailing zeroes removed.
4122 (ps_printer): New members `sbuf_color', `fill_color', and
4124 Removed member `fill'.
4125 New member function `set_color'.
4126 (ps_printer::ps_printer, ps_printer::set_char): Updated.
4127 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
4128 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
4130 * tmac/color-html.tmac, tmac/color.tmac: New files.
4131 * tmac/troffrc: Include them.
4132 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
4133 * tmac/Makefile.sub: Updated.
4135 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
4136 man/groff.man: Updated.
4137 * font/devps/prologue.ps: Define FC and CO functions.
4139 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
4141 Fix incorrect cropping of images and incorrect handling of special
4142 characters. Fix handling of file names in \O.
4144 * src/include/geometry.h: New file.
4145 * src/libs/libgroff/geometry.cc: New file.
4146 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
4148 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
4150 (do_suppress): Updated.
4151 * src/roff/troff/node.cc: Include geometry.h.
4152 (troff_output_file::flush_tbuf): Fixed parameters to
4153 `check_output_limits'.
4154 (troff_output_file::check_charinfo): Ditto.
4155 (troff_output_file::determine_line_limits): Add support for `Da'
4158 * src/devices/grohtml/post-html.cc (str_translate_to_html):
4159 Add new parameter `is_special' to decode special characters from
4161 (html_printer::do_title, html_printer::do_heading,
4162 html_printer::do_indentedparagraph,
4163 html_printer::translate_to_html, html_printer::special): Updated.
4165 2001-10-03 Werner LEMBERG <wl@gnu.org>
4167 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
4168 Fix entry for config.h.
4169 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
4170 * tmac/troffrc: Translate nonbreakable space character to `\~'.
4171 * src/preproc/eqn/eqn.man: Document -d command line option.
4173 2001-09-27 Werner LEMBERG <wl@gnu.org>
4175 * man/groff.man: Use
4183 instead of the old code (`.ad .hy' after the table) to suppress
4184 incorrect hyphenation for grohtml output.
4186 2001-09-22 Werner LEMBERG <wl@gnu.org>
4188 * man/groff_font.man, man/groff_out.man: Minor fixes.
4190 2001-09-20 Werner LEMBERG <wl@gnu.org>
4192 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
4193 Arnold Robbins <arnold@skeeve.com>).
4195 2001-09-09 Werner LEMBERG <wl@gnu.org>
4197 * configure: Regenerated with autoconf 2.52.
4199 * doc/groff.texinfo: Complete revision of indices.
4201 2001-09-07 Werner LEMBERG <wl@gnu.org>
4203 * doc/Makefile (clean): Updated to delete all indices.
4205 2001-09-05 Werner LEMBERG <wl@gnu.org>
4207 * src/roff/troff/troff.man: Remove superfluous line.
4209 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
4210 given on the command line (or rather, if only the default warnings
4213 2001-09-03 Werner LEMBERG <wl@gnu.org>
4215 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
4216 use .ne for TTY devices.
4218 2001-08-31 Werner LEMBERG <wl@gnu.org>
4220 * src/roff/troff/token.h, src/roff/troff/input.cc:
4221 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
4223 2001-08-28 Werner LEMBERG <wl@gnu.org>
4225 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
4226 * src/roff/troff/input.cc (token::next): Return
4227 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
4229 (token::description): Updated.
4230 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
4231 (token::add_to_node_list, token::process): Ignore
4232 TOKEN_TRANSPARENT_ESCAPE.
4234 2001-08-27 Werner LEMBERG <wl@gnu.org>
4236 * tmac/an-old.tmac: Fix `S' string.
4238 2001-08-26 Werner LEMBERG <wl@gnu.org>
4240 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
4242 2001-08-25 Werner LEMBERG <wl@gnu.org>
4244 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
4246 Many other minor fixes.
4248 * configure.ac: Add message at end to inform how to compile
4250 * configure: Regenerated.
4252 2001-08-24 Werner LEMBERG <wl@gnu.org>
4254 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
4255 Updated to latest version of libc.
4257 2001-08-23 Werner LEMBERG <wl@gnu.org>
4259 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
4260 Autoconf 2.50 and newer can handle this.
4261 * configure: Regenerated.
4263 2001-08-21 Werner LEMBERG <wl@gnu.org>
4265 * doc/pic.ms: Fix typo.
4266 * src/preproc/tbl/tbl.man: Document case of global options.
4268 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
4270 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
4271 handling of `CR' font.
4273 2001-08-20 Werner LEMBERG <wl@gnu.org>
4275 Use a config.h file.
4277 * src/include/lib.h: Include config.h.
4278 * All C files: Ditto (if necessary).
4279 * All C++ source and header files: Include lib.h first (if
4282 * src/include/config.hin: New file (autogenerated by autoheader).
4283 * stamp-h.in: New file.
4284 * configure.ac: Updated.
4285 * aclocal.m4: Add third parameters to AC_DEFINE macros.
4286 (GROFF_ARRAY_DELETE): Simplified.
4287 * Makefile.sub (DISTCLEANFILES): Updated.
4288 Added targets for remaking config.status, config.hin, config.h,
4289 stamp-h.in, and stamp-h.
4290 * configure: Regenerated.
4292 2001-08-19 Werner LEMBERG <wl@gnu.org>
4296 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
4298 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
4299 (do_sprintf): Use snprintf().
4301 2001-08-18 Werner LEMBERG <wl@gnu.org>
4303 * src/libs/snprintf/*: Added an snprintf module written by Mark
4305 * src/libs/libgroff/Makefile.sub: Updated.
4306 * configure.ac: Add test for snprintf().
4307 * Makefile.in: Updated.
4308 * configure: Regenerated.
4310 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
4313 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
4315 * tmac/doc.tmac (Ex): New implementation.
4316 * tmac/doc-common, tmac/groff_tmac.man: Updated.
4318 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
4320 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
4322 * tmac/groff_tmac.man: Updated.
4324 2001-08-13 Werner LEMBERG <wl@gnu.org>
4326 * src/preproc/tbl/tbl.man: Minor documentation update.
4328 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
4330 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
4331 * configure.ac: Add declaration test for gettimeofday().
4332 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
4333 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
4334 * configure: Regenerated.
4336 2001-08-11 Werner LEMBERG <wl@gnu.org>
4338 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
4339 * configure.ac: Add declaration test for strcasecmp().
4340 * Makefile.in: Updated.
4341 * configure: Regenerated.
4342 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
4343 this is necessary because groff's mkstemp.cc is C++.
4344 Add declaration conditionally for strcasecmp().
4346 2001-08-10 Werner LEMBERG <wl@gnu.org>
4348 Integrated pic2graph, contributed by Eric S. Raymond.
4350 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
4352 * Makefile.in, NEWS: Updated.
4354 * src/preproc/tbl/tbl.man: Revised.
4356 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
4358 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
4360 2001-08-09 Werner LEMBERG <wl@gnu.org>
4362 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
4365 2001-08-08 Paul Eggert <eggert@twinsun.com>
4367 * Makefile.sub (configure): Depend on configure.ac, not
4369 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
4371 2001-08-07 Werner LEMBERG <wl@gnu.org>
4373 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
4376 2001-08-06 Werner LEMBERG <wl@gnu.org>
4378 * src/roff/troff/troff.man: Improve documentation of -E option.
4380 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4382 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
4385 2001-07-27 Werner LEMBERG <wl@gnu.org>
4387 * src/preproc/refer/refer.cc: Undo last change.
4388 * src/devices/grohtml/post-html.cc: Ditto.
4390 2001-07-26 Werner LEMBERG <wl@gnu.org>
4392 * src/preproc/refer/refer.cc: Include `lib.h'.
4393 * src/devices/grohtml/post-html.cc: Ditto.
4395 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
4397 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
4398 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
4399 * Makefile.in: Comment updated.
4400 * configure: Regenerated.
4402 2001-07-25 Werner LEMBERG <wl@gnu.org>
4404 * src/preproc/pic/pic.cc: Removed.
4405 * src/preproc/pic/pic_tab.h: Removed.
4406 * src/preproc/refer/label.cc: Removed.
4408 * doc/Makefile (.ms.html): Don't use a file name extension in
4409 argument to grohtml's -I option.
4410 * Makefile.in (dist): Remove CVS directories.
4411 Call `distfiles' target.
4413 * src/devices/grohtml/grohtml.man: Add information about valid
4414 versions of pnmtopng.
4415 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
4416 name instead of number.
4418 2001-07-24 Werner LEMBERG <wl@gnu.org>
4420 * doc/groff.texinfo: Minor fixes.
4422 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
4424 * doc/Makefile (.ms.html): Put image files into a subdirectory.
4427 2001-07-20 Werner LEMBERG <wl@gnu.org>
4429 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
4430 * src/libs/libgroff/mkstemp.cc: New file.
4431 * src/libs/libgroff/mksdir.cc: New file.
4432 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
4433 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
4434 * src/libs/libgroff/Makefile.sub: Updated.
4435 * src/include/lib.h: Add mksdir() prototype.
4436 * src/include/posix.h: Define S_IXUSR if not yet defined.
4438 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
4439 (createAllPages): Use mksdir() instead of current code.
4440 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
4441 (main): [!HAVE_MKSTEMP]: Removed.
4443 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
4444 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
4446 * configure.ac: Add tests for stdint.h, sys/time.h, and
4448 Call new GROFF_xxx macros.
4449 * configure: Regenerated.
4450 * Makefile.in: Comments updated.
4452 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
4454 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
4455 instead of current code.
4456 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
4457 * src/roff/groff/groff.cc (possible_command::insert_args): New
4459 (main): Use it for predriver handling instead of insert_arg().
4461 2001-07-19 Werner LEMBERG <wl@gnu.org>
4463 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
4466 * src/include/posix.h: Define S_IWUSR if not yet defined.
4468 2001-07-18 Werner LEMBERG <wl@gnu.org>
4472 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
4474 * tmac/groff_mdoc.man: Document new -width and -column syntax.
4475 Some other minor fixes.
4476 * tmac/an-old.tmac: Add `AT' and `UC' macros.
4478 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
4480 Replace call to `troff' with `groff -Z' to make it aware of
4483 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
4484 (troff_command, command_prefix): Removed.
4485 (alterDeviceTo): Use groff.
4486 (addZ): New function.
4487 (char_buffer::do_html): Use it.
4488 (scanArguments): Use TROFF_COMMAND.
4489 (findPrefix): Removed.
4491 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
4493 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
4495 * doc/pic.ms: Documentation fixes.
4497 2001-07-17 Werner LEMBERG <wl@gnu.org>
4499 Replace atexit() with global destructor.
4501 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
4502 (xtmpfile_list_init): New global structure to deallocate
4503 xtmpfile_list on exit. Its destructor inherits most code from
4505 (remove_tmp_files): Deleted.
4506 (add_tmp_file): Simplified.
4508 2001-07-16 Werner LEMBERG <wl@gnu.org>
4510 Replace strdup() with strsave().
4512 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
4513 (set_papersize): Use strsave() and a_delete.
4514 (main): Use strsave().
4515 * src/preproc/html/pre-html.cc (make_message, createAllPages,
4516 removeAllPages): Use strsave() and a_delete.
4518 * configure.ac: Remove test for strdup.
4519 * Makefile.in: Comment updated.
4520 * configure: Regenerated.
4522 2001-07-15 Werner LEMBERG <wl@gnu.org>
4524 * win32-diffs: Updated.
4526 2001-07-14 Werner LEMBERG <wl@gnu.org>
4528 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
4529 removing the old one.
4530 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
4532 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4534 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
4536 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
4538 Merge -xwidth into -width. Add -xwidth functionality to -column
4541 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
4543 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
4544 string immediately following a leading dot starts with a valid mdoc
4546 Add similar code to the -column branch.
4547 (doc-Bl-usage): Updated.
4548 * groff_mdoc.man: s/-xwidth/-width/.
4550 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
4552 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
4553 running into centered or non-formatted text.
4555 2001-07-11 Werner LEMBERG <wl@gnu.org>
4557 Introduce short and long prefixes to have the selection at run-time
4558 whether there is a 8+3 limit for names of temporary files.
4560 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
4561 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
4562 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
4564 (temp_init): New global structure to initialize above three
4566 (xtmptemplate): Use two parameters for long and short prefix.
4567 Simplify code use above three variables.
4568 (xtmpfile): Use long and short prefixes as parameters.
4569 * src/include/lib.h: Updated.
4571 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
4573 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
4574 (createAllPages, makeTempFiles): Updated.
4576 2001-07-09 Werner LEMBERG <wl@gnu.org>
4578 * REVISION: Increased to 3.
4580 Version 1.17.2 released
4581 =======================
4583 2001-07-07 Werner LEMBERG <wl@gnu.org>
4585 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
4588 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
4590 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
4592 * tmac/groff_mdoc.man: Fix synopsis.
4594 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
4596 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
4597 Restore `doc-Pa-font'.
4599 2001-07-04 Werner LEMBERG <wl@gnu.org>
4601 * src/utils/indxbib/dirnamemax.c: Moved to ...
4602 * src/libs/libgroff/maxfilename.cc: Here.
4603 s/dir_name_max/file_name_max/.
4605 * src/include/lib.h: Add file_name_max.
4606 * src/utils/indxbib/indxbib.cc: Updated.
4607 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
4610 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
4612 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
4614 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
4615 REGION_TEMPLATE): New macros.
4616 (createAllPages, makeTempFiles): Use them.
4617 Include `nonposix.h'.
4618 (html_system): New function.
4619 (createAllPages, createImage): Use it.
4622 * tmac/www.tmac: Fix typos.
4624 2001-07-03 Werner LEMBERG <wl@gnu.org>
4626 * tmac/www.tmac: Disable hyphenation in normal text only if output
4628 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
4629 * tmac/groff_mwww.man, NEWS: Updated.
4631 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
4633 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
4636 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
4638 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
4639 doc-display-ps-stack): Implement font and font size stack for
4642 2001-07-02 Werner LEMBERG <wl@gnu.org>
4644 * REVISION: Increased to 2.
4645 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
4647 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
4648 beginning of a line.
4649 * src/groff/grog/grog.sh: Ditto.
4651 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
4653 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
4656 2001-06-27 Werner LEMBERG <wl@gnu.org>
4658 Fix problems with preprocessor string for `man' program.
4660 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
4661 Updated/added copyright.
4662 Moved Emacs's local variable to identify nroff mode to the end of
4663 the file; add local variable if missing.
4665 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
4667 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
4668 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
4669 * configure: Regenerated.
4671 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
4673 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
4674 * configure: Regenerated.
4676 2001-06-24 Werner LEMBERG <wl@gnu.org>
4678 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
4680 * doc/pic.ms: Fix typos.
4682 Version 1.17.1 released
4683 =======================
4685 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
4687 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
4688 * configure: Updated.
4690 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
4692 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
4694 * src/roff/troff/dic.cc (blank_line): Add html tag.
4696 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
4698 * src/roff/troff/input.cc (do_suppress): Fix typo.
4700 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
4702 Added two new options (-D and -I) to specify image names and a
4703 subdirectory to place the images in.
4705 Change syntax from \\Ox to \\O[x].
4707 * src/devices/grohtml/post-html.cc (main): Add options.
4709 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
4710 Use `NULL' instead of `0' for null string pointers.
4711 (MAX_RETRIES): New macro.
4712 (lengthOfintToStr, intToStr, make_message): New functions.
4713 (makeFileName): Make function static.
4714 Implement -D and -I options.
4715 (checkImageDir): New function.
4716 (write_end_image, write_start_image): Use new syntax of \O.
4717 (createAllPages, removeAllPages): Implement -D and -I options. Use
4719 (createImage): Use make_message().
4720 (addps4html): Add guard for malloc().
4721 (usage, scanArguments): Updated.
4722 (makeTempFiles): Use mkstemp().
4723 (removeTempFiles): Use unlink().
4724 (findPrefix): Add guard for malloc().
4726 * src/roff/troff/input.cc (get_delim_file_name): New function to
4728 (do_suppress): Updated to parse new syntax.
4729 * src/devices/grohtml/grohtml.man: Updated.
4730 * tmac/www.tmac: Updated to new syntax.
4734 2001-06-15 Werner LEMBERG <wl@gnu.org>
4736 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
4738 * src/devices/grohtml/grohtml.man: Minor improvements.
4740 2001-06-14 Werner LEMBERG <wl@gnu.org>
4742 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
4744 2001-06-11 Werner LEMBERG <wl@gnu.org>
4746 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
4747 line to specify preprocessor options -- mandb 2.3.1 only recognizes
4749 * src/preproc/grn/grn.man: Add proper '\" string.
4751 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
4753 * test-groff: Don't use PATH but GROFF_BIN_PATH.
4755 2001-06-08 Werner LEMBERG <wl@gnu.org>
4757 Updated to autoconf 2.50.
4759 * configure.in: Renamed to...
4760 * configure.ac: This.
4761 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
4762 (GROFF_OS390): Updated.
4763 * configure: Regenerated.
4765 2001-05-18 Werner LEMBERG <wl@gnu.org>
4767 * src/roff/troff/env.c, src/roff/troff/env.h,
4768 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
4771 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
4773 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
4775 2001-05-16 Werner LEMBERG <wl@gnu.org>
4777 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
4778 less than or equal zero; set it to 1 then.
4779 * src/roff/troff/node.h (node::node): Initialize `last'.
4781 2001-05-08 Werner LEMBERG <wl@gnu.org>
4783 * tmac/an-old.tmac: Make predefined strings work in compatibility
4785 Add troff version guard.
4786 * tmac/doc.tmac: Simplify version guard.
4788 2001-05-07 Werner LEMBERG <wl@gnu.org>
4790 The .ns and .rs requests are now honoured not only in the top-level
4791 but in all diversions (similar to UNIX troff).
4793 This change is based on a patch from Tadziu Hoffmann
4794 <hoffmann@usm.uni-muenchen.de>.
4796 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4797 (top_level_diversion): Remove `no_space_mode' member.
4798 * src/roff/troff/div.cc (diversion::diversion,
4799 top_level_diversion::top_level_diversion): Updated.
4800 (macro_diversion::output): Reset `no_space_mode'.
4801 (no_space, restore_spacing): Use `curdiv' unconditionally.
4802 (space_request, blank_line): Check `curdiv->no_space_mode'.
4803 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4804 `curdiv' unconditionally.
4805 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4808 2001-05-06 Werner LEMBERG <wl@gnu.org>
4810 Added two new requests `de1' and `am1' which are similar to `de' and
4811 `am' with the difference that compatibility mode is saved on entry,
4812 switched off during macro execution, and restored on exit.
4814 * src/roff/troff/input.h: Added two new special characters
4815 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4816 * src/roff/troff/input.cc (input_iterator): Added two member
4817 functions `save_compatible_flag' and `get_compatible_flag'.
4818 (input_stack): Ditto.
4819 (string_iterator): Ditto. Also add private member
4820 `saved_compatible_flag'.
4821 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4822 (calling_mode): New enumeration.
4823 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
4824 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4825 (define_macro, define_indirect_macro, append_macro, ignore): Use
4827 (define_nocomp_macro, append_nocomp_macro): New functions.
4828 (init_input_requests): Updated.
4829 (do_request): Rename local variable `saved_compatible_flag' to
4830 `old_compatible_flag'.
4831 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4833 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4834 public and trap-invoked macros. As a consequence, the man macros
4835 work in compatibility mode also.
4837 2001-05-06 Solar Designer <solar@openwall.com>
4839 * Makefile.in: Use $(mandir).
4841 2001-05-06 Alexios Zavras <zvr@pobox.com>
4843 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4845 2001-05-05 Werner LEMBERG <wl@gnu.org>
4847 Added `.ns' number register: Returns 1 in no-space mode (if in
4848 top-level diversion), 0 otherwise.
4850 * src/roff/troff/div.cc (no_space_mode_reg): New class.
4851 (init_div_requests): Updated.
4852 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4855 2001-05-04 Werner LEMBERG <wl@gnu.org>
4857 * src/roff/nroff/nroff.man: Improved documentation (especially
4860 2001-05-02 Werner LEMBERG <wl@gnu.org>
4862 Added `brp' request: This is \p as a request.
4864 * src/roff/troff/env.cc (environment::do_break): Add parameter
4866 (do_break_request): New function (was `break_request').
4867 (break_request): Calls `do_break_request'.
4868 (break_spread_request): New; calls `do_break_request'.
4869 (init_env_requests): Updated.
4870 * src/roff/troff/env.h: Updated.
4871 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4873 * REVISION: Increased to 1.
4874 * win32-diffs: Updated.
4876 2001-05-01 Werner LEMBERG <wl@gnu.org>
4878 * tmac/an-old.tmac: Fix minor compatibility mode issue.
4879 * tmac/troffrc-end: Make it really work in compatibility mode.
4881 2001-04-27 Werner LEMBERG <wl@gnu.org>
4883 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4886 2001-04-22 Werner LEMBERG <wl@gnu.org>
4888 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4889 latest versions from glibc CVS archive.
4891 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4892 <c.zeelenberg@hccnet.nl>.
4894 2001-04-21 Werner LEMBERG <wl@gnu.org>
4896 * configure.in: Move check for mkstemp() to...
4897 * aclocal.m4 (GROFF_MKSTEMP): This new function.
4898 * configure: Regenerated.
4900 * src/include/groff-getopt.h: Don't use variable names in
4903 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
4904 * src/devices/grohtml/Makefile.sub,
4905 src/devices/grohtml/post-html.cc: Updated.
4907 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
4909 * configure.in: Add special check for mkstemp().
4910 * src/libs/libgroff/tmpfile.cc: Use it.
4911 * src/utils/indxbib/indxbib.cc: Ditto.
4912 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4913 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4916 2001-04-20 Bruce Lilly <blilly@erols.com>
4918 `Version_string' as C++ object was not visible to linker from C
4920 Add `const' to `Version_string'.
4922 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4923 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4924 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4925 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4926 (scanArguments), src/preproc/refer/refer.cc (main),
4927 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4928 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4929 (main), src/devices/grohtml/post-html.cc (main),
4930 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4931 (main), src/utils/hpftodit/hpftodit.cc (main),
4932 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4933 (main), src/utils/lkbib/lkbib.cc (main),
4934 src/utils/addftinfo/addftinfo.cc (main): Implement it.
4936 * src/roff/groff/pipeline.c: Add _UWIN.
4937 * src/include/nonposix.h: Ditto.
4939 2001-04-20 Werner LEMBERG <wl@gnu.org>
4941 * src/include/lib.h: Use HAVE_STRERROR.
4942 * src/roff/groff/pipeline.c: Ditto.
4943 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4944 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4945 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4946 * win32-diffs: Updated.
4947 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4949 2001-04-19 Werner LEMBERG <wl@gnu.org>
4951 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4952 instead of hardwired `"troff"'.
4953 (char_buffer::read_file): Remove unused variables.
4954 (char_buffer::write_file_troff): Ditto.
4955 (char_buffer::write_file_html): Ditto.
4956 (generateImages): Ditto.
4958 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4960 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4962 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4963 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4964 index_search_item::search1): Ditto.
4965 * src/roff/troff/node.h (width_list): Reorder members.
4966 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4967 (lookup_warning): Ditto.
4968 (prepend_string): Commented out.
4969 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4970 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4971 * src/preproc/tbl/main.cc (process_format): Ditto.
4972 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4974 * src/preproc/pic/pic.cc: Updated.
4975 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4976 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4977 * src/preproc/refer/command.cc (execute_command): Ditto.
4978 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4979 * src/preproc/refer/token.cc (lookup_token): Ditto.
4980 * src/preproc/soelim/soelim.cc: Ditto.
4981 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4982 (isHexDigit): Commented out.
4983 (pushBackBuffer::isString): Remove unused variable.
4984 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4986 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4987 resource_manager::read_resource_arg, read_one_of, parse_extensions):
4989 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4990 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4991 lookup_paper_size): Ditto.
4992 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4993 (text_glob, element_list): Reorder members.
4994 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4996 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4997 return value to `void'.
4998 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
5000 * src/devices/grohtml/html.h (simple_output::check_newline,
5001 simple_output::space_or_newline, simple_output::enable_newlines):
5003 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
5005 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
5006 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
5007 output_ligatures, output_charset, read_map): Ditto.
5008 * src/utils/lookbib/lookbib.cc (main): Ditto.
5009 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
5010 (do_file): Fix typo (`=' -> `==').
5011 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
5012 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
5014 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
5016 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
5017 Fix usage of GROFF_BIN_PATH.
5018 * src/roff/nroff/nroff.man: Updated.
5020 2001-04-18 Werner LEMBERG <wl@gnu.org>
5022 * NEWS: Fixing typos.
5025 Version 1.17 released
5026 =====================
5028 2001-04-17 Werner LEMBERG <wl@gnu.org>
5030 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
5031 directory, not in $(srcdir).
5033 2001-04-16 Werner LEMBERG <wl@gnu.org>
5035 * doc/groff.texinfo: More info on conditionals.
5037 2001-04-15 Werner LEMBERG <wl@gnu.org>
5039 * doc/groff.texinfo: Added some info about groff internals.
5041 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
5042 about missing special character only if the name is non-null.
5044 2001-04-14 Werner LEMBERG <wl@gnu.org>
5046 Removing the grohtml-old device driver which is now obsolete.
5048 * src/devices/grohtml-old/*: Removed.
5049 * font/devhtml-old/*: Removed.
5050 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
5052 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
5053 * test-groff (PATH): Updated.
5054 * tmac/Makefile.sub (NORMALFILES): Updated.
5055 * tmac/an-old.tmac: Remove special code for html-old device.
5056 Replace `html-or-html-old' register with `an-html'.
5057 * tmac/eqnrc: Updated.
5058 * tmac/html-old.tmac: Removed.
5059 * tmac/troffrc, tmac/troffrc-end: Updated.
5060 * tmac/www.tmac: Remove special code for html-old device.
5061 Replace `html-or-html-old' register with `www-html'.
5063 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
5064 src/libs/libgroff/htmlindicate.cc (graphic_end),
5065 include/htmlindicate.h, src/preproc/grn/*.cc,
5066 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
5067 single argument for consistency with rest of source code.
5069 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
5071 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
5073 * src/roff/troff/troff.man: Fixing typos.
5075 2001-04-13 Werner LEMBERG <wl@gnu.org>
5077 * doc/pic.ms: Fixing many font switches.
5078 * doc/groff.texinfo: Fixes, additions.
5079 * MORE.STUFF: Updated.
5081 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
5083 * src/devices/grohtml/grohtml.man: Updated manual page regarding
5085 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
5087 (removeTempFiles): New function to tidy up temporary files.
5088 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
5089 Many fixes to do with the new inline suppress node and image regions
5091 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
5092 (generate_img_src): New function.
5093 (html_printer::do_auto_image): Utilizes it.
5094 (do_heading, do_title): Include inline images within their contents.
5095 (html_printer::begin_page): Tidied up comments that are issued to
5096 the html output file.
5097 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
5099 (text_glob::is_br): New method used by do_heading.
5100 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
5101 equivalent diversion.
5102 * src/include/html-strings.h: Altered image tags to reflect the
5104 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
5106 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
5107 it is already inside a pic image. Only emit tags if the argument
5108 `-Tps:html' is present.
5109 * src/preproc/tbl/main.cc: Changes to reflect additional
5110 `html_end_suppress' parameter.
5111 * src/roff/troff/env.cc: Only emit eol tag if a node has been
5112 emitted since the last eol tag was written.
5113 * src/roff/troff/env.h: New boolean `emitted_node'.
5114 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
5115 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
5116 * src/roff/troff/node.cc (check_charinfo): New method.
5117 (troff_output_file::determine_line_limits): Alterations to limit
5119 * tmac/www.tmac: Changes to reflect new suppress nodes.
5121 2001-04-12 Bruno Haible <haible@clisp.cons.org>
5123 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
5124 Escape the html_glyph in the buffer.
5125 (str_translate_to_html): Output the unescaped escaped_char.
5126 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
5127 `frame=void', not `frame=none'. Add `border=0'.
5129 2001-04-12 Werner LEMBERG <wl@gnu.org>
5131 * PROBLEMS: Add some words on how to avoid wrapper macros.
5133 2001-04-11 Blake McBride <blake@florida-software.com>
5135 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
5137 2001-04-11 Werner LEMBERG <wl@gnu.org>
5139 * font/devlbp/Makefile.sub (CLEANADD): Set it.
5140 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
5141 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
5142 * Makefile.sub (DISTCLEANFILES): Here.
5144 * libs/libgroff/new.cc: Include `nonposix.h'.
5145 * win32-diffs: Updated.
5147 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
5149 Added skeleton macro for defunct macros.
5151 Updated documentation.
5153 When inside displays, an empty input line warning should be
5154 suppressed. If another macro call is put inside a display,
5155 all subsequent empty lines found in that display caused a
5156 warning to be emitted.
5158 * tmac/doc.tmac (doc-defunct-macro): New macro.
5159 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
5160 (doc-restore-global-vars): Fixed typo.
5161 (doc-empty-line): Check the `doc-display-depth' register to
5162 determine whether we are inside display or not.
5164 * tmac/doc-common: Removed `Or' and `Sf' registers.
5165 Moved obsolete `Ds' macro to doc.tmac.
5167 * tmac/groff_mdoc.man: Bump document date.
5168 Document `.Vt' under ``Variable Types''.
5169 Removed documentation for obsolete `.Or' macro.
5171 2001-04-10 Werner LEMBERG <wl@gnu.org>
5174 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
5176 2001-04-10 Bruno Haible <haible@clisp.cons.org>
5178 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
5179 (usage): Add stream argument. Don't exit.
5180 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
5181 Write --version output to stdout, not stderr.
5182 (usage): Add stream argument. Don't exit.
5183 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
5184 (usage): Add stream argument. Don't exit.
5185 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
5187 (usage): Add stream argument. Don't exit.
5188 (main): Write --help output to stdout, not stderr.
5189 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
5190 (usage): Add stream argument. Don't exit.
5191 * src/devices/grops/ps.cc (main): Accept --help and --version.
5192 (usage): Add stream argument. Don't exit.
5193 * src/devices/grotty/tty.cc (main): Accept --help and --version.
5194 (usage): Add stream argument. Don't exit.
5195 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
5196 (main): Accept --help and --version.
5197 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
5198 (main): Accept --help and --version.
5199 * src/preproc/html/pre-html.cc (usage): Add stream argument.
5200 (scanArguments): Accept --help and --version.
5201 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
5202 (main): Accept --help and --version.
5203 * src/preproc/refer/refer.cc (main): Accept --help and --version.
5204 (usage): Add stream argument. Don't exit.
5205 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
5207 (main): Accept --help and --version.
5208 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
5209 (main): Accept --help and --version.
5210 * src/roff/groff/groff.cc (main): Accept --help and --version.
5211 (synopsis): Add stream argument.
5212 (help): Write --help output to stdout, not stderr.
5213 (usage): Add stream argument. Don't exit.
5214 * src/roff/grog/grog.pl: Accept --help and --version.
5216 * src/roff/grog/grog.sh: Accept --help and --version.
5217 * src/roff/nroff/nroff.sh: Accept --help and --version.
5218 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
5219 (usage): Add stream argument. Don't exit.
5220 (main): Accept --help and --version.
5221 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
5222 (usage): New function with stream argument, doesn't exit.
5223 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
5224 (usage): New function with stream argument, doesn't exit.
5225 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
5226 (usage): Add stream argument. Don't exit.
5227 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
5228 (main): Accept --help and --version.
5229 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
5231 (main): Accept --help and --version.
5232 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
5233 (main): Accept --help and --version.
5234 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
5235 (usage): Add stream argument. Don't exit.
5237 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
5239 Fix indentation in SYNOPSIS.
5241 Updated to include changes of latest BSD mdoc version (basically,
5242 the only change is that `.Fn' and `.Fc' put a final semicolon after
5243 a function declaration in the SYNOPSIS section).
5245 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
5246 (doc-in-synopsis-section): New variable. Updated all related
5248 (doc-indent-synopsis-active): New register.
5249 (Nd, Fn, Fo): Use it.
5250 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
5251 `.Cd' with long argument line produces indented wrapped lines.
5252 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
5253 undesirable line break to be output.
5254 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
5256 (Fn, Fc): Add final `;' to output.
5257 (doc-save-global-vars, doc-restore-global-vars): Updated.
5258 * tmac/doc-common: Remove `Ex' register.
5260 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
5263 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5265 * tmac/doc.tmac (Cd): Simplify code.
5266 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
5268 2001-04-06 Werner LEMBERG <wl@gnu.org>
5270 Implement continuous underlining for nroff mode. To do that, a new
5271 request in the ditroff language has been added: `x u N' (N is 0
5274 \X and \Y are now transparent to end-of-sentence recognition.
5276 * src/include/printer.h (printer): Add `type' parameter to `special'
5278 * src/libs/libdriver/printer.cc (printer::special): Updated.
5279 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
5281 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
5282 specials of type `p'.
5283 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
5284 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
5285 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
5286 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
5287 (glyph::order): New method.
5288 (tty_printer::add_char): Use it.
5289 (tty_printer::special): New method.
5290 (tty_printer::end_page): Implement it.
5292 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
5293 * src/roff/troff/node.cc (special_node::special_node): Add parameter
5294 to set `no_init_string'.
5295 (special_node::tprint_start): Use it.
5296 (special_node::same, special_node::copy): Updated.
5297 (special_node::ends_sentence): New method.
5298 (troff_output_file::start_special): Add parameter to include
5299 inititialization of special conditionally.
5301 * src/roff/troff/env.h (environment): New member `underline_spaces'.
5302 * src/roff/troff/env.cc (do_underline_special): New function.
5303 (environment::set_font): Use it.
5304 (do_underline): Use it. This was `underline()'.
5305 (underline): Call `do_underline()'.
5306 (continuous_underline): New function which calls `do_underline()'.
5307 (environment::newline): Use `do_underline_special()'.
5308 (init_env_requests): Updated.
5310 * NEWS, man/troff_out.man: Updated.
5312 2001-04-06 Bruno Haible <haible@clisp.cons.org>
5314 * font/devutf8/R.proto: Fix code of 'shc'.
5316 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5318 Many fixes. Diag lists can now be nested also; additionally,
5319 `-compact' and `-offset' are supported.
5321 * tmac/doc.tmac (doc-have-indent): Replaced with ...
5322 (doc-list-have-indent-stackXXX): A new register stack.
5323 (doc-have-diag-list): Removed.
5324 (Bl): Use `doc-list-have-indent-stackXXX'.
5326 (doc-diag-list): Use `doc-compact-list-stackXXX'.
5327 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
5328 (doc-set-vertical-and-indent): Ditto.
5329 (doc-next-list-depth): Removed.
5330 (doc-increment-list-stack): Updated.
5331 (doc-decrement-list-stack): Use `doc-list-depth' instead of
5332 `doc-next-list-depth'.
5333 (doc-end-list, doc-end-column-list): Don't use
5334 `doc-increment-list-stack'.
5335 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
5336 (doc-save-global-vars, doc-restore-global-vars): Updated.
5337 * tmac/doc-common: Updated.
5338 * tmac/groff_mdoc.man: Updated.
5341 2001-04-02 Werner LEMBERG <wl@gnu.org>
5343 * src/devices/grotty/grotty.man: Fix grammatical error.
5345 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
5347 Remove .Ld from mdoc package; replace it with special handling of
5350 * tmac/doc-common: Remove `Ld' register.
5351 Uncomment `doc-volume-ds-*' strings.
5352 Remove `doc-operating-system-default'.
5354 * tmac/doc-syms (Ld): Removed.
5355 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
5359 * tmac/groff_mdoc.man: Many fixes and updates.
5361 2001-03-29 Werner LEMBERG <wl@gnu.org>
5363 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
5364 Bond <tkb@tkb.mpl.com>.
5365 * tmac/www.tmac: Save compatibility mode.
5367 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
5369 * tmac/groff_mdoc.man: Many fixes.
5371 2001-03-28 Werner LEMBERG <wl@gnu.org>
5373 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
5376 2001-03-27 Werner LEMBERG <wl@gnu.org>
5378 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
5379 diversion. This fixes overlong tags.
5381 2001-03-26 Werner LEMBERG <wl@gnu.org>
5383 * doc/groff.texinfo: Fixed and improved documentation of fonts.
5384 * tmac/doc-syms: Fix error messages.
5385 * tmac/an-old.tmac: Remove incorrect double backslashes.
5387 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
5389 * tmac/Makefile.sub: Strip mdoc.local also
5390 * tmac/strip.sed: Fixed.
5392 2001-03-24 Werner LEMBERG <wl@gnu.org>
5394 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
5395 selecting the font size.
5396 * tmac/groff_mdoc.man, NEWS: Document it.
5398 2001-03-23 Werner LEMBERG <wl@gnu.org>
5400 * src/roff/troff/div.cc (save_vertical_space): Add default argument
5402 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
5403 argument to restore previous font family.
5404 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
5406 * doc/groff.texinfo: More fixes and additions (mainly for font
5407 manipulating commands).
5409 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
5410 * tmac/groff_mdoc.man: This. The quick reference has been removed.
5411 * tmac/Makefile.sub, NEWS: Updated.
5413 2001-03-23 Werner LEMBERG <wl@gnu.org>
5415 Replaced mdoc implementation. The new version is `state of the
5416 art', using almost all new features of groff 1.17 -- it won't run
5417 with older versions.
5419 * tmac/doc.tmac: Completely rewritten.
5420 * tmac/doc-common: Ditto.
5421 * tmac/doc-nroff: Ditto.
5422 * tmac/doc-ditroff: Ditto.
5423 * tmac/doc-syms: Ditto.
5424 * tmac/mdoc.local: New file.
5425 * tmac/groff_mdoc.samples.man: Replaced with ...
5426 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
5427 * tmac/strip.sed: Updated.
5428 * tmac/Makefile.sub: Updated.
5431 * tmac/groff_man.man: Add `man.local' to the FILES section.
5433 2001-03-22 Werner LEMBERG <wl@gnu.org>
5435 * doc/groff.texinfo: Added many @noindent.
5436 Replaced @end_Example -> @endExample.
5437 Added info whether registers are r/o.
5438 Many other additions and fixes.
5440 2001-03-21 Werner LEMBERG <wl@gnu.org>
5442 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
5443 in makeinfo of texinfo 4.0) to be used in @Def* macros.
5444 Improved @Def* macros: Now the exact syntax of request, register,
5445 and escapes is shown.
5446 Added macros for parentheses and brackets to be used in @Def*.
5447 Many fixes and improvements of the documentation.
5449 2001-03-20 Werner LEMBERG <wl@gnu.org>
5451 * doc/groff.texinfo: Added new index: `st' (for strings).
5452 Added macros @Defstr(x).
5453 Added macro @Example (adding @group).
5454 Other minor improvements.
5456 2001-03-19 Werner LEMBERG <wl@gnu.org>
5458 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
5459 `rq' for requests. `fn' is no longer used.
5460 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
5463 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
5464 number with name of man page.
5466 2001-03-19 Larry Kollar <kollar@alltel.net>
5468 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
5471 2001-03-19 Werner LEMBERG <wl@gnu.org>
5473 * man/groff_font.man: Document `prepro', `postpro', and `print'.
5474 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
5475 * src/devices/grohtml/grohtml.man: Fixing typos.
5477 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
5479 * tmac/s.tmac (@IP): Pass `.ip' html tag.
5480 * tmac/groff_mwww.man: Remove .LINE macro
5481 * tmac/www.tmac (LINE): Add `.ti'.
5483 * src/devices/grohtml/post-html.cc (html_printer): New member
5485 (html_printer::emit_raw): Use it.
5486 (html_printer::do_linelength): Ditto.
5487 (html_printer::do_pageoffset): Ditto.
5488 (html_printer::do_indentation): Ditto.
5489 (html_printer::do_tempindent): Ditto.
5490 (html_printer::do_break): Ditto.
5491 (html_printer::begin_page): Ditto.
5492 (html_printer::do_indentedparagraph): New function.
5493 (html_printer::troff_tag): Handle `.ip'.
5494 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
5495 Add `<td width=...>' handling.
5496 (html_text::do_table): Add parameter.
5497 (html_text::do_indent): Updated.
5498 * src/devices/groohtml/html-text.h: Updated.
5500 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
5502 Introduced simple html tables to implement indentation.
5504 * src/devices/grohtml/html.h (word, word_list): New structures.
5505 (simple_output): Use it.
5506 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
5507 (html_printer): Improve indentation handling.
5508 (html_printer::emit_raw): Set `in_table' element. Handle
5510 (html_printer::write_header): Move conditional downwards.
5511 Don't allow whitespace in tags.
5512 (html_printer::do_linelength): Handle line length and indentation
5514 (html_printer::do_pageoffset): Handle indentation conditionally.
5515 (html_printer::do_indentation): Ditto.
5516 (html_printer::do_tempindent): New function member.
5517 (html_printer::do_fill): Take care of indentation.
5518 (html_printer::do_flush): Finish table.
5519 (html_printer::do_links): Ditto.
5520 (html_printer::do_break): New function for handling `.br' and `.ti'.
5521 (html_printer::troff_tag): Use it.
5523 (html_printer::flush_globs): Fix.
5524 (html_printer::flush_page): Finish table.
5525 (html_printer::html_printer): Fix error message. Set up
5527 (html_printer::add_to_sbuf): Remove special handling of character
5529 (to_unicode): Remove `stop()'.
5530 (html_printer::write_title): Cleanup.
5531 (html_printer::begin_page): Use `put_string()'. Handle indentation.
5532 (html_printer::~html_printer): Flush text and end the line.
5534 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
5535 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
5537 (html_text::start_tag): Disable newlines.
5538 (html_text::table_is_void): New function.
5539 (html_text::issue_table_begin): Ditto.
5540 (html_text::issue_table_end): Ditto.
5541 (html_text::push_para): Better table handling.
5542 (html_text::do_indent): New function.
5543 (html_text::do_table): Ditto.
5544 (html_text::done_table): Ditto.
5545 (html_text::do_tt): Handle PRE_TAG.
5546 (html_text::is_in_table): New function.
5547 (html_text::check_emit_text): Handle tables.
5548 (html_text::do_emittext): Use `nl()'.
5549 (html_text::do_para): Handle table.
5550 (html_text::remove_def): New function.
5551 * src/devices/grohtml/output.cc (word, word_list): Implement
5553 (simple_output::end_line): Flush last word.
5554 (simple_output::simple_comment): Ditto.
5555 (simple_output::begin_comment): Recoded.
5556 (simple_output::end_comment): Ditto.
5557 (simple_output::comment_arg): Removed.
5558 (simple_output::check_newline): Improve test and flush last word.
5559 (simple_output::space_or_newline): Improved.
5560 (simple_output::write_newline): Replaced with...
5561 (simple_output::nl): This.
5562 (simple_output::put_raw_char): Flush last word.
5563 (simple_output::check_space): Removed.
5564 (simple_output::put_translated_string): Ditto.
5565 (simple_output::put_string): Simplified.
5566 (simple_output::put_number): Updated.
5567 (simple_output::put_float): Ditto.
5568 (simple_output::put_symbol): Removed.
5569 (simple_output::enable_newlines): Add `check_newline()'.
5570 (simple_output::flush_last_word): New function.
5572 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
5573 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
5575 * tmac/s.tmac (@PP, @IP): Add html conditional code.
5576 * tmac/an-old.tmac (TP): Ditto.
5578 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
5580 * mdate.sh: Make it POSIX compliant.
5582 2001-03-09 Werner LEMBERG <wl@gnu.org>
5584 Added the `return' request to end a macro immediately. It simply
5585 pops iterators from the input stack until a macro iterator is found.
5587 * src/roff/troff/input.cc (input_iterator::is_macro,
5588 macro_iterator::is_macro): New member.
5589 (input_return_boundary): New class to signal an immediate return
5591 (input_stack::add_return_boundary, input_stack::is_return_boundary):
5593 (input_stack::clear): Use it.
5594 (input_stack::pop_macro): New function.
5595 (while_request): Use `is_return_boundary()'.
5596 (return_macro_request): New function.
5597 (init_input_requests): Use it.
5599 * src/roff/troff/TODO: Updated.
5600 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5602 2001-03-08 Werner LEMBERG <wl@gnu.org>
5604 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
5607 2001-03-07 Werner LEMBERG <wl@gnu.org>
5609 Make `\B' more rigid.
5611 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
5613 (get_number_rigidly): New function.
5614 * src/roff/troff/input.cc (do_expr_test): Use it.
5615 * src/roff/troff/token.h: Updated.
5617 * src/roff/troff/request.h: Fix typo (init_html_request ->
5618 init_markup_request).
5620 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
5622 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
5623 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
5624 are now `.begin', `.end', `.image'.
5626 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
5627 (html_printer::add_to_sbuf): Changing type of `code' parameter.
5628 Use add_char_to_sbuf().
5629 (to_unicode): New function.
5630 (char_translate_to_html): Changing type of `ch' parameter.
5632 (html_printer::~html_printer): Comment out doctype string.
5633 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
5634 instead of `.html-end'.
5635 (write_start_image): Use `.begin' and `.image' instead of
5636 `.html-begin' and `.html-image'.
5637 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
5638 (html_begin): Renamed to ...
5640 (html_end): Renamed to ...
5642 (html_image): Renamed to ...
5644 (init_html_requests): Renamed to ...
5645 (init_markup_requests): This.
5646 * tmac/www.tmac: Updated.
5648 2001-02-28 Bram <bram@avontuur.org>
5650 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
5653 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
5655 * doc/meref.me: Fixing some typos.
5657 2001-02-16 Werner LEMBERG <wl@gnu.org>
5659 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
5660 method. Return `HYPHEN_MIDDLE' if it was `\:'.
5661 * src/roff/troff/node.h: Updated.
5663 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
5665 * tmac/groff_tmac.man: Fix typo.
5667 2001-02-16 Werner LEMBERG <wl@gnu.org>
5669 Fixing a bug which prevented proper end-of-sentence recognition
5670 between an `unformatted' box and the following text. As a
5671 consequence, vertical line distances are no longer preserved in
5672 boxes after a call to `.unformat' -- because boxes aren't
5673 line-oriented (contrary to diversions), this doesn't make sense
5676 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
5678 (vertical_size_node::set_unformat_flag): New method.
5679 * src/roff/troff/node.hh: Updated.
5680 * src/roff/troff/input.cc (word_space_node::reread,
5681 hmotion_node::reread): Reset `unformat' flag after usage.
5682 (unformat_macro): Append only if `set_unformat_flag()' returns
5684 * src/roff/troff/troff.man: Updated.
5686 2001-02-15 Werner LEMBERG <wl@gnu.org>
5688 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
5689 documentation of `asciify' and `unformat' requests.
5691 2001-02-13 Werner LEMBERG <wl@gnu.org>
5693 Redesigned the `unformat' request. It is no longer connected with
5694 `asciify' but rather uses new `reread()' methods if the `unformat'
5695 flag is set. Additionally, the handling of space characters after
5696 unformatting has been fixed so that they retain their width.
5698 * src/roff/troff/node.h (width_list): New structure to store
5699 original widths of spaces.
5700 (node): Added `unformat' member.
5701 Replaced `num_spaces' variable with `orig_width' list.
5702 * src/roff/troff/node.cc (*node::asciify,
5703 asciify_reverse_node_list): Removed `unformat_only' flag and related
5705 (word_space_node::asciify, word_space_node::word_space_node): Use
5707 (word_space_node::~word_space_node): New destructor.
5708 (word_space_node::copy): Updated to handle `orig_width'.
5709 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
5710 (*node::merge_space): Update `orig_width' list if necessary.
5711 (*node::set_unformat_flag): New methods to set the `unformat' flag.
5712 * src/roff/troff/enc.cc (environment::space_newline): Use
5714 (environment::space): Added method to handle space width and
5715 sentence space width as parameters. Use `width_list'.
5716 (environment::make_tab_node): Updated.
5717 * src/roff/troff/env.h: Updated.
5718 * src/roff/troff/input.cc (word_space_node::reread,
5719 unbreakable_space_node::reread, hmotion_node::reread): New methods
5720 to handle nodes specially if `unformat' flag is set.
5721 (do_asciify_macro): Renamed back to ...
5722 (asciify_macro): This.
5723 (unformat_macro): New implementation to simply set the `unformat'
5726 * MORE.STUFF: Added more info about deroff.
5728 2001-02-08 Werner LEMBERG <wl@gnu.org>
5730 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5731 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
5732 and `add_self()' methods to avoid hyphenation. For example, the
5733 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
5734 soft hyphen after `foo'. Now the hyphen list is correctly
5735 `foo<ignore><ignore>bar'.
5737 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
5739 * tmac/groff_tmac.man: Fix `BIR' macro.
5741 2001-02-04 Werner LEMBERG <wl@gnu.org>
5743 A new escape sequence `\:', inserting a zero-width break point.
5745 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
5746 * src/roff/troff/input.cc (get_copy, token::next, asciify):
5748 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
5750 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
5751 and `asciify()' methods.
5752 * src/roff/troff/node.cc (space_node::space_node): Updated.
5753 (space_node::asciify): Handle `was_escape_colon'.
5754 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5756 Handle `\~' similar to other comparable requests.
5758 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
5760 (token::next): Move creation of an unbreakable_space_node to...
5761 (token::add_to_node_list): Here.
5763 Fix a bug which sometimes prevented hyphenation of words connected
5764 with `\~' or `\ ' (and other escape sequences handled as
5765 TOKEN_NODE). This also fixes a hyphenation problem with boxes
5766 (after a call to the `unformat' request).
5768 * src/roff/troff/env.h (environment::possibly_break_line,
5769 environment::hyphenate_line): Introducing `start_here' parameter.
5770 * src/roff/troff/env.cc (environment::space_newline,
5771 environment::space): Use it.
5772 (environment::possibly_break_line, environment::hyphenate_line):
5774 * src/roff/troff/input.cc (process_input_stack): Use it.
5775 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5776 space_char_hmotion_node, overstrike_node): Add
5777 `get_hyphenation_type()' method.
5778 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
5779 if `unformat_only' is active.
5781 2001-01-30 Werner LEMBERG <wl@gnu.org>
5783 Implemented new read-only number register `.linetabs' which
5784 returns 1 if in line-tabs mode, 0 otherwise.
5786 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5787 * src/roff/troff/env.cc (get_line_tabs): New function.
5788 (init_env_requests): Use it.
5789 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5791 * VERSION, REVISION: Changing to 1.17.0.
5793 2001-01-28 Werner LEMBERG <wl@gnu.org>
5795 Fixed a bug which prevented hyphenation of words which are finished
5798 * src/roff/troff/token.h (token): Add enum type
5799 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5800 * src/roff/troff/input.cc (token::next, token::description,
5801 get_line_arg, token::add_to_node_list, token::process): Use it.
5803 2001-01-27 Werner LEMBERG <wl@gnu.org>
5805 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5806 * src/roff/troff/div.cc (do_divert): Use it.
5808 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5810 2001-01-25 Werner LEMBERG <wl@gnu.org>
5812 Adding the `linetabs' request. If set, tab distances are not
5813 computed relative to the input line but relative to the output line.
5815 * src/roff/troff/env.h (environment): New member `line_tabs'.
5816 * src/roff/troff/env.cc (line_tabs_request): Implement request.
5817 (environment::environment, environment::copy): Updated.
5818 (environment::distance_to_next_tab): Use `line_tabs'.
5819 (init_env_requests): Register request.
5820 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
5823 2001-01-24 Werner LEMBERG <wl@gnu.org>
5825 Introducing a new read-only register `.int' which is set to a
5826 positive value if the last output line is interrupted (i.e., if it
5829 * src/roff/troff/env.cc (init_env_requests): Add it.
5830 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5832 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
5834 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5835 * src/preproc/html/pre-html.cc (findPrefix): New function which
5836 generates the troff executable name via the system prefix.
5837 * src/preproc/eqn/main.cc: Modified warning message.
5839 2001-01-23 Werner LEMBERG <wl@gnu.org>
5841 troff's `box' and `boxa' requests didn't preserve temporary
5844 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5845 `saved_target_text_length' members.
5846 * src/roff/troff/div.cc (do_divert): Use them.
5848 Tabs (but not yet leaders and fields) are now handled correctly by
5851 * node.h (hmotion_node): Add field `was_tab'.
5852 * env.cc (environment::make_tab_node): Set it.
5853 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5855 Added new request `unformat' which will, contrary to `asciify',
5856 preserve font information after unformatting (i.e., only nodes
5857 dealing with horizontal space are converted back to input
5860 * input.cc (asciify_macro): Renamed to ...
5861 (do_asciify_macro): this, having a new parameter `unformat_only'.
5862 (asciify_macro, unformat_macro): New; using do_asciify_macro.
5863 (init_input_requests): Added `unformat'.
5864 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5865 parameter to control asciification process.
5866 * node.h (*_node::asciify): Ditto.
5867 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5869 2001-01-20 Werner LEMBERG <wl@gnu.org>
5871 * doc/groff.texinfo: Minor improvement of `.in' documentation.
5873 2001-01-18 Werner LEMBERG <wl@gnu.org>
5875 * tmac/ps.tmac: Remove call of psold.tmac.
5876 * tmac/psold.tmac: Comment updated.
5877 * tmac/psnew.tmac: Removed since no longer needed.
5878 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5880 * font/devutf8/R.proto: Adding `shc' glyph.
5881 * font/devutf8/NOTES: Updated.
5883 * test-groff: Updated.
5885 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
5887 First cut of the new html device driver. Changes to pre-html and
5888 the new grohtml are too numerous to be documented here.
5890 Stuff related to `html' has been renamed to `html-old' and `html2'
5891 stuff has been renamed to `html' (including directories). The new
5892 html device driver is therefore invoked as `-Thtml'.
5894 Added new `\O' escape to suppress output (needed by html driver).
5896 Added functions and code to pass info about input-level commands
5897 (`.in', `.fl', etc.) to html driver.
5899 Three new functions (.html-begin, .html-end, and .html-image) for
5900 better html handling: `html-begin' will execute the remaining line
5901 if at the outermost nesting level, increasing an internal counter.
5902 `html-end' does the same but decreases the internal counter.
5903 `html_image' puts its arguments into a special node (suppress_node)
5904 to define an image region.
5906 The `output' request has been removed.
5908 * tmac/html-tags.tmac: Removed.
5909 * tmac/arkup.tmac: Updated and renamed to ...
5910 * tmac/www.tmac: New file.
5911 * tmac/markup.tmac Updated and renamed to ...
5912 * tmac/mwww.tmac: New file.
5913 * tmac/Makefile.sub: Updated.
5914 * tmac/an-old.tmac: Updated.
5915 * tmac/eqnrc: Updated.
5916 * tmac/groff_man.man
5917 * tmac/groff_markup.man: Updated and renamed to ...
5918 * tmac/groff_mwww.man: New file.
5919 * tmac/groff_tmac.man: Updated.
5920 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5921 * tmac/html.tmac: Updated and renamed from html2.tmac.
5922 * tmac/pspic.tmac: Updated html support.
5923 * tmac/s.tmac: Added html output support.
5924 * tmac/troffrc, tmac/troffrc-end: Updated.
5926 * Makefile.in, doc/Makefile: Updated.
5927 * doc/groff.texinfo: Added info about new `\O' escape.
5928 * doc/homepage.ms: Use `MAILTO' macro.
5930 * font/devhtml/DESC.proto: Add `C' font.
5931 * font/devhtml/Makefile.sub: Updated.
5932 * font/devhtml/R.proto: Minor fixes.
5933 * font/devhtml-old/Makefile.sub: Updated.
5935 * src/devices/grohtml-old/Makefile.sub: Updated.
5937 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5939 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5940 graphic_start): Add `inline' parameter. Update.
5941 (html_end_suppress, graphic_end): Update.
5943 * src/include/html-strings.h: New file.
5944 * src/include/htmlindicate.h: Comments updated.
5945 * src/include/printer.h: Updated.
5947 * src/preproc/eqn/main.cc (do_file, main): Updated.
5948 * src/preproc/pic/troff.cc (troff_output::start_picture,
5949 troff_output::finish_picture): Updated.
5950 * src/preproc/tbl/main.cc (process_input_file): Updated.
5952 * src/roff/groff/groff.cc (main): Updated.
5953 Pass device arguments to predrivers also.
5954 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5955 * src/roff/troff/env.h (environment): Updated.
5956 New elements `need_eol' and `ignore_next_eol' (for html output).
5957 * src/roff/troff/env.cc (environment::environment): Add initializers
5958 for `need_eol' and `ignore_next_eol'.
5959 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5961 (point_size, fill, no_fill, center, right_justify, line_length,
5962 indent, temporary_indent, break_request, handle_tab): Use
5964 (set_tabs): Use `add_html_tag_tabs()'.
5965 (environment::add_html_tag): Updated.
5966 (environment::do_break): Updated.
5967 * src/roff/troff/div.cc (space_request, flush_output): Use
5968 `environment::add_html_tag()'.
5969 * src/roff/troff/input.cc: Updated.
5970 New variable `html_level' to indicate nested `html-begin' requests.
5971 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5972 (non_interpreted_char_node, token_node, non_interpreted_node): Add
5973 `force_tprint()' method.
5974 (token::next): Handle `\O'.
5975 (do_suppress): Implement it.
5976 (html_begin, html_end, html_image): New functions.
5977 (init_output_requests): Renamed to ...
5978 (init_html_requests): this.
5980 (macro::append_str, macro::append_unsigned, macro::append_int): New
5982 New variable `output_low_mark_miny' to limit minimal value of y.
5983 (reset_output_registers): Use it.
5984 (output_request): Removed.
5985 (get_output_registers): New function.
5986 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5987 (*_node): Added `force_tprint()' if necessary.
5988 (special_node): New elements `tf' and `get_tfont()'.
5989 (suppress_node): New class.
5990 * src/roff/troff/node.cc:
5991 New global variables `image_no' and `suppress_start_page'.
5992 (real_output_file): New method `is_on()'.
5993 (troff_output_file): New method `start_special(tfont)'.
5994 (troff_output_file::really_print_line): Use `tprint' conditionally.
5995 (real_output_file::print_line): Updated.
5996 (real_output_file::on): Updated.
5997 (*_node): Added `force_tprint()'.
5998 (special_node::special_node): Initializer updated.
5999 (special_node::same, special_node::copy, special_node::tprint_start):
6001 (get_reg_int, get_reg_str): New functions.
6002 (suppress_node::*): New methods.
6003 New global variables last_position, last_image_filename;
6004 (min): New inline function.
6005 * src/roff/troff/reg.h, src/roff/troff/request.h,
6006 src/roff/troff/troff.h: Updated.
6008 2001-01-13 Werner LEMBERG <wl@gnu.org>
6010 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
6011 documentation of `asciify' request.
6013 2001-01-12 Werner LEMBERG <wl@gnu.org>
6015 * src/roff/troff/input.cc: Move definition of special characters
6016 like `ESCAPE_TILDE' to ...
6017 * src/roff/troff/input.h: New file.
6018 * src/roff/troff/Makefile.sub (HDRS): Add it.
6020 Extending the .asciify request to `unformat' space characters also.
6022 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
6023 to count input space characters.
6024 Update constructors to take care of it.
6025 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
6026 `ESCAPE_SPACE' instead of normal space.
6027 (word_space_node::asciify): New method.
6028 (unbreakable_space_node::asciify): New method.
6029 (word_space_node::merge_space): New method.
6030 * src/roff/troff/env.cc (environment::space_newline,
6031 environment::space): Add code to initialize `num_spaces' (using the
6032 constructor of `word_space_node').
6033 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6036 2001-01-09 Werner LEMBERG <wl@gnu.org>
6038 * man/groff_char.man: Use table header traps only conditionally.
6040 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
6042 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
6044 2001-01-08 Werner LEMBERG <wl@gnu.org>
6046 Introducing the `box' and `boxa' requests which are similar to
6047 `di' resp. `da' but omitting a partially filled line (which is
6048 restored after ending the diversion).
6050 * src/roff/troff/div.h (diversion): Add elements to save partially
6052 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
6053 partially filled line.
6054 (divert, divert_append): Updated.
6055 (box, box_append): New functions.
6056 (init_div_requests): Use them.
6057 * src/roff/troff/env.h (environment): do_divert() is now a friend.
6058 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6060 * doc/groff.texinfo: Fix documentation of `lf' request.
6062 2000-12-25 Werner LEMBERG <wl@gnu.org>
6064 * src/roff/troff/troff.man, NEWS: Document `writem' request.
6066 2000-12-21 Werner LEMBERG <wl@gnu.org>
6068 Ignore `ss' request if in compatibility mode.
6070 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
6071 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
6072 * src/roff/troff/env.cc (space_size): Use it.
6074 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
6075 `ss' request in nroff mode.
6077 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
6080 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
6082 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
6084 2000-12-13 Werner LEMBERG <wl@gnu.org>
6086 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
6087 * src/preproc/eqn/neqn.man: Small fixes and additions.
6089 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
6091 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
6094 * src/preproc/eqn/neqn.man: New file.
6096 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
6099 * tmac/e.tmac: Add `T&' macro.
6100 Fix `indent cannot be negative' warning.
6101 * tmac/s.tmac: Fix `indent cannot be negative' warning.
6103 2000-12-07 Werner LEMBERG <wl@gnu.org>
6105 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
6107 2000-12-06 Werner LEMBERG <wl@gnu.org>
6109 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
6112 * MORE.STUFF: Added info about deroff for djgpp.
6114 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
6115 documentation of -rcR switch.
6117 2000-12-03 Werner LEMBERG <wl@gnu.org>
6119 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
6120 if -rcR=1 (which is now the default in nroff mode), a single, very
6121 long page is created instead of multiple pages: All `ne' and `wh'
6122 requests are put into conditionals; a new macro `an-end' is added to
6123 be called with `em'.
6125 Some other minor cleanups.
6127 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
6129 2000-12-02 Werner LEMBERG <wl@gnu.org>
6131 Fixing a bug which prevented hyphenation in words followed
6132 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
6134 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
6135 Adding possibly_break_line().
6136 * src/roff/troff/env.h (environment): Make possibly_break_line()
6139 Make `\~' usable in .tr request.
6141 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
6142 (token): Add stretchable_space().
6143 * src/roff/troff/input.cc (token::next, token::delimiter,
6144 token::description, process_input_stack, do_translate,
6145 add_to_node_list, token::process): Use it.
6146 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
6147 for adjusting the space.
6148 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
6149 for stretchable space.
6150 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
6151 (make_node): Add code for stretchable space.
6152 * src/roff/troff/env.cc (environment::add_char): Use it.
6153 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
6154 (get_copy, token::next, transparent_translate, asciify): Use it.
6156 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
6157 doc/groff.texinfo: Updated.
6158 * man/groff.man: Small reorderings.
6160 2000-11-23 Werner LEMBERG <wl@gnu.org>
6163 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
6165 * src/roff/troff/input.cc (main): Add `config_macro_path' and
6166 `safer_macro_path' to -M option.
6167 * src/roff/troff/troff.man: Fixes.
6169 2000-11-22 Werner LEMBERG <wl@gnu.org>
6171 Use safer path (except for config files) if -U isn't specified. Add
6172 a special macro path (without home and current directory) for config
6173 files. Add home directory to unsafe path for consistency. Don't
6174 include the home directory in the font path.
6176 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
6178 * src/include/macropath.h: Add `config_macrp_path'.
6179 * src/libs/libgroff/fontfile.cc: Fix font path.
6180 * src/roff/troff/input.cc (process_startup_file): Use
6181 `config_macro_path'.
6182 (main): Select unsafe path if -U is given.
6184 * src/preproc/eqn/main.cc (main): Fixing search path for
6186 * src/preproc/eqn/eqn.man: Updated.
6188 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
6191 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
6192 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
6193 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6194 src/devices/grotty/grotty.man: Updated.
6196 * Makefile.in: Fix comments.
6198 2000-11-17 Werner LEMBERG <wl@gnu.org>
6200 * tmac/safer.tmac: Empty file added (again) for compatibility
6202 * tmac/Makefile.sub: Updated.
6204 2000-11-16 Werner LEMBERG <wl@gnu.org>
6206 * src/devices/grodvi/dvi.cc (main),
6207 src/devices/grohtml2/post-html.cc (main),
6208 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6209 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6210 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6211 (main), src/preproc/html2/pre-html.cc (main),
6212 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6213 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6214 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6215 (main), src/utils/hpftodit/hpftodit.cc (main),
6216 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
6217 (main), src/utils/lookbib/lookbib.cc (main),
6218 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
6219 (main): Use stdout for -v.
6220 * src/roff/groff/groff.cc (run_commands),
6221 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
6222 to make direct printing to stdout possible.
6223 * src/roff/groff/pipeline.h: Updated.
6225 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
6226 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
6227 * src/utils/afmtodit/afmtodit.man: Updated.
6229 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
6230 (version): New function.
6232 * src/utils/addftinfo/addftinfo.man: Updated.
6234 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
6235 Fixing copyright dates.
6237 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
6240 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
6243 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
6245 2000-11-15 Werner LEMBERG <wl@gnu.org>
6247 In all programs, make -v return immediately with exit status 0 to
6248 be compliant with the GNU standard.
6250 * src/devices/grodvi/dvi.cc (main),
6251 src/devices/grohtml2/post-html.cc (main),
6252 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6253 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6254 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6255 (main), src/preproc/html2/pre-html.cc (main),
6256 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6257 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6258 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6259 (main): Implement it.
6262 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
6263 and postprocessors to the -v option.
6265 * src/roff/grog/grog.pl: Implement -v.
6266 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
6267 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6269 * src/roff/nroff/nroff.sh: Implement -v.
6270 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
6271 * src/roff/nroff/nroff.man: Updated.
6273 * src/preproc/eqn/main.cc (main): Fix comment typo.
6275 * MORE.STUFF: Added info about djgpp port of grap.
6277 2000-11-14 Werner LEMBERG <wl@gnu.org>
6279 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
6280 mode (or rather, implemented non-compatibility mode).
6281 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6283 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
6284 replacing it -- we don't find gxditview otherwise.
6285 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
6287 * src/preproc/pic/depend: Removed. Unnecessary.
6289 Implemented dummy keyword `solid' in pic for compatibility with
6292 * lex.cc (lookup_keyword): Added `solid'.
6293 * pic.y: Added SOLID with dummy rule.
6294 * pic.cc, pic_tab.h: Regenerated.
6295 * doc/pic.ms: Updated.
6297 2000-11-13 Werner LEMBERG <wl@gnu.org>
6299 For security reasons, don't use the current directory but the home
6300 directory while searching and scanning troffrc and troffrc-end.
6301 Similarly, replace the current directory with the home directory
6304 * Makefile.in (fontpath, tmacpath): Remove current directory.
6306 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
6307 two parameters `add_home' and `add_current'.
6308 (search_path::~search_path, search_path::command_line_dir,
6309 search_path::open_file): Remove tests for `dirs' being zero.
6310 * src/include/searchpath.h: Adjust.
6311 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
6313 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
6315 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
6316 * src/roff/troff/input.cc: Use `mac_path', initialized with
6318 (process_startup_file): Set `mac_path' to `safer_macro_path'.
6319 * src/roff/troff/env.cc: Use `mac_path'.
6321 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
6323 * NEWS, man/roff.man, src/roff/troff/troff.man,
6324 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
6327 2000-11-12 Werner LEMBERG <wl@gnu.org>
6329 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
6331 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
6332 * configure.in: Fix typo in comment.
6333 * configure: Regenerated.
6335 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
6338 2000-11-08 Werner LEMBERG <wl@gnu.org>
6340 Add system tmac directory (/usr/local/lib/groff/site-tmac).
6342 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
6343 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
6346 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
6347 * tmac/Makefile.sub (install_data): Create
6348 $(systemtmacdir) and $(localtmacdir).
6349 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
6350 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
6351 NEWS, doc/groff.texinfo: Updated and minor fixes.
6353 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
6354 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
6355 $(systemtmacdir) since the wrapper files are platform-dependent.
6357 2000-11-01 Werner LEMBERG <wl@gnu.org>
6359 * doc/groff.texinfo: Fix typo.
6361 2000-10-26 Werner LEMBERG <wl@gnu.org>
6363 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
6364 tmac.doc.old -> doc-old.tmac
6365 tmac.an.old -> an-old.tmac
6367 * tmac/tmac.*: Moved to ...
6368 * tmac/*.tmac: this.
6369 * tmac/man.local: Fix comment.
6370 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
6371 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
6372 Added some `FILES' sections. More use of @...@ directives. Other
6374 * arch/djgpp/README, font/devutf8/NOTES: Updated.
6375 * doc/homepage.ms, doc/groff.texinfo: Updated.
6376 * man/groff.man, man/roff.man: Updated.
6377 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
6378 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6379 src/devices/grotty/grotty.man: Updated.
6380 * src/preproc/pic/pic.man: Updated.
6381 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
6382 instead of -mdoc.old.
6383 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
6384 * src/roff/nroff/nroff.man: Updated.
6387 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
6389 * tmac/mm.diff: Removed -- it has no use now since the mm package
6392 * tmac/*: Removed trailing spaces.
6394 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
6395 the tmac subdirectory also).
6397 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
6398 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
6399 stuff since it is no longer needed.
6401 * README, PROBLEMS: Updated.
6403 2000-10-25 Werner LEMBERG <wl@gnu.org>
6405 Invert current behaviour: Search first FOOBAR.tmac, then
6408 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
6409 (open_mac_file, macro_source): Implement it.
6410 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
6411 doc/groff.texinfo, NEWS: Document it.
6413 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
6414 Small documentation improvements.
6416 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
6419 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
6421 2000-10-24 Werner LEMBERG <wl@gnu.org>
6423 Add local tmac directory (groff/site-tmac).
6425 * Makefile.in: Add $(localtmacdir).
6426 (uninstall_dirs): Add $(localtmacdir).
6427 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
6428 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
6429 in $(localtmacdir). Create $(localtmacdir).
6430 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
6431 Updated and minor fixes.
6433 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
6435 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
6437 2000-10-23 Werner LEMBERG <wl@gnu.org>
6439 Move hyphen.us to tmac directory.
6441 * src/roff/troff/hyphen.us: Removed.
6442 * src/tmac/hyphen.us: Added.
6443 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
6445 Change installation structure for data files from .../groff/... to
6446 .../groff/<version><revision>/... to be conform with other GNU
6449 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
6450 doc/Makefile: Implement it.
6451 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
6452 * configure: Updated.
6453 * arch/djgpp/README, font/devutf8/NOTES: Use it.
6454 * NEWS: Document it.
6455 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
6456 @MACRODIR@ instead of hard-coded directories.
6458 2000-10-22 Werner LEMBERG <wl@gnu.org>
6460 Implement $GROFF_BIN_PATH environment variable (which defaults to
6461 $bindir) used for child programs of groff and similar wrappers.
6463 * gendefs.sh: Improve documentation.
6464 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
6465 src/preproc/eqn/Makefile.sub (neqn),
6466 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
6467 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
6469 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
6470 $GROFF_PATH__ (the latter for communication with troff).
6471 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
6473 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
6474 doc/groff.texinfo: Document it.
6476 * doc/groff.texinfo: Improve documentation of troff's -a option.
6478 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
6480 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
6481 non-intrusive eol marker.
6482 (troff_output_file::determine_line_limits): New function.
6483 (troff_output_file::draw): Use it.
6484 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
6485 output_pending_lines() instead of output_line().
6486 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
6487 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
6488 createImage): Small fixes.
6490 2000-10-14 Werner LEMBERG <wl@gnu.org>
6492 Replace tmac.safer with a real secure solution.
6494 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
6495 system_request, pipe_output): Disable requests if in safer mode.
6496 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
6497 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
6498 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
6499 doc/groff.texinfo, src/roff/groff/groff.man,
6500 src/roff/troff/troff.man, arch/djgpp/README: Updated.
6502 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
6503 (resource_manager::output_prolog): Replace setenv() with putenv().
6505 2000-10-09 Werner LEMBERG <wl@gnu.org>
6507 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
6508 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
6509 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
6510 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
6511 compilation errors with some compilers. It seems that this code
6512 is no longer necessary -- if yes, it is easy to add some #ifdef's
6513 for that particular old-fashioned compiler.
6515 * MORE.STUFF: Added info about Meta-tbl.
6517 * doc/groff.texinfo: Added more info about `.if "..."..."'.
6519 2000-10-07 Werner LEMBERG <wl@gnu.org>
6521 Adding a new escape sequence \B'...': If the string between
6522 the delimiters is a valid numeric expression, return the character
6523 `1', and `0' otherwise. This is an analogon to \A.
6525 * src/roff/troff/input.cc (do_expr_test): Implement it.
6526 (token::next): Use it.
6527 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
6529 * tmac/tmac.trace: Made independent from escape character.
6531 2000-10-06 Werner LEMBERG <wl@gnu.org>
6533 Adding a new request .dei: define indirect. The first and second
6534 parameter of .dei are taken from string registers instead directly;
6535 this very special request is needed to make tmac.trace independent
6536 from the escape character (which might even be disabled).
6538 * src/roff/troff/input.cc (do_define_macro): Implement it.
6539 (define_macro_indirect): New function.
6540 (init_input_requests): Use it.
6542 Adding two requests .ecs and .ecr: Save and restore the escape
6543 character. These two requests are needed to make tmac.trace
6544 independent from the escape character (which might even be
6547 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
6549 (init_input_requests): Use it.
6551 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6553 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
6555 Adding a new option -P and new environment variable GROPS_PROLOGUE
6556 to grops, selecting a different prologue file (minor modifications
6559 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
6560 src/devices/grops/ps.cc (main): Implement it.
6561 * src/devices/grops/grops.man, NEWS: Document it.
6563 2000-09-22 Werner LEMBERG <wl@gnu.org>
6565 * INSTALL: Add info about selecting paper format.
6567 2000-09-21 Werner LEMBERG <wl@gnu.org>
6569 * src/roff/troff/input.cc (main): Fixing compiler warning.
6570 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
6571 strings.h from the former to the latter.
6572 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
6573 stuff from the former to the latter.
6575 2000-09-11 Werner LEMBERG <wl@gnu.org>
6577 Implementing two new requests .tm1 and .tmc: The former is similar
6578 to .tm but can output leading spaces; its syntax is similar to
6579 defining a string, i.e., a `"' can be used to mark the beginning of
6580 the string to be written to stderr: `.tm1 " test'. The latter is
6581 similar to .tm1 but doesn't write out a final newline character.
6583 * src/roff/troff/input.cc (terminal1, terminal_continue,
6584 do_terminal): New functions.
6585 (init_input_requests): Use them.
6586 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6588 2000-09-09 Werner LEMBERG <wl@gnu.org>
6590 * tmac/groff_mdoc.samples.man: Small fixes.
6592 2000-09-08 Werner LEMBERG <wl@gnu.org>
6594 * tmac/groff_mdoc.man: Fixing typo.
6596 2000-09-02 Werner LEMBERG <wl@gnu.org>
6598 Implementing a .nop request which does nothing.
6600 * src/roff/troff/input.cc (nop_request): New function.
6601 (init_input_requests): Use it.
6602 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6604 2000-09-01 Werner LEMBERG <wl@gnu.org>
6606 * doc/groff.texinfo: Added some comments.
6608 2000-08-30 Werner LEMBERG <wl@gnu.org>
6610 * src/roff/troff/TODO: Updated.
6612 2000-08-25 Werner LEMBERG <wl@gnu.org>
6614 * doc/groff.texinfo: Fix comment how to compile the DVI file.
6616 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
6618 * font/devps/generate/Makefile (SHELL): Define explicitly to
6619 "/bin/sh", for non-Unix platforms.
6620 (extraclean): Use a more portable "" quoting instead of a
6621 backslash (which doesn't work on DOS/Windows).
6623 * font/devlj4/generate/Makefile (extraclean): Ditto.
6625 * font/devdvi/generate/Makefile (extraclean): Ditto.
6627 2000-08-25 Werner LEMBERG <wl@gnu.org>
6629 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
6630 src/roff/troff/troff.man: Document Eli's latest changes.
6632 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
6634 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
6635 macro file names of the form NAME.tmac as well as tmac.NAME.
6637 2000-08-25 Werner LEMBERG <wl@gnu.org>
6639 * src/include/posix.h: Remove definition of FILENAME_MAX.
6641 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
6642 `sys_fatal' and `stop' function().
6644 * test-groff: Updated.
6646 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
6648 Added the new troff command .output <arg> to suppress output (while
6649 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
6650 registers (for passing the output dimensions to the output device).
6652 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
6654 * src/roff/troff/node.h, src/roff/troff/node.cc
6655 (troff_output_file::really_print_line,
6656 ascii_output_file::really_print_line,
6657 supress_output_file::really_print_line): Use `width' parameter.
6658 (troff_output_file::really_on, troff_output_file::really_off,
6659 output_file::on, output_file::off, real_output_file::on,
6660 real_output_file::off, real_output_file::really_on,
6661 real_output_file::really_off): New functions.
6662 (real_output_file:public output_file): New variable `output_on'.
6663 (real_output_file::begin_page, real_output_file::copy_file,
6664 real_output_file::transparent_char, real_output_file::print_line):
6666 (real_output_file::print_line): Use check_output_limits.
6667 * src/roff/troff/reg.h, src/roff/troff/request.h,
6668 src/roff/troff/input.cc (assign_registers): New function to remove
6670 (do_ps_file): Use it.
6671 (check_output_limits, reset_output_registers, output_request,
6672 init_output_requests): New functions.
6673 (init_input_requests): Updated.
6675 Added new grohtml2 device and html2 preprocessor (coding
6676 not yet finished) which will eventually replace grohtml.
6678 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
6680 * src/include/htmlindicate.h, src/include/htmlindicate
6681 (html_begin_suppress, html_end_suppress): New functions.
6682 * src/preproc/tbl/main.cc: Use it.
6683 * src/roff/groff/groff.cc: Add support for html2 device (which will
6684 automatically invoke the html2 preprocessor).
6685 * src/roff/troff/input.cc (is_html2): New variable.
6686 * src/roff/troff/troff.h, src/roff/troff/env.h,
6687 src/roff/troff/env.cc (environment::add_html_tag): New function
6689 (environment::do_break): Use it.
6690 * font/devhtml2/*: New files.
6691 * src/devices/grohtml2: New device.
6692 * src/preproc/html2: New preprocessor.
6693 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
6695 2000-08-23 Werner LEMBERG <wl@gnu.org>
6697 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
6699 2000-08-22 Werner LEMBERG <wl@gnu.org>
6701 * src/include/lib.h: Provide a fix for IRIX to not include
6704 2000-08-18 Werner LEMBERG <wl@gnu.org>
6706 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
6707 since some non-GNU sed programs can't handle null regexps.
6708 * configure, src/preproc/eqn/Makefile.sub,
6709 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
6711 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
6712 bug (string.h and strings.h are both needed according to latest
6715 * MORE.STUFF: Added info about unroff and troffcvt.
6717 2000-08-08 Werner LEMBERG <wl@gnu.org>
6719 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
6722 * tmac/tmac.man.old: Remove unused number register.
6724 * tmac.doc: Minor documentation fix.
6726 2000-08-07 Paul Eggert <eggert@twinsun.com>
6728 * src/roff/groff/pipeline.c (is_system_shell):
6729 Fix typo: "monocased_shell" no longer exists.
6731 2000-08-07 Paul Eggert <eggert@twinsun.com>
6733 Remove FILENAME_MAX limits.
6735 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
6736 that the argument length is less than FILENAME_MAX.
6737 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
6738 Use struct hack to allocate and free file name.
6739 (struct xtmpfile_list): fname is now part of the structure,
6740 not a pointer to another string.
6742 2000-08-07 Tom Schmidt <tschmidt@micron.com>
6744 * src/include/posix.h: Add a default value for FILENAME_MAX.
6746 2000-08-06 Paul Eggert <eggert@twinsun.com>
6748 Add support for new BSD-style man pages (with ".Dd" instead of
6749 ".TH"), so that "groff -man" understands both styles, even
6750 when running "groff -man" on a host whose system man page
6751 macros don't support ".Dd".
6753 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
6754 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
6755 in case the system man macros don't define Dd or TH.
6757 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
6758 * tmac/tmac.an: New one-line file.
6759 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
6761 2000-08-06 Werner LEMBERG <wl@gnu.org>
6763 * src/roff/troff/troff.man: Fixing typos.
6765 Version 1.16.1 released
6766 =======================
6768 2000-07-31 Werner LEMBERG <wl@gnu.org>
6770 Preparing release 1.16.1.
6772 * REVISION: Revision number set to 1.
6773 * MORE.STUFF: Added info about port to DOS.
6774 * NEWS, win32-diffs: Updated.
6776 * src/include/nonposix.h: Remove first line -- this file is used
6779 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
6782 2000-07-30 Werner LEMBERG <wl@gnu.org>
6784 * doc/texinfo.tex: Update to latest version.
6786 2000-06-28 Paul Eggert <eggert@twinsun.com>
6788 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6789 commands that fail. Don't assume that "export a=b" is valid shell
6790 syntax. This is needed for Solaris 2.5.1.
6792 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6793 comment about missing Solaris headers.
6795 * PROBLEMS: Add section about problems with Sun Make and VPATH.
6797 2000-06-25 Werner LEMBERG <wl@gnu.org>
6799 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6802 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6804 * win32-diffs: Updated.
6805 * README.WIN32: Added CRs to make all Windows editors happy.
6807 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6808 src/roff/groff/pipeline.c).
6810 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
6812 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6813 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6815 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
6817 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6818 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6820 (main): Support non-Posix systems with several different styles of
6821 slash characters in file names.
6823 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6824 (main) [SET_BINARY]: Switch stdin into binary mode.
6826 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6827 (main): Support file names with several possible slash-type
6828 characters, as given by DIR_SEPS[] in nonposix.h.
6829 (main) [__MSDOS__]: If renaming the temporary index file fails
6830 because it has more than one dot in its trunk, replace the dot
6831 with an underscore and try again.
6832 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
6834 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6836 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6837 (File::File): Open the input file in binary mode. Strip CR
6838 characters from each CR-LF pair.
6839 (xbasename): Support file names with several possible slash-type
6840 characters, as given by DIR_SEPS[] in nonposix.h.
6842 * src/include/Makefile.sub (HDRS): Add nonposix.h.
6844 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6845 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6846 [!_POSIX_VERSION]: Define for traditional Unix systems.
6847 (real_output_file::real_output_file): Remove the MSVC-specific
6848 call to popen, use instead POPEN_WT, appropriately defined on
6849 nonposix.h. #include nonposix.h.
6850 (real_output_file::~real_output_file): Remove the MSVC-specific
6851 call to pclose, a suitable macro is now defined on nonposix.h.
6852 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6853 and WEXITSTATUS instead of assuming traditional Unix
6854 interpretation of the status returned by pclose.
6856 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6857 call to popen, use POPEN_RT instead (appropriately defined on
6858 nonposix.h). #include nonposix.h.
6859 (ps_bbox_request): Open the PostScript file in binary mode.
6860 Close the file after processing it.
6861 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6864 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6865 A version of run_pipeline that doesn't use `fork'.
6866 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6867 (system_shell_name, system_shell_dash_c)
6868 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6869 the ugliness of testing DOS/Windows file names for equality, and
6870 support both stock shells and ports of Unix shells.
6872 * src/roff/groff/groff.cc: #include nonposix.h.
6873 (BSHELL): Definition moved to nonposix.h.
6874 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
6875 instead of a literal "-c".
6876 (xbasename): Support file names with several possible slash-type
6877 characters, as given by DIR_SEPS[] in nonposix.h.
6878 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6881 * src/preproc/soelim/soelim.cc: #include nonposix.h.
6882 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6884 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6887 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6889 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6892 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6894 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6895 P_tmpdir is defined, use it instead of the literal "/tmp".
6896 (remove_tmp_files, add_tmp_file): New functions.
6897 (xtmpfile): Record temporary files and register an atexit function
6898 to delete them explicitly, instead of relying on the OS to do
6899 that, which doesn't work on non-Unix systems.
6901 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6902 (search_path::search_path): Use PATH_SEP instead of a literal
6904 (search_path::command_line_dir): Ditto.
6905 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6906 to support non-Posix systems.
6908 * src/libs/libbib/search.cc: #include nonposix.h.
6909 (search_list::add_file): Open the file in binary mode.
6911 * src/libs/libbib/linear.cc: #include nonposix.h.
6912 (file_buffer::load): Remove \r characters preceding \n from the
6915 * src/libs/libbib/index.cc: #include nonposix.h.
6916 (make_index_search_item): Open index_filename in O_BINARY mode.
6917 (index_search_item_iterator::get_tag): Ditto. Remove \r
6918 characters before \n characters.
6919 (index_search_item::check_files): Open files in binary mode.
6920 (index_search_item::munge_filename): Support DOS-style file names
6921 with backslashes and drive letters, use IS_ABSOLUTE.
6923 * src/devices/grops/ps.cc: #include nonposix.h.
6924 (main) [SET_BINARY]: Switch stdout to binary mode.
6926 * src/devices/grolj4/lj4.cc: #include nonposix.h.
6927 (main) [SET_BINARY]: Switch stdout to binary mode.
6929 * src/devices/grolbp/lbp.cc: #include nonposix.h
6930 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6932 * src/devices/grodvi/dvi.cc: #include nonposix.h.
6933 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6935 (main) [SET_BINARY]: Switch stdout to binary mode.
6936 [_MSC_VER]: Remove an explicit call to _setmode.
6938 * src/include/nonposix.h: New file.
6940 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6941 operation when building with DJGPP.
6942 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6943 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6946 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6948 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6949 etc. can include a semi-colon on DOS/Windows.
6950 (depend.temp): Use depend1.temp instead of depend.temp1, to
6951 prevent files from overerwiting each other on 8+3 filesystems.
6953 * gendef.sh (t): Change definition to work with DOS/Windows.
6955 doc/groff.texinfo: Apart of some typo corrections, I also changed
6956 some index entris, to make them more non-ambiguous, and also put
6957 @ignore around some parts that are not yet written, to allow the
6958 Info output be readable.
6960 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
6962 Replaced specific checks for function declarations with a generic
6963 routine taken from GNU bfd.
6965 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6966 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6967 * configure.in: Use it.
6968 * src/devices/grolbp/lbp.cc, src/include/lib.h,
6969 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6970 src/roff/groff/groff.cc: Use it.
6971 * Makefile.in, configure: Updated.
6973 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
6975 * src/devides/grolbp/lbp.h: Removed unused variables.
6977 2000-05-31 Keith Thompson <kst@sdsc.edu>
6979 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6982 2000-05-31 Werner LEMBERG <wl@gnu.org>
6984 * aclocal.m4 (GROFF_SRAND): New function to test the return value
6985 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6986 * configure.in: Use it.
6987 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6988 * configure, Makefile.in: Updated.
6990 * configure.in: Add test for strncasecmp().
6991 * src/include/lib.h: Use it.
6993 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
6995 * src/preproc/grn/Makefile.sub: Add MLIB.
6997 2000-05-29 Nix <nix@esperi.demon.co.uk>
6999 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
7001 2000-05-29 Werner LEMBERG <wl@gnu.org>
7003 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
7005 * PROBLEMS: Small update.
7007 * src/devices/grolbp/lbp.cc: Various small fixes.
7009 2000-05-28 Keith Thompson <kst@sdsc.edu>
7011 * src/roff/nroff/nroff.sh: Fix main loop syntax.
7013 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
7015 2000-05-25 Werner LEMBERG <wl@gnu.org>
7017 * man/roff.man: Removed unused macro.
7019 2000-05-24 Werner LEMBERG <wl@gnu.org>
7021 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
7022 This is needed e.g. if you do
7023 `make distclean; ./configure; make dist'.
7025 Version 1.16 released
7026 =====================
7028 2000-05-23 Werner LEMBERG <wl@gnu.org>
7030 Adding font CWI (constant width italic) to devdvi.
7032 * font/devdvi/CWI: New file.
7033 * font/devdvi/generate/Makefile: Add generating rule.
7034 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
7035 tmac/tmac.dvi: Use it.
7036 * NEWS: Announce it.
7038 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
7039 * font/devlj4/generate/Makefile: Cosmetic changes only.
7041 * man/groff.man: Removed most of the redundant description of
7042 special characters (which is in groff_char.man). Added font
7043 translation CB->CR for devdvi. Other minor fixes.
7045 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
7046 (registered) symbols.
7048 2000-05-22 Werner LEMBERG <wl@gnu.org>
7050 * doc/Makefile: Added rule for creating info files.
7052 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
7054 * font/devdvi/generate/Makefile: Fixed dependencies.
7056 * font/devps/*: Regenerated. Heavy changes for Bookman and
7057 NewCentury Schoolbook!
7058 * font/devps/generate/afmname: Will now run with GNU awk.
7059 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
7060 * font/devps/generate/Makefile: Cosmetic changes only.
7062 2000-05-21 Werner LEMBERG <wl@gnu.org>
7064 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
7065 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
7066 `.SS' now produces a heading with a smaller size than `.SH'.
7067 Completely formatted.
7068 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
7070 * man/groff.man: Improved table appearance. Use of `eo' request
7071 to reduce number of doubled backslashes in macro definitions.
7072 Replacing `\e' with `\(rs'. Other minor fixes.
7074 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
7075 to have correct line number.
7077 * INSTALL: Small improvement.
7079 2000-05-20 Bernd Warken <bwarken@mayn.de>
7081 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
7084 2000-05-19 Bernd Warken <bwarken@mayn.de>
7086 * man/groff.man: Complete update (with a lot of corrections by WL).
7088 2000-05-18 Werner LEMBERG <wl@gnu.org>
7090 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
7092 * font/*/*: Implement it.
7093 * man/groff_char.man, NEWS: Document it.
7095 * src/include/unix.h: Removed. It isn't used.
7097 * doc/groff.texinfo: Slight improvements.
7099 2000-05-17 Werner LEMBERG <wl@gnu.org>
7101 * README, win32-diffs: Small fixes and improvements.
7103 2000-05-16 Werner LEMBERG <wl@gnu.org>
7105 * FDL: New file (the Free Documentation License version 1.1).
7107 * doc/groff.texinfo: Added many start-up values for gtroff.
7108 Some structural improvements of the source code.
7110 2000-05-15 Werner LEMBERG <wl@gnu.org>
7112 * src/roff/troff/input.cc: Added small comment about troffrc-end.
7113 * src/roff/troff/troff.man: Added info about troffrc-end.
7115 2000-05-14 Werner LEMBERG <wl@gnu.org>
7117 * Makefile.in (EXTRADIRS): Fix typos.
7118 (dist): Handle deletion of old .tar.gz file correctly.
7119 (DISTDIRS): Include all tty output devices.
7121 * doc/groff.texinfo: Adding more cross references; countless other
7124 2000-05-13 Werner LEMBERG <wl@gnu.org>
7126 * MORE.STUFF: Added Robert Marks's utilities.
7128 2000-05-12 Werner LEMBERG <wl@gnu.org>
7130 Added win32 port contributed by Blake McBride
7131 <blake@florida-software.com>.
7133 * README.WIN32, win32-diffs: New files.
7136 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
7137 (tmove, tmove2): Added parentheses to avoid compiler warnings.
7138 (change): Removed unused variables.
7140 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
7141 (savebounds): Changed return value from `int' to `void'.
7142 * src/preproc/grn/hdb.cc: Ditto.
7144 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
7145 final backslash in comment to avoid compiler warning.
7147 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
7149 * doc/groff.texinfo: More fixes.
7151 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
7153 * tmac/tmac.doc: Documentation fix.
7155 2000-05-11 Werner LEMBERG <wl@gnu.org>
7157 * doc/groff.texinfo: Reading the source code shows up a lot of
7158 omissions and incorrect data... More conversion to @Deffn macros.
7160 2000-05-10 Werner LEMBERG <wl@gnu.org>
7162 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
7165 * src/roff/troff/request.h: Removing unused `no_break_flag'.
7167 2000-05-09 Werner LEMBERG <wl@gnu.org>
7169 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
7172 * doc/groff.texinfo: Extended history section. More conversion to
7173 @Deffn macros. More .tr documentation.
7175 2000-05-07 Werner LEMBERG <wl@gnu.org>
7177 * doc/groff.texinfo: Completed tab section. Added info about
7180 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
7182 * PROBLEMS: Describe configure script fix for OS/390 Unix.
7184 2000-05-05 Werner LEMBERG <wl@gnu.org>
7186 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
7188 * NEWS: Document it.
7190 * man/troff.man: Minor optical improvements.
7192 2000-05-03 Werner LEMBERG <wl@gnu.org>
7194 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
7196 * font/*/*: Implement it.
7197 * man/groff_char.man, NEWS: Document it.
7199 2000-05-02 Werner LEMBERG <wl@gnu.org>
7201 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
7203 * NEWS: Document the three new man pages.
7205 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
7206 * configure: Updated.
7208 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
7210 2000-05-01 Werner LEMBERG <wl@gnu.org>
7212 Added grap support to grog.
7214 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
7215 * src/roff/grog/grog.man: Document it.
7217 * doc/groff.texinfo, NEWS: Add info about grap support.
7219 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
7220 (with slight fixes by me).
7222 * tmac/groff_tmac.man: New file documenting tmac mechanism.
7223 * tmac/Makefile.sub: Add groff_tmac.man.
7224 * man/roff.man: New file giving overview of roff system.
7225 * man/troff.man: A short reference of troff.
7226 * man/Makefile.sub: Add roff.man and troff.man.
7228 2000-04-30 Werner LEMBERG <wl@gnu.org>
7230 Added grap support to groff.
7232 * src/roff/groff/groff.cc: Implement it.
7233 * src/roff/groff/groff.man: Document it.
7235 * src/devices/grotty/grotty.man: Add cp1047 device.
7236 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
7238 * src/roff/groff/groff.man: Ditto.
7239 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
7240 * doc/groff.texinfo: Ditto.
7242 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
7245 2000-04-29 Werner LEMBERG <wl@gnu.org>
7247 * man/groff_char.man: Add `pc' glyph.
7248 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
7249 * tmac/tmac.tty: Add `pc' glyph.
7250 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
7251 we use cp1047 output device.
7253 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
7254 there are still hardcoded latin1->unicode values in utf8's font
7256 * configure: Updated.
7257 * NEWS: Minor clarification. Updated.
7259 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
7262 2000-04-28 Werner LEMBERG <wl@gnu.org>
7264 Adding EBCDIC code page 1047.
7266 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
7267 font/devcp1047/DESC.proto: New files.
7269 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
7270 either ascii/latin1 or cp1047.
7271 * Makefile.in: Use it.
7272 * configure: Updated.
7274 Replacing and/or adding `md' (mathdot) glyph with `pc'
7275 (periodcentered) in all text fonts.
7277 * font/*/*: Change it.
7279 2000-04-27 Werner LEMBERG <wl@gnu.org>
7281 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
7283 * configure.in: Add check for strings.h.
7284 * src/include/driver.h: Use HAVE_STRINGS_H.
7285 * src/devices/grolbp/lpb.cc: Remove string.h.
7287 * src/include/groff-getopt.h: New file. It will be used instead of
7288 getopt.h (to be included in lib.h) to avoid endless problems with
7289 picky C++ compilers.
7290 * src/include/lib.h: Use groff-getopt.h.
7291 * src/include/Makefile.sub: Updated.
7293 * configure: Updated.
7294 * Makefile.in: Updated.
7296 * NEWS: Mention EBCDIC support.
7298 2000-04-26 Werner LEMBERG <wl@gnu.org>
7300 * TODO: Some additions.
7302 2000-04-25 Werner LEMBERG <wl@gnu.org>
7304 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
7307 2000-04-23 Werner LEMBERG <wl@gnu.org>
7309 * src/roff/troff/troff.man: Minor fixes.
7311 2000-04-22 Werner LEMBERG <wl@gnu.org>
7313 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
7314 `.T' string register and the incompatible definition of the `.T'
7315 number register (compared to Unix troff).
7317 * man/groff_char.man: Add some missing characters.
7318 * font/devutf8/NOTES: Update.
7320 2000-04-21 Werner LEMBERG <wl@gnu.org>
7322 * src/include/htmlindicate.h, src/include/lib.h,
7323 src/include/posix.h: Fix copyright.
7325 * src/include/Makefile.sub: Update.
7327 2000-04-20 Werner LEMBERG <wl@gnu.org>
7329 * src/roff/troff/input.cc (input_char_description): Removing
7330 superfluous space char.
7332 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
7334 * doc/groff.texinfo: Document EBCDIC.
7336 2000-04-19 Werner LEMBERG <wl@gnu.org>
7338 Introducing `shc' as the glyph name for the soft hyphen character.
7340 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
7341 font/devlatin1/R.proto: Use it.
7345 2000-04-18 Werner LEMBERG <wl@gnu.org>
7347 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
7348 dependency on ASCII order.
7350 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
7352 * src/libs/libgroff/illegal.c: Added EBCDIC table.
7353 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
7355 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
7356 to increase portability.
7358 2000-04-15 Werner LEMBERG <wl@gnu.org>
7360 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
7361 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
7362 the generic `\n' if under OS/390 Unix.
7364 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
7366 * configure: Regenerated.
7368 2000-04-14 Werner LEMBERG <wl@gnu.org>
7370 * doc/groff.texinfo: More conversions to @Deffn.
7372 2000-04-12 Werner LEMBERG <wl@gnu.org>
7374 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
7377 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
7379 2000-04-10 Werner LEMBERG <wl@gnu.org>
7381 * doc/groff.texinfo: More conversions to @Deffn.
7383 2000-04-08 Werner LEMBERG <wl@gnu.org>
7385 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
7386 Updated to latest version (glibc 2.1.3).
7388 2000-04-07 Werner LEMBERG <wl@gnu.org>
7390 * doc/Makefile (clean): Include more index files.
7391 Add rule texinfo->dvi.
7393 2000-04-05 Werner LEMBERG <wl@gnu.org>
7395 * doc/groff.texinfo: Added new index `op' for operators. More
7396 info on end of sentence characters. More use of @Deffn.
7398 2000-03-30 Werner LEMBERG <wl@gnu.org>
7400 * */*.man: Adding a note that a whitespace can be inserted between
7401 a command line option and its parameter -- we are using GNU getopt.
7403 * src/roff/groff/groff.man: Add example of `-m mandoc'.
7405 2000-03-28 Werner LEMBERG <wl@gnu.org>
7407 Correct anachronism of calling the man macro file with `-man'
7408 instead of `-m man' etc.
7410 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
7411 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
7412 load tmac.<package>.
7414 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
7418 * doc/groff.texinfo: Updated.
7420 * tmac/groff_man.man: Copyright added.
7422 2000-03-27 Werner LEMBERG <wl@gnu.org>
7424 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
7425 typeset the request resp. escape name with a tt font -- due to a
7426 bug in texinfo.tex it is necessary to use the `-e' switch with
7429 Improving info about usage of groff units.
7433 2000-03-20 Werner LEMBERG <wl@gnu.org>
7435 * doc/groff.texinfo: Added section about man macro package
7436 (I've basically taken groff_man.man). Introducing new indices `ma'
7437 for macros/strings and `gl' for glyph names. Other minor fixes.
7439 * tmac/groff_man.man: Fixed some typos.
7441 2000-03-19 Werner LEMBERG <wl@gnu.org>
7443 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
7446 * doc/texinfo.tex: New file.
7448 2000-03-18 Werner LEMBERG <wl@gnu.org>
7450 * doc/groff.texinfo: Improved section on number registers. Other
7453 2000-03-16 Werner LEMBERG <wl@gnu.org>
7455 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
7458 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
7459 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
7460 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
7461 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
7463 * src/preproc/grn/grn.man: Better synopsis; added copyright.
7465 * src/roff/grog/grog.man: Updated copyright date.
7467 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
7469 * configure.in: Added test for strdup.
7471 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
7474 Replaced dynamic allocation of arrays `[...]' with `new' operator.
7478 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
7480 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
7482 2000-03-11 Werner LEMBERG <wl@gnu.org>
7484 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
7486 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
7487 * src/include/lib.h: Remove some spaces.
7489 2000-03-10 Werner LEMBERG <wl@gnu.org>
7491 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
7492 initializers from arguments (some compilers don't like this).
7494 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
7496 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
7497 used by pic and eqn to tell grohtml where the graphic regions start
7499 * src/libs/libgroff/Makefile.sub: Use it.
7500 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
7501 graphic_start() and graphic_end() from htmlindicate.cc.
7503 2000-03-09 Werner LEMBERG <wl@gnu.org>
7505 * tmac/tmac.safer: Will now work correctly in compatibility mode.
7506 * tmac/groff_man.man: More fixes.
7508 2000-03-08 Werner LEMBERG <wl@gnu.org>
7510 * doc/Makefile: Added texput.log to the `clean' target.
7511 * doc/groff.texinfo: Added info about delimiters for escapes.
7513 2000-03-08 Bernd Warken <bwarken@mayn.de>
7515 * src/preproc/pic/pic.man: Add info on conversion of pic images to
7516 other graphic formats.
7518 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
7520 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
7521 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
7522 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
7525 2000-03-07 Werner LEMBERG <wl@gnu.org>
7527 * doc/groff.texinfo: Spelling fixes.
7529 2000-03-06 Werner LEMBERG <wl@gnu.org>
7531 * tmac/groff_man.man: Completely revised to cover everything in
7534 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
7535 Other minor fixings.
7536 * src/roff/troff/env.cc (environment_copy): Improve error message and
7538 * src/roff/troff/TODO: Updated.
7540 * doc/Makefile: Bug fixes -- this is still provisional, though...
7542 * tmac/eqnrc: Small fixes.
7544 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
7546 Adding a request `evc' to copy environments.
7548 * src/roff/troff/env.cc (environment::copy, environment_copy):
7550 * src/roff/troff/env.h: Add prototype.
7552 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
7554 Adding strsep() -- Solaris 8 doesn't have it.
7556 * configure.in: Test it.
7557 * src/devices/grolbp/lbp.cc: Add code.
7559 2000-03-05 Werner LEMBERG <wl@gnu.org>
7561 * src/roff/troff/div.cc (macro_diversion::output,
7562 top_level_diversion::output): Fixing an incompatibility with
7563 original troff: \x'0' updates the .a register also. Thanks to
7564 <Andries.Brouwer@cwi.nl> for pointing this out.
7565 * doc/groff.texinfo: Document it.
7567 * Makefile.in: Create Makefile.dep if necessary before calling the
7568 submake process to avoid warning about nonexistent file.
7570 * NEWS, PROJECTS: Updated.
7572 2000-03-04 Werner LEMBERG <wl@gnu.org>
7574 * tmac/troffrc: Add tmac.lbp.
7576 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
7578 * tmac/tmac.lbp: New file.
7579 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
7582 2000-03-03 Werner LEMBERG <wl@gnu.org>
7584 * Makefile.in: Fixing $(subdir).
7586 * README, NEWS: Small fixes.
7588 * test-groff: Adding path to grolbp.
7590 * configure.in: The (new) file src/xditview/Imakefile.in will be
7591 also configured -- it is now possible to build gxditview in a
7592 directory different from $srcdir.
7594 2000-03-02 Blake McBride <blake@florida-software.com>
7596 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
7598 * MORE.STUFF: Added website of bell labs and info about plot2dev.
7600 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
7602 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
7605 2000-02-29 Werner LEMBERG <wl@gnu.org>
7607 Adding GNU getopt to the groff distribution.
7609 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
7611 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
7612 * aclocal.a4: Remove GROFF_GETOPT function.
7613 * configure.in, Makefile.in, PROBLEMS: Update.
7614 * src/include/lib.h: Replace getopt tests with getopt.h.
7615 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
7617 * doc/groff.texinfo: Further checking/updating. Adding more index
7620 * man/groff_out.man: Fix nroff mode activation (for emacs).
7621 * man/groff_font.man: Add missing ligature.
7623 2000-02-28 Werner LEMBERG <wl@gnu.org>
7625 * doc/groff.texinfo: Further checking/updating. Adding more index
7628 * src/devices/grolbp/grolbp.man: Added a comment line at the
7629 beginning of the file (similar to shell scripts) which indicates
7630 that `tbl' should be used as a preprocessor.
7632 2000-02-27 Blake McBride <blake@florida-software.com>
7634 Adapting groff to MS Visual C++ 6.0 compiler (tested with
7635 Windows NT 4.0). Uses _MSC_VER define where necessary.
7637 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
7638 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
7639 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
7640 src/include/lib.h, src/libs/libgroff/errarg.cc,
7641 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
7642 src/preproc/refer/label.y, src/preproc/refer/label.cc,
7643 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
7644 src/roff/troff/div.cc, src/roff/troff/env.cc,
7645 src/roff/troff/input.cc, src/roff/troff/node.cc,
7646 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
7647 if_to_a() to avoid name clashes.
7648 * src/include/posix.h: Don't use unistd.h.
7649 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
7650 clause for integrating non-Unix xtmpfile() code.
7651 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
7652 structure; use "rt" for popen() in pipe_source(); add getpid()
7654 * src/roff/troff/node.cc: Use special versions of popen() in
7655 real_output_file() and pclose() in ~real_output_file().
7657 2000-02-27 Werner LEMBERG <wl@gnu.org>
7659 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
7660 LBP-8 series laser printers). This code has been contributed by
7661 Francisco Andrés Verdú <pandres@dragonet.es>.
7663 * src/devices/grolbp/*: The grolbp output device.
7664 * font/devlpb/*: The font description files.
7665 * Makefile.in: Add grolpb and devlbp subdirectories.
7667 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
7668 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
7671 * doc/groff.texinfo: Further checking/updating. Adding more index
7676 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
7678 * man/groff_font.man: Adding info about obsolete DESC keywords.
7679 * src/devices/grolj4/grolj4.man: Documenting additional DESC
7682 2000-02-26 Werner LEMBERG <wl@gnu.org>
7684 * src/preproc/grn/grn.man: Added info about the gremlin file format
7685 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
7687 2000-02-25 Werner LEMBERG <wl@gnu.org>
7689 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
7690 friends to be non-integer.
7692 * src/preproc/grn/grn.man: Document it.
7694 * doc/groff.texinfo: Further checking/updating. Adding more index
7697 2000-02-24 Werner LEMBERG <wl@gnu.org>
7699 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
7700 line thicknesses to be integer multiples of this value.
7702 * src/preproc/grn/grn.man: Commenting out the -s option -- the
7703 corresponding code doesn't work (yet).
7705 * doc/groff.texinfo: Further checking/updating. Adding more index
7708 2000-02-23 Werner LEMBERG <wl@gnu.org>
7710 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
7711 specify line thickness instead of base units. The new default
7712 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
7713 thick lines respectively.
7715 Removed unused variable `prevval'.
7717 * src/preproc/grn/grn.man: Updated.
7719 2000-02-22 Werner LEMBERG <wl@gnu.org>
7721 * src/preproc/grn/main.cc: Slight formatting.
7723 * src/roff/groff/groff.man: Formatting fix.
7724 * src/preproc/grn/grn.man: Ditto.
7726 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
7728 * doc/groff.texinfo: Further checking/updating.
7730 2000-02-21 Werner LEMBERG <wl@gnu.org>
7732 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
7734 * test-groff: Added grn subdir to path.
7736 * doc/groff.texinfo: Some restructing and other small improvements.
7738 * src/roff/groff/groff.cc (help): Fixed info string.
7740 2000-02-20 Werner LEMBERG <wl@gnu.org>
7742 * doc/meref.me: Fix description of .GS request.
7744 * src/roff/troff/troff.man: Fixing typo.
7746 Adding the `grn' preprocessor for gremlin graphic files.
7748 * src/preproc/grn/*: This is the Berkeley distribution written by
7749 David Slattengren and Barry Roitblat, adapted to groff by Daniel
7750 Senderowicz and Werner Lemberg.
7752 * doc/grnexampl.{me,g}: A sample for grn.
7754 * Makefile.in: Added subdirectory entry for grn.
7756 * src/roff/groff/groff.cc: Added support for grn. It can be now
7757 called with the switch `-g'.
7759 * src/roff/groff/groff.man: Updated.
7761 * src/roff/grog/grog.{man,pl,sh}: Updated.
7765 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
7767 * src/include/lib.h: Added xtmptemplate and made xtmpfile
7768 parametrically polymorphic.
7770 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
7771 and the alterations to xtmpfile.
7772 xtmpfile can be requested to return the filename created
7773 and asked not to unlink the temp file. The default behaviour
7774 if parameters are absent is exactly the same as before.
7776 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
7778 A new request `length' is available which returns the length of a
7779 string in a number register:
7781 * src/roff/troff/input.cc (length_macro): Implement it.
7782 * src/roff/troff/input.cc (init_input_requests): Register it.
7784 2000-02-11 Werner LEMBERG <wl@gnu.org>
7786 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7787 of the `substring' request.
7789 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7792 * src/roff/troff/TODO, NEWS: Updated.
7794 2000-02-09 Werner LEMBERG <wl@gnu.org>
7796 * src/roff/groff/groff.man: Added an example.
7798 2000-02-06 Werner LEMBERG <wl@gnu.org>
7800 I've considerably modified the directory structure of the
7801 distribution to get a more vertical layout. For example, the number
7802 of top level directories has been reduced from 42 to 6.
7804 As a consequence, many changes, especially to the makefiles, were
7807 * The makefile variables `top_builddir' and `top_srcdir' have been
7808 introduced. Virtually all relative paths have been replaced with
7809 absolute ones using these two variables.
7811 * Dependencies (in the files `Makefile.dep') are no longer part of
7812 the distribution. Instead, they are created during a `make install'
7813 in the build directory.
7815 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7816 make `top_srcdir' and `top_builddir' absolute.
7820 * Man pages now depend on the files `VERSION' and `REVISION'.
7822 * The added shell script `mkinstalldirs' will replace `mkdir' in
7825 * VERSION: Version number increased to 1.16.
7827 2000-02-04 Werner LEMBERG <wl@gnu.org>
7829 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7831 * Makefile.in: Removed $(tmac_m) since it is no longer needed
7832 (after an update of the mm stuff).
7834 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7836 2000-02-03 Werner LEMBERG <wl@gnu.org>
7838 The .psbb request will now also accept Mac PS images (i.e. using LF
7839 as the EOL character).
7841 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7842 (with slight modifications).
7843 * troff/input.cc (do_ps_file): Use it.
7845 * test-groff: Add grohtml and grolj4 output devices to PATH.
7847 2000-01-30 Werner LEMBERG <wl@gnu.org>
7849 * NEWS, MORE.STUFF: Updated.
7851 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
7853 Add the `srand' command to pic.
7855 * pic/lex.cc, pic/pic.y: Implement it.
7856 * pic/pic.man: Document it.
7857 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7859 2000-01-30 Werner LEMBERG <wl@gnu.org>
7861 Add a new request `.psbb'. This does exactly what the external
7862 program psbb did. It scans a PostScript image file for a
7863 %%BoundingBox comment and extracts the bounding box values (in
7864 PostScript units) which are then stored in the four new (read-only)
7865 number registers `llx', `lly', `urx', and `ury'.
7867 This will allow the usage of the .PSPIC macro without worrying
7868 about unsafe behaviour of groff, i.e., it will work without the
7869 `-U' switch of groff.
7871 * troff/input.cc: Implement it.
7872 * tmac/tmac.pspic: Use it.
7873 * troff/troff.man, grops/grops.man, NEWS: Document it.
7874 * psbb/*, Makefile.in: Remove it since it is no longer needed.
7876 This is bloody C code simply adapted from psbb.c! Any improvements
7879 2000-01-29 Werner LEMBERG <wl@gnu.org>
7881 * man/groff_font.man: Minor clarifications.
7885 2000-01-28 Werner LEMBERG <wl@gnu.org>
7887 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7889 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
7891 * man/groff_font.man: Brought up to date regarding tcommand
7893 * libgroff/font.cc: Handle everything after `--' as a comment
7895 * devps/*: Added comment delimiter inside devps font files.
7897 2000-01-28 Werner LEMBERG <wl@gnu.org>
7899 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7900 \fC...\fP (which now works as expected).
7902 * troff/troff.man: Fix typo.
7904 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
7906 Completed the pass_filenames implementation in troff.
7908 * libdriver/input.cc: Will read the new `F' tcommand.
7909 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7910 * troff/input.cc: Use it.
7912 2000-01-26 Werner LEMBERG <wl@gnu.org>
7914 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
7915 font will now be updated even if an invalid font is selected.
7917 2000-01-24 Werner LEMBERG <wl@gnu.org>
7919 * doc/homepage.ms: Updated for new tmac.arkup.
7921 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7923 * tmac/tmac.arkup: Cleanup.
7925 Added `\&' to .HTML macro to `leave vertical mode', so to say.
7927 Removed obsolete .LINK macro completely.
7929 The macros .URL, .FTP, and .MAILTO now accept a third argument which
7930 will be immediately appended to the second argument (to be used with
7931 punctuation, for example).
7933 Disabled .CDFTP macro temporarily for security reasons.
7935 * tmac/groff_markup.man: Complete revision for latest changes in
7936 tmac.arkup -- note that it does not yet format correctly with
7939 2000-01-23 Bruno Haible <haible@clisp.cons.org>
7941 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7942 * devutf8/R.proto: Add mappings for wp, lh, rh.
7943 * devutf8/NOTES: Updated.
7945 2000-01-23 Werner LEMBERG <wl@gnu.org>
7947 * doc/groff.texinfo: Updated version/copyright info.
7949 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
7951 Added support for two new directives in device descriptions:
7952 `pass_filenames' (to pass the input file name to the output device)
7953 and `use_charnames_in_special' (to support e.g. accented characters
7954 in the `X' request).
7956 * include/font.h, troff/charinfo.h: Declare it.
7958 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7960 * devhtml/DESC: Use it.
7962 * troff/input.cc: New function encoded_char.
7964 * troff/token.h: Add test for `specialness'.
7966 2000-01-21 Werner LEMBERG <wl@gnu.org>
7968 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7969 mistake from the list of files to be installed.
7971 2000-01-18 Werner LEMBERG <wl@gnu.org>
7973 * README: Added info how to apply patches.
7975 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
7977 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
7979 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
7981 * troff/input.cc: Add support for troffrc-end.
7983 * tbl/main.cc: Altered to issue table-start and table-end special
7984 characters if using the html device.
7986 * devhtml/*: Modified font files to incorporate html encoding of
7989 * tmac/groff_markup.man: New file documenting tmac.arkup.
7991 * tmac/troffrc-end: New file. This is invoked after all user
7992 specified macros. Currently used by the html device to include
7993 tmac.html. Thus no need for users to specify -mhtml anymore.
7995 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7996 (MAN7): Add groff_markup.man.
7998 * tmac/tmac.an, tmac/tmac.html: Small html updates.
8000 * tmac/troffrc: tmac.arkup will now be called for the html device.
8002 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
8003 extra device specific information about fonts.
8005 * doc/homepage.ms: New file. It is an example how an HTML home page
8006 could look like with grohtml.
8008 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
8010 2000-01-12 Bruno Haible <haible@clisp.cons.org>
8012 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
8015 * devutf8/NOTES: Updated.
8017 2000-01-08 Bruno Haible <haible@clisp.cons.org>
8019 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
8020 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
8021 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8022 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
8023 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
8024 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
8025 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
8026 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
8029 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
8031 2000-01-12 Fabrizio Polacco <fab@prosa.it>
8033 grolj4: Paper size will be searched case-insensitively.
8035 * include/lib.h: Add check for strcasecmp().
8036 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
8037 * configure.in: Check for strcasecmp().
8039 2000-01-11 Werner LEMBERG <wl@gnu.org>
8041 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
8044 2000-01-10 Werner LEMBERG <wl@gnu.org>
8046 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
8049 Add a new read-only register, `.Y', which contains the groff
8052 * troff/input.cc (init_input_requests): Define it.
8053 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
8054 * doc/groff.texinfo, troff/troff.man: Document it.
8056 * libgroff/Makefile.sub (version.cc): Add definition of
8057 `Version_string[]', consisting of `<major>.<minor>.<revision>'
8058 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
8059 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
8060 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
8061 troff/input.cc, pfbtops/pfbtops.c: Use it.
8063 2000-01-10 Fabrizio Polacco <fab@prosa.it>
8065 Add a revision scheme to the groff package.
8067 * REVISION: New file.
8068 * libgroff/Makefile.sub (version.cc): Use it to define
8069 `revision_string[]'.
8070 * grops/psrm.cc: Use revision_string (converted to an unsigned
8071 integer) in constructor of resource_manager.
8073 2000-01-10 Bruno Haible <haible@clisp.cons.org>
8075 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
8077 * Makefile.in (DEVDIRS): Add devutf8.
8078 * grotty/tty.cc: Include device.h.
8079 (glyph): Change type of `code' to `unsigned int'.
8080 (tty_printer): New field is_utf8. Constructor takes device argument.
8081 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
8082 (tty_printer::add_char): Change type of first arg to `unsigned int'.
8083 (tty_printer::put_char): New function.
8084 (tty_printer::end_page): Use put_char() instead of ::putchar().
8085 (make_printer): Pass device to tty_printer constructor.
8086 * nroff.sh: Determine default device by calling 'locale'. As a
8087 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
8088 Recognize UTF-8 locales.
8089 * tmac/eqnrc: Recognize utf8 like latin1.
8090 * tmac/troffrc: Device utf8 needs tmac.tty.
8092 2000-01-07 Werner LEMBERG <wl@gnu.org>
8094 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
8096 2000-01-07 Paul Eggert <eggert@twinsun.com>
8098 Add a new predefined writeable number register, `year',
8099 which contains the current year.
8101 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
8102 * tmac/tmac.s: Use it.
8103 * troff/input.cc (init_registers): Initialize it.
8105 2000-01-06 Werner LEMBERG <wl@gnu.org>
8107 * PROBLEMS: Fixed typo.
8109 2000-01-04 Paul Eggert <eggert@twinsun.com>
8111 * PROBLEMS: Add Y2k advice for the yr number register.
8113 2000-01-03 Paul Eggert <eggert@twinsun.com>
8115 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
8117 2000-01-02 Werner LEMBERG <wl@gnu.org>
8119 * tmac/tmac.arkup: Slight modification of macros to provide better
8120 appearance for non-HTML formats.
8122 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
8124 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
8125 does not automatically translate to malloc(n) on all OSes
8126 (e.g., SunOS) so do it explicitly. Also, check the returned
8129 2000-01-01 Werner LEMBERG <wl@gnu.org>
8131 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
8133 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
8134 expects this variable
8136 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
8138 * doc/Makefile: Added instructions to create HTML and text
8139 versions of some files.
8141 1999-12-31 Werner LEMBERG <wl@gnu.org>
8143 * Updated INSTALL.gen.
8145 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
8146 better resp. correctly with non-HTML devices.
8148 Version 1.15 released
8149 =====================
8151 1999-12-28 Werner LEMBERG <wl@gnu.org>
8153 * NEWS, VERSION: Changed to 1.15
8155 1999-12-27 Paul Eggert <eggert@twinsun.com>
8157 * nroff/nroff.man: -S is safer, not safe.
8159 * groff/groff.cc (main): Use `safer', not `safe', in variable
8160 names. This does not change the behavior.
8162 * troff/input.cc (main): Likewise.
8164 * nroff/nroff.sh: Likewise.
8166 * troff/input.cc (prepend_string): New function.
8167 (main): Prepend -msafer, so that we check macro libraries for
8170 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
8172 Version 1.14 released
8173 =====================
8175 1999-12-26 Werner LEMBERG <wl@gnu.org>
8177 * NEWS, VERSION: Changed to 1.14.
8179 1999-12-24 Werner LEMBERG <wl@gnu.org>
8181 * refer/refer.cc: Fixing the last fix.
8183 Version 1.13 released
8184 =====================
8186 1999-12-23 Werner LEMBERG <wl@gnu.org>
8188 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
8193 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
8195 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
8196 document conventions, the version number must be a real.
8198 Version 1.12.1 released
8199 =======================
8201 1999-12-22 Werner LEMBERG <wl@gnu.org>
8203 * VERSION: Changed to 1.12.1.
8205 1999-12-22 Alan Rooks <arooks@istar.ca>
8207 * refer/refer.cc (do_file): Slight modification to satisfy the
8208 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
8211 1999-12-20 Werner LEMBERG <wl@gnu.org>
8213 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
8216 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
8217 list of unsafe requests.
8219 * pic/pic.man: Fixed a typo.
8221 * man/groff_out.man: Fixed a typo.
8223 1999-12-18 Werner LEMBERG <wl@gnu.org>
8225 * Makefile.in: Doc fixes.
8227 1999-12-17 Fabrizio Polacco <fab@prosa.it>
8229 * groff/groff.cc: Missing `U' option added to getopt().
8231 * troff/troff.man: Missing `U' option added to synopsis.
8233 Version 1.12 released
8234 =====================
8236 1999-12-14 Werner LEMBERG <wl@gnu.org>
8238 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
8241 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
8242 with the more appropriate terms `safer' and `unsafe'.
8244 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
8245 sys_nerr and sys_errlist[].
8247 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
8249 * pic/pic.y, pic/pic.cc: Added check for fmod().
8251 1999-12-13 Werner LEMBERG <wl@gnu.org>
8253 * VERSION: Changed to 1.12.
8255 Here some patches from various sources; most of them taken from
8256 the Debian distribution.
8258 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
8259 tmac/Makefile.sub: New files copied directly from the NetBSD
8260 distribution. Probably, some additional adaptation later on is
8263 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
8266 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
8267 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
8268 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
8269 (`-S') is now the default.
8271 * README, NEWS: Updated.
8273 1999-12-09 Werner LEMBERG <wl@gnu.org>
8275 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
8277 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
8279 1999-12-06 Werner LEMBERG <wl@gnu.org>
8281 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
8282 grief than relief today. Additionally, it is against the GNU
8285 * configure: Recreated.
8287 1999-12-05 Werner LEMBERG <wl@gnu.org>
8289 * configure.in: Added GROFF_LIBM.
8291 * configure: Recreated.
8293 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
8296 * Makefile.in: Added definition of $(LIBM).
8298 * Makefile.comm (LIBM): Removed.
8300 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
8302 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
8304 * doc/Makefile: Added rule for generation pic.html.
8306 (clean): Files produced by grohtml will be removed also.
8308 * doc/pic.ms: Small fix.
8310 * tmac/tmac.html: Fixed suppression of headers.
8312 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
8314 * tmac/tmac.html: Fixing horizontal arrows.
8316 Turning off hyphenation.
8318 * tmac/tmac.an: Improved support for grohtml; better indentation,
8321 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
8323 * tmac/tmac.arkup: Added CDFTP macro
8325 * tmac/tmac.html: All headers are turned off for ms, me, and mm
8328 * tmac/troffrc: Some additions for HTML stuff.
8330 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
8332 * tmac/tmac.html: Small changes.
8334 1999-09-26 Werner LEMBERG <wl@gnu.org>
8336 * doc/groff.texinfo: Minor fixes.
8338 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
8340 * devhtml/TR: Changed spacewidth to 3.
8342 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
8344 * tmac/tmac.html: Moved markup macros to tmap.arkup.
8346 * tmac/tmac.arkup: New file.
8348 * grohtml/ChangeLog: New file.
8350 1999-09-16 Werner LEMBERG <wl@gnu.org>
8352 * doc/groff.texinfo (Common Features): Added Copying chapter.
8353 Changed format to @smallbook.
8355 1999-09-15 Werner LEMBERG <wl@gnu.org>
8357 * NEWS: Added info about groff.texinfo.
8359 * doc/groff.texinfo: Will now compile (using texi2dvi) without
8362 1999-09-14 Werner LEMBERG <wl@gnu.org>
8364 * groff/groff.man: More updates.
8366 1999-09-13 Werner LEMBERG <wl@gnu.org>
8368 * doc/groff.texinfo: New file. This manual is still very
8369 rudimentary. It has been originally contributed by Trent
8370 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
8373 * INSTALL: Added information about the `doc' subdir
8375 * troff/troff.man: Minor fixes.
8377 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
8380 * troff/input.cc (usage): Added missing `-ffam' to usage message.
8382 * Makefile.in (dist): groff-$(version).tar.gz must be removed
8383 also, otherwise it is included itself in another call of `make
8386 * groff/groff.cc (synopsis): Removed superfluous space.
8388 * PROJECTS, PROBLEMS, NEWS: Updated.
8390 * VERSION: Updated to 1.12beta.
8392 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
8394 * README: Updated: Included documentation about CVS repository,
8395 mailing lists, and daily snapshots.
8397 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
8399 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
8401 * tmac/tmac.an: If the tag didn't fit into the space that the
8402 macro `TP' specifies, the rest of the tag went into the space for
8405 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
8407 * grolj4/lj4.cc: Added duplex printing (option `-d').
8409 * grolj4/grolj4.man: Document duplex printing.
8411 1999-09-12 Werner LEMBERG <wl@gnu.org>
8413 * doc/Makefile (pic.ps): Fixed rule which caused problems with
8414 non-GNUish sed programs.
8416 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
8419 * configure.in (LIBS): Added `-lc'
8421 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
8423 * pic/tex.cc (solid_arc): Casting M_PI to double.
8425 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
8427 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
8428 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
8429 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
8431 * groff/groff_man.man: New file. This manual page was originally
8432 written for the Debian GNU/Linux system by Susan G. Kleinmann
8435 * eqn/list.cc (list_box::compute_metrics,
8436 list_box::compute_sublist_width): Removed variable declaration to
8437 avoid shadowing warnings.
8439 * grops/psrm.cc (resource_manager::process_file): Ditto.
8441 * tfmtodit/tfmtodit.cc (main): Ditto.
8443 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
8444 to avoid shadowing warnings.
8446 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
8447 shadowing loop variable.
8449 * groff/groff.man, troff/troff.man: Added doc about grohtml.
8451 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
8453 New grohtml frontend to convert groff input to html.
8455 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
8457 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
8459 * tmac/eqnrc: Added html device.
8461 * tmac/tmac.html: New file.
8463 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
8464 (troff_output::start_picture, troff_output::finish_picture),
8465 tbl/main.cc (process_input_file):
8466 Surrounded output with `graphics_start' and `graphics_end' so that
8467 the html driver can identify non-text portions.
8469 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
8470 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
8471 grotty/tty.ps (tty_printer::set_char): Additional parameter
8474 * include/printer.h: Class printer: New function
8475 set_char_and_width; new variables (is_char_named, is_named_set,
8476 named_command, named_char_s, named_char_n) to hold information
8477 about named characters -- needed by the html driver.
8479 * libdriver/printer.cc (printer::set_ascii_char,
8480 printer::set_special_char): Use set_char_and_width.
8482 * devhtml/*: New device files for html driver.
8484 * grohtml/*: New driver grohtml.
8486 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
8488 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
8491 1999-09-11 Luke Mewburn <lukem@netbsd.org>
8493 * libgroff/string.cc (search): Small fix to test against NULL
8496 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
8498 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
8499 \b'abc') were stacked in reverse order when processed in a
8502 * troff/node.h: Added `*last' to struct `node' to make the above
8505 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
8506 The default scale for the 'f' and 't' graphics functions were 'm'
8507 rather than 'u' (i.e., no scaling).
8509 1999-09-11 Peter Miller <peterm@jna.com.au>
8511 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
8512 do_file), soelim/soelim.man: Added `-I file' option to soelim,
8513 defining include paths.
8515 * soelim/soelim.cc (include_path_append): New function.
8517 1999-09-11 Larry Jones <larry.jones@sdrc.com>
8519 * tbl/main.cc (process_options): Unix (at least Documenter's
8520 Workbench) tbl allows arbitrary non-alpha characters between
8523 1999-09-11 Paul Eggert <eggert@twinsun.com>
8525 Y2k fixes. Don't assume that the current year precedes 2000.
8527 * doc/meref.me: Add \n(y2, \n(y4.
8529 * tmac/doc-common (Yr): New number register.
8530 (Dd): Don't assume current year precedes 2000.
8532 * tmac/tmac.e (td): Likewise.
8533 (y2, y4): New number registers.
8535 * pic/pic.man: Update reference for pic paper to May, 1991
8538 1999-09-11 Werner LEMBERG <wl@gnu.org>
8540 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8541 Removed quotation marks which prevented correct expansion of
8544 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
8546 1999-09-10 Werner LEMBERG <wl@gnu.org>
8548 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
8551 * Removed configure.old.
8553 1999-08-31 Werner LEMBERG <wl@gnu.org>
8555 * VERSION: Updated to 1.11.1
8557 1999-05-27 Werner LEMBERG <wl@gnu.org>
8559 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
8561 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8562 added quotations around $(tmac_wrap) to avoid syntax error if
8565 * configure: Newly generated using autoconf 2.13.
8567 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
8569 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
8571 * README, PROJECTS, NEWS, INSTALL, VERSION,
8572 doc/Makefile. doc/pic.ms, groff/groff.man:
8573 Prepare for 1.11 release. No code changes.
8574 Documentation for pic added (doc/pic.ms).
8576 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
8578 * Version 1.10 released.
8580 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
8582 * afmtodit/afmtodit.pl: Avoid comment on first line.
8584 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
8586 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
8587 * configure.in: Call it.
8589 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
8590 (distfiles): Doesn't depend on config.log or config.cache.
8592 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
8594 * grog/grog.sh: Use print "" rather than print in END rule.
8596 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
8598 * tbl/main.cc (process_data): Don't give error for excess data
8599 entries that are comments.
8601 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
8603 * tbl/main.cc (process_data): Fix case where new for-scope rules
8604 silently change meaning of code.
8606 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
8608 * troff/env.cc (hyphenate): Loop over all consecutive sequences
8609 of non-zero hyphenation codes.
8611 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
8613 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
8615 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
8617 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
8619 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
8621 * tmac/tmac.andoc: Make it work in compatibility mode.
8623 * refer/token.h (token_info::is_range_sep): New function.
8624 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
8625 * refer/ref.cc (reference::output): More sophisticated check for
8628 * devps/prologue.ps (MANUAL): New procedure.
8629 * grops/ps.cc (main): New -m option.
8630 (usage): Include -m.
8631 (ps_printer::~ps_printer): Implement -m.
8633 * aclocal.m4 (GROFF_G): New macro.
8634 * configure.in: Call it.
8635 * Makefile.in (g): Provided by configure.
8637 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
8639 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
8642 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
8643 (tmac_m, tmac_s): Deleted.
8644 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
8645 tmac_s_prefix): New variables.
8646 (MDEFINES): Change accordingly.
8647 * Makefile.comm (.man.n): Use new TMAC_* variables.
8648 * configure.in (GROFF_TMAC): Call.
8649 * aclocal.m4 (GROFF_TMAC): Define.
8650 * tmac/Makefile.sub (stamp_wrap): New target.
8651 (install_data, uninstall_sub): Handle macro wrapping.
8653 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
8655 * tbl/main.cc (main): Ignore -T option.
8657 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
8659 * devlj4/generate/special.map: Add definition of \(nb.
8661 * tmac/tmac.dvi: Add definition of \(nb.
8663 * troff/dictionary.c (dictionary::dictionary): association::v gets
8664 initialized by association::association.
8666 * tmac/Makefile.sub: Avoid using temporary files when installing.
8668 * troff/env.cc (environment::set_font): Make bad font number a
8671 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
8673 * Makefile.in (datadir): Use share rather than lib.
8675 * groff/groff.cc (basename): Rename to xbasename.
8677 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
8679 * Makefile (CCLIBS): Don't use.
8680 * Makefile.ccpg: Likewise.
8682 * acgroff.m4: Rename to...
8683 * aclocal.m4: Modify extensively for autoconf 2.
8684 * configure.in: Likewise.
8685 * Makefile.in: Likewise.
8687 * groff/pipeline.c (const): Declare as empty if __STDC__ not
8689 (xstrsignal): Check for definition of NSIG. Conditionalize
8690 on SYS_SIGLIST_DECLARED. Make return type const.
8692 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
8694 * troff/input.cc (interpolate_macro): Rephrase missing space
8697 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8699 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
8700 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
8701 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
8702 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8703 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
8704 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
8705 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
8706 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
8707 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
8708 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
8709 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
8712 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
8714 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
8716 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
8718 (macro_iterator::macro_iterator): Add additional argument.
8720 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
8722 * troff/div.cc (vertical_size::vertical_size): In place of integer
8723 specifying line spacing use cunits specifying post vertical
8725 (macro_diversion::output, top_level_diversion::output): Likewise.
8726 * troff/div.h: Change declarations accordingly.
8727 * troff/env.cc (pending_output_line): Replace ls field by post_vs
8729 (pending_output_line::pending_output_line,
8730 pending_output_line::output, environment::output,
8731 environment::output_line, environment::output_title,
8732 environment::hyphenate_line): In place of
8733 integer specifying line spacing use cunits specifying post vertical
8735 (environment::environment): Add post_vertical_spacing and
8736 prev_post_vertical_spacing arguments.
8737 (environment::get_post_vertical_spacing): New function.
8738 (environment::total_post_vertical_spacing): New function.
8739 (environment::post_vertical_spacing): New function.
8740 (init_env_requests): Initialize pvs request and .pvs register.
8741 * troff/env.h: Change declarations.
8743 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
8745 * tmac/tmac.pspic: Immediately remove the temporary file.
8747 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
8749 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
8750 height is specified.
8752 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
8754 * tbl/table.c (struct vertical rule, class table_entry): Use int
8755 not short for start_row and end_row.
8757 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
8759 * troff/input.cc (trapping_blank_line, blank_line_macro): New
8761 (diverted_space_node::reread, process_input_stack): Call
8762 trapping_blank_line() rather than blank_line().
8763 (init_input_requests): Bind "blm" to blank_line_macro().
8765 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
8767 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
8769 * troff/env.cc (environment::possibly_break_line): Require that
8770 width total excluding width of final space node be greater than
8771 the target text length.
8773 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
8775 * troff/node.cc (kern_pair_node::vertical_extent): New function.
8777 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
8779 * troff/node.cc (charinfo_node): New class.
8780 (glyph_node, composite_node): Derive from charinfo_node. Change
8781 member functions accordingly.
8783 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
8785 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8787 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
8789 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8791 * devps/generate/textmap (notsubset): Add.
8793 * tmac/tmac.a4: New file.
8795 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
8797 * pic/main.cc (had_parse_error): New variable.
8798 (do_picture, do_whole_file): Set had_parse_error if yyparse()
8800 (main): Return 1 if had_parse_error is true.
8802 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
8804 * grolj4/lj4.cc (main): Avoid use of strtoul.
8806 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
8808 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8809 iso_8859_1 or $LESSCHARSET is latin1.
8811 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
8813 * hpftodit: New directory.
8814 * Makefile.in (CCPROGDIRS): Add hpftodit.
8815 * devlj4/generate: New directory.
8817 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
8819 * configure.in: Don't use AC_VFORK.
8820 * groff/pipeline.c (run_pipeline): Use fork() always.
8822 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
8824 * grops/ps.cc (main): Use %1 not %s in error message for -w.
8826 * Makefile.in (CCPROGDIRS): Add grolj4.
8827 (DEVDIRS): Add devlj4.
8828 * grolj4, devlj4: New directories.
8829 * tmac/troffrc: Handle lj4.
8830 * tmac/tmac.lj4: New file.
8832 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
8834 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8836 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
8838 * troff/input.cc (do_if_request): At end of second string, switch
8839 environments before getting next token.
8841 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
8843 * devps/psstrip.sed: Split rule that strips whitespace on either
8846 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
8848 * troff/node.h (font_family::make_definition): Add return value to
8849 declaration. * troff/symbol.h (symbol::operator==,
8850 symbol::operator!=): Likewise.
8852 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
8854 * groff/groff.cc (main, help, synopsis): Handle -S.
8855 (possible_command::insert_arg): New function.
8857 * tmac/tmac.safer: New file.
8858 * tmac/msafer.man: New file.
8859 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8861 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
8863 * pic/pic.h, pic/main.cc (safer_flag): New variable.
8864 * pic/pic.y (placeless_element): Avoid unsafe operations if
8865 `safer_flag' is set.
8866 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8868 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
8870 * eqn/lex.cc (get_token): Put call to add_context() in block to
8871 work around Sun C++ 4.0 bug.
8873 * include/stringclass.h (operator +): Use ?: instead of `if' to
8874 work around Sun C++ 4.0 bug.
8876 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
8878 * tbl/main.cc (process_format): Accept - as a synonym for the _
8881 * libbib/index.cc (minus_one): Don't declare as const.
8883 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
8885 * troff/input.cc (get_char_for_escape_name): Push back a newline.
8887 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
8889 * troff/input.cc (write_macro_request): New function.
8890 (init_input_requests): Bind write_macro_request to writem.
8892 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
8894 * tmac/tmac.s (@EN): Turn filling back on even if there was no
8897 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8899 * tmac/tmac.s (@TS): Renamed from TS.
8900 (TS): Call LP then TS again.
8901 (cov*ab-init): Alias @TS to TS.
8903 * tmac/tmac.s: Allow QP or RS to initialize.
8905 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
8906 Move initializations of PS and LL here.
8907 (par@init): Don't initialize HY. Avoid changing environment 0.
8908 (par*env-init): Don't all par@reset.
8910 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
8912 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8914 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
8916 * Makefile.in (MDEFINES): Add LDFLAGS.
8917 (LDFLAGS): Add definition line.
8919 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
8921 * troff/input.cc (get_optional_char): Split off error check into...
8922 (check_missing_character): New function.
8923 * troff/token.h: Declare it.
8924 * troff/env.cc (margin_character): Don't call get_optional_char.
8925 Only call tok.next() after making the node.
8927 * include/lib.h (getopt): Make 2nd argument char *const *.
8929 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
8931 * nroff/conftest.sh: Deleted.
8933 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
8935 * pic/make-dos-dist: Deleted.
8937 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
8939 * devps/psstrip.sed: Strip comments before stripping trailing
8942 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
8944 * Version 1.09 released.
8946 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
8948 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8950 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
8952 * libgroff/font.cc (font::load_desc): Fix typo in error message.
8954 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
8956 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8957 about returning without a value.
8959 * troff/charinfo.h (charinfo::get_special_translation): Cast
8960 TRANSLATE_NONE to int.
8962 * refer/token.cc (lookup_token, store_token): Remove bogus loop
8963 test. Fix test so that it works with n unsigned.
8965 * pic/pic.y (defaults_table): Fully bracket initializer.
8966 * pic/lex.cc (lookup_keyword): Likewise.
8967 * eqn/lex.cc (token_table, def_table): Likewise.
8968 * eqn/box.cc (param_table): Likewise.
8969 * troff/input.cc (warning_table): Likewise.
8970 * libgroff/font.cc (table): Likewise.
8971 * grops/ps.cc (ps_printer::special): Likewise.
8972 * grops/psrm.cc (resource_manager::process_file): Likewise.
8973 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8974 * refer/command.cc (command_table): Likewise.
8975 * addftinfo/addftinfo.cc (param_table): Likewise.
8977 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8978 about temp's being unused.
8979 (unused): New function.
8981 * groff/pipeline.cc: Declare c_fatal.
8983 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8986 * libbib/index.cc (index_search_item::load): Prevent compiler
8987 warnings about fd_closer's being unused.
8988 (unused): New function.
8990 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
8992 * troff/input.cc (copy_mode_error): Make `prefix' static.
8995 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8997 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8998 HAVE_CC_OSFCN_H and modify accordingly.
9000 * troff/input.cc (init_charset_table): radicalex overlaps
9003 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
9004 udodo!hans@relay.NL.net).
9005 * groff/configure.in: Call it.
9007 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
9008 * groff/configure.in: Call it.
9009 * include/lib.h: Conditionalize declaration of pclose.
9011 * troff/div.cc (last_page_number): New global variable.
9012 (top_level_diversion::begin_page): Exit if we just printed the
9014 * troff/div.h (last_page_number): Declare it.
9015 * troff/input.cc (parse_output_page_list): Set last_page_number.
9017 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
9018 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
9019 tmac/tmac.X: Likewise.
9020 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
9021 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
9023 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
9025 * tmac/doc-ditroff (hK): Remove groff specific code which
9026 prevented page-breaks between separate manual entries. If this is
9027 the first page, don't set the page number to 1.
9029 * acgroff.m4 (GROFF_POSIX): New macro.
9030 * configure.in: Use it.
9032 * troff/node.cc (class real_output_file,
9033 real_output_file::real_output_file,
9034 real_output_file::~real_output_file): Conditionalize use of
9035 popen/pclose on POPEN_MISSING.
9036 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
9037 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
9038 (pipe_source): Similarily.
9040 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
9042 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
9043 presence of declarations by trying to compile example with
9044 conflicting declarations. (gcc only gives a warning for missing
9047 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
9049 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
9050 (from Ulrich Lauther).
9052 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
9054 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
9056 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
9058 * indxbib/indxbib.cc (write_hash_table): Add code for case where
9059 pointers and ints have different sizes.
9061 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
9063 * tmac/tmac.s (par*env-init): Call par@reset.
9065 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
9067 * tmac/tmac.s (@IP): Switch to a new environment when diverting
9069 (par*push-tag-env, par*pop-tag-env): New macros.
9071 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
9073 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
9074 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
9076 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
9077 comment. Include <time.h>.
9079 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
9081 * grops/ps.cc (is_small_h, is_small_v): Deleted.
9082 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
9085 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
9087 * troff/input.cc (read_request): Only print a prompt if reading
9088 from the terminal. Also clearerr on EOF if reading from the
9089 terminal. Declare isatty.
9091 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
9093 * refer/label.y: Rename map_t to map_func and extractor_t to
9096 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
9098 * include/assert.h: Don't use volatile.
9099 * libgroff/assert.cc: Likewise.
9101 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
9103 * troff/input.cc (abort_request): Look at character in tok before
9106 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
9108 * troff/troff.h (NO_RETURN): Deleted.
9109 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
9110 * troff/input.cc (exit_troff): Likewise
9112 * Makefile.in: Remove `Making ...' messages since GNU make now
9115 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
9117 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
9119 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
9122 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
9124 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
9126 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
9128 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
9129 MARK_REG if there was no left delimiter.
9131 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
9133 * pic/troff.cc (troff_output::text): Set line thickness to
9134 relative before outputting text.
9136 * tmac/tmac.e (@k): Don't zero ?T.
9139 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
9141 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
9143 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
9145 * troff/input.cc (decode_args): Warn about unquoted tabs (from
9148 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
9150 * troff/input.cc (ignoring): New variable.
9151 (ignore): Set ignoring during call to do_define_macro.
9152 (do_define_macro): Clear ignoring before interpolating terminating
9154 (copy_mode_error): New function.
9155 (get_char_for_escape_name, read_long_escape_name,
9156 interpolate_arg): Use copy_mode_error.
9157 (warning_table): Add WARN_IG.
9158 * troff/troff.h (WARN_IG): Declare.
9159 (WARN_TOTAL): Change accordingly.
9161 * groff/pipeline.c (strsignal): Rename to xstrsignal.
9162 * groff/groff.cc (strsignal): Delete declaration.
9164 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
9166 * troff/div.cc (page_offset): Use 'm' as default scaling.
9168 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
9170 * nroff/nroff.sh: Ignore -u.
9172 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
9174 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
9176 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
9178 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
9180 (B2): With -Tascii, leave additional vertical space before
9181 and after. Ensure that the left and right indent is restored to
9182 what it was even if the point size changes. Don't call
9183 par@finish. Change the indent, line length and title length
9184 directly. With -Tascii, make the width of the box 1n less.
9185 (B1): Remember 1n at the current point size. Don't call
9186 par@reset. Change the indent, line length and title length
9187 directly. Ensure that the temporary indent is preserved.
9188 (par*box-mark-top): Turn off no spacing mode.
9190 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
9192 * Makefile.in (dist): Use .gz suffix.
9194 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
9196 * troff/input.cc (main): Add return 0.
9197 * pic/main.cc (main): Use return instead of exit.
9198 * tbl/main.cc (main): Likewise.
9199 * eqn/main.cc (main): Likewise.
9200 * grops/ps.cc (main): Likewise.
9201 * grotty/tty.cc (main): Likewise.
9202 * groff/groff.cc (main): Likewise.
9203 * grodvi/dvi.cc (main): Likewise.
9204 * refer/refer.cc (main): Likewise.
9205 * indxbib/indxbib.cc (main): Likewise.
9206 * lkbib/lkbib.cc (main): Likewise.
9207 * soelim/soelim.cc (main): Likewise.
9208 * addftinfo/addftinfo.cc (main): Likewise.
9209 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
9210 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
9212 * troff/token.h (process_input_stack): Don't declare as static.
9213 * troff/input.cc: Likewise.
9215 * troff/node.c (invalidate_fontno): Make it a static member of
9216 class font_family. Change callers.
9217 * troff/node.c: Change declaration.
9219 * tbl/main.cc (struct input_entry_format): Add explicit public
9221 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
9222 struct double_hline_stuff): Likewise.
9223 * tbl/table.h (struct entry_format): Likewise.
9224 * pic/object.h (struct saved_state): Likewise.
9226 * include/stringclass.h: Add forward declarations of friend
9227 functions that are later declared as inline. Don't include inline
9228 specifier in friend declaration.
9230 * libgroff/lib.h: Declare popen and pclose.
9231 * acgroff.m4 (GROFF_POPEN): New macro.
9232 * configure.in: Call it.
9234 * include/lib.h (PI): New constant. Undef first if necessary.
9235 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
9236 * grops/ps.cc (degrees, radians): Likewise.
9237 * libgroff/font.cc (font::get_skew): Likewise.
9239 * grops/ps.cc (is_ascii): New function.
9240 (ps_output::put_string): Use is_ascii. Use csprint rather than
9242 (ps_printer::define_encoding): Use csspace.
9243 * libgroff/strtol.c (ISASCII): New macro.
9244 (strtol): Cast arguments to is*() and tolower() to unsigned char.
9245 Use ISASCII rather than isascii.
9246 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
9247 * libgroff/cset.cc: Likewise.
9248 * libdriver/input.cc: Include cset.h.
9249 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
9252 * refer/refer.cc (main): Use %ld rather than %d for longs.
9254 * libbib/index.cc (index_search_item_iterator::get_tag): Use
9257 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
9259 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
9261 * troff/input.cc (hyphenation_code): Skip white space between
9264 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
9266 * tbl/table.h (table::entry_list_tailp): New member.
9267 (table::table): Initialize it.
9268 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
9271 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
9273 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
9274 with negative horizontal positions. Remove casts of glyph::hpos to
9276 (USHRT_MAX): Delete definition.
9277 (SHRT_MAX, SHRT_MIN): New definitions.
9278 (glyph::hpos): Change type to short.
9279 (tty_printer::end_page): Output multiple backspaces if necessary.
9280 Remove casts of glyph::hpos to int.
9282 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
9284 * tmac/tmac.s (@RT): New definition.
9286 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
9288 * refer/refer.cc (do_file): Make sure current_filename is set when
9291 * pic/common.cc (common_output::dot_line): Handle zero length
9294 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
9296 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
9297 (par@init): Initialize \n[HY].
9299 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
9301 * troff/dictionary.cc (dictionary::remove): Continue when
9304 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
9306 * Makefile.com (.y.cc): Avoid ending up with two versions of
9309 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
9311 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
9312 (\(,C): Likewise. Also fix typo.
9314 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
9316 * lib.h: Delete extraneous semi-colon.
9318 * Add pso request: `so' from a pipe.
9319 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
9320 (file_iterator::close): New function.
9321 (file_iterator::~file_iterator, file_iterator::next_file): Use
9322 file_iterator::close.
9323 (file_iterator::backtrace): Say `process' rather than `file' when
9324 the stream is popened.
9325 (pipe_source): New function.
9326 (init_input_requests): Bind ".pso" to pipe_source.
9328 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
9330 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
9332 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
9333 digits in lower case.
9335 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
9337 * Version 1.08 released.
9339 * Makefile.in (dist): Insert || true after ln -s commands that
9342 * mm: Update to mm 1.16.
9344 * acgroff.m4 (GROFF_CSH_HACK): New macro.
9345 * configure.in: Call GROFF_CSH_HACK. Substitute for
9347 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
9349 * nroff/Makefile.sub (nroff): New target.
9350 (install_data): Install nroff.
9351 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
9352 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
9354 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
9356 * eqn/Makefile.sub (neqn): Add chmod +x.
9358 * grog/Makefile.sub (grog): Remove spurious semi-colon.
9360 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
9362 * troff/input.cc (string_iterator::string_iterator()): Initialize
9365 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
9367 * troff/div.cc (macro_diversion::space,
9368 top_level_diversion::space): Don't set high_water_mark.
9369 (macro_diversion::output, top_level_diversion::output): Don't
9370 include post line space in high water mark.
9372 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
9374 * eqn/eqn.y: Don't define YYDEBUG.
9375 * pic/pic.y: Likewise.
9377 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
9379 * tmac/tmac.e ([3): Add space after comma following editors.
9380 Change double spaces to single spaces.
9381 ([4): Change double spaces to single spaces.
9383 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
9384 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
9385 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
9386 after %!PS-Adobe- (for Newsprint).
9388 * troff/div.cc (top_level_diversion::begin_page): When
9389 before_first_page is 1, set page_number to 1.
9391 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
9393 * eqn/box.cc (box::top_level): Protect equation with \&.
9395 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
9397 * groff/groff.cc (possible_command::set_name): Delete old name.
9399 * groff/groff.cc (possible_command::~possible_command): Use
9402 * troff/node.cc (troff_output_file::begun_page): New member.
9403 (troff_output_file::troff_output_file): Initialize it.
9404 (troff_output_file::really_begin_page): Only output V command if a
9405 page has been begun.
9407 * pic/pic.y (placeless_element): Delete argument to PRINT after
9410 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
9412 * Make wrapman work.
9413 * troff/div.h (class top_level_diversion): Replace
9414 first_page_begun by before_first_page (with opposite sense).
9415 * Change first_page_begun to before_first_page inverting sense.
9416 * troff/div.cc (class nl_reg): New class.
9417 (init_div_requests): Use class nl_reg for \n(nl.
9418 (top_level_diversion::begin_page): Don't call
9419 output_file::begin_page if before_first_page is 2;
9420 reset before_first_page afterwards. If have_next_page_number is
9421 false, then always increment page_number.
9422 * tmac/tmac.an: Set traps within TH rather than at the top-level.
9423 Restore compatibility mode after loading, and then disable
9424 compatibility mode in TH.
9426 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
9428 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
9430 * troff/node.h (output_file::trailer): Declare.
9431 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
9432 * troff/node.cc (output_file::trailer): New function.
9433 (troff_output_file::~troff_output_file): Move most code into...
9434 (troff_output_file::trailer): New function.
9435 (class troff_output_file): Delete page_length member. Declare
9437 (troff_output_file::really_begin_page): Use current page length
9438 for final V command.
9440 * tbl/main.cc (struct options): New decimal_point_char member.
9441 (options::options): Initialize this.
9442 (process_options): Implement decimalpoint option.
9443 (process_data): Pass decimal_point_char option to table::table.
9444 * tbl/table.h (class table): New decimal_point_char member.
9445 (table::table): Add additional argument.
9446 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
9447 second argument specifying decimal point character. Use this
9449 (table::table): Initialize decimal_point_char.
9450 (table::add_entry): Change call to find_dot.
9452 * troff/input.cc (get_copy, token::next): Implement \V.
9453 (interpolate_environment_variable): New function.
9455 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
9457 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
9458 * pic/pic.y: Likewise.
9460 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
9462 * refer/ref.cc (reference::insert_field, reference::delete_field):
9464 * troff/number.cc (parse_term): Likewise.
9466 * acgroff.m4 (GROFF_PROG_YACC): New macro.
9467 * configure.in: Use GROFF_PROG_YACC.
9469 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
9471 * Makefile.in (OPTIMIZE): New define.
9472 (DEBUG): Empty by default.
9473 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
9475 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
9476 (GROFF_ARRAY_DELETE): Likewise.
9477 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
9479 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
9481 * devps/psstrip.sed: Use different delimiter on last line (so that
9482 it works with BSD 4.4 sed.)
9484 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
9486 * devps/psstrip.sed: Delete comments.
9488 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
9489 optind, opterr, optarg.
9490 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
9493 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
9495 * Makefile.in (check): Dummy target.
9497 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
9499 * Version 1.07 released.
9501 * Integrate mm 1.11.
9503 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
9504 where start_col was meant.
9506 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
9508 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
9510 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
9512 * troff/input.cc (token::next): Make \z\o'...' and similar things
9515 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
9517 (environment): Add margin_character_flags member.
9518 * env.cc (environment::environment(symbol),
9519 environment::environment(const environment *): Initialize
9520 margin_character_flags.
9521 (margin_character): Rewrite.
9522 (environment::output_line): Add a margin character if
9523 margin_character_flags is non-zero. Turn off the
9524 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
9525 zero, use margin_character_node without copying and then set
9526 margin_character_node to 0.
9528 * devps/DESC.in: Change minimum size to 1000.
9530 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
9532 * troff/symbol.h (symbol::hash): Change return type to unsigned
9534 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
9537 * test-groff: Use -r rather than -x.
9539 * grops/psfig.diff: Include in distribution again.
9541 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
9543 * Makefile.in (dist): Use gzip.
9545 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
9547 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
9548 unistd.h as well as in stdlib.h.
9549 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
9550 defined; otherwise include <sys/types.h> and <unistd.h> if
9551 UNISTD_H_DECLARES_GETOPT is defined.
9553 * configure.in: use builtin(include, ... rather than include(...
9554 * configure: Regenerate with autoconf 1.3.
9556 * libdriver/print.cc (printer::adjust_arc_center): Use new
9557 algorithm suggested by Andy Fyfe.
9559 * libdriver/printer.cc (printer::adjust_arc_center): New function.
9560 * include/printer.h: Declare this.
9561 * grops/ps.cc (ps_printer::draw): Use it.
9562 * grodvi/dvi.cc (dvi_printer::draw): Use it.
9564 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
9566 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
9568 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
9570 * eqn/main.cc (main): Handle "eqn -".
9572 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
9574 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
9576 * mm: Integrate version 1.08.
9578 * pic/troff.cc (troff_output::finish_picture): Set
9579 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
9580 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
9581 if it's not defined. Check whether the register is non-zero rather
9582 than whether it's not defined.
9583 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
9585 * indxbib/indxbib.cc: Move all signal handling into...
9586 * indxbib/signal.c: New file.
9587 * configure.in: Call AC_RETSIGTYPE.
9589 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
9590 * configure.in: Call GROFF_STRUCT_EXCEPTION.
9591 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
9593 * troff/input.cc (token::token, token::operator=): Work round SGI
9595 * pic/object.cc (position::position): Likewise.
9597 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
9599 * pic/pic.h: Move declaration of hypot().
9601 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
9603 * pic/pic.h: Declare hypot().
9605 * pic/pic.h: Define M_PI if necessary.
9607 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
9609 * tmac/tmac.e (re): Add alternative version that doesn't use groff
9612 * devps/prologue.ps (RE): Handle the possibility that the old font
9613 doesn't have a FontName entry.
9615 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
9617 * tmac/tmac.e (fam): Redefine to set family in environment 2.
9618 (@C): Use @fam not fam.
9620 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
9622 * lookbib/lookbib.cc (main): Change type of start to const char *.
9623 * lkbib/lkbib.cc (main): Likewise.
9625 * eqn/lex.cc (definition::definition): Don't use member
9626 initializer syntax for members of anonymous unions.
9628 * troff/input.cc (input_stack::backtrace): Change type of to const
9631 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
9633 * include/stringclass.h (class string): Declare inline friend
9634 functions as inline in class declaration.
9635 * troff/hvunits.h (class hunits, class vunits): Likewise.
9636 * include/refid.h (class reference_id): Likewise
9637 * troff/troff.h (points_to_units(units), scale(units, double)):
9638 Delete declarations.
9639 * libdriver/input.cc (get_char): Delete declaration.
9640 * include/lib.h: Change 2nd argument of getopt from const char **
9642 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
9643 char **' before assigning to a `const char **'.
9644 * tbl/table.cc: Delete extra declarations of prints().
9646 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
9648 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
9649 char **' before assigning to a `const char **'.
9651 * libgroff/errarg.cc (errarg::errarg): Don't use member
9652 initializer syntax for members of anonymous unions.
9654 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
9656 * mm: Integrate version 1.07.
9658 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
9660 * troff/input.c (translate2): Rename to
9661 (translate_no_transparent).
9662 (init_input_requests): Rename tr2 to trnt.
9664 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
9666 * troff/charinfo.h (class charinfo): Add transparent_translate field.
9667 (charinfo::set_translation, charinfo::set_special_translation):
9668 Add second argument that specifies value for
9669 transparent_translate.
9670 (charinfo::get_translation, charinfo::get_special_translation):
9671 Add optional second argument that specifies whether translation is
9672 being used for transparent throughput.
9673 * troff/input.cc (charinfo::set_translation,
9674 charinfo::set_special_translation): Handle second argument.
9675 (charinfo::charinfo): Initialize transparent_translate.
9676 (translate): Split main part off into
9677 (do_translate): New function. Pass argument saying whether
9678 translation applies to transparent throughput.
9679 (translate2): New request.
9680 (init_input_requests): Bind translate2 to `tr2'.
9682 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
9684 * tbl/table.h (class table): Add `nokeep' flag.
9685 * tbl/main.cc (process_options): Handle `nokeep' option.
9686 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
9687 table::do_bottom): Don't output keep/release macro definitions or
9688 calls when `nokeep' option has been specified.
9690 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
9692 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
9694 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
9696 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
9697 block_entry::divert, alphabetic_block_entry::divert): Add extra
9698 argument giving column separation.
9699 (table::compute_widths): Pass column separation to
9700 table_entry::divert().
9701 (block_entry::do_divert): If an entry spans multiple columns and a
9702 minimumum width has been specified for each column, then set the
9703 line length to the sum of the widths (plus possibly the column
9706 * troff/input.cc (set_escape_char): Don't set the escape_char
9707 until after calling has_arg().
9709 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
9711 * tbl/table.cc (table::do_top): Add missing \s0 for double box
9714 * tbl/table.cc (table::print_double_hline): Avoid extra new line
9715 in case where r > nrows - 1.
9717 * tbl/table.cc (BODY_HEIGHT): Deleted.
9718 (LINE_SEP): New definition.
9719 (table::print_single_hline, table::print_double_hline,
9720 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
9721 table::do_row, table::do_top): Use LINE_SEP space before a line
9722 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
9724 * tbl/table.cc (text_entry::print_contents): New function.
9725 (text_string_name, right_text_string_name): Deleted.
9726 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
9727 (simple_text_entry::do_width, numeric_text_entry::do_width,
9728 alphabetic_text_entry::do_width): Don't store the contents of the
9730 (left_text_entry::simple_print, right_text_entry::simple_print,
9731 center_text_entry::simple_print,
9732 alphabetic_text_entry::simple_print,
9733 numeric_text_entry::simple_print): Print the entry directly
9734 instead of using the stored string.
9736 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
9738 * devps/Makefile: Strip PostScript files.
9739 * devps/prologue: Rename to...
9740 * devps/prologue.ps.
9741 * devps/psstrip.sed: New file.
9742 * devps/download: Use .pfa rather than .ps for installed versions
9745 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
9747 * troff/env.cc (input_trap): Give a warning if the argument is out
9750 * troff/env.cc (adjust): Treat negative argument as missing. Round
9751 argument > 5 down to 5.
9753 * troff/env.cc (center, right_justify): Make negative argument zero.
9755 * troff/div.cc (page_offset, vertical_position_traps): Treat
9756 invalid argument as missing.
9757 * troff/env.cc (line_spacing, line_length, title_length, indent,
9758 underline, hyphen_line_max_request, control_char,
9759 no_break_control_char, widow_control_request, adjust, input_trap,
9760 point_size): Likewise.
9761 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
9762 constant_space): Likewise.
9763 * troff/input.cc (compatible, shift, warn_request,
9764 set_escape_char): Likewise.
9766 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
9767 * tbl/table.cc (table::table): Likewise.
9769 * Makefile.dev (install_dev): depends on $(DEVFILES).
9771 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
9773 * devX75, devX75-12, devX100, devX100-12: New directories.
9774 * Makefile.in: Add these to DEVDIRS.
9776 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
9777 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
9778 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
9779 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
9781 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
9782 (uninstall): New target.
9783 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
9784 uninstall_prog, uninstall_dev): New targets.
9786 * troff/div.cc (return_request): Treat an invalid argument as
9789 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
9791 * tmac/tmac.e ((f): Set up the environment even when there's a
9792 current diversion. Transperently throughput a call to @N.
9795 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
9797 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9798 up to vertical resolution.
9800 * tbl/table.cc (table::do_row): Change row number after printing
9803 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9805 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
9807 * Rename CHANGES to NEWS.
9809 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
9811 * libgroff/new.cc (operator new): Avoid calling malloc(0).
9813 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
9815 * man.ultrix: Removed.
9817 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
9819 * Makefile.comm (extraclean): Delete files whose names begin with
9822 * pic/troff.cc (troff_output::text): Fix typo in implementation of
9825 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
9827 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9828 * troff/div.cc (page_length, need_space, space_request): Treat
9829 invalid optional argument as missing.
9830 * troff/env.cc (number_lines): If the first argument is present
9831 but not a number, turn on line numbering, don't change the next
9832 line number and parse the remaining arguments.
9834 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9836 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
9838 * eqn/box.h: Change declaration accordingly.
9839 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
9840 the specified size was bad but don't give an error. Check for
9842 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9843 * eqn/lex (do_size): Likewise.
9845 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
9847 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9850 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
9852 * tbl/table.cc (table::init_output): Improve error message when
9853 table won't fit on one page.
9855 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
9857 * pic/troff.cc (troff_output::start_picture): Generate line
9858 containing a horizontal motion equal to the width of the picture.
9860 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9861 using GROFF_COMMAND_PREFIX environment variable.
9863 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
9865 * mdate.sh: Use $NF rather than $(NF).
9867 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
9869 * pic/main.cc (main): Use %1 not %c in argument to warning.
9871 * eqn/main.cc (main): Output code to check that geqn was given the
9874 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
9876 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9877 `ln -s ../Makefile .; make; rm -f Makefile'.
9879 * troff/hyphen: Rename to...
9881 * troff/input.cc (main): Delete -H option. Don't call
9883 * troff/env.cc: Include searchpath.h and macropath.h.
9884 (exception_dictionary): Deleted.
9886 (read_hyphen_file): Deleted.
9887 (hyphenation_language): New struct.
9888 (class trie, class hyphen_trie): Move declarations up.
9889 (trie_node::~trie_node): Deleted.
9890 (trie::delete_trie_node): New function.
9891 (trie::do_delete): New pure virtual function.
9892 (hyphen_trie::do_delete): New function.
9893 (trie::~trie): New function.
9894 (hyphen_trie::~hyphen_trie): New function.
9895 (trie::clear): No need to chcek that tp is not 0.
9896 (current_language, language_dictionary): New variables.
9897 (hyphen_word): Give an error if no current language. Use
9898 exceptions dictionary in current language.
9899 (hyphen_trie::read_patterns_file): Find file using macro_path.
9900 Allow comments (starting with %) in patterns file. Don't make it
9901 a fatal error if the file can't be found.
9902 (hyphenate): Return if no current language. Get the exceptions
9903 dictionary and the hyphenation patterns from the current language.
9904 (set_hyphenation_language): New variable.
9905 (hyphenation_patterns_file): New function.
9906 (hyphenation_language_reg): New class.
9907 (hyphenation_language_reg::get_string): New function.
9908 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9909 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
9911 * groff/groff.cc (main, help, synopsis): Delete -H option.
9912 * include/Makefile.sub: Don't define HYPHENFILE.
9913 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9914 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9915 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9916 hyphenation patterns.
9918 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
9920 * eqn/neqn.sh: New file.
9921 * eqn/Makefile.sub: Handle neqn.sh.
9923 * eqn/eqn.h: Declare `nroff' variable.
9924 * eqn/box.cc (param_table): Add `nroff' param.
9926 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9928 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9930 * troff/troff.h (WARN_FONT): New warning.
9931 (WARN_TOTAL): Change accordingly.
9932 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9933 (warning_table): Add WARN_FONT.
9934 * troff/node.cc (mount_font_no_translate): Pass argument to
9935 font::load_font. If this is non-zero, give a warning.
9936 Don't give an error message when accessing a font that has already
9937 been found to be invalid.
9938 * include/font.h (font::load, font::load_font): Add additional
9939 optional argument which suppresses error message if the font is
9941 * libgroff/font.cc (font::load_font): Handle additional argument.
9942 (font::load): Add additional argument. If this is non-null, set it
9943 to 1 and don't give error message.
9945 * include/printer.h (printer::end_page): Add argument giving
9947 * libdriver/input.cc (do_file): Pass this.
9948 * grops/ps.cc (ps_printer::end_page): Add argument.
9949 * grodvi/dvi.cc (dvi_printer::end_page,
9950 draw_dvi_printer::end_page): Add argument.
9951 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9952 columns_per_page members. New member nlines.
9953 (DEFAULT_LINES_PER_PAGE): Deleted.
9954 (tty_printer::tty_printer): Don't compute lines_per_page from
9955 font::paperlength. Don't compute columns_per_page from
9957 (tty_printer::add_char): Don't check horizontal position against
9958 columns_per_page. Grow glyphs vector if neccessary.
9959 (tty_printer::end_page): Add argument giving page_length in units.
9960 Discard lines past end of page.
9962 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
9964 * tmac/tmac.tty-char: Fix definition of \(/l.
9966 * tmac/tmac.X: Define \(en.
9968 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
9970 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9971 lpq, then use lp rather than lpr.
9973 * tmac/tmac.s (par@reset): Don't call `ad'.
9974 (par*env-init): Call `ad'.
9976 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
9978 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9981 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9982 * indxbib/indxbib.cc: Likewise.
9984 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
9986 * libgroff/putenv.c: New file.
9987 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9988 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9989 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9990 stdlib.h with AC_HAVE_HEADERS.
9992 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
9994 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9997 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
9999 * eqn/box.cc (gsize): Make it an int.
10000 (set_gsize): Parse argument handling increment or decrement.
10001 (box::top_level): Convert gsize to a string.
10003 * troff/input.cc (exit_troff): Make buf unsigned char [].
10004 Call to make_temp_iterator casts buf to char*.
10006 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
10008 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
10009 * Makefile.cpg (depend.temp): Likewise.
10011 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
10013 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
10015 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
10017 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
10019 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
10021 * Version 1.06 released.
10023 * Integrate mm 1.04.
10025 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
10027 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
10029 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
10031 * afmtodit/afmtodit.pl: Add -n option that disables generation of
10033 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
10034 afmtodit. Regenerate.
10036 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
10037 @f back past the current position.
10039 * tmac/tmac.e: Change calls to @R so that comments are not part of
10042 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
10044 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
10046 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
10047 check that we can link a call to a function declared in <stdio.h>.
10048 (GROFF_UNISTD_H): New macro.
10049 * configure.in: Call it.
10050 * Makefile.in: Document it.
10051 * include/posix.h: New file.
10052 * troff/troff.h: Don't include <osfcn.h>
10053 * troff/input.cc: Include posix.h.
10054 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
10056 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
10057 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
10059 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
10060 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
10061 * libbib/search.cc (O_RDONLY): Delete definition.
10062 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
10063 Don't include <osfcn.h>.
10065 * acgroff.m4 (GROFF_TIME_T): New macro.
10066 * configure.in: Call it.
10067 * Makefile.in: Document it.
10069 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
10070 * configure.in: Call it.
10071 * Makefile.in: Document -DTRADITIONAL_CPP.
10072 * include/ptable.h: Don't include generic.h.
10073 (name2): Define it.
10075 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
10076 Afterwards remove [T1 and [T2.
10077 (ref*spec!0, ref*spec!2): Use T1 rather than T.
10078 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
10079 (ref*add-T2): Renamed from ref*add-T.
10080 (ref*add-T1): New macro.
10082 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
10084 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
10086 * libbib/index.cc: Include <fcntl.h>.
10087 (O_RDONLY): Define if necessary.
10088 (make_index_search_item, index_search_item_iterator::get_tag,
10089 index_search_item::check_files): Use O_RDONLY.
10090 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
10091 (O_RDONLY): Define if necessary.
10092 (search_list::add_file): Use O_RDONLY.
10093 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
10095 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
10098 * libbib/index.cc (S_ISREG): Define it if necessary.
10099 (index_search_item::load): Use S_ISREG.
10101 * include/driver.h: Include <errno.h>.
10103 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
10105 * eqn/box.cc (body_height): Increase default value to 85.
10106 (body_depth): Increase default value to 35.
10108 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
10110 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
10111 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
10112 protected from expansion with \E.
10114 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
10116 * Makefile (Makefile): New target.
10118 * Makefile.sub (configure, distfiles): New targets.
10120 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
10123 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
10125 * eqn/box.cc (param_table): Add body_height and body_depth.
10127 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
10129 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
10131 * psbb/Makefile.sub: Don't link with libgroff.a.
10133 * acgroff.m4 (GROFF_PUTENV): New macro.
10134 * configure.in: Call GROFF_PUTENV.
10135 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
10136 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
10139 * troff/env.cc (distribute_space): Rename force_forward argument
10140 to force_reverse. Reverse the list if force_reverse is true.
10142 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
10144 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
10146 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
10147 height or depth to be negative. Guard against SUP_RAISE quantity
10150 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
10152 * devps/generate/textmap: Add `an' (arrowhorizex).
10153 * tmac/tmac.ps: \(an overlaps horizontally.
10154 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
10156 * devps/symbolchars: Add arrowverttp, arrowvertbt.
10157 * devps/textmap: Add arrowvertex.
10158 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
10159 updownarrow delimiters.
10160 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
10162 * tbl/table.cc (simple_entry::position_vertically,
10163 block_entry::position_vertically): For a centered entry, perform
10164 the motion in two stages.
10166 * refer/refer.cc (split_punct): Don't call lookup_token if there
10169 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
10171 * troff/input.cc (token::next): Delete token_node after copying
10174 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
10177 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
10179 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
10181 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
10183 * grops/ps.cc (usage): -b option takes an argument.
10185 * devps/prologue (PLG): New procedure.
10186 * grops/ps.cc (main, usage): New -g option.
10187 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
10190 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
10192 * include/cset.h: Include <limits.h> if we have it.
10194 * libgroff/illegal.cc: New file.
10195 * include/lib.h (illegal_input_char): Use table.
10196 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
10197 * pic/lex.cc (ARG1): Renumber to 14.
10198 * eqn/lex.cc (ARG1): Likewise.
10200 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
10201 (eg 1.05.90) correctly.
10203 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
10205 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
10206 Rename $r and $R registers to $v and $V.
10207 ($r, $R): Initialize to 0.
10208 (@v, @V): New macros.
10212 * troff/input.cc (main, usage): Add -R option that says not to
10214 * eqn/main.cc (main, usage): Rename -n to -R.
10216 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
10218 * devps/DESC.in: Leave font positions 5-9 blank.
10219 * devdvi/DESC.in: Likewise.
10221 * grog/grog.pl: Handle `.PS <file' correctly.
10223 * troff/input.cc (input_stack::push): Improve error message when
10224 input stack limit exceeded.
10226 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
10228 * refer/refer.cc (main): Fix typo in handling of `a' option.
10230 * refer/refer.cc (do_bib): In state START after a newline remain
10233 * groff/groff.sh: Deleted.
10234 * groff/Makefile.sub: Delete handling of groff.sh.
10236 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
10237 to determine whether to use \X'ps:...'.
10238 * tmac/troffrc: Set 0p register to 0.
10239 * tmac/tmac.ps: Set 0p register to 1.
10241 * groff/groff.cc: Support -X option. Give warning for -TXps and
10242 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
10243 * tmac/troffrc: Support -r.X=1.
10245 * pic/troff.cc (troff_output::dot): Don't test
10246 zero_length_line_flag.
10248 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
10250 * include/lib.h: Declare getopt() and friends unless
10251 STDLIB_H_DECLARES_GETOPT is defined.
10253 * doc/chars.tr: Delete.
10254 * man/groff_char.man: New file.
10256 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
10258 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
10259 user has changed register format.
10261 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
10263 * groff/groff.cc: Get rid of device_table. Get postprocessor from
10264 `postpro' command in DESC file. Get spooler command from `print'
10265 command in DESC file. Execute spooler command with /bin/sh.
10267 * groff/groff.cc: Split Unix-specific parts into...
10268 * groff/pipeline.c: New file.
10271 * COPYING: New file.
10272 * all files: Update copyright notices.
10274 * Rearrange files. Redo Makefiles. Use autoconf.
10276 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
10278 * troff/input.c (charinfo_to_node_list): Interpret character
10279 definition with escape_char of `\'.
10281 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
10283 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
10284 Define INT_DIGITS as big enough for 64-bit integer.
10285 * lib/strtol.c: Don't include lib.h.
10286 * lib/lib.h: Delete ifdef __cplusplus stuff.
10288 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
10290 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
10291 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
10292 get DESC from current directory.
10294 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
10296 * tbl/main.c (main): Always reset the line number when reading
10299 * tbl/table.c (table::print_single_hline, table::print_double_hline,
10300 table::define_bottom_macro, table::do_row, table::do_top): Round
10301 vertical spacing up to vertical resolution.
10303 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
10305 * ps/ps.h (enum resource_type): Avoid comma at end of
10307 * dvi/dvi.c (class dvi_printer): Likewise.
10308 * dvi/tfmtodit.c (gf::load): Likewise.
10309 * refer/label.y (struct expression): Likewise.
10310 * refer/refer.c (class label_processing_state): Likewise.
10311 * refer/indxbib.c (do_file): Likewise.
10312 * troff/troff.c (enum warning_type): Likewise.
10313 * tbl/main.c (process_data): Likewise.
10314 * troff/charinfo.h (class charinfo):
10316 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
10318 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
10320 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
10322 * groff.c: Move to new groff subdirectory.
10323 * groff/Makefile: New file.
10324 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
10326 * man/mdate.sh: Use ls -L if supported.
10328 * Consolidate all header files produced by gendef into lib/defs.h.
10329 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
10330 Don't include path.h.
10331 * lib/Makefile (path.h): Don't generate.
10332 * troff/input.c: Include defs.h. Don't include config.h.
10333 * troff/Makefile (config.h): Don't generate.
10334 * refer/index.h: Don't include suffix.h.
10335 * refer/index.c: Include defs.h.
10336 * refer/indxbib.c: Include defs.h.
10337 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
10339 * refer/Makefile (suffix.h, path.h): Don't generate.
10340 * groff.c: Don't include config.h. Include defs.h.
10341 * Makefile (config.h): Don't generate.
10342 (lib/defs.h): Generate.
10343 (topclean): Remove lib/defs.h.
10345 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
10347 * lib/malloc.c, lib/getpagesize.h: Deleted.
10348 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
10350 * lib/Makefile: Delete malloc-related stuff.
10351 * lib/new.c: Workaround COOKIE_BUG if necessary.
10353 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
10354 needed header files directly.
10355 * refer/refer.h: Omit definition of DEFAULT_INDEX.
10356 * Makefile: Include definition of DEFAULT_INDEX in path.h.
10358 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
10360 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
10362 * lib/font (font::load_desc, font::load): Don't split argument of
10364 (font::handle_unknown_font_command): Change type.
10365 * ps/ps.c (ps_font::handle_unknown_font_command,
10366 handle_unknown_desc_command): Change type.
10367 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
10369 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
10371 * lib/font.h (font::handle_unknown_font_command): Add file and
10373 * lib/font.c (font::handle_unknown_font_command):
10374 * ps/ps.c (ps_font::handle_unknown_font_command):
10375 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
10376 lineno arguments. Use _with_file_and_line functions for error
10379 * lib/fontfile.c (font::unknown_desc_command_handler): New static
10381 * lib/font.c (font::set_unknown_desc_command_handler): New
10383 (font::load_desc): For unknown commands, call
10384 unknown_desc_command_handler if not null.
10385 * lib/font.h (class font): Declare them.
10386 (FONT_COMMAND_HANDLER): New typedef.
10387 * ps/ps.c (handle_unknown_desc_command): New function.
10388 (main): Set bflag if we had a -b option. Call
10389 font::set_unknown_desc_command_handler.
10390 (broken.h): Don't include.
10391 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
10393 * ps/devps/Makefile: Add `broken' command to DESC file using
10394 BROKEN_SPOOLER_FLAGS.
10396 * macros/tmac.e ([, ]): Add as synonyms for { and }.
10398 * macros/tmac.e ($p): Only exdent if \$3 > 0.
10400 * macros/tmac.e (@R, @S): New macros.
10401 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
10402 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
10403 Declare $H, $[0-9], .. macros with @S.
10404 Declare |0, |1, |2, |3 strings with @S.
10406 * macros/tmac.e (@S): Rename to @U.
10408 * macros/tmac.e (@z): Define @b and bp as empty instead of
10411 * macros/tmac.e (@m): Deleted.
10412 (@h): Don't call @m.
10413 (@z): Don't set @m trap.
10415 * macros/tmac.e ($h, $f): Define |z as empty string.
10417 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
10420 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
10422 ()f): Likewise for * register.
10424 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
10425 argument is missing, don't change $R. Call sr with three
10426 arguments when initializing.
10428 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
10430 * macros/tmac.e (sr): New macro.
10431 Initialize $r and $R using sr.
10433 * macros/tmac.e (,): Delete \*(#[.
10435 * troff/env.c (set_tabs): Read the tab type even if the position
10436 is bad. Allow the position of the first tab stop to be negative.
10438 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
10440 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
10442 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
10443 rather than -DPATHCONF_MISSING.
10444 * Makefile: Get rid of PATHCONF_MISSING.
10446 * refer/map.c: New file.
10447 * refer/index.c: Interface to mmap through map.c. Rename map_size
10449 * refer/Makefile: Handle map.c.
10450 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
10452 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
10454 * Makefile: RANLIB should be `true' if there is no ranlib.
10455 * lib/Makefile (libgroff.a): Simplify.
10456 * driver/Makefile (libdriver.a): Simplify.
10458 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
10459 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
10462 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
10464 * troff/env.c (compare_ranges): Declare as extern "C".
10466 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
10468 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
10470 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
10472 * pic/troff.c (troff_output::text): Merge in grops_output::text,
10473 but conditionalize use of \X based on \*(.T.
10474 (grops_output::*): Deleted.
10475 * pic/output.h: Delete declaration of make_grops_output.
10476 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
10477 by default. -n sets it to 0.
10478 (usage): Corresponding changes.
10479 * groff.c (main): Don't pass -x or -p to pic.
10480 * groff.sh: Likewise.
10482 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
10485 * ps/devps/afmtodit: Change calculation of asc_boundary and
10486 desc_boundary. Make these bounds inclusive.
10487 * ps/devps: Regenerate font files.
10489 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
10491 * macros/tmac.latin1: New file.
10492 * macros/tmac.tty-char: Use tmac.latin1.
10493 (tmac.tty-tr): Deleted.
10494 * macros/Makefile: Install tmac.latin1.
10495 * macros/tmac.dvi: Use tmac.latin1.
10496 * macros/troffrc: Translate \[char160] onto no-break space here.
10497 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
10499 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
10501 * macros/tmac.Xps: Use `do' request.
10503 * macros/tmac.ps: Use `do' request.
10505 * macros/tmac.e (@C): Use `do' request.
10507 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
10508 * macros/Makefile: Install tmac.X*.
10510 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
10511 * tty/Makefile: Don't install tmac.tty*.
10512 * macros/Makefile: Install tmac.tty*.
10514 * dvi/tmac.dvi: Move to macros.
10515 * dvi/Makefile: Don't install tmac.dvi.
10516 * macros/Makefile: Install tmac.dvi.
10518 * ps/tmac.ps*: Move to macros.
10519 * ps/Makefile: Don't install tmac.ps*.
10520 * macros/Makefile: Install tmac.ps*.
10522 * eqn/box.c: Provide draw_lines parameter corresponding to -D
10524 * macros/eqnrc: Set draw_lines parameter based on device.
10525 * groff.c: Don't pass -D flag to eqn.
10526 * groff.sh: Likewise.
10527 * eqn/main.c: Warn about use of -D.
10529 * troff/input.c (process_startup_file): New function.
10530 (main): Call process_startup_file().
10531 * macros/troffrc: New file.
10532 * macros/Makefile: Install troffrc.
10533 * groff.c (main): Don't pass extra -m option to troff. For a
10534 pseudo device pass the name of the pseudo device to troff using
10536 * groff.sh: Likewise.
10537 * groff.c (possible_command::prepend_arg): Deleted.
10539 * troff/input.c (do_request): New function.
10540 (init_input_requests): Bind "do" to do_request.
10542 * eqn/main.c (main): Instead of loading eqnchar from device directory,
10543 load eqnrc from macro directory.
10544 * macros/eqnrc: New file.
10545 * macros/Makefile: Install eqnrc.
10546 * ps/devps/eqnchar: Deleted.
10547 * ps/devps/Makefile: Don't install eqnchar.
10548 * dvi/devdvi/eqnchar: Deleted.
10549 * dvi/devdvi/Makefile: Don't install eqnchar.
10550 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
10553 * lib/device.[ch]: New files.
10554 * lib/font.h (font::set_device_name, font::get_device_name):
10556 * lib/fontfile.c: Use device.h.
10557 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
10558 * troff/input.c: Delete definition of `device'.
10559 (main): Don't initialize device.
10560 * troff/troff.h: Include device.h rather than declaring device.
10561 * troff/Makefile: No need to handle DEVICE.
10562 * driver/input.c: Include device.h. Don't use
10563 font::{set,get}_device_name.
10564 * groff.c, Makefile: Rename device.h to config.h.
10565 * groff.c: Use library device variable.
10566 * eqn/main.c: Use library device variable.
10567 * eqn/Makefile: No need to handle DEVICE.
10569 * lib/searchpath.[ch]: New files.
10570 * lib/Makefile: Handle searchpath.[ch].
10571 * troff/input.c (open_file, init_dirs): Deleted.
10572 (macro_dirs): Deleted.
10573 (open_mac_file, macro_source): Use class search_path.
10574 (add_string, struct string_list): Move definition.
10575 (main): Change -M option to use macro_path. Delete call to
10577 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
10578 Rewrite to use class search_path.
10579 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
10580 * lib/Makefile: fontfile.c depends on searchpath.h.
10581 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
10583 * lib/macropath.[ch]: New files.
10584 * troff/Makefile: No need to handle MACROPATH.
10586 * troff/input.c: Delete DUMP code.
10587 * lib/fontfile.c, lib/font.h: Delete
10588 font::forget_command_line_font_dirs.
10590 * troff/input.c (push_token): New function.
10591 (handle_first_page_transition): Use push_token().
10592 (process_input_stack): Change handling of a space at the beginning
10595 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
10597 * troff/input.c (font_dirs): Delete unused variable.
10599 * eqn/lex.c (do_set): Correct error messages.
10601 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
10603 * troff/input.c (do_define_string): Allow the string name to be
10604 followed immediately by a tab.
10605 (define_character): Likewise.
10607 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
10609 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
10612 * troff/input.c (input_iterator::is_file): New virtual function.
10613 (file_iterator::is_file): New function.
10614 (input_stack::end_file): New function.
10615 (input_stack::next_file): Handle the situation where there is no
10616 file on the input stack correctly. Avoid making two passes over
10618 (next_file): Make the filename optional; in this case call
10619 input_stack::end_file().
10621 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
10623 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
10624 produce a real _ charater when the current font is CW and _
10627 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
10628 expression to work around gcc 2.2 bug.
10630 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
10632 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
10634 * troff/env.c (environment::add_padding): New function.
10635 (environment::add_char): Use add_padding().
10636 (environment::space): Likewise.
10637 (environment::wrap_up_field): Add some padding if there is none
10638 and there's no current tab.
10639 * troff/env.h: Declare environment::add_padding.
10641 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
10643 * pic/pic.y: undef fmod and rand before declaring them.
10645 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
10647 * troff/input.c (main): If the DESC file specifies a font name of
10648 0, then leave the corresponding font position empty.
10650 * nroff.sh: New file.
10651 * Makefile (install.nobin): Install nroff.sh.
10653 * tty/devlatin1/R.proto: Add ao as synonym for de.
10654 * tty/tmac.tty-char: Define ao as o.
10656 * tty/dev{ascii,latin1}/R.proto: Add aq.
10657 * tty/tmac.tty-char: Delete definition of aq.
10659 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
10661 * troff/input.c (init_charset_table): Don't translate 0240.
10662 * ps/tmac.ps: Translate char160 to space.
10663 * dvi/tmac.dvi: Likewise.
10664 * tty/tmac.tty: Likewise.
10666 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
10668 * dvi/tmac.dvi: Add support for all Latin-1 characters.
10670 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
10671 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
10674 * tty/tmac.tty-char: Add \(ah.
10676 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
10677 No need to define \(FM and \(!/. Conditionalize all character
10680 * ps/devps/lgreekmap: Add +h, +f, +p.
10682 * ps/tmac.psnew: New file.
10683 * ps/Makefile: Install tmac.psnew.
10685 * troff/input.c (charinfo_to_node_list): Don't ever interpret
10686 character definitions in compatible mode.
10688 * troff/input.c (remove_character): New function.
10689 (init_input_requests): Bind remove_character to "rchar".
10691 * ps/tmac.psold: New file.
10692 * ps/Makefile: Install tmac.psold.
10693 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
10694 characters into tmac.psold. Make these definitions unconditional.
10696 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
10698 * ps/tmac.ps: Don't define \('c and \('C.
10700 * ps/devps/textmap: Move Greek characters to...
10701 * ps/devps/symbolchars:
10703 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
10705 * ps/devps/text.enc: Add quotesingle.
10706 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
10707 * tty/tmac.tty-char: Likewise.
10708 * dvi/devdvi/texmi.map: Add +h, +f, +p.
10709 * dvi/devdvi/texi.map: Add Fn.
10710 * dvi/devdvi/msam.map: Add lz.
10711 * dvi/tmac.dvi: Handle Bq, bq, aq.
10713 * pic/lex.c (get_token): Recognize 'th.
10714 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
10716 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
10718 * ps/devps/textmap: Move di, mu, +- to...
10719 * ps/devps/symbolchars:
10721 * macros/tmac.s (@XS): Don't call par@reset or fi.
10722 (XA): Call LP. Turn off adjustment. Reduce line length.
10724 * macros/tmac.s: Initially alias XS to LP.
10725 (XS): Rename to @XS.
10726 (cov*ab-init): Alias XS to @XS.
10728 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
10730 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
10731 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
10732 (token::is_size, token::changes_env): Deleted.
10733 * troff/number.c (parse_term): No need to process \s explicitly.
10734 Call tok.next() only after scale indicator has been processed.
10735 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
10737 (token::next): Handle \s, \f, \S, \H immediately rather than
10738 returning them as tokens.
10739 (token::operator==, token::description, token::add_to_node_list,
10740 token::process): Remove handling of deleted tokens.
10742 * troff/env.c (environment::add_char): When adding padding
10743 indicator character, call start_line() if necessary.
10745 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
10747 * ps/devps/afmtodit: Don't output 0 kerns.
10749 * ps/devps/afmtodit: Remove directory from name of encoding in
10750 font description file.
10752 * ps/devps/afmtodit: Improve error messages.
10754 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
10756 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
10757 * ps/devps/FontMakefile: Deleted.
10758 * ps/devps/afmname: New file.
10760 * ps/devps/symbol.sed: New file.
10761 * ps/devps/symbol.diff: Deleted.
10762 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
10763 Generate zapfdr.afm from zapfd.afm.
10765 * tty/tmac.tty (tty-char): Prefix definition with ".
10767 * macros/tmac.an (TP): Don't start a diversion if one has already
10770 * tty/tmac.tty-char: Add Latin-1 characters.
10772 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
10774 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
10776 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
10777 Move declaration of struct horizontal_span.
10779 * tbl/table.c (table::table): Initialize span_list.
10780 (table::~table): Delete span_list.
10782 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
10784 * ps/devps/Makefile: Avoid dependency on GNU make.
10786 * ps/tmac.ps: Check that character does not already exist before
10789 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10790 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10791 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10794 * tty/tmac.tty-char: New file.
10795 * tty/Makefile: Install tmac.tty-char.
10796 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10799 * tty/tmac.tty: Fix definition of \(34.
10801 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10802 bracket-drawing characters onto |. Add *o.
10804 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10805 only if current_field.
10807 * troff/dictionary.c (dictionary::lookup): Free old_table after
10810 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
10812 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10813 whose glyphs are identical to glyphs of some Roman character.
10815 * tty/devlatin1/R.proto (bu): Deleted.
10816 * tty/devascii/R.proto (bu): Deleted.
10817 * tty/tmac.tty: Add definition of \(bu.
10819 * eqn/main.c (do_file): Pass FILE as argument.
10820 (main): Automatically load eqnchar. New options -F and -n.
10821 Pass do_file an opened FILE.
10822 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10823 No need to include font.h.
10824 * groff.sh: Likewise. Don't need to use - for standard input.
10825 Prefix files with -- if first file starts with -.
10827 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10829 * troff/env.c (environment::possibly_break_line): Don't set line
10830 to 0 across call to output_line(). Don't call output_line() until
10831 after discarding nodes after break.
10833 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
10835 * request.h (macro::empty): Declare it.
10836 * input.c (macro::empty): New method.
10837 (interpolate_macro): Don't give a WARN_SPACE if the two-character
10840 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
10842 * troff/env.c (environment::start_field): Decrement space_total
10843 when a space is frozen.
10845 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
10847 * macros/tmac.an (R): Delete macro.
10849 * troff/input.c (get_copy, token::next): Support \# (like \" but
10850 newline is ignored).
10852 * troff/input.c (token::next): Fix error message in 'Y' case.
10854 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
10856 * eqn/delim.c (define_extensible_string): Recognize any prefix of
10859 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
10861 * c++test.c: Include <osfcn.h>.
10863 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10866 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
10868 * tbl/table.c (table::divide_span): Don't count column separation
10869 if expand was specified.
10871 * tbl/main.c (process_format): Don't ignore width specs in
10872 continued format. Give warning for changing equal widths or
10873 column separation in continued format.
10874 (process_data): Set column separation, minimum width, equal
10875 columns at end of table.
10877 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
10879 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10880 node::add_discretionary_hyphen): Use soft_hyphen_char.
10881 (set_soft_hyphen_char): New function.
10882 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
10884 * Makefile (c++tested): Give more helpful message if test fails.
10886 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
10888 * troff/input.c (init_charset_table): Translate 0240 to
10889 an unbreakable space.
10891 * troff/token.h (token::hyphen_indicator): New function.
10892 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10894 * troff/input.c (translate): Allow translation to \%.
10895 * troff/node.c (node::add_char): Handle
10896 TRANSLATE_HYPHEN_INDICATOR.
10897 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10899 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10902 * tty/devlatin1/R.proto: \(hy and - should print as 055.
10904 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
10906 * groff.c (run_commands): If the last command gets a SIGPIPE send
10907 a SIGPIPE to all children than haven't yet terminated. When
10908 command terminates, set pid field to -1.
10910 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
10912 * groff.c (main): Pass an appropriate -filename option to gxditview.
10914 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
10916 * Makefile.bd (install): Remove existing program before copying.
10918 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10919 programs which have Unix counterparts to be installed with
10920 user-specified prefix.
10922 * troff/input.c (exit_troff): Don't check if exit_started.
10923 (exit_request): Don't call exit_troff if exit_started.
10925 * Makefile.bd (install.mm): Rename to install.dwbmm.
10927 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
10929 * driver/input.c (do_file): Add missing break for '#' case.
10931 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
10933 * troff/input.c (input_stack::clear): Clear past any boundaries and
10934 then add the boundaries back.
10936 * troff/input.c (exit_troff): Return immediately if already
10939 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
10941 (pg*end-page): If the text has ended and there are no more
10942 footnotes or keeps, exit.
10944 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10946 * troff/input.c (init_charset_table): Make \(rq transparent by
10949 * macros/tmac.an: Define lq and rq strings.
10951 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10953 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
10955 * troff/env.c (environment::final_break): New function.
10956 (environment::newline): Set prev_line_interrupted to 2 if
10958 * troff/env.h: Declare environment::final_break.
10959 * troff/input.c (exit_troff): Call environment::final_break()
10960 instead of environment::do_break().
10962 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10963 doesn't already exist.
10964 * macros/man.local: New file.
10965 * macros/tmac.an: Load man.local.
10966 * macros/man.ultrix: New file.
10968 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
10970 * troff/input.c (exit_groff): Rename to...
10971 (exit_troff): New function.
10973 * troff/div.c (exit_started, done_end_macro,
10974 seen_last_page_ejector): New global variables.
10975 (began_page_in_end_macro): New static variable.
10976 (exit_flag): Deleted.
10977 (top_level_diversion::top_level_diversion): Initialize
10979 (top_level_diversion): More elaborate test for whether
10980 cleanup_and_exit() should be called.
10981 Set began_page_in_end_macro if the end macro isn't yet finished.
10982 * troff/div.h (top_level_diversion::last_page_count): New data
10984 (top_level_diversion::set_last_page): New function.
10985 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10986 * troff/env.c (do_break): Zero prev_line_interrupted.
10987 * troff/input.c (exit_flag): Delete declaration.
10988 (LAST_PAGE_EJECTOR): New magic cookie.
10989 (token::next): Handle LAST_PAGE_EJECTOR.
10990 (exit_groff): Set exit_started and done_end_macro instead of
10991 exit_flag. Call top_level_diversion::set_last_page. Push a
10992 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
10993 another ejection after setting seen_last_page_ejector.
10995 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
10997 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10999 * macros/tmac.e (TH): Make sure there's room for the initial
11002 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
11003 Set FVS in points rather than units.
11005 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
11007 * troff/div.c (top_level_diversion::add_trap): Don't consider the
11008 position of empty slots.
11010 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
11012 * ps/devps/S: Fix height and depth of parenrightex.
11013 * ps/devps/symbol.diff: Regenerate.
11015 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
11017 * tmac.e (u): Do underlining as in -mgs.
11019 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
11021 * tty/tty.c (tty_printer::end_page): If overstriking is
11022 suppressed, still turn overstruck horizontal and vertical lines
11025 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
11028 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
11030 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
11032 * Version 1.05 released.
11034 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
11036 * tty/tty.c: Instead of keeping an array of glyphs and then
11037 sorting it, keep a ordered linked list of glyphs for each line.
11039 * driver/driver.h: Include stddef.h.
11041 * tty/tty.c (compare_glyph):
11042 * refer/refer.c (rcompare):
11043 * troff/env.c (compare_ranges): Arguments of qsort comparison
11044 function should be const void *.
11046 * troff/number.c (parse_term):
11047 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
11050 * refer/label.y (consider_authors): Don't access variables
11051 constructed under a condition outside that condition: put braces
11052 round for statement containing declaration; redeclare use of same
11055 * pic/pic.y (text_expr): Delete production that allows
11056 parenthesised text_expr.
11057 (expr): Allow a conditional_expr to appear in parentheses.
11058 (conditional_expr): Rename to any_expr.
11060 * mm: Install new version 1.01 from jh.
11062 * lib/font.c (font::get_width): Cache scaled widths.
11063 (font::font): Initialize widths_cache.
11064 (font::~font): Destroy widths_cache.
11065 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
11067 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
11069 * c++test.c, c++test.ref: New files.
11070 * Makefile: Check that the C++ compiler works.
11072 * ps/tmac.pspic (PSPIC): Do a break.
11074 * ps/tmac.ps: Move definition of PSPIC into...
11075 * ps/tmac.pspic: New file.
11076 (PSPIC): Draw box around picture, but make it invisible to grops.
11077 * ps/tmac.ps: Load tmac.pspic.
11078 * ps/Makefile: Install tmac.pspic.
11080 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
11082 * lib/font.c (scale_round): If n is negative,
11083 subtract .5 before truncating floating point result.
11085 * lib/fontfile.c: Include <errno.h>.
11087 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
11089 * driver/input.c (get_char): Inline. Don't update current_lineno.
11090 Change callers to up date current_lineno if necessary.
11091 Use get_char() instead of getc(current_file).
11093 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
11095 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
11097 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
11099 * tty/tty.c (tmac.tty): Define \(rg as (R).
11101 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
11103 * lib/lib.h: New define a_delete.
11104 * Use a_delete instead of delete when deleting an array of objects
11105 without destructors.
11107 * lib/lib.h: Rename adelete to ad_delete.
11108 * Change uses of adelete.
11110 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
11112 * eqn/eqn.y: Include lib.h.
11114 * troff/node.c (grow_font_table): Delete old_font_table.
11116 * mm: Install new version from jh.
11118 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
11120 * tbl/table.h (format_type): Make global instead of local to class
11121 entry_format. Prefix enumerators with FORMAT_.
11122 * tbl/table.c, tbl/main.c: Corresponding changes.
11123 * refer/token.h (token_type): Make global. Prefix enumerators
11125 * refer/token.[ch]: Corresponding changes.
11126 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
11128 * troff/div.c (node::set_vertical_size): Don't name argument.
11130 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
11132 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
11133 * lib/lib.h: Define adelete accordingly.
11134 * pic/object.c (graphic_object::graphic_object):
11135 * tbl/main.c (format::~format):
11136 * tbl/table.c (table::~table):
11137 * refer/ref.c (reference::~reference, reference::merge,
11138 reference::insert_field, reference::delete_field): Use adelete.
11140 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
11142 * tbl/table.h: Corresponding changes.
11144 * common.c (common_output::dashed_arc, common_output::dotted_arc):
11145 Ensure total_angle is positive.
11147 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
11149 * refer/ref.c (reference::merge, reference::insert_field,
11150 reference::delete_field): Avoid delete[0].
11152 * refer/token.c (init_special_chars): Move calls to cmupper
11153 outside calls to init_two_char_letter to work around bug in gcc
11156 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
11158 * lib/new.c (operator new): Use __builtin_new for g++.
11160 * pic/object.c (graphic_object::~graphic_object): Don't use
11163 * pic/object.c (output::compute_scale): Initialize max_width and
11166 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
11168 * troff/input.c (write_request): Call fflush.
11170 * troff/node.h (class composite_node): Move declaration to node.c
11171 * troff/input.c (charinfo_to_node): Rename to ...
11172 (charinfo_to_node_list): Return node list rather than composite
11174 * troff/node.c (make_composite_node): New function.
11175 (make_node, add_char): Call make_composite_node instead of
11177 (class composite_node): Add a tfont * member. Delete font_size
11179 (composite_node::composite_node, composite_node::copy,
11180 composite_node::size): Corresponding changes.
11181 (composite_node::tprint): Provide constant spacing, emboldening
11182 and track kerning as specified in tfont.
11183 (composite_node::width): Change width calculation accordingly.
11184 * troff/env.h (environment::composite): New member.
11185 (environment::is_composite, environment::set_composite): New
11187 * troff/env.c (environment::environment): Initialize composite.
11188 * troff/input.c (charinfo_to_node): Call
11189 environment::set_composite.
11190 * troff/node.c (make_composite_node, make_glyph_node): Use the
11191 plain version of the tfont if the environment is composite.
11193 * troff/node.c (font_info::get_space_width): Additional argument
11194 giving space_size. Handle constant space correctly. Scale by
11195 space_size unless constant spaced.
11196 (env_sentence_space_width): New function.
11197 * troff/node.h: Declare it.
11198 * troff/env.h (environment::get_space_size,
11199 environment::get_sentence_space_size,
11200 environment::get_narrow_space_width,
11201 environment::get_half_narrow_space_width): Make inline.
11202 (environment::get_space_width): Make inline. Just call
11204 * troff/env.c: Delete definitions for funtions made inline.
11205 (environment::space_newline, environment::space): Use
11206 env_sentence_space_width(). Don't scale by space_size.
11207 * troff/node.h: Move declarations of env*space_width() functions
11210 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
11212 * macros/tmac.s (PS): Don't try to set negative indent.
11214 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
11216 * pic/pic.y: Fix min function.
11218 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
11220 * man/mdate.sh: Clear LANGUAGE.
11222 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
11224 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
11225 * pic/lex.c: New COMMAND keyword.
11226 * pic/pic.y (print_args, print_arg): New rules.
11227 (placeless_element): Use print_args for PRINT.
11228 New COMMAND element.
11230 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
11232 * troff/input.c (terminal): Handle missing argument correctly.
11234 * pic/pic.y (text_expr): New rule.
11236 * pic/pic.y: Implement := operator.
11238 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
11240 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
11243 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
11245 * ps/devps/dingbatsrmap: Include this in the distribution.
11247 * macros/tmac.doc: Replace with new version from 2nd Networking
11248 Release. Fix loading of doc-* files.
11249 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
11250 * macros/tmac.doc.old: New file. Apply fixes that had been
11251 applied to old tmac.doc.
11252 * macros/tmac.andoc: Check that we're running under groff.
11253 * macros/Makefile: Rework.
11255 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
11257 * tbl/table.h (format_type):
11258 * refer/token.h (token_type): If NESTED_TYPES is defined, use
11259 typedef to make these types visible at file scope.
11260 * Makefile: Add NESTED_TYPES configuration option.
11262 * troff/div.c (mark): At the top level use the value of
11263 nl_reg_contents rather than the current vertical position.
11265 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
11267 * tty/tty.c: Implement \D for horizontal or vertical lines.
11268 (tty_printer::set_char): Use vec_used+2 as serial number.
11269 Don't allow size of vector to exceed USHRT_MAX-2.
11270 Split off part into...
11271 (tty_printer::add_char): New function.
11272 (tty_printer::draw): New function.
11273 (compare_glyph): Handle equal serial numbers.
11274 (tty_printer::end_page): Handle overstruck characters from \D.
11275 (main, usage): Implement -d option.
11277 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
11279 * tbl/main.c (process_format):
11280 * eqn/text.c (split_text):
11281 * troff/input.c (token::next): Use inner block for declarations
11282 with initializers in switch statement.
11284 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
11286 * pic/common.c (common_output::dash_line): Cope with zero-length
11289 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
11291 * Version 1.04 released.
11293 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
11295 * macros/tmac.an (TH): Define a macro an-init to define variables
11296 based on command line arguments.
11297 (an-header): Call it.
11299 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
11301 * Makefile (install.mm): Rename to install.dwbmm.
11303 * Makefile: Integrate mm.
11304 * mm: New directory.
11306 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
11308 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
11311 * pic/troff.c (troff_output::simple_spline,
11312 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
11313 shadowing parameter.
11315 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
11317 * lib/ptable.h: Add explicit casts when converting from unsigned
11320 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
11321 * dvi/devdvi/Makefile: Install SA, SB.
11323 * refer/indxbib.c: Add declaration of mktemp.
11325 * refer/lookbib.c: Add declaration of isatty.
11327 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
11329 * pic/lex.c (interpolate_macro_with_args): While collecting
11330 arguments, keep track of whether we're in a string.
11332 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
11334 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
11335 down with \v, so as to avoid problems with top of page trap
11336 setting no space mode.
11338 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
11340 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
11342 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
11344 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
11345 Improve error message.
11347 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
11349 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
11352 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
11354 * groff.c (possible_command::execp): Always use _exit() after a
11357 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
11358 NO_SYS_WAIT_H configuration options.
11359 * groff.c: Use these options. Use POSIX-style macros to extract
11360 fields from the status returned by wait().
11362 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
11364 * tbl/table.c (table::compute_separation_factor): Allow the
11365 separation factor to drop to 0.
11367 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
11369 * refer/search.c: Include <errno.h>.
11371 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
11373 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
11375 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
11378 * pic/lex.c (input_stack::bol): Move definition out of class body.
11380 * pic/main.c: On MSDOS munge argv[0].
11382 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
11384 * lib/ptable.c (hash_string): Use unsigned long rather than
11386 (next_ptable_size): Use unsigned rather than int. Give an error
11387 message if we've hit the largest table size.
11388 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
11391 * pic/object.h (object_spec): Make flags unsigned long. Declare
11392 flags as const unisgned long rather than as enums.
11394 * pic/output.c: Deleted.
11396 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
11398 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
11399 Add additional argument.
11400 (line_entry::note_double_vrule_on_{left,right}): Set value of
11401 douvle_vrule_on_{right,left} flag according to argument.
11402 (simple_line_entry::simple_print,
11403 simple_line_entry::double_line_print): If adjacent to double vrule
11404 on a corner extend rather than shorten the rule by half the double
11407 * troff/number.c (parse_term): In checking for overflow, handle the
11408 case where the current horizontal position is negative.
11410 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
11412 * pic/object.c (draw_arrow): Check for object having zero length.
11414 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
11416 * eqn/main.c (do_file): Split off inline equation handling into...
11417 (inline_equation): New function. Search for starting delimiter
11419 (delim_search): New function. Don't recognize a delimiter that
11420 occurs in the name of an escape sequence, number register, string
11423 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
11425 * eqn/delim.c (delim_box::compute_metrics): Don't call
11426 define_extensible_string if left is 0.
11427 (delim_box::output): Don't print the left delimiter if left is 0.
11428 (delim_box::debug_print): Check for left == 0 before calling printf.
11430 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
11432 * troff/Makefile (majorminor.c): Include only digits in
11435 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
11437 * refer/dirnamemax.c: new file.
11438 * refer/genlimits.c: Deleted.
11439 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
11440 Don't check path length.
11441 * refer/Makefile: Add dir_name_max.o; delete genlimits.
11442 * Makefile: Add PATHCONF_MISSING option.
11444 * refer/indxbib.c (get_cwd): New function.
11445 (main): Use get_cwd().
11446 * lib/getcwd.c: New file.
11447 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
11448 GETCWD in SUBFLAGS.
11449 * lib/Makefile: Compile getcwd.o.
11451 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
11454 * refer/indxbib.c (main): Check success of mktemp.
11456 * lib/tmpfile.c: New file.
11457 * lib/Makefile: Add tmpfile.c.
11458 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
11459 * ps/ps.h: Delete declaration of mktemp().
11460 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
11461 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
11462 * driver/driver.h: No need now to include errno.h.
11464 * everywhere: Set errno to 0 before calling fopen().
11466 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
11467 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
11468 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
11470 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
11472 * troff/env.h (translate_space_to_dummy): Declare it.
11473 * troff/env.c (environment::space_newline, environment::space):
11474 If translate_space_to_dummy is set then make the width of spaces 0.
11475 * troff/input.c (translate): If the second character of a
11476 translation is a space, translate to unbreakable space. If the
11477 first character is a space, set or clear translate_space_to_dummy
11478 according to whether the second character is \&. Weird!
11480 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
11482 * groff.c (run_commands): Don't use non-zero exit code because a
11483 command gets SIGPIPE.
11485 * groff.c, groff.sh: Use -mXps with -TXps.
11487 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
11488 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
11489 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
11490 (ps_printer::special): New specials invis and endinvis.
11491 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
11492 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
11493 (ps_printer::end_page): Check that invis_count == 0.
11494 (ps_printer::invis_count): New member.
11495 (ps_printer::ps_printer): Initialize invis_count to 0.
11497 * troff/env.c (environment::hyphenate_line): Hyphenation
11498 indicator at beginning of word inhibits splitting after -, \(em
11501 * pic/pic.y (element): Allow another element to follow } without
11502 any intervening separator.
11504 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
11506 * pic/lex.c (get_delimited): Allow tabs before delimiter.
11508 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
11510 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
11511 declaration of wait() in header files.
11512 * Makefile: Get rid of -DHAVE_UNION_WAIT.
11514 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
11516 * lib/lib.h: Declare return type of strerror as char *.
11518 * man/Makefile: Add g flag to sed substitutions.
11519 * Makefile (shgroff, bindist): Likewise.
11521 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
11523 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
11524 * ps/devps/prologue (PBEGIN): Define showpage after pushing
11527 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
11529 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
11532 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
11534 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
11537 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
11539 * troff/input.c (define_number_reg): If currently undefined,
11540 don't define it if the argument is an invalid expression.
11542 * Makefile: Ignore return value of `if' commands without `else'
11545 * Makefile: Split up CPPDEFINES into a series of separate
11546 configuration options.
11548 * troff/input.c (init_registers): Use time_t instead of long
11549 unless LONG_FOR_TIME_T is defined. Use returned result rather
11550 than passing pointer.
11551 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
11553 * lib/Makefile (fontpath.h): Use gendef.
11555 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
11557 * troff/input.c (input_iterator::shift): Delete argument name.
11558 * troff/node.c (suppress_output_file::really_begin_page,
11559 suppress_output_file::really_transparent_char, node::ascii_print,
11560 node::tprint): Delete names of unused arguments.
11562 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
11564 * refer/label.y (string): Pass $4 to command_error.
11566 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
11568 * Version 1.03 released.
11570 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
11572 * Makefile: Pass definition of SHELL in SUBFLAGS.
11574 * gendef: New file.
11575 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
11576 ps/Makefile: Use gendef to construct header files that are
11577 constructed from the Makefile.
11579 * macros/Makefile: make all should build stripped version of tmac.e.
11581 * refer/Makefile (clean): Remove y.output.
11583 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
11585 * ps/pfbtops.c (main): Add -v option which prints out a version
11587 * ps/Makefile (pfbtops): Link with libgroff.a.
11589 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
11591 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
11592 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
11594 * refer/lkbib.c (main): Always terminate reference with blank
11596 * refer/lookbib.c (main): Likewise.
11598 * refer/linear.c (file_buffer::load): Check that the file is not a
11601 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
11602 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
11603 Delete second inclusion of <sys/param.h>.
11605 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
11607 * troff/token.h (token::special): Deleted.
11609 * tbl/main.c (process_format): Rework so that opt->tab_char is
11610 recognized only when appropriate.
11612 * ps/Makefile (clean): Remove pfbtops.
11614 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
11616 * lib/font.c (text_file::next): Don't return if we have got a
11619 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
11621 * refer/refer.c (store_reference): Get hash code from old_table[i]
11622 when rehashing the table.
11624 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
11626 * eqn/box.c (box::top_level): Save size and prev size using \R and
11627 restore it afterwards. Set the size to the size at the beginning
11629 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
11630 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
11632 * refer/Makefile (limits.h): Use ./genlimits.
11634 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
11636 * refer/index.c: Delete declarations of stat() and fstat().
11638 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
11640 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
11642 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
11644 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
11646 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
11648 * troff/input.c (token::get_char): Handle \e.
11650 * refer/linear.c: Delete declarations of fstat() and stat().
11652 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
11654 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
11655 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
11657 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
11659 * troff/input.c (do_define_macro): Improve error handling for end
11660 of file while defining macro.
11662 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
11664 * eqn/box.h: Fix declaration of set_gsize.
11665 * eqn/box.c (set_gsize): Make argument const char *.
11666 (gsize): Declare as char *.
11667 * eqn/main.c (main): Don't convert gsize to int.
11668 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
11670 * Version 1.02 released.
11672 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
11674 * macros/tmac.andoc: New file.
11675 * macros/Makefile: Install tmac.andoc.
11677 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
11678 operator new and delete on OP_DELETE_BROKEN not being defined.
11679 * Makefile: Mention OP_DELETE_BROKEN.
11681 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
11683 * Makefile (bindist): Pass SUBFLAGS.
11685 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
11687 * Makefile, groff.c: Pass definitions to groff.c via device.h.
11689 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
11692 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
11694 * ps/ps.h, ps/psrm.c: Make comment_table and
11695 header_comment_table local to resource_manager::process_file.
11697 * groff.sh: With -TXps pass -printCommand option to gxditview.
11699 * groff.c (possible_command::print): Implement using
11700 append_arg_to_string.
11702 * xditview: Merge in new implementation with own ChangeLog.
11704 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
11706 * groff.c (main): Implement PRINT_OPTION.
11707 (append_arg_to_string): New command.
11708 (device_table): Set PRINT_OPTION flag for Xps.
11710 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
11712 * troff/groff.h: Rename to troff.h.
11714 * pic/lex.c (lookup_keyword, docmp): New functions.
11715 (get_token): Use new lookup_keyword.
11716 Don't include key.h.
11717 * pic/key.[ch], pic/pic.gperf: Deleted.
11718 * pic/Makefile: Remove gperf stuff.
11720 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
11722 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
11724 * troff/Makefile, troff/node.c: Move definition of
11725 STORE_WIDTH into node.c.
11727 * etc/grog.pl, etc/grog.sh: Support -mdoc.
11729 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
11731 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
11732 dvi/devdvi/texb.map: Add lq and rq.
11733 dvi/devdvi: Regenerate fonts.
11734 * ps/devps/textmap: Add lq and rq.
11735 * ps/devps: Regenerate fonts.
11736 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
11737 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
11739 * pic/object.c (position_rectangle): When checking radius
11740 cope with possiblity that width or height is negative.
11741 (box_object::box_object): Have separate xrad and yrad with
11742 signs matching signs of dim components.
11743 (box_object::{north,south}_{east,west}): Use xrad and yrad.
11744 (box_object::print): With rounded boxes use absolute values
11745 for dim and rad arguments.
11747 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
11750 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
11752 * various files: Add explicit destructors to keep Saber CC +d
11755 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
11757 * eqn/box.c (box::top_level): Restore fonts correctly after
11758 font changes in line containing inline equation. Also
11759 restore previous font as well as current font.
11760 * eqn/pbox.h: Define necessary string and register names.
11762 * troff/input.c (token::next): Case 'R' calls do_register.
11763 (do_register): New function.
11765 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
11767 * groff.c, groff.sh: Support Xps device. Allow each device
11768 to have a pseudo_name and a real_name.
11770 * groff.c (run_commands): Don't print `Broken pipe' messages.
11772 * ps/pfbtops.c: New file.
11773 * ps/Makefile: Add pfbtops.
11775 * troff/number.c (parse_term): Improved error message.
11777 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
11779 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
11781 * Makefile: Integrate refer.
11782 * refer: New directory.
11783 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
11784 man/lkbib.man: New files.
11785 * man/Makefile: Support refer man pages.
11787 * lib/lib.h: Declare is_prime.
11788 * lib/prime.c: New file.
11790 * troff/input.c (macro_source): New function.
11791 (init_input_requests): Bind "mso" to macro_source.
11793 * troff/env.c (environment::possibly_break_line): Maintain
11794 pointer to pointer to node to be split in ndp so as to avoid
11795 using address of freed node.
11797 * troff/env.c (environment::hyphenate_line): Maintain pointer to
11798 pointer to first node to be hyphenated in startp so as to
11799 avoid using address of freed node.
11801 * troff/env.c (class trie, class hyphen_trie): Make the
11802 elements of the trie be of type char not unsigned char.
11803 Declare arguments to be const char* instead of unsigned char *.
11805 * troff/env.c (hyphenate): Initialize hbuf[0].
11807 * troff/input.c (set_string): Declare p to be char * and cast
11808 *p to unsigned char when necessary.
11810 * troff/input.c (do_define_macro): Declare s to be const
11811 char*. Cast element to unisgned char when necessary, Declare
11812 d to be an int. Handle EOF better.
11814 * troff/Makefile, troff/input.c: Different scheme for passing
11815 definitions of MACROPATH, HYPHENFILE and DEVICE.
11817 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
11819 * tty/devascii/R.proto: Delete entry for em.
11820 * tty/devlatin1/R.proto: Likewise.
11822 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
11824 * troff/input.c (translate): Stop when we get a space. Treat eof
11827 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11829 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
11831 * tbl/main.c (process_format): A font name following a `f'
11832 modifier that starts with a digit can be only one character long.
11833 Also deal with EOF on the second character of the font name.
11835 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
11837 * troff/input.c (token::next): Turn \~ into an
11838 unbreakable_space_node.
11839 * troff/node.c (unbreakable_space_node): New class.
11840 * troff/node.h: Declare it.
11842 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
11844 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
11845 it's >= 0, before outputting it as a single byte.
11847 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
11849 * lib/font.c: Make font_char_metric::code an int.
11850 (font::get_code): Change return type to int.
11851 (font::load): Allow code to be arbitrary integer.
11852 * lib/font.h (font::get_code): Change return type to int.
11853 (font::number_to_index): Change argument type to int.
11854 * troff/input.c (token::next): In case 'N', allow any value.
11855 Store value in token::val.
11856 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11857 (token::get_char, token::add_to_node_list, token::process): Get
11859 (charinfo::set_number): Change argument to int.
11860 (charinfo::get_number): Require that NUMBERED flag be set.
11861 (get_charinfo_by_number): Store numbered characters not between 0
11862 and 255 in a dictionary.
11863 * troff/charinfo.h (get_charinfo_by_number): Change argument type
11865 (charinfo::number): Change type to int.
11866 (charinfo::set_number): Change type of set_number to int.
11867 * troff/node.c (troff_output_file::put_char_width,
11868 troff_output_file::put_char): Test whether character is numbered
11869 using charinfo::numbered().
11870 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11872 * lib/nametoindex.c: New implementation to cope with arbitrary
11875 * troff/input.c (token::operator==): Test val for
11876 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11879 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11880 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
11882 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
11884 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
11887 * all Makefiles: rm targets of cp and >.
11889 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11892 * eqn/lex.c (def_table): Add dollar.
11894 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
11896 * troff/input.c (do_width): Push back newline before closing delim
11899 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
11901 * groff.c (possible_command::prepend_arg): New function.
11902 (main): Prepend device -m option.
11903 * groff.sh: Put device -m options before command-line options.
11905 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
11907 * macros/tmac.an (IP): Quote argument to TP.
11909 * ps/ps.c (main): New option -b, which sets...
11910 (broken_flags): New variable.
11911 (ps_printer::~ps_printer): Incorporate the setup section in the
11912 prolog if (broken_flags & NO_SETUP_SECTION).
11913 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11914 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11915 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11916 ps_printer::print_needed_font_comment,
11917 ps_printer::print_supplied_font_comment,
11918 ps_printer::print_include_font_comments,
11919 ps_printer::lookup_doc_font, ps_printer::download_fonts,
11920 ps_printer::read_download_file, read_document_fonts, add_font,
11921 skip_line, parse_fonts_arg, document_font::document_font,
11922 document_font::~document_font, document_font::download,
11923 ps_output::include_file): Deleted.
11924 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11925 rather than %!PS-Adobe-2.0. Make calls to
11926 resource_manager::need_font for each font that we used. Replace
11927 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11928 print_supplied_font_comment, print_needed_font_comment by call to
11929 resource_manager::print_header_comments. Output %%Orientation
11930 comment. Output %%Requirements: numcopies comment if ncopies > 1.
11931 Don't output the prolog directly. Instead call
11932 resource_manager::output_prolog. Only define #copies when ncopies
11933 > 1. Delete calls to print_include_font_comments and
11934 download_fonts. Add call to resource_manager::document_setup.
11935 (ps_printer::do_file): Call resource_manager::import_file instead
11936 of including it ourselves.
11937 (ps_printer::do_import): Likewise. Also don't call
11938 merge_import_fonts. Push userdict on the dictionary stack before
11939 and pop it afterwards.
11940 Move declaration of ps_output into ps.h.
11941 * ps/psrm.c: New file implementing resource_manager class.
11942 * ps/ps.h: New file declaring ps_output and resource_manager
11944 * ps/devps/zapfdr.ps:
11945 * ps/devps/symbolsl.ps:
11946 * ps/devps/prologue: Use 3.0 conventions.
11947 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11948 Add default definition of BROKEN_SPOOLER_FLAGS.
11949 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
11950 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11952 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
11954 * etc/grog.pl: New file.
11955 * Makefile (GROG): New variable.
11956 Add GROG to SUBFLAGS.
11957 * etc/Makefile (GROG): New variable.
11958 (install.nobin): Install $(GROG) rather than grog.sh.
11960 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
11962 * eqn/special.c (special_box::compute_metrics): Make the input and
11963 output strings the same. Get the new height and depth from the
11964 predefined height and depth registers. Also make subscript kern
11965 and skew available.
11966 (special_box::compute_subscript_kern, special_box::compute_skew):
11969 * eqn/box.c (pointer_box::compute_skew,
11970 simple_box::compute_metrics, box::top_level)
11971 * eqn/text.c (prime_box::compute_metrics,
11972 prime_box::comput_subscript_kern)
11973 * eqn/limit.c (limit_box::compute_metrics):
11974 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11975 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11976 negative numbers in `nr' requests with a leading 0.
11978 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
11980 * eqn/special.c: New file.
11981 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
11982 Add new rule for simple.
11983 * eqn/lex.c (token_table): Add SPECIAL.
11984 * eqn/box.h: Declare make_special_box.
11985 * eqn/Makefile: Add special.[co].
11987 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
11989 * ps/devps/prologue: Possibly set packing to true while defining.
11990 Create grops dictionary here. Initialize local variables before
11991 defining procedures.
11992 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11993 the dictionary stack. Set strokeadjust and overprint to false if
11994 the relevant operators are defined.
11995 (PEND): New procedure.
11996 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11997 prologue. Do everything else in the setup section.
11998 (ps_printer::do_import): Just call PBEGIN and PEND around the
11999 picture. Also push userdict before, and pop it afterwards.
12001 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
12003 * troff/node.c (bracket_node::tprint): Brackets were being printed
12006 * macros/tmac.an (SH, SS): Set fill mode.
12008 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
12010 * troff/div.c (top_level_diversion::begin_page): Set
12011 high_water_mark to 0.
12013 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
12015 * man/mdate.sh: New file.
12016 * man/mdate.c: Deleted.
12017 * man/Makefile: Use mdate.sh instead of mdate.
12020 * eqn/lex.c (do_gsize): Supply missing argument to error message.
12022 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
12024 * man/mdate.c: New file.
12025 * man/*.man: Replace modification date by @MDATE@.
12026 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
12027 (mdate): New target.
12029 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
12030 Remove illegal input characters.
12032 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
12034 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
12036 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
12038 * troff/div.c (begin_page): Change behaviour when
12039 !first_page_begun and !break_flag.
12041 * troff/input.c (do_name_test): Return 0 if argument is empty.
12043 * troff/input.c (read_long_escape_name): Require closing ] to be
12044 at same input level as opening [.
12046 * troff/input.c (read_increment_and_escape_name): New function.
12047 (get_copy, process_input_stack): Use this for \n.
12049 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
12051 * troff/div.c (top_level_diversion::begin_page): Ignore the
12052 current value of page_number if !first_page_begun.
12054 * groff.c (main): Fix declaration of buf.
12056 * troff/input.c (do_name_test): New function.
12057 (token::next): Implement \A.
12058 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
12059 (token::description, token::add_to_node_list, token::process):
12060 Handle TOKEN_ESCAPE.
12061 * troff/token.h: New token TOKEN_ESCAPE.
12063 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
12065 * pic/main.c (do_picture): Allow space before and after filename
12066 following `<'. Check that the filename is not empty.
12068 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
12070 * Version 1.01 released.
12072 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
12074 * dvi/tmac.dvi: ftr HR to H.
12076 * macros/tmac.e: Round up computation of $r.
12078 * xditview/tmac.X: Don't give up completely in compatibility mode.
12079 Use \n(.s instead of \n[.s].
12081 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
12082 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
12083 Add u to factors inside \s[...]. Rename frac to dvi-frac.
12084 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
12085 short names in the char definitions.
12087 * ps/tmac.ps: Don't give up completely in compatibility mode.
12088 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
12089 quote in front of \n(.s. Add u to factors inside \s[...].
12091 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
12093 * tty/tmac.tty: Call the nroff request.
12095 * macros/tmac.e ((x, )x): Better definitions that work properly
12097 (@0, @1): Helper macros for (x.
12099 * macros/tmac.e ($s, hl): Use \l rather than \D.
12101 * tty/tmac.tty: Make it work better in compatibility mode.
12102 (pchar): Rename to tty-char.
12104 * macros/tmac.e (@E): New macro.
12105 (r, i, b, rb, bi): Use @E.
12107 * macros/tmac.e (@F): Don't use (;...) syntax.
12109 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
12110 it was modified for groff.
12112 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
12114 * macros/tmac.e (<., .>): Removed.
12115 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
12117 * macros/tmac.e: Remove check that groff is being used.
12119 * macros/tmac.e (@C): Change families only if using groff; turn
12120 compatibility mode off while changing familes. Save compatibility
12121 mode before changing families and restore it afterwards.
12123 * macros/tmac.e (@h): Remove test for offset + line length.
12125 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
12126 (lo, th, ac): Define to call @S instead of using als.
12128 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
12129 the ratio of the vertical spacing to the point size in units
12130 expressed as a percentage. Use these instead of $10r and $10R,
12131 Delete $10r and $10R.
12133 * lib/font.c (font::load): In default computation of space_width,
12134 divide by sizescale. Use scale_round.
12136 * macros/tmac.an (TP): Don't call `nf'.
12137 (an-do-tag): Don't call `fi'.
12139 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
12141 * troff/input.c (process_input_stack): Handle the case where
12142 spaces at the beginning of an input line are followed by a
12145 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
12147 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
12148 * groff.sh: Use pic -x with the dvi device.
12150 * dvi/devdvi/FontMakefile (H): Don't use -s.
12152 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
12153 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
12154 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
12157 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
12159 * ps/psfig.diff: New file.
12160 * ps/tmac.psfig: New file.
12162 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
12164 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
12165 (]-): Don't call ref*do-tl.
12167 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
12169 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
12170 (fn@do-FS): Rename to fn*do-FS.
12172 * troff/input.c (transparent_translate): New function.
12173 (process_input_stack): Apply transparent_translate before calling
12174 diversion::transparent_output(unsigned char).
12176 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
12178 * troff/input.c (do_define_macro): Define the macro before calling
12181 * xditview/Makefile: Add DEVICES variable. Change install target
12184 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
12186 * groff.c (run_commands): Handle the possibility that there are
12187 child processes other than those forked by us.
12189 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
12191 * lib/string.c (string::append): New function.
12192 * lib/stringclass.h: Declare it.
12194 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
12196 * eqn/main.c (main): New option -N which sets
12197 no_newline_in_delim_flag.
12198 (do_file): If no_newline_in_delim_flag is set don't allow newlines
12200 * groff.c (main): Pass -N on to eqn.
12201 (help, synopsis): Mention -N.
12202 * groff.sh: Implement -N.
12204 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
12206 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
12207 (]-): Call ref*do-tl if ref*need-tl is non-zero.
12208 (XP): Allow as initializer.
12210 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
12212 * troff/env.c (environment::wrap_up_field): If field_spaces are
12213 non-zero and we have a current_tab, subtract padding from
12214 tab_distance. If this makes tab_distance <= 0, use the next tab
12215 stop instead. If there isn't any next tab or it's a left tab,
12216 wrap up the current tab.
12217 (environment::start_field): Initialize tab_precedes_field.
12218 (environment::wrap_up_tab): If there's a current field, update
12219 pre_field_width, field_distance and tab_precedes_field.
12220 * troff/env.h (environment::tab_precedes_field): New member.
12222 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
12224 * ps/ps.c (ps_printer::do_file): New function.
12225 (ps_printer::special): Bind to `file' special.
12226 (ps_printer::do_exec): Set ndefined_styles to 0.
12228 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
12230 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
12231 Avoid stripping first character from the start of unrecognized
12232 escapes. Use lex_error instead of error to report errors.
12233 * eqn/lex.c (get_token): Rework handling of escapes.
12234 (lex_error): Move declaration into...
12237 * xditview/xditview.c (main): Make -page option work.
12239 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
12241 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
12243 * macros/tmac.s (B2): Correct size of box.
12245 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
12247 * macros/tmac.s (B2): Postpone drawing the box until in the
12248 top-level diversion.
12250 * tty/tmac.tty: Add font translations for C, CR, CW.
12252 * groff.c (synopsis, help): Document -i.
12253 * groff.sh: Implement -i.
12255 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
12256 Simplify the construction of SN.
12258 * troff/number.c (parse_term): Give `|' a higher precedence.
12259 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
12262 * macros/tmac.s (B2): Use par@finish instead of par@reset.
12264 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
12266 * lib/string.c (string::move): New function.
12267 * lib/stringclass.h: Declare it.
12269 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
12271 * troff/env.c (distribute_space): Add optional argument
12273 (environment::wrap_up_field): Call distribute_space with
12274 `force_forward' argument of 1.
12276 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
12278 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
12279 Inline it. Move reallocation into...
12280 (string::grow1): New function.
12281 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
12282 dependencies to include library header files.
12283 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
12285 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
12287 * macros/tmac.s (@NH): Use the same number registers than -ms does
12288 for the heading level counters. Use the same string that -ms does
12289 for the number for this heading.
12291 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
12293 * lib/new.c (operator new): Cast result of malloc to char *.
12295 * troff/input.c (spring_trap, lookup_request): Add assert that nm
12298 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
12300 * groff.c (main): Support -i.
12302 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
12304 * pic/pic.h: Include <osfcn.h>.
12306 * ps/ps.c: Add declaration of mktemp.
12308 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
12309 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
12310 argument as union wait *.
12311 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
12312 argument to union wait *.
12314 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
12316 * tty/tmac.tty: Add definition of \(co.
12318 * pic/object.c (make_arc): Only increase radius when radius
12319 strictly less than d.
12320 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
12323 * troff/env.c (environment::environment(symbol),
12324 environment::environment(const environment *)): Initialize
12327 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
12329 * tbl/main.c (main): Add exit(0).
12331 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
12333 * pic/main.c (main):
12334 * eqn/main.c (main):
12335 * tbl/main.c (main):
12336 * etc/soelim.c (main):
12337 * driver/printer.c (printer::~printer):
12338 * troff/node.c (real_output_file::~real_output_file,
12339 real_output_file::flush): Check for errors on stdout.
12341 * most files: Add 1991 to copyright notice.
12343 * macros/tmac.s: Don't test \n(.x and \n(.y.
12345 * troff/input.c (token::next): Rename `escape_char' label to
12346 `handle_escape_char' and `normal_char' label to
12347 `handle_normal_char'.
12349 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
12351 * groff.c (main, synopsis, help): Support -a option.
12352 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
12353 to trflags while parsing options.
12355 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
12357 * troff/number.c (parse_term): With `m', `M' and `n' scale
12358 indicators, convert scale factor to hunits before scaling.
12360 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
12362 * lib/font.c (scale_round): Better test for overflow when n is
12365 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
12367 * tbl/main.c (process_format): Add second argument of type
12368 options*. Change callers. Allow opt->tab_char as well as '\t'
12369 between format items.
12371 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
12373 * macros/tmac.an (PD): With no arguments, make sure register PD is
12375 (TH): Call PD with no argument, instead of setting register PD
12378 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
12380 * Version 1.00 released.
12382 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
12384 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
12386 * dvi/devdvi/DESC: Mount CW instead of CR.
12388 * dvi/tmac.dvi: Add definition of \(tm.
12390 * dvi/devdvi/texsy.map: Add lh, and rh.
12391 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
12392 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
12394 * dvi/devdvi/FontMakefile: Generate H from cmss10.
12395 * dvi/devdvi/Makefile: Install H.
12396 * dvi/devdvi/H: New file.
12398 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
12400 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
12403 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
12405 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
12407 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
12409 * macros/tmac.s (@EN): Handle the case where the equation is empty
12410 but the label is not.
12412 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
12414 * troff/groff.h: New warning category WARN_SPACE.
12415 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
12416 WARN_SPACE to warning_table.
12417 (interpolate_macro): Give a warning of type WARN_SPACE if the name
12418 is longer than two characters and is not defined, but the first
12419 two characters do make a defined name.
12421 * PROBLEMS: New file.
12423 * CHANGES: New file.
12424 * README-0.6, README-1.00: Deleted.
12426 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
12427 * xditview/devX75/Makefile: Make devX75-12.
12428 * xditview/devX100/Makefile: Make devX100-12.
12430 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
12431 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
12433 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
12435 * README-0.7: Rename to README-1.00.
12437 * macros/tmac.pic: New file.
12438 * macros/Makefile (install.nobin): Install tmac.pic.
12440 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
12442 * troff/env.c (hyphen_word): Correct the test for whether the
12443 token is a hyphen. Reset npos to 0.
12445 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
12447 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
12449 * macros/tmac.s (ds*common-end): Call par*reset.
12451 (par@reset-indent): Deleted.
12453 * macros/tmac.s (@IP): Divert the label.
12455 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
12457 * xditview/draw.c (setGC): Use a line width of .1m rather than
12458 .04m by default; round rather than truncate value.
12460 * tbl/table.c (class empty_entry): New class.
12461 (empty_entry::empty_entry, empty_entry::line_type): New functions.
12462 (table::add_entry): Represent empty entries by objects of type
12464 (table_entry::line_type): Return -1.
12465 (table::determine_row_type): Ignore entries with line_type 0.
12466 Treat type -1 as non-lines.
12468 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
12470 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
12471 macros/tmac.s: Rename \(-d to \(Sd.
12473 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
12475 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
12476 * xditview/libXdvi/DviChar.c: Likewise.
12477 * dvi/devdvi/texsy.map: Add `<<', `>>'.
12479 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
12481 * troff/div.c (top_level_diversion::begin_page): Call
12482 init_output() if the_output is 0.
12484 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
12486 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
12488 (get_copy): Turn \E into ESCAPE_E.
12489 (token::process, asciify): Handle ESCAPE_E.
12491 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
12493 (DS): Implement `.DS R'.
12495 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
12497 * macros/tmac.s (FS): New macro.
12499 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
12501 * macros/tmac.s (cov*tl-init): Remove after first execution
12502 instead of aliasing to @nop. Call top of page macro explicitly
12503 instead of setting trap; call @init first. Set pg@top as top of
12505 (cov*auto-init): Deleted. Set cov*tl-init instead of
12506 cov*auto-init as top of page trap.
12507 (TL, LP): Do a break instead of calling cov*tl-init.
12508 (cov*print): With RP format but no TL, alias FS and FE to @FS and
12509 @FE; in this case also give a warning and always start another
12510 page. No need to set pg@top here.
12511 (cov*tl-init): Rename to cov*first-page-init.
12513 * macros/tmac.s (RP): Do `.pn 0'.
12514 (cov*tl-init): With RP format don't do `.pn 0'.
12516 * macros/tmac.s (pg@cs-top): Set no space mode.
12518 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
12519 (cov*ab-init): Alias TL, AU and AI to these.
12521 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
12523 * macros/tmac.s (@EQ): Move the space before the equation into @EN
12524 (@EN): Do nothing unless \n[dl] is > 0.
12526 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
12528 * pic/object.c (ellipse_object::radius): New function.
12530 * VERSION: Change version to 0.7.
12532 * tbl/table.c (block_entry::do_divert): Declare return type as
12534 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
12536 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
12538 * troff/column.c: New file.
12539 * troff/Makefile: Corresponding changes.
12541 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
12544 * troff/div.c (top_level_diversion::space): If the space causes
12545 the first-page transition and springs a trap, truncate the space
12548 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
12550 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
12553 * pic/troff.c (troff_output::line_thickness,
12554 troff_output::set_fill): Do a horizontal motion to compensate for
12555 the width of the \D escape sequence.
12557 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
12559 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
12562 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
12565 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
12566 Supply empty definition.
12567 (text_entry::simple_print, simple_text_entry::simple_print):
12568 Delete declarations.
12569 (table::add_entry): Represent empty entries by objects of type
12572 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
12574 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
12576 * tbl/table.c (left_text_entry::add_tab): New function.
12578 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
12579 initialize like LP.
12581 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
12583 * troff/env.c (environment::start_field): Give an error message if
12584 there is no next tab.
12586 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
12588 * troff/env.c (hyphenate): Skip initial elements with zero
12591 * macros/tmac.s (par@init): Keep VS in points rather than units.
12593 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
12595 * pic/main.c (main): Implement `-c' option.
12596 * pic/output.h: Declare make_tpic_output().
12597 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
12599 (tpic_output): New class.
12600 (tpic_output::tpic_output, tpic_output::set_pen_size,
12601 tpic_output::command, make_tpic_output): New functions.
12603 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
12605 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
12606 if they're not already defined.
12607 * tbl/table.c (init_output): Don't test \n(.g.
12609 * troff/input.c (do_if_request): Delete `g' condition. Recognize
12610 `d', `r' and `c' conditions even in compatibility mode.
12612 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
12614 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
12617 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
12619 * troff/env.h (environment::prev_line_interrupted): New member.
12620 (environment::get_prev_line_interrupted): New function.
12621 * troff/env.c (environment::newline): Set prev_line_interrupted.
12622 (environment::environment(const environment *),
12623 environment::environment(symbol)): Initialize
12624 prev_line_interrupted.
12625 * troff/input.c (process_input_stack): Don't give special
12626 treatment to space and newline at the beginning of the line if the
12627 previous line was interrupted.
12629 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
12631 * eqn/eqn.y: Disallow PRIME by itself.
12632 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
12634 (def_table): Remove definition of '. Define prime to be `.
12636 * eqn/eqn.y: Split off part of rule `script' into a new rule
12639 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
12641 * macros/tmac.s ({, }): New string aliases.
12643 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
12645 * README-0.7: New file.
12647 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
12649 * macros/tmac.s: New file.
12650 * man/groff_ms.man: New file.
12651 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
12652 * Makefile.bd: Similarily.
12653 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
12654 definition of TMAC_S.
12655 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
12656 * macros/TODO: New file.
12658 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
12660 * troff/env.c (right_justify): New function.
12661 (init_env_requests): Bind this to request "rj".
12662 (center_lines): Set right_justify_lines to 0. If we get a bad
12663 integer, center 1 line.
12664 (environment::environment(symbol), environment::environment(const
12665 environment *)): Initialize right_justify_lines.
12666 (environment::get_right_justify_lines): New function.
12667 (init_env_requests): Bind this to number_register ".rj".
12669 * troff/env.c (environment::choose_breakpoint): Implement
12670 hyphenation_margin and hyphenation_space.
12671 (environment::get_hyphenation_space,
12672 environment::get_hyphenation_margin): New functions.
12673 (init_env_requests): Bind these to .hys and .hym.
12674 (hyphenation_space_request, hyphenation_margin_request): New
12676 (init_env_requests): Bind these to hys and hym.
12677 (environment::environment(symbol), environment::environment(const
12678 environment *)): Initialize hyphenation_margin and
12680 * troff/env.h: Corresponding changes to class environment.
12682 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
12684 * troff/div.c (blank_line): Always do a break.
12686 * eqn/box.c (do_text): Turn off escapes while appending text to
12689 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
12691 * troff/input.c (while_break_request, while_continue_request): New
12693 (init_input_requests): Bind these to "break" and "continue".
12694 (while_depth, while_break_flag): New variables.
12695 (while_request): Update while_depth. Break out of loop if
12696 while_break_flag is set.
12698 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
12700 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
12703 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
12705 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
12707 * stringify: New file.
12708 * Makefile (groff.o): Use stringify.
12710 * xditview/tmac.X: Remove definition of \(rn.
12711 * xditview/libXdvi/DviChar.c: Remove radicalex from
12714 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
12716 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
12717 (alphabetic_block_entry::alphabetic_block_entry,
12718 alphabetic_block_entry::divert, alphabetic_block_entry::print):
12720 (block_entry::divert): Split off body into ...
12721 (block_entry::do_divert): If the block is alphabetic, subtract 2n
12722 from the line length; also update the span width to dl+2n, and the
12723 alphabetic span width to dl.
12725 * driver/input.c (do_file): While reading argument to D command,
12726 when expanding buffer, multiply szp by sizeof(int) rather than 2
12727 in the argument to memcpy.
12729 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
12730 width of alphabetic columns.
12732 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
12734 * troff/node.c (lookup_family): Supply second argument to lookup.
12736 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
12737 search, return immediately if v is 0.
12739 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
12740 (troff_output::start_picture): Set this reg.
12741 (troff_output::end_picture): Remove this reg
12742 * eqn/box.c (box::extra_space): Don't produce `\x's if
12743 EQN_NO_EXTRA_SPACE_REG is defined.
12745 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
12746 * eqn/text.c (split_text): Map ' to \(fm when it's the first
12749 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
12751 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
12754 * troff/div.c (top_level_diversion::top_level_diversion):
12755 Initialize page_number to 0.
12757 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
12759 * groff/troff (environment::environment(const environment *)):
12760 Initialize name to e->name, rather than "anonymous".
12762 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
12764 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
12765 requested_page. Split middle part into ...
12766 (FindPage): New function.
12767 (SetValues): If we don't yet know the last page, and the requested
12768 page is greater than the current page, call FindPage.
12769 Update the font_map_string before doing this.
12771 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
12772 Translate \(lh and \(rh into left and right double arrows.
12774 * troff/node.c (class hyphen_inhibitor_node): New class.
12775 (hyphen_inhibitor_node::hyphen_inhibitor_node,
12776 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
12777 hyphen_inhibitor_node::type,
12778 hyphen_inhibitor_node::get_hyphenation_type): New functions.
12779 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
12780 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
12783 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
12785 * troff/node.h (dummy_node::get_hyphenation_type,
12786 transparent_dummy_node::get_hyphenation_type): Declare them.
12787 * troff/node.c: (dummy_node::get_hyphenation_type,
12788 transparent_dummy_node::get_hyphenation_type): New functions.
12790 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
12792 * xditview/libXdvi/draw.c: If M_PI not defined after including
12793 math.h, then define it.
12795 * xditview/Makefile: Add definition of AR. Pass it to the submake
12797 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12799 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
12801 * troff/dictionary.h (object_dictionary::alias): Declare return
12803 * troff/dictionary.c (object_dictionary::alias): Return non-zero
12804 if the old name was defined.
12805 * troff/input.c (alias_macro): Give a warning if the old name was
12807 * troff/reg.c (alias_reg): Likewise.
12809 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
12811 * troff/input.c (token::next): Delete implementation of \R.
12813 * macros/Makefile: Strip comments from tmac.e while installing it.
12815 * troff/input.c: New variable `nroff_mode'.
12816 (troff_request, nroff_request): New functions.
12817 (init_input_requests): Bind `troff' and `nroff' to troff_request
12819 (do_if_request): Compute results of t and n conditions from
12822 * text/text.c (split_text): Fix typo in >=.
12824 * eqn/lex.c: Add definition of `==' to def_table.
12826 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
12828 * pic/tex.c (tex_output::start_picture): Change the definitions of
12829 \graph and \graphtemp so that they work properly with Plain TeX.
12831 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12832 argument to `ar' is not less than the first.
12834 * pic/pic.y: Allow a comma between elements of the variable list
12835 in the argument to `reset'.
12837 * pic/object.c (arc_object::arc_object): Fix computation of
12840 * eqn/main.c (main): Add exit(0).
12842 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
12844 * troff/div.c (begin_page): Test no_space_mode after doing the
12845 break, but still push the page ejector cookie before doing the
12846 break. Also set the next page number after doing the break.
12848 * xditview/xditview.c (NewFile): Don't set the title and icon name
12849 if this is the first file and its name is `-'.
12850 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
12851 the X75 and X100 devices.
12852 (main): If a device has the XT_OPTION flag set and there's exactly
12853 one file argument, pass the driver -xrm and -title options to set
12854 the icon name and window title to the name of the file.
12856 * troff/env.c (environment_switch): If there was an argument but
12857 it wasn't a valid number or name, then pop an environment but
12858 don't give an error message on underflow.
12860 * troff/number.c (start_number): Correct spelling in error message.
12862 * troff/input.c (token::delimiter): Don't print an error message
12865 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12866 ParseDrawFunction if dw->display_enable is true.
12868 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
12870 * pic/pic.y: Parse text positioning like normal attributes, so as
12871 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
12872 positioning attribute.
12874 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
12876 * tbl/main.c (process_data): When in state START while reading a
12877 text block, don't change to state MIDDLE if c is a newline.
12879 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
12881 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12882 so as to avoid shadowing parameter.
12884 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
12886 * tbl/table.c (trim_space): Deleted.
12887 (table::add_entry): Don't call trim_space.
12889 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
12891 * VERSION: Change version to 0.6.
12893 * troff/number.c (parse_expr): Make == work.
12895 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
12897 * man/grog.man: New file.
12898 * man/Makefile: Add grog.n to MAN1PAGES.
12899 * etc/grog.sh: New file.
12900 * etc/Makefile: Install grog.sh as grog.
12902 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
12904 * troff/input.c (token::next): Implement \E.
12906 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
12908 * xditview/tmac.X: Change font translations to match tmac.ps.
12910 * troff/input.c (non_empty_name_warning): Don't give a warning if
12911 `\{' terminates the name.
12913 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
12915 * ps/devps/symbol.diff: New file.
12916 * ps/devps/FontMakefile: Mention symbol.diff.
12918 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
12920 * troff/node.c (font_position): Use get_long_name to read the
12923 * troff/env.c (environment_switch): If we get a number that's < 0
12924 or >= NENVIRONMENTS, treat it like a name.
12925 Change NENVIRONMENTS to 10.
12927 * troff/groff.h: Remove definition of FONTS_MAX.
12928 * troff/node.h (class font_family): Make map a pointer instead of
12929 an array. Add a map_size member. Make it a class. Make nm const
12930 and public. Make invalidate_fontno a friend.
12931 * troff/node.c: Define font_table_size. Make font_info a pointer
12932 rather than an array.
12933 (class troff_output_file): Allocate font_position dynamically. Add
12934 nfont_positions member.
12935 (troff_output_file::set_font): Grow font_position if necessary.
12936 (troff_output_file::~troff_output_file): Delete font_position.
12937 (troff_output_file::troff_output_file): Allocate font_position.
12938 (grow_font_table): New function.
12939 (troff_output_file::really_begin_page,
12940 troff_output_file:really_copy_page): Use nfont_positions rather
12942 (mount_font_no_translate, mount_style): Call grow_font_table if
12944 (font_family::font_family): Allocate map.
12945 (font_family::make_definite): Grow map if necessary. Use
12946 font_table_size instead of FONTS_MAX.
12947 (font_family::~font_family): New function.
12948 (invalidate_fontno): Use font_family::map_size.
12949 (get_fontno, env_space_width, env_half_narrow_space_width,
12950 env_narrow_space_width, symbol_fotno, is_good_fontno,
12951 get_bold_fontno, make_glyph_node): Use font_table_size rather than
12953 (next_available_font_position): Never return 0.
12955 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
12957 * ps/tmac.ps: Add font translations for compatibility with dpost.
12959 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
12961 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12962 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12963 Move definitions baseline_sep, shift_down, column_sep,
12964 matrix_side_sep into...
12965 * eqn/box.c: Add them to param_table.
12966 * eqn/pbox.h: Add declarations to pbox.h.
12968 * troff/input.c (set_string): Cast value to unsigned char *.
12970 * troff/token.h (process_input_stack): Declare it static before
12971 declaring it a friend.
12973 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
12975 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12977 * dvi/devdvi/EX: Regenerate.
12979 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12982 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
12984 * eqn/lex.c: In defaults_table, make definition of `dot' call
12985 `dot_def'. Don't explicitly make it roman. Similarily for other
12988 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12990 (for_input::get, for_input::peek): Use this.
12991 (do_for): Add by_is_multiplicative argument.
12992 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12993 Change semantic value of optional_by to be a double plus a flag
12994 saying whethet the by clause is multiplicative.
12996 * eqn/lex.c (get_delimited_text): Remember location of start of
12997 definition. Improve error handling when EOF is encountered.
12999 * lib/font.h: Rename handle_x_command to
13000 handle_unknown_font_command.
13001 * lib/font.c (font::load): Call handle_unknown_font_command for
13002 any unknown command in the font description file. Don't call
13003 handle_x_command. Include the name of the command in the argv.
13004 Improve message for unknown command after kernpairs or charset
13006 * ps/ps.c (ps_font::handle_x_command): Rename to
13007 handle_unknown_font_command. Remove message about `x download'
13008 command. Give error message for wrong number of arguments.
13009 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
13010 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
13011 handle_unknown_font_command. Give an error message for wrong
13012 number of arguments. Rename design_size to designsize.
13013 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
13014 checksum', `designsize' instead of `design_size'.
13016 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
13018 * eqn/*.[chy]: Change underaccent to uaccent.
13020 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
13021 give it the same precedence as ACCENT.
13022 * eqn/other.c (make_underaccent_box): New function.
13023 * eqn/box.h: Declare it.
13024 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
13027 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
13029 * pic/pic.y (reset_all): New function. Called in rule for RESET.
13030 (parse_init): Call reset_all.
13031 (define_variable): When defining scale reset only those
13032 pre-defined variables that are scaled.
13033 (defaults_table): Add `scale' as non-scaled value.
13035 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
13036 together with the text; allow any number of positioning words;
13037 allow center as a positioning word.
13039 * pic/object.c (output::compute_scale): Get picture maximum height
13040 and width from variables called maxpswid and maxpsht.
13041 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
13043 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
13045 * pic/object.c (object_spec::make_text): Multiply textht by number
13048 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
13050 (do_sprintf): New function.
13051 (pic.gperf): Add sprintf token.
13052 (text, sprintf): New rules.
13054 * pic/pic.y: `rand()' with no arguments returns a random number
13055 in the range [0,1).
13057 * pic/pic.y: Allow a bare expression to be an attribute: change
13058 precedences to support this. Change optional_ordinal rule to
13059 optional_ordinal_last to avoid reduce/reduce conflict.
13060 * pic/object.c (object_spec::object_spec): Initialize direction.
13062 * pic/pic.y: Implement ^ operator meaning exponentiation.
13064 * troff/node.h: Add default argument to mount_font.
13065 * troff/node.c (font_position): Read an optional third argument
13066 giving the external_name.
13067 (mount_font): Add optional argument giving the external_name.
13068 (mount_font_not_translate): Have additional argument giving
13069 external name. Use this name to load the font. Pass both names
13070 to font_info::font_info.
13071 (font_info::font_info): Have additional argument giving
13073 (class tfont): New member external_name.
13074 (font_info::get_tfont): Use external name to construct tfont_spec.
13076 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
13078 * eqn/lex.c (init_table): Add argument giving device. Define
13079 name of device to be "1".
13080 (do_ifdef): Counts as true if the argument has been defined with
13082 * eqn/main.c (main): Call init_table with device argument. Make
13083 device local to main.
13084 * eqn/eqn.h: Change declaration of init_table. Remove declaration
13087 * pic/lex.c (get_delimited): Allow text to be delimited by
13088 matching {}s. Don't recognize ending delimiter within a string.
13090 * troff/input.c (get_delim_name): New function.
13091 (token::next): Implement \C.
13093 * lib/font.c (font::load): Grok ---. Add an alias for each
13094 character based on its code.
13095 (font::get_code_width): Deleted.
13096 * lib/font.h (class font): Declare font::number_to_index().
13097 Remove declaration of font::get_code_width.
13098 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
13099 to indices of named characters.
13100 (font::number_to_index): New function.
13101 * troff/input.c (font::number_to_index): New function.
13102 (get_charinfo_by_number, charinfo::get_number,
13103 charinfo::set_number): New functions.
13104 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
13105 (token::process, token::description, token::get_char,
13106 token::add_to_node_list, token::operator==): Handle
13107 TOKEN_NUMBERED_CHAR.
13108 * troff/charinfo.h: Declare get_charinfo_by_number,
13109 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
13111 (charinfo::numbered): New function.
13112 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
13113 * troff/env.h (class environment): Remove declaration of ...
13114 * troff/env.c (environment::make_numbered_char_node): Deleted.
13115 * troff/node.c (make_numbered_node): Deleted.
13116 (class numbered_glyph_node): Remove.
13117 (troff_output_file::put_char_width, troff_output_file::put_char):
13118 Handle numbered chars.
13119 (troff_output_file::numbered_char): Removed.
13120 (tfont::get_code_width): Removed.
13121 (make_glyph_node): Don't search special fonts for numbered
13123 * troff/node.h: Remove declaration of make_numbered_node.
13124 * driver/input.c (do_file): Handle N command.
13125 * driver/printer.h: Add declaration of ...
13126 * driver/printer.c (printer::set_numbered_char): New function.
13127 * dvi/tfmtodit.c (main): Generate unnamed entries.
13128 * ps/devps/afmtodit: Likewise.
13129 * xditview/xtotroff.c (MapFont): Likewise.
13130 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
13132 * tbl/main.c (process_format): If multiple widths are specified
13133 for a column but all the widths are the same, don't give an error
13136 * tbl/table.c (table::do_row): If the current row is all lines and
13137 the stuff doesn't contains a line, mark the top of the row after
13138 printing stuff before the row. If the current row is not all
13139 lines and the stuff doesn't contain a line, don't unnecessarily
13140 mark the top of the row before printing the stuff.
13142 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
13144 * troff/groff.h: Remove MAX_PATH.
13145 * troff/input.c (open_file): Dynamically allocate space for the
13147 (open_mac_file, process_macro_file): Corresponding changes.
13149 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
13151 * troff/node.h (class output_file): Make copy_file pure. Add
13152 vspace method ifdef COLUMN. Add is_printing method.
13153 * troff/node.c: Add class printing_reg. Add class
13154 real_output_file. Derive other output_file classes from
13155 real_output_file; in these classes rename begin_page to
13156 really_begin_page, print_line to really_print_line, copy_file to
13157 really_copy_file, transparent_char to really_transparent_char.
13158 Move output_file::flush to real_output_file. Add printing member
13159 to class output_file.
13160 * troff/div.h: Remove printing member from top_level_diversion.
13161 Add vspace member function to class diversion ifdef COLUMN. Add
13162 some declarations ifdef COLUMN.
13163 * troff/div.c (top_level_diversion::copy_file,
13164 top_level_diversion::transparent_output,
13165 top_level_diversion::output): Don't test printing member before
13167 * troff/input.c: Handle initial variable_space_request ifdef
13169 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
13170 but comment it out.
13172 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
13174 * troff/div.c (diversion::need): Make any space forced. If we
13175 sprung a trap, set truncated_space to minus the distance to the
13176 trap and set needed_space to the amount that was needed.
13177 (top_level_diversion::space): A forced space turns no_space_mode
13179 (class constant_vunits_reg): New class.
13180 (init_div_requests): Implement number registers .trunc and .ne
13181 using constant_vunits_reg.
13182 (class truncated_space_reg): Deleted.
13184 * troff/div.h: Don't have a no_space_mode member in diversion.
13185 Instead have it in top_level_diversion.
13186 * troff/div.c (diversion::diversion): Don't initialize
13188 (top_level_diversion::top_level_diversion): Initialize
13190 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
13191 (macro_diversion::output): Don't clear no_space_mode.
13193 * troff/input.c (diverted_space_node::reread): Don't call
13194 environment::do_break. In fill mode, act like a blank line.
13195 (diverted_copy_file_node::reread): Don't call
13196 environment::do_break.
13198 * troff/div.c (blank_line): New function.
13199 * troff/div.h: Declare it.
13200 * troff/input.c (process_input_stack): Call it.
13202 * troff/div.c (truncated_space_reg::get_string): New function.
13203 (init_div_requests): Bind to .trunc.
13204 (space_request, top_level_diversion::space,
13205 top_level_diversion::output, macro_diversion::space,
13206 macro_diversion::output): Update truncated_space.
13207 (macro_diversion::output): Redo calculations when trap sprung.
13208 (macro_diversion::output, macro_diversion::space): No need for
13211 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
13212 after truncating post line spacing.
13214 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
13216 * ps/devps/prologue (MF, SF): Make them work even if setfont is
13217 defined as a procedure rather than as an operator.
13219 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
13221 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
13223 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
13225 * troff/div.c (top_level_diversion::output): Merge
13226 output_file::print_line and output_file::end_of_line member
13228 * troff/div.h (class output_file):
13229 * troff/node.c (troff_output_file::print_line,
13230 troff_output_file::end_of_line, output_file::end_of_line,
13231 ascii_output_file::print_line, suppress_output_file::print_line):
13232 Corresponding changes.
13234 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
13236 * troff/input.c (token::next): Don't give a warning for `\.'.
13238 * troff/env.c (environment::get_center_lines): New function.
13239 (init_env_requests): Bind number register .ce to it.
13240 * troff/env.h: Declare it.
13241 * tbl/table.c (table::init_output): Define reset macro to restore
13242 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
13244 (table::print): If center option not given, then imply center
13245 option if SAVED_CENTER_REG > 0.
13247 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
13249 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
13250 Troff.ps from DOWNLOAD.
13252 * troff/Makefile: Change comment in DEFINES to avoid confusing
13255 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
13256 code. Don't try to catch errors with stopped.
13257 (check_line_lengths): New function.
13258 * ps/devps/prologue (EXEC): Deleted.
13259 (EBEGIN, EEND): New procedures.
13261 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
13263 * troff/input.c: Include request.h before node.h.
13264 * troff/node.c: Likewise.
13265 * troff/env.c: Likewise.
13266 * troff/div.c: Likewise.
13267 * troff/node.h (class special_node): Store argument as a macro
13268 rather than a char *.
13269 * troff/node.c (special_node::special_node, special_node::copy):
13271 (special_node::~special_node): Deleted.
13272 (special_node::tprint): Deleted.
13273 (special_node::tprint_start, special_node::tprint_end,
13274 special_node::tprint_char): New functions.
13275 (troff_output_file::special): Deleted.
13276 (troff_output_file::start_special, troff_output_file::end_special,
13277 troff_output_file::special_char): New functions.
13278 * troff/input.c (special_node::tprint): New function.
13279 (do_special): Use macro not char *.
13280 (do_transparent_macro): Deleted.
13281 (token::next): Don't call do_transparent_macro.
13283 * troff/input.c (token::next): Add 'Y' case.
13284 (do_transparent_macro): New function.
13285 * troff/node.c (troff_output_file::special): Handle newlines with
13286 argument using new continuation convention.
13287 * driver/input.c (get_string): Cope with continuation convention.
13288 (do_file): Don't call skip_line after calling get_string(1).
13289 * ps/ps.c (ps_printer::special, ps_printer::do_import,
13290 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
13292 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
13295 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
13297 * troff/input.c (asciify): By default, illegal input characters
13298 should return empty string.
13300 * troff/input.c (copy_file): Handle first page transition like title.
13301 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
13303 * troff/input.c (token::next): Improve error message for EOF after
13305 (input_char_description): New function.
13306 (get_char_for_escape_name): Use input_char_description.
13307 (token::next): Warn about unrecognized escape sequences.
13308 (warning_table): Add WARN_ESCAPE.
13309 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
13312 * troff/token.h: Remove declaration of process_input_stack.
13314 * troff/input.c: Remove declaration of init_hyphen_requests.
13315 * troff/request.h: Correct spelling in declaration of same.
13317 * troff/input.c (token::next): Check whether escape_char is 0.
13319 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
13321 * groff.c (main, usage, help): Implement -P and -L options.
13322 * groff.sh: Likewise.
13324 * troff/input.c (token::next): Use some gotos to avoid code
13327 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
13328 Avoid calling symbol::symbol if name empty.
13330 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
13332 * troff/input.c (init_input_requests): Make \n(.x return the major
13333 version number and \n(.y return the minor version number.
13334 * troff/Makefile: Construct file majorminor.c defining
13335 major_version and minor_version automatically from ../VERSION.
13337 * troff/node.c (class glyph_node): Make operator new and operator
13339 (class ligature_node): Similarily.
13341 * troff/input.c (operator==(const macro &, const macro &)): New
13343 (non_interpreted_node::same): Use this.
13344 (string_iterator::string_iterator): Make macro& argument const.
13346 * troff/input.c (input_iterator::get): New function. Don't make
13347 asciify_macro or class non_interpreted_node friends of class
13349 (non_interpreted_node::interpret): Use input_iterator::get.
13350 (asciify_macro): Likewise.
13352 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
13353 ~non_interpreted_node): Deleted.
13354 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
13357 * troff/symbol.h: Make all symbol member functions const.
13359 * lib/strtol.c: New file.
13360 * lib/Makefile: Add strtol.c.
13361 * Makefile: Define STRTOL as strtol.o to include strtol in
13364 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
13366 * pic/troff.c (troff_output::simple_circle): Divide by scale.
13368 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
13370 * troff/input.c (do_special): Use input_level.
13372 * troff/token.h (TOKEN_BACKSPACE): New token.
13373 (token::backspace): New function.
13374 * troff/input.c (token::description, token::next, token::process):
13375 Grok TOKEN_BACKSPACE.
13376 (do_special): Turn TOKEN_BACKSPACE back into \b.
13378 * troff/token.h (token::leader): New function.
13379 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
13381 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
13383 * troff/input.c (do_special): Use token::description in error
13386 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
13388 * troff/input.c (decode_args): Combine quoted and
13389 quote_input_level variables. Make it a for (;;) loop.
13391 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
13393 * troff/input.c (read_long_escape_name): The test for whether to
13394 expand buffer was off by 1.
13395 (read_string): Similarily.
13397 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
13399 * troff/input.c: Use `const int' rather than `static const int'.
13401 * troff/div.h (diversion::copy_file): Declare as pure virtual.
13402 (macro_diversion::copy_file): New function.
13403 * troff/node.h: New class diverted_copy_file_node.
13404 * troff/node.c: Implement it.
13405 * troff/input.c (copy_file): Use diversion::copy_file. Handle
13406 first page transition by pushing a diverted_copy_file_node.
13407 * troff/input.c (token::next, process_input_stack): Don't handle
13410 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
13412 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
13413 whether space widths need adjusting.
13415 * troff/charinfo.h: Generalize translated_to_space to
13416 special_translation so as to allow translation to \&.
13417 * troff/input.c (translate): Allow translation to \&.
13418 (charinfo::*): Corresponding changes.
13419 * troff/node.c (make_node, node::add_char): Corresponding changes.
13420 * troff/node.h (dummy_node::dummy_node): Allow optional first
13423 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
13424 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
13426 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
13427 TOKEN_REQUEST with an argument of TITLE_REQUEST.
13428 (token::process): Grok that.
13429 * troff/input.c (copy_file): Handle first page transition like
13430 title by pushing a COPY_FILE_REQUEST cookie.
13431 (token::next, process_input_stack): Grok that.
13432 * troff/node.h (output_file::copy_file): Add x and y arguments.
13434 * troff/div.c (top_level_diversion::copy_file): Supply them.
13435 * troff/node.c (troff_output_file::copy_file): Add x and y
13436 arguments; moveto specified position. Invalidate font_position
13437 array after copying file.
13438 (output_file::copy_file): New function.
13439 (suppressed_output_file::copy_file, ascii_output::copy_file):
13441 * troff/input.c (transparent_file): New function.
13442 (init_input_requests): Bind to "trf".
13443 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
13444 (process_input_stack): Likewise.
13446 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
13448 * troff/node.c (init_node_requests): New number registers .kern
13449 pointing to global_kern_mode, and .lg pointing to
13450 global_ligature_mode.
13452 * troff/node.c (ligature): Don't change it if we get a bad
13455 * troff/input.c (do_define_string): Don't strip tabs.
13457 * troff/input.c (asciify_macro): Make the string_iterator auto.
13459 * troff/node.c (init_font_requests): Rename to...
13460 (init_node_requests):
13461 * troff/node.h: Change declaration.
13462 * troff/input.c (main): Change call.
13464 * troff/input.c (node::reread, diverted_space_node::reread): New
13466 (process_input_stack): Call reread rather than
13467 get_diverted_space_node.
13468 * troff/node.c (node::get_diverted_space_node,
13469 diverted_space_node::get_diverted_space_node): Removed.
13470 * troff/node.h: Declare reread methods instead of
13471 get_diverted_space_node methods. Make `n' member private.
13472 * troff/input.c: (token::diverted_space): Removed.
13473 * troff/token.h: Removed declaration.
13476 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
13478 * eqn/script.c (script_box::compute_metrics): Don't let
13479 SUP_RAISE_FORMAT become negative.
13481 * tbl/table.c (table::do_row): Entries that don't end in the
13482 this row shouldn't make the row non-blank.
13484 * tbl/table.c (table::make_columns_equal): Only set the width of
13485 columns which are marked as equal.
13487 * tbl/main.c (process_data): Before issuing excess data error,
13488 if last character was a newline unget it; then get it again after
13489 the error. Also include the contents of the entry in the message.
13491 * groff.c: New file.
13492 * Makefile: Build groff from groff.c. Make it possible to use
13493 either groff.sh or groff.c as groff.
13494 * Makefile.bd: Similarily.
13496 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
13498 * groff.sh: Don't delay expansion of $@ in assignment to files.
13499 Remove occurrences of \".
13501 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
13503 * all Makefiles: Simplify and rearrange.
13505 * Makefile: Handle fmod like malloc.
13506 * lib/Makefile: Similarily.
13507 * lib/fmod.c: Remove #ifdef NEED_FMOD.
13509 * Makefile: Rename OPTIMISE to OPTIMIZE.
13511 * groff.sh: Remove assignment to PATH.
13512 * Makefile: Remove SHPATH variable.
13513 * Makefile.bd: Similarily.
13515 * groff.sh: Add -V option to print the pipeline instead of
13518 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
13520 * lib/font.c: Split off file searching into ...
13521 * lib/fontfile.c: New file.
13523 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
13525 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
13527 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
13528 Also change misleading comment.
13529 (table::do_vspan): Change similarily misleading comment.
13530 * tbl/main.c (process_data): A format row with an explicit `s'
13531 uses up a data line, even if all the other columns are `_' or `='.
13533 * troff/input.c (token::description): Fix description of
13534 TOKEN_DUMMY and TOKEN_EMPTY.
13536 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
13538 * groff.sh: Fix description of -Z in help message.
13540 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
13542 * pic/object.c (object_spec::make_object): Allow negative and zero
13544 * pic/pic.y: Give linethick default value of -1.0.
13545 * pic/troff.c (troff_output::troff_output): Initialize
13546 last_line_thickness to BAD_THICKNESS.
13547 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
13548 (troff_output::line_thickness): Canonicalize negative thicknesses
13549 to RELATIVE_THICKNESS.
13550 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
13551 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
13553 (tex_output::start_picture): Set pen_size to -2.0.
13555 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
13556 0, then use 0 linewidth.
13557 (ps_printer::ps_printer): Initialize line_thickness to -1.
13559 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
13561 * ps/devps/symbolchars: Remove `or'.
13562 * ps/tmac.ps: Implement \(or with .char.
13564 * ps/devps/symbolchars: Move most characters into textmap.
13565 * ps/devps/textmap: Add names for troff bracket characters. Remove
13568 * ps/devps/TSymbol.ps: Removed.
13569 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
13570 * ps/tmac.ps: Do with .char what TSymbol did.
13571 * ps/devps/download: Remove TSymbol.
13573 * ps/devps/T: Removed.
13574 * ps/devps/Troff.ps: Removed.
13575 * ps/devps/Troff.afm: Removed.
13576 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
13577 * ps/devps/download: Remove Troff.
13578 * ps/devps/FontMakefile: Remove T target.
13579 * ps/devps/DESC-A4: Remove T from font list.
13580 * ps/devps/DESC-letter: Likewise.
13582 * troff/input.c (macro_to_node): Rename to ...
13583 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
13584 character's definition while processing it.
13585 * troff/node.c (node::add_char, make_node): Change calls to
13586 macro_to_node accordingly.
13588 * troff/input.c (token::next): Translate \_ to \(ul.
13590 * tty/devascii/R.proto: Add `|'.
13591 * tty/devlatin1/R.proto: Likewise.
13593 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
13595 * man: Put the version number in all the man pages.
13597 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
13599 * Makefile.bd: New file.
13600 * README.bd: New file.
13602 * VERSION: New file.
13603 * lib/version.c: Removed.
13604 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
13607 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
13608 environment variable.
13610 * all Makefiles: Split install target into install.bin for
13611 binaries, and install.nobin for everything else.
13612 * Makefile: Add bindist target.
13614 * man/afmtodit.man: New file.
13615 * man/Makefile: Add afmtodit.n to MAN1PAGES.
13616 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
13618 * ps/Makefile: Pass BINDIR to make install in devps.
13620 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
13621 the space character.
13623 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
13625 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
13627 * ps/ps.c: Redo font downloading.
13628 * ps/devps/download: New file.
13629 * ps/devps/Makefile: Add download to DEVICEFILES.
13630 * ps/devps/afmtodit: Remove -d option.
13631 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
13632 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
13633 * ps/devps/zapfdr.ps: Likewise.
13634 * ps/devps/TSymbol.ps: Likewise.
13636 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
13638 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
13640 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
13642 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
13643 then strip the first line if it starts with %.
13644 * Makefile: Add a comment about this.
13646 * man/tfmtodit.man: New file.
13647 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
13648 * dvi/Makefile: Install tfmtodit in BINDIR.
13650 * dvi/tfmtodit.c (usage): Mention -v option.
13652 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
13654 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
13655 * troff/node.c (troff_output_file::transparent_char): Don't call
13658 * eqn: Add check_tabs method to most box classes.
13659 * eqn/box.c (box::top_level): Call check_tabs.
13661 * eqn/script.c (script_box::output): Use \Z.
13662 * eqn/limit.c (limit_box::output): Use \Z.
13664 * eqn/box.c (box::top_level): Use itoa.
13666 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
13668 * dvi/tmac.dvi: Add font translations for CR, C, TT.
13669 * dvi/devdvi/Makefile: Don't make links to CW.
13671 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
13673 * xditview/tmac.X: Likewise.
13675 * troff/node.c: Add font translation feature.
13676 (get_font_translation): New function.
13677 (symbol_fontno): Translate the font name.
13678 (mount_font_no_translate): Rename to mount_font to this.
13679 (mount_font): New function.
13680 (font_family::make_definite): Call mount_font_no_translate instead
13682 (mount_style): Translate the font name.
13683 (font_translate): New function.
13684 (init_font_requests): Bind "ftr" to font_translate.
13686 * ps/devps/prologue (SN): New procedure that rounds a position to
13687 the nearest (pixel + (.25,.25)).
13688 (DL): Use SN to round endpoints.
13690 * lib/version.c: Changed version to 0.5.
13692 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
13694 * Makefile: Move definition of PAGE to the very beginning, so that
13695 people are less likely to miss it.
13697 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
13699 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
13701 * troff/env.c (environment::choose_breakpoint): Make `can't find
13702 breakpoint' error a warning of type WARN_BREAK. Change message to
13703 `can't break line'.
13704 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
13706 * troff/input.c: Add WARN_BREAK to warning_table. Include
13707 WARN_BREAK in DEFAULT_WARNING_MASK.
13709 * tty/tmac.tty: Add definition of \(+-.
13711 * groff.sh: Remove `--' option to set command.
13713 * dvi/devdvi/texsy.map: Remove duplicate md entry.
13715 * ps/devps/eqnchar: Better definition of cdot using md.
13716 * dvi/devdvi/eqnchar: Likewise.
13717 * xditview/devX100/eqnchar: Likewise.
13718 * xditview/devX75/eqnchar: Likewise.
13719 * eqn/lex.c: Add definition of cdot.
13721 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
13723 * troff/input.c (get_optional_char): New function.
13724 * troff/input.c (set_page_character): Use get_optional_char(),
13725 rather than has_arg() and tok.get_char(1).
13726 * troff/env.c (tab_character, leader_character, hyphen_char,
13727 field_characters): Likewise.
13728 (margin_character): Likewise. Also always delete the
13729 margin_character_node.
13731 * troff/input.c (token::get_char): Use token::description.
13733 * troff/input.c (has_arg): Don't skip over tab and \}.
13734 * troff/number.c (start_number): Give a warning if the number
13735 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
13737 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
13739 * troff/input.c (empty_name_warning, non_empty_name_warning): New
13741 (get_name, get_long_name): Use these. Rename `warn' argument to
13744 * troff/node.c (get_fontno): Test that the symbol is not null.
13746 * troff/input.c (token::description): New function.
13747 * troff/number.c (parse_term): Use token::description in `numeric
13748 expression expected' message.
13749 * troff/groff.h: Add WARN_MISSING.
13750 * troff/number.c (start_number): New function.
13751 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
13752 get_incr_number): Use start_number().
13753 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
13755 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
13756 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
13758 * troff/input.c (token::get_char): Use WARN_MISSING.
13759 * troff/input.c (token::delimiter): Use token::description.
13760 * troff/env.c (environment_switch): Back out Aug 3 change.
13761 * troff/input.c (has_arg): Skip over \}s and tabs but give a
13763 * troff/token.h (token::tab): New function.
13764 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
13765 * troff/reg.c (alter_format): Likewise.
13766 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
13768 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
13770 * troff (most files): Redo warnings. Divide warnings into various
13771 categories; warning() has an additional first argument indicating
13772 the category it falls into.
13773 * troff/input.c (main): -w now takes an argument. New option -W.
13774 (enable_warning, disable_warning): New functions.
13776 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
13777 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
13779 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
13781 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
13782 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
13783 * xditview/devX75/eqnchar: Likewise.
13784 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13786 * eqn/other.c: When bar or over applies to a single character
13787 don't produce an overline_box or an underline_box. Instead produce
13788 an accent_box or an underaccent_box, with the accent a line
13789 whose width is accent_width. New classes underaccent_box,
13790 overline_char_box and underline_char_box.
13791 * eqn/box.h: Move overline_box, underline_box, accent_box class
13792 declarations into eqn/other.c. Add declarations of
13793 make_underline_box, make_overline_box, make_accent_box.
13794 * eqn/eqn.y: Call make_overline_box, make_underline_box
13795 make_accent_box instead of constructors.
13796 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13798 * eqn/other.c: Add accent_box::~accent_box.
13799 * eqn/box.h: Declare it.
13801 * groff.sh: With -Tps, use eqn -D.
13803 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13805 (underline_box::output): Similarily.
13806 (accent_box::output): Use \Z.
13808 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13811 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
13813 * troff/div.c (top_level_diversion::transparent_output(unsigned
13814 char)): Use asciify.
13815 * troff/input.c (asciify): Don't make it static.
13816 * troff/token.h (asciify): Declare it.
13818 * troff/input.c (get_name, get_long_name, token::get_char,
13819 token::delimiter): Add an extra default argument which says
13820 whether a warning should be printed.
13821 * troff: Pass a non-zero argument to one of these rather than
13822 printing a warning directly.
13824 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
13826 * troff: Consistently use symbol::is_null.
13828 * troff/dictionary.h: Move some inline functions into
13831 * troff/request.h: Move inline functions into input.c.
13832 (request_or_macro::invoke): Make it pure.
13834 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13835 * troff/input.c (init_input_requests): Use class constant_int_reg.
13836 (class compatible_reg): Deleted.
13837 * troff/div.c (init_div_requests): Use class constant_int_reg.
13838 (class last_post_line_extra_space_reg): Deleted.
13840 * troff/env.c (tab_character): Don't change the tab character if
13841 we get an invalid argument.
13842 (hyphen_char): Similarily.
13844 * troff/reg.c (alter_format): Check that nm is not null.
13846 * Makefile, groff.sh: Make it possible to customize the commands
13847 used for printing PostScript and dvi files. Also make it possible
13848 to customize the path used by groff.sh.
13850 * eqn/eqn.y: Make `left' right associative.
13852 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
13854 * pic/pic.h: Added definition of M_SQRT2 for those systems that
13857 * pic/pic.h: Removed definition of INT_MAX.
13859 * troff/node.c (italic_corrected_node::vertical_extent): Omit
13862 * troff/input.c (token::next): Handle \R like \n.
13864 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
13866 * ps/tmac.pc (PSPIC): Simplify.
13868 * troff/env.c (tab_stops::to_string):
13869 * pic/pic.y (object_type_name):
13870 * pic/troff.c (simple_output::line):
13871 * pic/tex.c (tex_output::spline):
13872 * pic/object.c (object_spec::make_object):
13873 * tbl/main.c (process_data): Add cases to switch statements to
13874 avoid cfront warnings. (Some of these are spurious, since the
13875 switch already has a default case.)
13877 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
13878 `ps-'. Don't test systat; instead check number of arguments to
13881 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
13883 * macros/tmac.e: Do not decrease the page offset by 0.5i.
13885 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13886 Unlink the file as soon as we have opened it, so that we don't
13887 have to bother with signal handlers.
13888 (handler): Deleted.
13889 (fatal_error_exit): Deleted.
13890 (main): Don't call signal.
13892 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13894 * dvi/devdvi/Makefile: Use the -k option with S and MI.
13896 * pic/pic.y: If there is a label, or an nth construction before
13897 the first `.' in the argument to `with', ignore it and generate a
13899 * pic/lex.c (lex_warning): New function.
13901 * tbl/table.c (table::init_output): In section keep and release
13902 macro, use 0 indent when diverting and the correct indent when
13905 * troff/input.c (interpolate_number_format): Do not interpolate
13906 anything if the number register is not defined.
13908 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13910 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
13912 * ps/devps/prologue (PICTURE): Set components of graphics state to
13913 their default values.
13915 * ps/devps/text.enc: Add trademark
13916 * ps/devps/textmap: Add names for club, spade, heart, diamond,
13917 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13918 * ps/devps/symbolchars: Add names for summation and product.
13920 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13921 suchthat. Add pp. Add upper-case letters.
13923 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13924 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13927 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13928 rA (right angle bracket) to ra. Introduce names for double-headed
13929 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13930 * ps/devps/textmap: Likewise for ps device.
13931 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13932 * tty/devascii/R.proto: Rename lA to la and rA to ra.
13933 * tty/devascii/R.proto: Likewise.
13934 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13936 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13938 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13940 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13943 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
13945 * troff/div.c (when_request): Use symbol::is_null rather than
13946 has_arg to determine whether we have an argument.
13947 (change_trap): Remove the trap if we get an invalid number. Give
13948 an error if we don't get at least the macro name.
13949 (diversion_trap): Remove trap if we get an invalid name or number.
13951 * troff/env.c (environment_switch): Pop if we get an invalid
13952 symbol or numeric expression.
13954 * troff/input.c (do_define_macro): If EOF is encoutered while
13955 defining the macro, do tok.next() before returning.
13957 * troff/token.h (has_arg): Move definition from here, to ...
13958 * troff/input.c (has_arg): ... here
13960 * troff/env.c (space_size): Do nothing if we get an invalid argument.
13961 * troff/input.c (shift): Likewise.
13963 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
13966 * pic/troff.c (troff_output::start_picture): Comment out calls to
13969 * eqn/main.c (do_file): Subtract 1 from current_lineno if
13970 interpret_lf_args succeeds.
13972 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13973 \\. This avoids problems with \$N.
13975 * groff.sh: Pass -C to preprocessors.
13977 * lib/lf.c (interpret_lf_args): Be more flexible.
13979 * tbl/main.c (main): Add -C option.
13980 (table_input::get): Do not recognize TE if followed by character
13981 other than a space or newline unless -C option given.
13982 (process_input_file): Likewise for lf, TS.
13983 (process_data): Likewise for lf in text blocks.
13985 * eqn/main.c (main): Add -C option.
13986 (do_file): Don't recognize EQ, EN or lf if followed by character
13987 other than space or newline unless -C option given.
13988 * eqn/lex.c (file_input::read_line): Similarily.
13989 * eqn/eqn.h: Declare compatible_flag.
13991 * etc/soelim.c (main): Add -C option.
13992 (interpret_lf_args): Use version in libgroff.
13995 * pic/main.c (main): Add -C option, which sets compatible_flag.
13996 (top_input::get), (top_input::peek): If -C option not given,
13997 do not recognize .PS/.PE/.PF/.lf if followed by a character
13998 other than space or newline.
13999 * pic/lex.c (file_input::read_line): Similarily.
14000 * pic/pic.h: Add declaration of compatible_flag.
14002 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
14004 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
14006 * troff/node.c, troff/node.h: Add `asciify' methods to classes
14007 derived from node. New class space_char_hmotion_node.
14008 * troff/input.c (asciify_macro): New function.
14009 * troff/input.c (init_input_requests): New request `asciify' bound
14011 * macros/mm.diff: New file.
14012 * Makefile: In install.mm target use `patch' to apply
14015 * troff/input.c (macro::print_size): Just print the size in bytes.
14017 * troff/div.c (return_request): Correct the argument
14020 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
14022 * troff/node.h (class composite_node): Add sz member.
14023 * troff/node.c (composite_node::size): Return sz.
14024 * troff/input.c (macro_to_node): Use the initial size in the
14025 environment as the size of the composite_node.
14027 * troff/node.c (node::zero_width_tprint): Provide a reasonable
14030 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
14032 * troff/div.c (change_trap): If we get a bad number expression,
14035 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
14037 * lib/matherr.c (matherr): Define this only if math.h defines
14040 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
14042 * troff/div.c (macro_diversion::distance_to_next_trap): If there
14043 no diversion trap return vunits(INT_MAX - vresolution).
14045 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
14047 * troff/input.c (do_zero_width): New implementation that doesn't
14048 use a temporary environment. Use instead:
14049 (token::add_to_node_list): New function.
14050 * troff/env.c (environment::get_prev_char_height),
14051 (environment::get_prev_char_height),
14052 (environment::get_prev_char_skew): New functions.
14053 (environment::get_prev_char): New function.
14054 (environment::get_prev_char_width): Change to use get_prev_char.
14055 (init_env_request): Implement new registers .cht, .cdp, .csk.
14056 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
14057 \Z being processed in a separate environment.
14059 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
14061 * tbl/table.c: Removed TABLE_BOTTOM_REG.
14063 * tbl/table.c (table::init_output): In the section release macro,
14064 give a warning message if the section won't fit on one page.
14066 * tbl/table.c (table::do_top): Emit table keep only if table is
14068 (table::do_bottom): Likewise for table release.
14069 (table::table), (table::add_vertical_rule): Remove reference to
14071 * tbl/table.h: Remove keep member.
14073 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
14074 SECTION_RELEASE_MACRO, if there's not enough space before the next
14075 trap to output the diversion, call T# ourselves, set
14076 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
14077 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
14078 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
14079 vertical position and return to it before turning traps on again.
14081 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
14083 * troff/node.c, troff/node.h: In classes derived from node,
14084 replace prev_char_width method by last_char_node method.
14085 * troff/env.c (environment::get_prev_char_width): Use
14086 node::last_char_node rather than node::get_prev_char_width.
14088 * Makefile: Added comment about -fno-inline on 68030-based
14091 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
14092 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
14093 expressions using sizeof to int.
14094 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
14096 * macros/tmac.e (TS): Don't move @f back past the current
14099 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
14101 * ps/ps.c (main): Buffer stderr.
14102 * dvi/dvi.c (main): Likewise.
14103 * tty/tty.c (main): Likewise.
14105 * ps/ps.c (ps_printer::do_import): Improve error handling.
14107 * troff/input.c (abort_request): Use asciify.
14109 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
14110 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
14111 type of first argument int rather than char. This works around a
14112 bug on the 68030 based Apollo using g++ 1.37.1.
14114 * tbl/table.h (class table): Add `keep' member.
14115 * tbl/table.c (table::table): Initialize `keep'.
14116 (table::add_vertical_rule): Set `keep' to 1.
14117 (table::do_top): Only emit table keep macro is `keep' is non-zero.
14118 (table::do_bottom): Likewise for table release macro.
14119 (table::do_row): Emit section keep macro even if the row is 0.
14121 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
14123 * macros/tmac.e (@C): Preserve the font family across the change
14126 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
14128 * lib/font.c: Initialize font::hor and font::vert to 1.
14129 (font::load_desc): Check the values of font::hor and font::vert.
14131 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
14132 be included in a C compilation.
14133 (iftoa): Use INT_DIGITS. Include lib.h.
14135 (as_string): Likewise.
14136 * tbl/table.c: Removed definition of INT_DIGITS.
14137 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
14138 * troff/input.c (input_input_requests): Likewise.
14139 * ps/ps.c (make_encoding_name): Likewise.
14140 (ps_printer::set_style): Likewise.
14141 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
14143 * tty/devascii/R.proto: Map fm onto '.
14144 * tty/devlatin1/R.proto: Likewise.
14146 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
14148 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
14149 argument to \w is at a different input level.
14151 * tbl/table.c (table::init_output): Define a new macro
14152 REPEATED_VPT_MACRO, like vpt but if in a diversion also
14153 transparently outputs itself.
14154 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
14156 (table::do_row): Likewise.
14158 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
14159 TRANSPARENT_STRING_NAME.
14161 * tbl/table.c (table::init_output): In the table release macro
14162 print an error message and don't produce any output if after
14163 issuing the need request the table still will not fit. Also
14164 remove the diversion after bringing it back.
14166 * tbl/table.c (table::init_output): Define a new macro
14167 REPEATED_MARK_MACRO, like mk but if in a diversion also
14168 transparently outputs itself.
14169 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
14170 is necessary because .TH might not call .T#.
14171 (table::do_top): Likewise TOP_REG.
14172 (table::define_bottom_macro): If TOP_REG is no longer valid, use
14173 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
14174 table header might contain just the two top rules.
14176 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
14178 * troff/div.c: Implement new request `ptr' to print all traps.
14180 * troff/env.c (init_env_requests): Implement `.tabs' reg with
14181 init_string_env_reg.
14182 * troff/env.c (class tab_reg): Deleted.
14184 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
14186 * troff/div.c: New number register .pn returns the number of the
14187 next page as set by the pn request.
14189 * macros/tmac.an: Redid headers and footers. Number each manual
14190 entry starting from 1 unless \nC is > 0, like Sun. Added an
14191 optional 5th argument to .TH which specifies the manual name and
14192 appears in the center of the header. Understand the X, P and D
14193 registers like Sun.
14195 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
14197 * troff/env.c (init_env_requests): New number register `.lt' to
14198 return the title length.
14200 * troff/node.h (class transparent_dummy_node): New class.
14201 * troff/node.c (class transparent_dummy_node): Provide member
14203 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
14206 * troff/input.c (token::next): New escape sequence \).
14207 * troff/input.c (get_copy): Recognize \) in copy mode.
14209 * troff/input.c (input_stack::clear): New function.
14210 * troff/input.c (exit_request): Use input_stack::clear.
14212 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
14213 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
14215 * troff/env.c: Move set_page_character to input.c. Move
14216 page_character to input.c also.
14217 * troff/env.c (title): Split off the reading of the parts of the
14218 title into read_title_parts.
14219 * troff/input.c (read_title_parts): New function. Check the
14220 input_level when testing whether a token matches the delimiter.
14222 * troff/input.c (exit_request): New function.
14223 * troff/input.c (init_input_requests): Bind ex request to
14224 exit_request rather than exit_groff.
14226 * troff/input.c (exit_groff): Call tok.next() before
14227 process_input_stack().
14229 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
14231 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
14232 * troff/env.h: ditto.
14233 * troff/input.c: ditto.
14235 * troff/env.c (environment::is_empty): Test pending_lines.
14237 * troff/env.c (environment::have_pending_lines): Removed.
14239 * troff/input.c: Add request to flush pending lines from the
14242 * troff/env.c, troff/env.h: Add automatic widow control feature.
14244 * troff/input.c (exit_groff): Do process_input_stack() after
14245 do_break() but before setting exit_flag to 2.
14247 * troff/input.c: Remove FLUSH_PENDING_LINES and
14248 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
14249 environment after END_TRAP token seen, but only if there aren't
14250 any more traps still unfinished.
14251 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
14253 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
14255 * troff/env.c: Rename the `retain_size' member of class
14256 pending_output_line to `no_fill'.
14258 * troff/env.c (title): When the line is output, make the
14259 retain_size argument !fill.
14261 * troff/node.h: Add `hyphenated' member to struct breakpoint.
14262 * troff/node.c (space_node::get_breakpoints),
14263 (dbreak_node::get_breakpoints): Fill this in.
14264 * troff/env.c: Allow specification of maximum number of
14265 consecutive hyphenated lines.
14267 * troff/env.c (environment::is_empty): Add test for !current_tab.
14269 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
14271 * troff/env.c (environment::hyphenate_line): Don't completely give
14272 up if the word is not to be hyphenated; continue so that breaks
14273 can be made at break_char_node's.
14275 * lib/lib.h: Only define INT_MAX if it's not already defined;
14276 undef INT_MIN if it's already defined.
14278 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
14280 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
14281 This works around a bug in AT&T C++ 2.0 used with an ANSI C
14284 * macros/tmac.an (an-header): Set no-space mode.
14286 * macros/tmac.an (TH): Start a new page if necessary.
14288 * Started using ChangeLog at version 0.4.
14291 version-control: never