1 2003-01-26 Werner LEMBERG <wl@gnu.org>
3 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4 `access' before calling `unlink'.
5 (do_file): Handle __EMX__.
7 * src/include/nonposix.h: Handle __EMX__.
9 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
10 (fontpath,tmacpath): Use it.
12 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
14 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
17 2003-01-27 Werner LEMBERG <wl@gnu.org>
19 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
20 New files, copied from gnulib.
21 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
22 * configure.ac: Updated.
23 * configure: Regenerated.
25 * src/include/config.hin: Regenerated.
26 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
27 Don't define `strcasecmp' as `strcmp'.
28 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
29 Dont define `strncasecmp' as `strncmp'.
31 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
34 2003-01-26 Werner LEMBERG <wl@gnu.org>
36 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
39 2003-01-25 Werner LEMBERG <wl@gnu.org>
41 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
43 2003-01-24 Werner LEMBERG <wl@gnu.org>
45 Add US-english hyphenation exceptions (converted from Barbara
46 Beeton's hyphenation exception log reports which appear irregularly
49 * tmac/hyphen.us: Updated to latest version.
50 * tmac/README: Updated.
51 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
52 * tmac/troffrc: Load `hyphenex.us'.
53 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
54 * doc/groff.texinfo: Updated.
56 2003-01-23 Werner LEMBERG <wl@gnu.org>
58 Improve hyphenation slightly. This is a first step in redesigning
59 the hyphenation algorithm to make it more flexible (e.g. allowing
60 kerns and ligatures between the hyphenation character and the
61 following character -- while not used normally in English, other
62 languages like German would benefit).
64 * src/roff/troff/env.cc (environment::hyphenate_line): Use
65 assertion instead of if-clause.
66 Let `get_hyphen_list' return the number of involved characters in
67 the hyphenation pattern instead of computing it directly (which
68 often yields too small values).
69 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
70 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
73 2003-01-22 Werner LEMBERG <wl@gnu.org>
75 Fixing a bug which caused groff to hang if the hyphenation exception
76 dictionary tried to grow.
78 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
79 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
80 pointer to dictionary.
82 2003-01-20 Werner LEMBERG <wl@gnu.org>
84 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
85 negative left italic correction.
86 * src/utils/afmtodit/afmtodit.man: Document it.
88 * font/devps/generate/Makefile (RFLAG): Add `-m'.
89 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
90 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
94 2003-01-16 Werner LEMBERG <wl@gnu.org>
98 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
100 * src/preproc/refer/refer.man: Mention REFER environment variable.
102 2003-01-05 Werner LEMBERG <wl@gnu.org>
104 Similar to \[is], the square root glyph (\[sr]) and the square root
105 extension glyph (\[radicalex]) are now text symbols. The new
106 mathematical versions are called \[sqrt] and \[sqrtex],
109 * font/devX*/S: Regenerated.
110 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
111 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
112 * font/devdvi/EX, font/devdvi/S: Regenerated.
113 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
114 * font/devlj4/generate/special.map: Add `sqrt'.
115 * font/devlj4/S: Regenerated.
116 * font/devps/generate/textmap: Add `sqrt'.
117 * font/devps/S, font/devps/symbolmap: Regenerated.
119 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
120 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
121 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
122 overlap horizontally.
124 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
125 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
128 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
129 and `sqrtex' are overlapping glyphs.
131 2003-01-04 Werner LEMBERG <wl@gnu.org>
133 * font/devdvi/generate/texsy.map: Add `is'.
134 * font/devps/symbolmap: Regenerated.
135 * font/devdvi/*TC, MI, S: Regenerated.
137 * tmac/dvi.tmac: Remove `is'.
139 2003-01-03 Werner LEMBERG <wl@gnu.org>
141 `is' is now a text symbol (only relevant for dvi). The math variant
142 can be accessed with `integral'.
144 * font/devX*/S: Regenerated.
145 * font/devdvi/generate/texex.map: Remove `is'.
146 * font/devdvi/EX: Updated.
147 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
148 * font/devlj4/generate/special.map: Ditto.
149 * font/devlj4/S: Regenerated.
150 * font/devps/generate/textmap: Add `integral'.
151 * font/devps/S: Regenerated.
153 * tmac/dvi.tmac: Define `is'.
155 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
157 * src/preproc/tbl/main.cc (process_format): Fix error message.
159 2003-01-02 Werner LEMBERG <wl@gnu.org>
161 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
162 * font/devps/textmap: Fix entries for `ne' and `nc'.
163 * font/devps/symbolmap: Regenerated.
165 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
166 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
167 `38', `58', `78', `-+', `|=', `nc', `ne'.
169 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
170 Use `schar' for `aq'.
171 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
172 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
173 * tmac/tty.tmac: Add `ne'.
175 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
178 2002-12-29 Werner LEMBERG <wl@gnu.org>
182 * font/devX*/*: Regenerated.
183 * font/devdvi/generate/ec.map: Remove `eq'.
184 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
185 Assign `|=' to position 39.
186 * font/devdvi/*EC, S: Regenerated.
187 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
188 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
189 Assign `|=' to position 549.
190 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
192 Add `uni2243' for `|='.
194 * tmac/ec.tmac: Add `eq'.
195 * tmac/dvi.tmac: Add `=~'.
196 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
199 2002-12-21 Werner LEMBERG <wl@gnu.org>
201 * font/devdvi/generate/tc.map: Remove `**'.
202 * font/devdvi/*TC: Regenerated.
203 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
205 * font/devutf8/NOTES: Updated.
207 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
208 Don't give default parameter to `set_macro'.
209 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
210 instead of `set_macro'.
211 (charinfo::setx_macro): Implement it.
212 (charinfo::set_macro): Don't change `mode'.
214 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
215 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
216 * tmac/dvi.tmac: Define `!=' with `.schar'.
218 2002-12-20 Werner LEMBERG <wl@gnu.org>
220 * font/devX*/S: Regenerated.
221 * font/devdvi/generate/ec.map: Remove `pl'.
222 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
223 * font/devdvi/*{TC,EC}: Regenerated.
224 * font/devhtml/R.proto: Add `-+'.
225 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
226 * font/devlbp/*: Remove `or'.
227 * font/devlj4/generate/special.map: Remove `or'.
228 * font/devlj4/S: Regenerated.
229 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
230 `seveneighths', `threeeighths'.
232 Replace `minusplus' with `uni2213'.
233 * font/devps/symbolmap: Regenerated.
234 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
237 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
239 * src/roff/troff/node.cc (troff_output_file::put_char_width):
240 Call glyph_color and fill_color even if tcommand_flag isn't set.
241 (make_node, node::add_char): Check not ci->is_fallback but
244 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
245 * tmac/ec.tmac: Add .rchar entry for `f/'.
246 Don't remove `12', `14', `34'.
247 Define `pl' to be always roman.
248 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
249 Define `18', `38', `58', `78'.
250 * tmac/tty.tmac: Add `-+'.
251 * tmac/dvi.tmac: Define `f/'.
252 (dvi-frac): Use `f/'.
253 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
254 Define `18', `38', `58', `78'.
256 2002-12-15 Colin Watson <cjwatson@debian.org>
258 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
260 2002-12-10 Werner LEMBERG <wl@gnu.org>
262 Add glyph `tno', a textual variant of `no'.
264 * font/devX*/*: Regenerated.
265 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
266 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
267 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
268 * font/devdvi/*: Regenerated.
269 * font/devlbp/*: Add `tno'.
270 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
271 * font/devlj4/*: Regenerated.
272 * font/devps/generate/textmap: Replace `no' with `tno'.
273 * font/devps/generate/symbolchars: Add `no'.
274 * font/devps/*: Regenerated.
276 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
278 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
279 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
283 * tmac/dvi.tmac: Replace most `\\' with `\E'.
284 Add definition for `sd'.
285 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
287 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
289 2002-12-08 Werner LEMBERG <wl@gnu.org>
291 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
292 mode to avoid rounding errors.
293 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
295 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
296 src/roff/troff/troff.man: Improve documentation of -T.
298 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
300 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
301 (run_pipeline) [_WIN32]: Provide working function without `fork'.
303 2002-12-06 Werner LEMBERG <wl@gnu.org>
305 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
306 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
307 Scaling Euro.sansserif glyphs down to have the same height as
309 Removed unnecessary points; added some extrema.
311 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
314 2002-12-04 Werner LEMBERG <wl@gnu.org>
316 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
317 and `Euro.symbol.bold.slanted'.
318 Improve some glyph offsets and widths.
319 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
321 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
323 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
326 * tmac/europs.tmac: Updated to new glyph indices.
327 Use Euro.symbol for font familiy `A'.
329 * doc/groff.texinfo: Minor improvements.
331 2002-12-02 Werner LEMBERG <wl@gnu.org>
333 * font/devdvi/generate.tc.map: s/%O/%0/.
334 * font/devdvi/*TC: Regenerated.
336 * src/roff/troff/div.cc (init_div_requests): Sorted.
338 * tmac/dvi.tmac: Remove `Ye'.
339 * tmac/ec.tmac: Remove `Ye'.
340 Add .rchar entry for `de'.
342 * man/groff.man, man/groff_diff.man: Document register `.pe'.
343 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
346 2002-11-30 Werner LEMBERG <wl@gnu.org>
348 Add PS font for various Euro glyphs.
350 * font/devps/generate/freeeuro.sfd: New master font file for
352 * font/devps/generate/sfdtopfa.pe: New conversion script for
354 * font/devps/generate/Makefile (FONTS): Add `EURO'.
355 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
356 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
358 * font/devps/EURO: Generated from `freeeuro.afm'.
359 * font/devps/download: Add `freeuro.pfa'.
360 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
363 * tmac/europs.tmac: New file.
364 * tmac/ps.tmac: Include `europs.tmac'.
365 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
367 2002-11-29 Werner LEMBERG <wl@gnu.org>
369 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
370 * font/devdvi/S: Regenerated.
371 * font/devhtml/R.proto: Fix `CR' and `ci'.
373 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
375 * font/devps/symbolmap: Regenerated.
376 * font/devutf8/R.proto: Fix `CR' and `ci'.
378 * font/devutf8/NOTES: Updated.
380 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
383 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
385 * tmac/dvi.tmac: Add `lh' and `rh'.
386 * tmac/Xps.tmac: Fix `lh' and `rh'.
387 * tmac/X.tmac: Add `OK'.
388 * tmac/lj4.tmac: Ditto.
390 2002-11-24 Werner LEMBERG <wl@gnu.org>
392 * font/devX*/S: Regenerated.
393 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
394 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
395 * font/devdvi/generate/texsy.map: Remove `or' glyph.
396 * font/devdvi/S: Regenerated.
397 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
398 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
399 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
400 `bracketleftbt', `bracketrighttp', `bracketrightex',
401 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
402 `braceex', `braceleftex', `bracerightex', `bracerighttp',
403 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
405 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
406 * font/devutf8/NOTES: Updated.
407 * font/devlj4/generate/special.map: Add glyph `braceex'.
408 * font/devlj4/S: Regenerated.
410 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
412 2002-11-14 Werner LEMBERG <wl@gnu.org>
414 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
417 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
419 * doc/texinfo.tex: New version from texinfo 4.3.
420 * doc/groff.texinfo: Updated for texinfo 4.3.
421 Use @tie{} where appropriate.
422 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
423 * font/devdvi/generate/tc.map: Remove `rn'.
424 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
425 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
427 * font/devX100/*, font/devX100-12/*, font/devX75/*,
428 font/devX75-12/*: Regenerated.
430 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
431 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
432 Improve definition of `an'.
433 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
435 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
436 * tmac/X.tmac: Add definition for `or'.
437 * tmac/Xps.tmac: Undo change 2002-11-05.
438 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
440 2002-11-11 Werner LEMBERG <wl@gnu.org>
442 * src/roff/troff/node.cc (troff_output_file::put_char): Always
445 2002-11-10 Werner LEMBERG <wl@gnu.org>
447 Added three new requests `schar', `fschar', and `rfschar'. `schar'
448 defines a glyph which is searched after the check for fonts declared
449 with `.special' (and before the check for all mounted special
450 fonts). `fschar' defines a glyph for a particular font which is
451 searched after the check for fonts declared with `.fspecial' (and
452 before the check for fonts declared with `.special'). `rfschar'
453 removes glyphs defined with `fschar'.
455 * src/roff/troff/token.h (char_mode): New enum.
456 Declare do_define_character.
457 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
459 (charinfo::is_fallback): Updated.
460 (charinfo::is_special): New method.
461 * src/roff/troff/input.cc (do_define_character): Add and use
462 optional second parameter used as a prefix for font-specific glyph
464 (define_character, define_fallback_character): Updated.
465 (define_special_character): New function.
466 (init_input_requests): Add `schar'.
467 (charinfo::charinfo, charinfo::set_macro): Updated.
468 * src/roff/troff/node.cc: Include `stringclass.h'.
469 (make_glyph_node): Handle special glyphs defined with `.schar' and
471 (define_font_special_character, remove_font_special_character): New
473 (init_node_requests): Sorted.
474 Add `fschar' and `rfschar'.
475 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
476 Document new requests.
478 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
479 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
481 2002-11-08 Werner LEMBERG <wl@gnu.org>
483 Added new font `SC' (cmtex10) to devdvi.
485 * devdvi/generate/Makefile (FONTS): Add `SC'.
487 * devdvi/generate/textex.map: New map file for cmtex.
489 * devdvi/Makefile.sub (DEVFILES): Updated.
490 * tmac/dvi.tmac: Add fspecial entries for SC.
491 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
492 found before `S' since the font position of `SC' is lower due to the
493 gaps in DESC's `font' line.
494 * tmac/ec.tmac: Add a `special' call.
497 * font/devhtml/R.proto: Remove double entry for `ti'.
498 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
499 * tmac/tty-char.tmac: Remove entry for `bq'.
500 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
501 * tmac/ec.tmac: Don't remove `aq' glyph.
502 * tmac/X.tmac: Fix entry for `em'.
503 Add entries for `fo' and `fc'.
504 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
506 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
507 documentation of `special' and `fspecial' requests.
509 2002-11-05 Werner LEMBERG <wl@gnu.org>
511 * font/devascii/R.proto, font/devcp1047/R.proto,
512 font/devlatin1/R.proto: Remove entry for `.i'.
513 * font/devdvi/generate/textt.map: Add entry for `ad'.
514 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
515 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
516 We need this for getting kerning values to compose `/l' and `/L'.
517 * font/devdvi: Regenerated font definition files for CM fonts.
518 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
519 * font/devutf8/R.proto: Ditto.
520 Remove double entry for `ti'.
522 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
523 for (groff) ligatures, `la', and `ra'.
524 Add "'C", "'c", `IJ', and `ij'.
525 Remove double entry for `ti'.
526 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
528 Add "'C", "'c", `IJ', and `ij'.
529 Fix entries for (groff) ligatures, `la', and `ra'.
531 * tmac/ps.tmac (ps-achar): New macro.
532 Define "'c" and "'C".
533 * tmac/tty.tmac: Add entry for `.i'.
534 * tmac/X.tmac (X-achar): New macro.
535 Define "'c", "'C", and `:Y'.
536 Add entries for `IJ' and `ij'.
537 * tmac/Xps.tmac (Xps-achar): New macro.
538 Define "'c" and "'C".
539 Add entries for `IJ' and `ij'.
540 * tmac/lbp.tmac (lbp-achar): New macro.
541 Add fallback characters for all groff ligatures and many other
543 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
544 Add entries for `/l' and `/L'.
545 Define "'c" and "'C".
546 Add entries for `IJ' and `ij'.
548 2002-11-02 Larry Kollar <kollar@alltel.net>
550 * PROBLEMS: Document how to solve Mac OS X compilation problems.
552 2002-11-02 Werner LEMBERG <wl@gnu.org>
554 Adding support for composite glyphs: \[xxx yyy ...] and the
557 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
558 to Unicode-based glyph names.
559 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
560 glyph names to groff glyph names.
561 * src/roff/troff/uniuni.cc: New file for canonically decomposing
562 Unicode-based glyph names.
563 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
564 for handling Unicode glyph names.
565 * src/roff/troff/input.cc: Include unicode.h.
566 (composite_glyph_name): New function.
567 (token::next) <'['>: Handle Unicode glyph names and composite
569 (composite_dictionary): New dictionary for the `composite' request.
570 (composite_request): Implement `composite' request.
571 (init_input_requests): Add `composite'.
572 Alphabetically sorted.
573 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
575 (init_env_requests): Alphabetically sorted.
576 Removed `tas' and `tar' (already commented out).
577 * src/roff/troff/Makefile.sub: Updated.
579 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
581 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
584 2002-10-29 Werner LEMBERG <wl@gnu.org>
586 Fix computation of .trunc register. Additionally, its value (and
587 the value of the .ne register) is now always set before entering the
590 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
591 `needed_space' before calling `space'.
592 (top_level_diversion::space): Remove special code for 'sp before the
594 Call `begin_page' with the discarded space as a parameter.
595 (top_level_diversion::begin_page): Add optional parameter to set
597 * src/roff/troff/div.h: Updated.
599 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
602 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
603 (LP): Remove superfluous call to `br'.
604 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
605 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
607 2002-10-26 Werner LEMBERG <wl@gnu.org>
609 * tmac/doc-ditroff: Remove useless switch/variable -rC.
610 (doc-setup-header): Don't set page register `%'.
611 * tmac/doc-nroff: Remove variable `C'.
612 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
613 (doc-setup-header): Don't set page register `%'.
615 * tmac/doc-common (doc-header): Call `ns'.
616 (doc-paragraph): Protect .sp with .br so that it survives traps
617 possibly set by the user.
618 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
620 * tmac/doc*: Replace ' with . for consistency if no effect.
622 2002-10-26 Werner LEMBERG <wl@gnu.org>
624 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
625 so that it survives traps possibly set by the user.
627 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
628 (troff_output_file::set_font): Call flush_tbuf if necessary.
629 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
630 flush_tbuf and do_motion only if necessary.
631 (troff_output_file::start_special,
632 troff_output_file::put_char_width, troff_output_file::put_char,
633 troff_output_file::draw): Updated.
634 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
635 vmotion_node::tprint): Undo change 2002-10-23.
637 2002-10-25 Werner LEMBERG <wl@gnu.org>
639 * tmac/www.tmac (DC): Fix case of overlapping images.
641 2002-10-23 Werner LEMBERG <wl@gnu.org>
643 * src/roff/troff/node.cc (troff_output_file::fill_color,
644 troff_output_file::glyph_color): Set current color before testing
646 (troff_output_file::put_char_width, troff_output_file::put_char,
647 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
649 (troff_output_file::file_color, troff_output_file::glyph_color):
651 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
652 vmotion_node::tprint): Move first, then call fill_color.
654 2002-10-20 Werner LEMBERG <wl@gnu.org>
656 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
657 possible to use multiple main macro packages.
659 2002-10-19 Werner LEMBERG <wl@gnu.org>
661 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
662 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
663 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
665 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
666 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
668 2002-10-16 Werner LEMBERG <wl@gnu.org>
670 * NEWS, doc/webpage.ms: Updated.
672 2002-10-14 Werner LEMBERG <wl@gnu.org>
674 * src/roff/troff/node.cc (troff_output_file::put_char_width,
675 troff_output_file::put_char, troff_output_file::fill_color,
676 troff_output_file::glyph_color): Handle case where color pointer
679 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
681 Add the new -r option to grotty. It is similar to the -i option
682 except it tells grotty(1) to use the "reverse video" attribute to
685 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
686 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
687 (tty_printer::make_underline, tty_printer::put_color,
688 tty_printer::end_page): Use it.
689 (main): Add -r switch.
691 * src/devices/grotty/grotty.man: Document it.
693 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
695 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
696 cast to `unsigned char' to properly read patterns with 8bit
699 2002-10-08 Werner LEMBERG <wl@gnu.org>
701 * REVISION: Increased to 2.
703 Version 1.18.1 released
704 =======================
706 2002-10-08 Werner LEMBERG <wl@gnu.org>
708 * doc/webpage.ms, NEWS: Updated.
710 2002-10-07 Werner LEMBERG <wl@gnu.org>
712 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
713 suppress additional whitespace after the header.
715 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
718 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
720 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
722 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
723 (Dt): Use it to improve language localization (especially Russian
726 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
728 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
729 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
731 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
733 Call `picurve' for BSPLINE.
734 (HGPrintElt): Handle BSPLINE.
735 * src/preproc/grn/README: Document it.
737 2002-10-03 Werner LEMBERG <wl@gnu.org>
739 * src/roff/troff/node.cc (break_char_node::col): New variable.
741 (space_node::tprint, word_space_node::tprint): Call `fill_color'
743 (space_node::space_node): Remove assertion.
744 (break_char_node::add_self): Pass color argument to space node.
745 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
747 * src/roff/troff/env.cc (environment::do_break,
748 environment::add_padding): Ditto.
750 2002-10-02 Werner LEMBERG <wl@gnu.org>
752 Redesigning color support in troff. Colors are no longer
753 represented as separate nodes but are now part of glyph nodes and
754 friends. This fixes the current formatting misbehaviour due to the
755 changes introduced on 2002-09-20. Some extra code is necessary for
756 proper grotty support: Without adding color variables to
757 space-related nodes, the background color would be changed too late.
759 * src/roff/troff/node.h, src/roff/troff/node.cc:
760 s/current_pagecolor/current_fill_color/.
761 s/current_glyphcolor/current_glyph_color/.
762 (glyph_color_node, fill_color_node): Removed.
763 (node::get_glyph_color, node::get_fill_color): New virtual member
765 (space_node::col): New variable.
766 Updated constructors of space_node and derived classes accordingly.
767 (hmotion_node::col): New variable.
768 Updated constructors of hmotion_node and space_char_hmotion_node
770 (vmotion_node::col): New variable.
771 Updated constructor accordingly.
772 (draw_node::gcol, draw_node::fcol): New variables.
773 Updated constructor accordingly.
774 (special_node::gcol, special_node::fcol): New variables.
775 Updated constructors accordingly.
776 (troff_output_file::put_char, troff_output_file::put_charwidth,
777 troff_output_file::draw): Set glyph and fill color.
778 (troff_output_file::start_special): Set glyph and fill color.
779 Always set current font.
780 (troff_output_file::fill_color, troff_output_file::glyph_color):
781 Don't call `do_motion'.
782 (glyph_node::gcol, glyph_node::fcol): New variables.
783 Updated constructors of glyph_node and ligature_node accordingly.
784 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
786 (glyph_node::merge_glyph_node,
787 kern_pair_node::add_discretionary_hyphen,
788 node::add_discretionary_hyphen): Updated.
789 (break_char_node::merge_self): Updated.
790 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
791 vmotion_node::tprint): Handle color.
792 (make_glyph_node, make_node, node::add_char): Updated.
794 * src/roff/troff/env.cc (environment::space_newline,
795 environment::space, environment::output_line, environment::do_break,
796 environment::make_tab_node, environment::add_padding, title):
798 (environment_switch, environment_copy): Don't add color nodes.
800 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
802 (token::next): Updated.
803 \m and \M now are as transparent as \s.
804 (process_input_stack, token::add_to_node_list, token::process,
805 read_draw_node): Updated.
806 (charinfo_to_node_list): Don't add color nodes.
808 * doc/groff.texinfo: Updated.
810 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
812 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
815 2002-09-27 Colin Watson <cjwatson@debian.org>
817 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
819 2002-09-23 Werner LEMBERG <wl@gnu.org>
821 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
823 (DEFAULT_LINEWIDTH_FACTOR): New macro.
824 (linewidth_factor): New global variable.
825 (lbp_printer::set_line_thickness): Fix case for size < 0, using
827 (long_options): Add -w/--linewidth option.
829 (main): Handle -w option to set linewidth_factor.
830 (lbp_printer::lbp_printer): Initialize req_linethickness, not
833 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
835 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
837 Fixed a bug in the line thickness setting code.
839 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
841 (lbp_printer::set_line_thickness): Pass environment as second
843 Implement it actually.
844 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
845 and `set_line_thickness, depending on the current font size.
847 2002-09-21 Werner LEMBERG <wl@gnu.org>
851 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
852 * src/roff/troff/node.cc (bracket_node::copy): Initialize
855 2002-09-20 Werner LEMBERG <wl@gnu.org>
857 * configure: Regenerated with autoconf 2.54.
859 2002-09-20 Werner LEMBERG <wl@gnu.org>
861 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
863 Rename cur_fill_color to fill_color.
864 * src/roff/troff/env.cc: Updated.
866 2002-09-20 Werner LEMBERG <wl@gnu.org>
868 * src/roff/troff/env.cc (title): Copy color status after processing
870 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
871 fill color nodes to reset colors properly.
873 * tmac/www.tmac (DC): Fix color handling.
875 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
876 * doc/groff.texinfo: Fixing documentation of `tl' request.
877 * doc/webpage.ms: Updated.
879 2002-09-19 Werner LEMBERG <wl@gnu.org>
881 * src/roff/troff/env.cc (environent_switch, environment_copy):
882 Emit glyph and fill color nodes to initialize colors properly.
884 2002-09-17 Colin Watson <cjwatson@debian.org>
886 * src/roff/troff/env.cc (environment::set_glyph_color,
887 environment::set_fill_color): Fix typo which prevented \m[] work
890 2002-09-17 Werner LEMBERG <wl@gnu.org>
892 Add left and right italic correction to non-slanted PS fonts. This
893 is an experimental feature to improve image rendering of grohtml.
895 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
896 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
897 * font/devps/*: All non-slanted fonts regenerated.
900 2002-09-16 Werner LEMBERG <wl@gnu.org>
902 Add a site-specific font directory.
904 * Makefile.in (localfontdir, legacyfontdir): New variables.
905 (fontpath): Use them.
906 (MDEFINES, uninstall_dirs): Updated.
907 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
908 Remove `FONTPATH' and `MACROPATH'.
910 * src/roff/troff/troff.man, NEWS: Updated.
911 * doc/groff.texinfo (Font Directories): New section.
914 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
915 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
916 src/preproc/grn/grn.man: Minor fixes.
918 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
919 Remove unused variable.
921 2002-09-11 Werner LEMBERG <wl@gnu.org>
923 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
924 * man/groff_out.man: Fix documentation of 'N'.
926 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
928 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
929 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
931 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
932 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
933 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
934 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
935 PRE_TAG>: Call `begin' with `FALSE'.
937 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
939 * src/libs/libgroff/string.cc (string::extract): Fix position of
940 terminating null byte.
942 2002-09-08 Werner LEMBERG <wl@gnu.org>
944 Add global option `nospaces' to tbl so that leading and trailing
945 spaces in data items are ignored.
947 * src/libs/libgroff/string.cc (string::remove_spaces): New member
948 function to remove leading and trailing spaces.
949 * src/include/stringclass.h: Updated.
951 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
953 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
955 Fix typo in error messages.
956 (process_data): Implement `nospaces' option.
957 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
959 2002-09-07 Werner LEMBERG <wl@gnu.org>
961 * src/include/config.hin: Add `HAVE_ISATTY'.
962 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
964 * src/libs/libgroff/tmpname.cc: Include `time.h'.
965 * src/libs/libdriver/input.cc (Char): Add `operator==' and
966 `operator!=' for `char'.
967 * doc/groff.texinfo: Replace @ifnottex block for top node with
970 2002-09-06 Werner LEMBERG <wl@gnu.org>
972 * doc/Makefile.in (.texinfo.html): Add -I switch.
973 * doc/groff.texinfo: Add @ifnottex block for top node to make
974 translation to HTML work.
976 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
978 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
979 (get_papersize, determine_vertical_offset): Removed.
980 (char_buffer::do_image): Always specify letter size.
982 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
985 2002-09-05 Werner LEMBERG <wl@gnu.org>
987 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
990 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
992 * src/preproc/html/pre-html.cc (imageList::createPage): Use
994 (generateImages): Clean up push-back buffer.
996 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
998 * doc/groff.texinfo: Minor fixes.
1000 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1002 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
1003 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
1005 (determine_vertical_offset): Use LETTER_LENGTH.
1006 (createPage): Moved to ...
1007 (imageList::createPage): This.
1008 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
1009 (imageList::getMaxX): New function.
1010 (createImage): Moved to ...
1011 (imageList::createImage): This.
1012 (imageList::createImages): New function.
1013 (generateImages): Read `maxx' directly.
1015 (scanArguments): Don't specify `gsPaper' for `-o'.
1016 (makeTempFiles): Call `xtmpfile' with the last argument set to
1019 2002-08-24 Werner LEMBERG <wl@gnu.org>
1021 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
1022 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
1023 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
1024 * src/preproc/html/pushback.cc: Include nonposix.h.
1025 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
1028 2002-08-23 Werner LEMBERG <wl@gnu.org>
1030 Use $(OBJEXT) for the object file extension.
1032 * Makefile.comm (.SUFFIXES): Add .obj.
1033 (.cc.obj, .c.obj): New implicit rules.
1034 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
1035 (MDEFINES): Add EXEEXT and OBJEXT.
1036 * */Makefile.sub: s/.o/.$(OBJEXT)/.
1038 2002-08-22 Werner LEMBERG <wl@gnu.org>
1040 * INSTALL: Mention texinfo 4.2 as a prerequisite.
1042 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1044 * src/devices/grohtml/post-html.cc (colType): Make enum global to
1046 (html_printer::update_min_max, html_printer::add_table_end): New
1048 (html_printer::lookahead_for_tables): Use them.
1049 Reset page offset correctly.
1050 (html_printer::~html_printer): Add creation of creator comment up.
1052 2002-08-20 Werner LEMBERG <wl@gnu.org>
1054 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
1055 * man/groff_tmac.man: Fix typos.
1056 * man/groff_font.man: Minor reordering.
1057 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
1058 * contrib/groffer/groffer.man: Fix typos.
1060 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1062 Avoid endless loops while scanning for tables.
1064 * src/devices/grohtml/post-html.cc (list::insert): Set
1066 (html_printer::next_horiz_pos): Add `text_glob' argument; update
1068 Return immediately if that argument is NULL.
1069 (html_printer::calc_nf): Don't test if `g' is NULL.
1070 (html_printer::lookahead_for_tables): Use
1071 `glyphs.move_right_get_data'.
1072 Don't test if `g' is NULL.
1074 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1076 A better fix, replacing fix 2002-08-15, for increasing SIZE.
1078 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
1080 (char_block::char_block): Allocate `buffer'.
1081 (char_buffer::add_string): Use it.
1083 2002-08-15 Werner LEMBERG <wl@gnu.org>
1085 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
1086 src/devices/grodvi/grodvi.man: Document default line thickness.
1088 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
1090 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
1093 2002-08-14 Werner LEMBERG <wl@gnu.org>
1095 * doc/webpage.ms: Updated.
1097 2002-08-09 Werner LEMBERG <wl@gnu.org>
1099 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
1102 2002-08-08 Aaron Campbell <aaron@monkey.org>
1104 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
1107 2002-08-08 Werner LEMBERG <wl@gnu.org>
1109 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
1112 Don't push back a space but a newline onto the stack.
1114 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
1116 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
1119 * src/devices/grohtml/post-html.cc (html_printer::end_font,
1120 html_printer::start_font): Handle them.
1121 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
1123 (html_text::do_bold): Don't reset italic and tt.
1124 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
1125 * font/devhtml/DESC.proto: Add those fonts.
1126 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
1128 2002-08-07 Werner LEMBERG <wl@gnu.org>
1130 * MORE.STUFF: Added gpresent.
1132 * tmac/trace.tmac: Show nesting level by a corresponding amount of
1133 whitespace before printing the logging message.
1135 2002-07-31 Colin Watson <cjwatson@debian.org>
1137 * src/devices/grohtml/html-table.cc (html_table::finish_row):
1138 Initialize `n' to zero. This fixes a segfault on ARM.
1140 2002-07-30 Werner LEMBERG <wl@gnu.org>
1142 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
1144 2002-07-29 Werner LEMBERG <wl@gnu.org>
1146 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
1149 2002-07-28 Colin Watson <cjwatson@debian.org>
1151 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
1153 (html_printer::html_printer): Initialize `pointsize'.
1155 2002-07-26 Werner LEMBERG <wl@gnu.org>
1157 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
1159 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
1160 (gnu.eps): Add -rle switch to pnmtops.
1161 (distfiles): Add gnu.eps and gnu.png.
1163 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
1165 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
1168 2002-07-24 Werner LEMBERG <wl@gnu.org>
1170 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
1171 ' \+' but ' *' for sed.
1172 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
1174 2002-07-23 Werner LEMBERG <wl@gnu.org>
1176 * doc/groff.texinfo: Document `papersize' keyword.
1177 * NEWS, man/groff_font.man: Updated.
1179 2002-07-23 Colin Watson <cjwatson@debian.org>
1181 Extend papersize keyword to accept more than a single entry. The
1182 first valid will be used.
1184 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
1185 (font::scan_papersize): Really skip final newline.
1186 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
1188 2002-07-23 Werner LEMBERG <wl@gnu.org>
1190 * configure.ac: Test for isatty.
1191 * configure: Regenerated.
1192 * src/include/posix.h: Check HAVE_ISATTY.
1193 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
1194 * src/utils/lookbib/lookbib.cc: Include posix.h.
1195 Don't declare isatty.
1197 2002-07-21 Werner LEMBERG <wl@gnu.org>
1199 * NEWS: Add `output' request.
1201 * REVISION: Increased to 1.
1203 Version 1.18.0 released
1204 =======================
1206 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
1208 Allow internal glyph indices > 0xFF in grohtml for input characters.
1210 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
1212 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
1213 Updated all callers.
1214 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
1215 (html_printer): Updated.
1217 2002-07-19 Werner LEMBERG <wl@gnu.org>
1219 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
1220 * font/devutf8/R.proto: Adding some missing glyphs.
1221 * font/devutf8/NOTES: Updated.
1223 * tmac/dvi.tmac: Add more composite glyphs.
1224 * tmac/html.tmac: Updated.
1226 * man/groff_char.man: Add `sum' and `product' entities.
1230 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
1232 Improved table, tab, and indenting support.
1234 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
1235 string_iterator::suppress_newline_flag): Removed. Updated all
1236 function which have used it.
1238 * src/roff/troff/env.cc: Include `input.h'.
1239 (environment::add_node): Accept 0 as parameter.
1240 (environment::add_html_tag): Add `force' parameter.
1241 Updated all callers.
1242 (environment::add_html_tag_tabs): Ditto.
1243 For the moment, support left-aligned tabs only.
1244 (environment::make_html_tag): New function.
1245 (fill, no_fill): Set .br html tag additionally.
1246 (environment::newline): Emit `eol.ce' or `eol' tag for html.
1247 (environment::add_html_tag_eol): Removed.
1248 (tab_stops::distance_to_next_tab): Add variant for handling
1250 (environment::distance_to_next_tab): Ditto.
1251 Updated all callers.
1252 (environment::handle_tab): Handle tabs for html.
1254 * src/roff/troff/env.h: Updated.
1256 * src/roff/troff/div.cc: Updated all callers of
1257 `environment::add_html_tag'.
1259 * src/devices/grohtml/html-table.cc,
1260 src/devices/grohtml/html-table.h: New files.
1262 * src/devices/grohtml/html-text.cc (html_text): New members
1263 `blank_para' and `start_space'.
1264 (html_text::issue_tag): Don't emit TABLE_TAG.
1265 Handle indentation for PRE_TAG and P_TAG.
1266 (html_text::end_tag): Updated.
1267 (html_text::table_is_void, html_text::issue_table_begin,
1268 html_text::issue_table_end): Removed.
1269 (html_text::do_push): Simplified.
1270 [DEBUGGING]: Small fix.
1271 (html_text::push_para): Add new parameter for indentation; updated
1274 (html_text::do_indent, html_text::do_table, html_text::done_table,
1275 html_text::is_in_table): Removed.
1276 (html_text::do_pre): Handle P_TAG also.
1277 (html_text::shutdown): Handle p->indent.
1278 (html_text::check_emit_text): Simplified.
1279 (html_text::do_emittext): Reset `blank_para'.
1280 (html_text::do_para): Add new parameter for indentation; updated
1282 (html_text::remove_indent): New function.
1283 (html_text::do_space): Handle verbatim text properly.
1284 (html_text::ever_emitted_text, html_text::starts_with_space,
1285 html_text::remove_para_align): New functions.
1286 (html_text::dump_stack_element, html_text::dump_stack): Updated.
1288 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
1291 * src/devices/grohtml/post-html.cc: Include html-table.h.
1292 (INDENTATION): Removed.
1293 (text_glob): Added many `is_<foo>' functions.
1294 Added table description `tab'.
1295 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
1297 (list): Add `insert' and `move_to' member functions.
1298 (page): Add `insert_tag' member function.
1299 (page::dump_page) [DEBUG_TABLES]: Improved.
1300 (html_printer): Add `table' and `max_linelength' elements.
1301 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
1302 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
1303 `remove_tabs', `remove_courier_tabs'.
1304 (html_printer::emit_raw): Handle indentation.
1305 (html_printer::do_center, html_printer::write_header): Updated.
1306 (html_printer::is_courier_until_eol): Check for tag.
1307 (html_printer::do_linelength): Handle max_linelength.
1308 (html_printer::do_page_offset, html_printer::do_indentation): Handle
1310 (html_printer::do_tempindent): Updated.
1311 (html_printer::do_indentedparagraph): Removed.
1312 (html_printer::do_indent): Simplified.
1313 (html_printer::do_eol): Use `ever_emitted_text'.
1314 (html_printer::do_flush, html_printer::do_links): Don't call
1316 (html_printer::do_break): Handle end_tempindent.
1317 (html_printer::troff_tag): Get argument.
1319 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
1320 (html_printer::flush_page): Call `lookahead_for_tables'.
1321 Don't call `done_table'.
1322 (html_printer::add_to_sbuf): Always call do_indent.
1324 * src/devices/grohtml/Makefile.sub: Updated.
1326 * tmac/an-old.tmac (TP): Don't handle html device specially.
1327 (an-do-tag-html): New function which will be used instead of
1328 `an-do-tag' if html device is used.
1330 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
1332 * tmac/s.tmac (@IP): Don't handle html device specially.
1333 (@IP-html): New function which will be used instead of `@IP' if
1334 html device is used.
1336 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
1337 is a hack which will eventually vanish again.
1338 (PIMG): Handle `-C' option correctly if not html.
1341 2002-07-17 Werner LEMBERG <wl@gnu.org>
1343 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
1345 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
1347 * contrib/pic2graph/pic2graph.*: Use convert(1).
1348 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
1350 2002-07-14 Bernd Warken <bwarken@mayn.de>
1352 * tmac/groff_trace.man: New file.
1353 * tmac/Makefile.sub: Updated.
1356 2002-07-13 Werner LEMBERG <wl@gnu.org>
1358 * src/roff/groff/groff.man: Add some cross references.
1360 2002-07-12 Werner LEMBERG <wl@gnu.org>
1362 * src/roff/troff/input.cc (substring_request): Add warnings for
1363 string indices out of range.
1365 2002-07-11 Werner LEMBERG <wl@gnu.org>
1367 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
1368 * font/devdvi/*EC: Regenerated.
1370 2002-07-10 Bernd Warken <bwarken@mayn.de>
1372 * man/groff_char.man: Updated and extended.
1374 2002-07-10 Werner LEMBERG <wl@gnu.org>
1376 * src/roff/troff/input.cc (length_macro): Renamed to...
1377 (length_request): This.
1378 Move call of `tok.next()' to the very end, otherwise the register
1379 value hasn't been updated yet.
1380 (init_input_requests): Updated.
1382 2002-07-09 Werner LEMBERG <wl@gnu.org>
1384 * src/roff/troff/input.cc (substring_macro): Renamed to...
1385 (substring_request): This.
1386 (init_input_requests): Updated.
1387 * src/roff/troff/request.h: Updated.
1389 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
1391 * src/roff/grog/grog.sh: Fix typo.
1393 2002-07-08 Werner LEMBERG <wl@gnu.org>
1395 * win32-diffs: Updated.
1397 Handle `papersize' keyword properly in DESC.
1399 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
1401 Updated all callers.
1402 * src/libs/libgroff/paper.cc: Add four more paper formats used by
1404 * src/include/paper.h: Updated.
1406 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
1407 Other minor C syntax fixes.
1408 (papersize, paperlength, paperwidth): Renamed to `user_*'.
1409 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
1411 (lbp_printer::lbp_printer): Pass three arguments.
1412 Set paper dimensions properly.
1413 (make_printer, main): Updated.
1414 (handle_unknown_desc_command): Fix error messages.
1415 (main): Handle papersize keyword in DESC properly.
1417 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
1419 (lbp_printer::lbp_printer): Pass an argument.
1420 Set paper_size properly.
1421 (handle_unknown_desc_command): Removed.
1422 (make_printer, main): Updated.
1423 * src/devices/grolj4/grolj4.man: Minor documentation fix.
1425 * man/groff_font.man, NEWS: Updated.
1427 2002-07-07 Werner LEMBERG <wl@gnu.org>
1429 Integrated eqn2graph, contributed by Eric S. Raymond.
1431 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
1433 * Makefile.in, NEWS: Updated.
1435 2002-06-04 Werner LEMBERG <wl@gnu.org>
1437 Changing the substring request to make it fit better with other
1438 string manipulation functions in other programming languages:
1439 Index 0 is now the first character in the string, and index -1
1440 indicates the last character. Since this request didn't work
1441 properly anyway in the last release, it doesn't harm too much to
1444 * src/roff/troff/input.cc (substring_macro): Use loops to get
1445 the real string length (ignoring COMPATIBLE_SAVE and
1446 COMPATIBLE_RESTORE) and offsets.
1447 Implement change described above.
1449 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
1450 (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
1452 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
1454 2002-06-03 Werner LEMBERG <wl@gnu.org>
1456 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
1457 COMPATIBLE_RESTORE are completely ignored.
1459 * src/roff/troff/input.cc (char_list::set, char_list::get): New
1461 (macro): `length' field renamed to `len'.
1462 Added new field `empty_macro' (1 if macro is empty), to be used
1463 instead of checking `len'.
1464 Updated all callers.
1465 (macro::empty): Updated.
1466 (macro::length, macro::set, macro::get): New functions.
1467 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1469 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
1470 COMPATIBLE_RESTORE pairs.
1471 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1472 * src/roff/troff/request.h: Updated.
1474 * doc/groff.texinfo: Document .chop's behaviour better.
1476 2002-06-02 Werner LEMBERG <wl@gnu.org>
1478 * doc/pic.ms: Fix documentation for the addition of positions.
1480 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
1482 2002-06-29 Werner LEMBERG <wl@gnu.org>
1484 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
1486 * src/roff/troff/input.cc (have_string_arg): New global variable.
1487 (read_mode): New enumeration.
1488 (read_escape_name): Use it. Update all calls.
1489 (read_long_escape_name): Use it. Update all calls.
1490 Set have_string_arg if appropriate.
1491 (get_char_for_escape_name): Add parameter for handling space
1493 (interpolate_string_with_args, decode_string_args): New functions.
1494 (get_copy, token::next): Call it if necessary.
1495 (interpolate_string): Fix error message.
1497 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1500 2002-06-24 Bernd Warken <bwarken@mayn.de>
1502 * man/groff_tmac.man: Updated and extended.
1504 2002-06-24 Werner LEMBERG <wl@gnu.org>
1506 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
1508 2002-06-23 Werner LEMBERG <wl@gnu.org>
1510 * doc/pic.ms: Improve documentation of composite block objects.
1512 2002-06-22 Werner LEMBERG <wl@gnu.org>
1514 * src/roff/troff/input.cc (init_registers): Add three registers
1515 `seconds', `minutes', and `hours' to hold the current time.
1517 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1520 2002-06-20 Werner LEMBERG <wl@gnu.org>
1522 Make \X accept both `\ ' and `\~', converting them to single space
1525 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
1526 (token::unstretchable_space): New inline function.
1527 * src/roff/troff/input.cc (token::next, token::delimiter,
1528 token::description, token::add_to_node_list, token::process): Handle
1529 TOKEN_UNSTRETCHABLE_NODE.
1530 (encode_char): Handle tok.stretchable_space and
1531 tok.unstretchable_space.
1533 * NEWS, doc/groff.texinfo: Document it..
1535 2002-06-19 Werner LEMBERG <wl@gnu.org>
1537 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
1539 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
1540 keyword to enable/disable SGR output.
1541 (tty_printer::change_fill_color): New function.
1542 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
1544 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
1547 2002-06-18 Werner LEMBERG <wl@gnu.org>
1549 Add a `color' request and a `.color' register to control usage of
1552 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
1553 (color_flag): This (which is the inverse).
1554 (activate_color): New function.
1555 (main, init_input_requests): Updated.
1556 * src/roff/troff/troff.h, src/roff/troff/node.cc
1557 (troff_output_file::fill_color, troff_output_file::glyph_color):
1560 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1561 Document the changes.
1563 2002-06-17 Colin Watson <cjwatson@debian.org>
1565 Circumvent bug in autoconf 2.53 regarding top_builddir.
1567 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
1568 * Makefile.in, doc/Makefile.in:
1569 s/@top_builddir@/@groff_top_builddir@/.
1570 * configure: Regenerated (with autoconf 2.53).
1572 2002-06-17 Werner LEMBERG <wl@gnu.org>
1574 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
1575 `paperwidth' and `paperlength' for the `papersize' keyword.
1577 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
1579 * src/devices/grops/grops.man: Add info about Type 42 fonts.
1581 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
1583 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
1584 html_printer::do_linelength, html_printer::do_pageoffset,
1585 html_printer::do_indentation, html_printer::do_tempindent,
1586 html_printer::do_break, html_printer::begin_page): Clear indented
1588 * tmac/html.tmac: Disable hyphenation.
1590 2002-06-15 Werner LEMBERG <wl@gnu.org>
1592 Don't produce HTML files if utility programs are missing.
1594 * Makefile.in (make_html, make_install_html): New variables.
1595 (MDEFINES): Updated.
1597 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
1599 * configure.ac: Use it.
1600 * configure: Regenerated.
1602 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
1603 (HTMLEXAMPLESFILES): This new variable.
1604 (EXAMPLESIMAGEFILES): Renamed to...
1605 (HTMLEXAMPLEIMAGEFILES): This.
1606 (CLEANADD): Add HTMLEXAMPLEFILES.
1607 (all): Use `make_html'.
1609 (install_data): Use `make_install_html'.
1610 Move html stuff to...
1611 (install_html): This new target.
1612 (uninstall_sub): Updated.
1614 2002-06-14 Bernd Warken <bwarken@mayn.de>
1616 * src/roff/grog/Makefile.sub (grog): Renamed to...
1618 (grog): New rule to always install grog.sh as grog.
1620 2002-06-08 Bernd Warken <bwarken@mayn.de>
1622 * src/roff/grog/grog.pl: Fix typo.
1624 2002-06-07 Werner LEMBERG <wl@gnu.org>
1626 * doc/groff.texinfo: Add more info on .tr arguments.
1628 2002-06-05 Werner LEMBERG <wl@gnu.org>
1630 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1632 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
1633 * configure: Regenerated.
1635 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1637 * src/roff/troff/symbol.cc (table_sizes): Add more values.
1639 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
1641 2002-06-04 Werner LEMBERG <wl@gnu.org>
1643 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
1644 is not initialized at the time we need it in case `--prefix' hasn't
1645 been set. Check for `ac_default_prefix' also.
1646 Test for `papersize' keyword also and generalize allowed whitespace.
1647 * configure: Regenerated.
1649 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
1652 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
1654 (src_version, src_revision): New variables to avoid overwriting
1655 from parent make process.
1656 (version.cc): Updated.
1658 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
1659 (linebuf, linebufsize): New global variables.
1660 (sys_fatal): Use `fatal' to abort properly.
1661 (get_line): New function.
1662 (get_resolution): Use it.
1663 Improve error messages.
1664 (get_papersize): Check `papersize' also.
1666 Improve error messages.
1668 2002-06-03 Werner LEMBERG <wl@gnu.org>
1670 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
1671 should be removed only if builddir is not srcdir.
1672 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
1673 (clean): Depend on `mostlyclean'.
1674 (distclean): Depend on `clean'.
1675 (realclean, extraclean): Depend on `distclean'.
1676 (.y.cc, .y.o): Simplified. The output files are no longer written
1677 to srcdir but to builddir.
1678 * Makefile.in (MDEFINES): Add `version' and `revision'.
1679 (uninstall_dirs): Fix order of directories.
1680 * doc/Makefile.sub (version, revision): Removed.
1681 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
1682 Added `HTMLDOCFILES'.
1683 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
1684 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
1685 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
1688 * doc/texinfo.tex (\authortt): New macro.
1689 (\shortcontt): Define.
1690 (\titlepage): Set \tt to \authortt while defining \authorfont.
1691 (\appendixbox): New macro.
1692 (\chapmacro, \appendixentry): Use \appendixbox to get even
1693 indentation for letters.
1694 (\summarycontents): Set \tt.
1695 (\internalpagesize): Add two arguments for real paper width and
1696 height as needed by pdfTeX.
1697 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1699 (\tempdima, \tempdimb): New temporary dimensions.
1700 (\pagesizesyyy): Updated.
1702 2002-06-02 Werner LEMBERG <wl@gnu.org>
1704 Adding a new keyword `papersize' to the DESC file format (similar
1705 but not completely identical to grolbp's extension). grops now has
1706 a -p command line option to override `papersize'. Finally, grolbp
1707 has been adapted to the new syntax.
1709 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
1710 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1712 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1713 (CCSRCS): Add `paper.cc'.
1715 * src/include/font.h (font): Add `papersize' element.
1716 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1717 (font::scan_papersize): New function.
1718 (font::load_desc): Use it for handling `papersize' keyword.
1719 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1721 * src/devices/grops/ps.cc: Include paper.h.
1722 (user_paper_length): New global variable.
1723 (ps_printer): Use paper length as initializer.
1724 (make_printer): Updated.
1725 (main): Handle new `-p' option.
1726 * src/devices/grops/grops.man: Updated.
1728 * src/devices/grolbp/lbp.cc: Include paper.h.
1729 s/papersizes/lbp_papersizes/.
1730 (set_papersize): Use new `papersizes' array.
1731 (handle_unknown_desc_command): Don't handle `papersize'.
1732 (main): Use `font::scan_papersize' for handling `-p' option.
1733 * src/devices/grolbp/grolbp.man: Updated.
1735 * man/groff_font.man: Document `papersize'.
1738 2002-05-30 Werner LEMBERG <wl@gnu.org>
1740 * src/devices/grops/TODO: Updated.
1741 * src/devices/grops/grops.man: More info on paper formats.
1742 * man/groff_font.man: Document `paperheight' and `paperwidth'.
1744 2002-05-29 Werner LEMBERG <wl@gnu.org>
1746 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1747 to list only if srcdir != currdir.
1748 (distfiles): New target.
1750 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1751 (NOMAKEDIRS): New variable.
1754 2002-05-26 Werner LEMBERG <wl@gnu.org>
1756 Add .output request, similar to \! at top-level.
1758 * src/roff/troff/input.cc (transparent): Remove unused declaration.
1759 (output_request): New function.
1760 (init_input_requests): Add it.
1762 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1765 * Makefile.in (MDEFINES): Add INSTALL_INFO.
1766 (prepare_examples): Fix typo.
1767 * doc/groff.texinfo (@direntry): Fix it.
1769 2002-05-25 Werner LEMBERG <wl@gnu.org>
1771 Including the doc subdir into groff's Makefile system.
1773 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1774 * configure.ac: Use it.
1775 Generate `doc/Makefile'.
1776 * configure: Regenerated.
1778 * Makefile.in (infodir, INSTALL_INFO): New variables.
1779 (MDEFINES, uninstall_dirs): Updated.
1780 (OTHERDIRS): Add `doc'.
1781 * Makefile.comm (CLEANDIRADD): New variable.
1782 (mostlyclean): Use it.
1784 * doc/Makefile.sub, doc/Makefile.in: New files.
1785 * doc/Makefile: Removed.
1787 * NEWS, INSTALL: Updated.
1789 2002-05-24 Werner LEMBERG <wl@gnu.org>
1791 * doc/homepage.ms: Renamed to ...
1792 * doc/webpage.ms: This.
1795 2002-05-23 Werner LEMBERG <wl@gnu.org>
1797 Integrating the `mom' macro package, contributed by Peter Schaffter
1800 * contrib/mom/*: New subdirectory tree.
1801 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1802 be used for documentation files.
1803 (MDEFINES, uninstall_dirs): Use them.
1804 (OTHERDIRS): Add contrib/mom.
1805 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1807 * MANIFEST, NEWS: Updated.
1809 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
1811 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1812 if at outer level; at start-up we are at outer level.
1814 * src/roff/troff/input.cc (do_suppress): Implement it.
1817 Add option -p to show progress information.
1818 pre-grohtml will now render only one page at a time, reducing the
1819 size of needed disk resources enormously.
1821 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1822 (imagePageName): New global variable.
1823 (psPageName, show_progress, currentPageNo): New global variables.
1824 (html_system): Close saved stderr and stdout handles.
1825 (write_end_image): Accept a parameter to control \O escape.
1826 (write_start_image): Adapted to new \O meaning.
1827 (char_buffer::write_upto_newline): Updated.
1828 (createAllPages): Replaced with...
1829 (createPage): This new function to create a single page for images.
1830 It uses `psselect' from the psutils package.
1831 (removeAllPages): Removed.
1832 (createImage): Updated.
1833 Handle progress display.
1834 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1835 (scanArguments): Add option -p.
1836 (makeTempFiles): Updated to create temp files for psPageName and
1838 (removeTempFiles): Removed.
1841 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1842 html_printer::write_header): Append `\0' to `buffer'.
1843 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1845 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1846 Handle `text_emitted'.
1847 (html_text::table_is_void): Slightly rewritten.
1848 (stop): New external symbol.
1849 (html_text::do_push) [DEBUGGING]: Use it and simplify.
1850 (html_text::shutdown): Call `dump_stack'.
1851 (html_text::do_space): Rewritten.
1852 * src/devices/grohtml/grohtml.man: Document -p and the need of
1855 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1857 Call \O[0] if `ps4html' is active.
1858 * tmac/s.tmac (@EQ, @EN): Handle html better.
1860 * tmac/html.tmac: Don't use black for background colour.
1862 * src/roff/troff/node.cc: Include `div.h'.
1863 (troff_output_file::really_print_line): Don't use `is_on'.
1864 (troff_output_file::word_marker, troff_output_file::flush_tbuf
1865 troff_output_file::check_charinfo,
1866 troff_output_file::put_char_width, troff_output_file::put_char,
1867 troff_output_file::determine_line_limits, troff_output_file::draw,
1868 real_output_file::begin_page, glyph_color_node::tprintf,
1869 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1871 (troff_output_file::really_on): Call `do_motion'.
1872 (suppress_node::tprint): Use `get_page_number' instead of `%'
1874 Call `reset_output_registers' conditionally on `is_on'.
1876 * doc/groff.texinfo: Document new syntax of \O.
1877 * NEWS, man/groff_diff.man: Updated.
1879 2002-05-22 Werner LEMBERG <wl@gnu.org>
1881 * MORE.STUFF: Add info about David Frey's deroff implementation.
1884 2002-05-16 Werner LEMBERG <wl@gnu.org>
1886 Pic's `with' attribute now accepts positions.
1888 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1889 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1891 (object_spec): Add rule for `WITH' and `position'.
1892 (relative_path): Give `corner' the precedence of `CHOP'.
1893 * src/preproc/pic/object.h (path): New members `pos' and
1895 * src/preproc/pic/object.cc: Updated initializers of `path'.
1896 (path::follow): Handle `is_position'.
1898 * doc/pic.ms: Completely updated grammar description.
1899 Many typographical improvements.
1901 2002-05-15 Werner LEMBERG <wl@gnu.org>
1903 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1904 code of x in range 0-127) also.
1905 * doc/groff.texinfo, man/groff_diff.man: Updated.
1907 Added keywords `north', `south', `east', and `west' for corners
1910 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1912 (yylex): Handle them.
1913 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
1914 (corner): Handle them.
1916 2002-05-14 Werner LEMBERG <wl@gnu.org>
1918 * src/devices/grops/grops.man: Clarify handling of `download' file.
1920 2002-05-11 Werner LEMBERG <wl@gnu.org>
1922 Adding `warnscale' and `spreadwarn' requests, based on a patch from
1923 Jeffrey Friedl <jfriedl@yahoo.com>.
1925 * src/roff/troff/input.cc (spread_limit, warn_scale,
1926 warn_scaling_indicator): New global variables.
1927 (warnscale_request, spreadwarn_requests): New functions.
1928 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
1929 (init_input_requests): Updated.
1930 (error_type): Add `OUTPUT_WARNING'.
1931 (do_error): Handle it.
1932 (output_warning): New warning function which shows output location.
1933 * src/roff/troff/env.h (spread_limit): New external variable.
1934 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
1936 (distribute_space): Emit warning if added space is larger than
1938 (environment::possibly_break_line): Emit warning if a line can't
1939 be adjusted on both sides.
1941 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
1943 2002-05-08 Werner LEMBERG <wl@gnu.org>
1945 * src/roff/troff/node.cc (special_node::special_node): Use
1946 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
1947 \X''\% crashes, for example.
1949 * doc/groff.texinfo: Document \! and \? used at top-level.
1951 2002-05-06 Werner LEMBERG <wl@gnu.org>
1953 * src/preproc/pic/pic.man: Fix some keyword syntax.
1954 Other minor typographical fixes.
1956 * src/roff/groff/groff.man: Fix typos.
1958 2002-05-04 Werner LEMBERG <wl@gnu.org>
1960 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
1961 (ShortOpt[]): This to avoid problems with refer.
1963 * doc/pic.ms: Fix typo.
1964 Fix pic grammar description.
1966 * tmac/an-old.tmac (ne): Use de1, not de.
1968 2002-05-03 Werner LEMBERG <wl@gnu.org>
1970 * doc/groff.texinfo: Finished separation of glyphs and characters.
1971 Don't use the string `Appendix' for appendix headers (both in
1972 the text and the table of contents).
1973 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
1976 Use registers LL and LT (similar to -ms) for controlling the
1977 length of title and line, respectively, in the -man and -mdoc
1980 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
1981 (doc-setup-page-layout): Use \n[LL] and \n[LT].
1982 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
1984 (an-header, an-p-footer): Use \n[LT].
1985 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
1986 doc/groff.texinfo: Document it.
1988 2002-05-02 Werner LEMBERG <wl@gnu.org>
1990 * doc/fdl.texi: New file.
1991 * doc/groff.texinfo: Include it.
1992 Define and use @copying.
1993 Starting with separating glyph, symbol, and character.
1995 2002-04-27 Werner LEMBERG <wl@gnu.org>
1997 * Makefile.in (EXEEXT): Set it.
1998 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
2001 * src/include/nonposix.h: Define GS_NAME.
2002 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
2004 Some preliminary changes for EMX support under OS/2.
2006 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
2007 __EMX__ similar to __MSDOS__.
2008 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
2010 2002-04-25 Werner LEMBERG <wl@gnu.org>
2012 * doc/groff.texinfo: Integrated groff_out.man.
2015 2002-04-23 Werner LEMBERG <wl@gnu.org>
2017 * man/groff_out.man: Minor fixes.
2019 2002-04-23 Werner LEMBERG <wl@gnu.org>
2021 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
2022 correct page references.
2023 Fixed many index entries.
2025 2002-04-23 Bernd Warken <bwarken@mayn.de>
2027 * man/roff.man: Enlarged.
2029 2002-04-22 Werner LEMBERG <wl@gnu.org>
2031 * doc/groff.texinfo: More examples, other fixes.
2033 2002-04-20 Werner LEMBERG <wl@gnu.org>
2035 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
2036 will now form a chain, e.g.
2045 This is for compatibility with plan 9's troff.
2047 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
2051 * doc/groff.texinfo: Add documentation of remaining requests and
2054 2002-04-19 Werner LEMBERG <wl@gnu.org>
2056 * doc/groff.texinfo: Add documentation of remaining escapes.
2058 * font/devdvi/generate/tc.map: Remove entry for `sr'.
2059 * font/devdvi/*TC: Regenerated.
2061 2002-04-18 Werner LEMBERG <wl@gnu.org>
2063 * src/roff/troff/input.cc (token::next): Make \H behave consistently
2064 if not in compatibility mode, i.e., increment relative to the
2066 * doc/groff.texinfo: Updated accordingly.
2068 2002-04-17 Werner LEMBERG <wl@gnu.org>
2070 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
2072 2002-04-16 Bernd Warken <bwarken@mayn.de>
2074 * src/roff/groff/groff.man: Improve documentation of -P option.
2077 2002-04-15 Werner LEMBERG <wl@gnu.org>
2079 Add new escape \F to switch font family.
2081 * src/roff/troff/input.cc (token::next): Handle \F.
2082 * src/roff/troff/env.cc (environment::set_family): Handle
2084 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2087 2002-04-14 Werner LEMBERG <wl@gnu.org>
2089 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
2092 2002-04-13 Werner LEMBERG <wl@gnu.org>
2094 Implement \f[] as an alternative to \fP. Change \mP and \MP to
2095 \m[] and \M[], respectively.
2097 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
2098 (symbol::symbol): Handle NULL string and empty string differently.
2099 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
2100 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
2101 Add optional parameter.
2102 Updated calling functions.
2103 (get_copy, do_glyph_color, do_fill_color, token::next): Use
2105 * src/roff/troff/env.cc (environment::set_font): Ditto.
2107 * src/preproc/pic/troff.cc (troff_output::set_fill,
2108 troff_output::reset_color: Updated.
2110 * tmac/www.tmac: Updated.
2112 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
2113 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
2116 * tmac/Xps.tmac: Remove some redundant code.
2118 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
2119 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
2120 man/groff_out.man, man/groff.man, man/groff_diff.man,
2121 src/roff/groff/groff.man: Replace \f[P] with \f[].
2123 2002-04-13 Bernd Warken <bwarken@mayn.de>
2125 * src/include/printer.h, src/libs/libdriver/printer.cc
2126 (printer::change_fill_color): New member function.
2127 * src/libs/libdriver/input.cc (parse_D_command): Use it.
2129 2002-04-12 Werner LEMBERG <wl@gnu.org>
2131 * doc/groff.texinfo: Completed pass on gtroff reference.
2133 2002-04-11 Werner LEMBERG <wl@gnu.org>
2135 * doc/groff.texinfo: More fixes.
2137 2002-04-11 Bernd Warken <bwarken@mayn.de>
2139 * src/include/color.h: Decorate with `const'.
2142 * src/libs/libgroff.color.cc: Decorate with `const'.
2144 (color::color): Initialize members.
2145 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
2146 command according to the documentation.
2148 * man/groff_out.man: Updated.
2151 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
2153 * src/preproc/html/pre-html.cc (write_start_image): Remove
2155 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
2157 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
2158 \C'hy' caused an assertion failure.
2160 * src/roff/troff/env.cc (environment::environment): Initialize
2162 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
2164 2002-04-10 Werner LEMBERG <wl@gnu.org>
2166 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
2167 Document pvs request and .pvs register.
2169 2002-04-09 Werner LEMBERG <wl@gnu.org>
2171 * doc/groff.texinfo: Improve and fix documentation of diversions
2174 2002-04-08 Werner LEMBERG <wl@gnu.org>
2176 * doc/groff.texinfo: Fix documentation of drawing functions.
2179 2002-04-07 Werner LEMBERG <wl@gnu.org>
2181 * doc/groff.texinfo: Better documentation of double quotes as
2185 2002-04-06 Werner LEMBERG <wl@gnu.org>
2187 * man/groff_font.man: Document names of special characters better.
2188 * doc/groff.texinfo: Minor improvements.
2190 * tmac/lbp.tmac: Load latin1.tmac.
2191 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
2193 * font/devX*/*: Regenerated (all chars > 0x80 removed).
2195 2002-04-05 Werner LEMBERG <wl@gnu.org>
2197 * tmac/tty.tmac: Don't use shc request.
2198 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
2201 * man/groff_diff.man: Minor fixes.
2203 * font/devlbp/*: Remove all `charXXX' entities.
2205 * src/libs/libgroff/font.cc (font::~font): Deallocate
2206 `special_device_coding'.
2207 (font::load): Use `new' for allocating `special_device_coding'.
2208 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
2209 Removed unused member.
2211 2002-04-05 Werner LEMBERG <wl@gnu.org>
2213 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
2214 (resource_manager::do_begin_binary,
2215 resource_manager::do_begin_data): Use it.
2217 * doc/texinfo.tex: Updated to version 4.2.
2219 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
2220 (token::zero_width_break): New inline function.
2221 * src/roff/troff/input.cc (token::next): Use it.
2222 (token::description): Updated.
2223 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
2224 (token::add_to_node_list, token::process): Use it.
2225 * NEWS, doc/groff.texinfo: Updated.
2227 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
2228 * tmac/tty.tmac: Add missing backslash.
2230 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
2232 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
2233 `.ps' register instead of `.s' to handle fractional point sizes.
2234 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
2235 limit_box::output): Ditto.
2236 * src/preproc/eqn/other.cc (size_box::compute_metrics,
2237 size_box::output): Ditto.
2238 * src/preproc/eqn/over.cc (over_box::compute_metrics,
2239 over_box::output): Ditto.
2240 * src/preproc/eqn/script.cc (script_box::compute_metrics,
2241 script_box::output): Ditto.
2242 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
2243 sqrt_box::output): Ditto.
2245 2002-04-03 Michael Selway <mas@ssl.co.uk>
2247 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
2250 2002-04-03 Werner LEMBERG <wl@gnu.org>
2252 * doc/homepage.ms: Reduce title size.
2253 * doc/groff.texinfo: Fix documentation of .t register.
2254 Fix handling of colon.
2257 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
2258 only if page length is positive to avoid a loop.
2260 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
2263 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
2265 * src/include/nonposix.h, src/roff/groff/pipeline.c:
2266 s/__CYGWIN32__/__CYGWIN__/.
2268 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
2270 * doc/gnu.xpm: New image contributed by Emily Mulley.
2271 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
2272 (homepage.html): Be dependent on gnu.eps.
2273 * doc/homepage.ms: Updated to new image.
2275 * src/devices/grohtml/post-html.cc (html_printer): New member
2277 (html_printer::flush_sbuf, html_printer::set_char): Set it.
2278 (html_printer::sbuf_continuation): Use it.
2280 2002-03-28 Werner LEMBERG <wl@gnu.org>
2282 * src/libs/libgroff/getopt.c: Updated to latest version.
2284 * tmac/README: More on hyphen.tex license.
2286 2002-03-26 Larry Kollar <kollar@alltel.net>
2288 * doc/groff.texinfo: Add documentation of most missing requests.
2290 2002-03-25 Werner LEMBERG <wl@gnu.org>
2292 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
2293 of `+-', `mu', and `di', respectively.
2295 * font/devascii/R.proto, font/devutf8/R.proto,
2296 font/devlatin1/R.proto, font/devhtml/R.proto,
2297 font/devcp1047/R.proto, font/devlpb/*: Add them.
2298 * font/devps/generate/textmap: Ditto.
2299 * font/devps/*: Regenerated.
2300 * font/devlj4/generate/text.map: Add them.
2301 * font/devlj4/*: Regenerated.
2302 * font/devdvi/generate/tc.map: Use them.
2303 * font/devdvi/generate/texsy.map: Add them.
2304 * font/devdvi/*: Regenerated.
2305 * font/devX*/*: Regenerated.
2307 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
2308 tmac/tty-char.tmac: Updated.
2310 * NEWS, man/groff_char.man: Updated.
2312 2002-03-24 Werner LEMBERG <wl@gnu.org>
2314 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
2315 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
2316 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
2317 we use `.fchar' in dvi.tmac.
2318 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
2319 * tmac/Xps.tmac: Simplify some char definitions.
2320 Add definition for \[f/].
2321 * man/groff_char.man: Updated for new X.tmac.
2323 * tmac/README: New file.
2325 2002-03-23 Phil Lobbes <phil@perkpartners.com>
2327 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
2328 internal .y.o rule took precendence over the .y.cc rule, compiling
2329 the yacc files with gcc instead of g++.
2331 2002-03-23 Werner LEMBERG <wl@gnu.org>
2333 * tmac/dvi.tmac: Add replacement font for `CB'.
2335 * tmac/doc.tmac: s/request/macro/ in messages.
2336 (doc-generic-macro): Improve error message.
2337 * tmac/groff_mdoc.man: Minor improvements.
2339 2002-03-22 Werner LEMBERG <wl@gnu.org>
2341 * doc/groff.texinfo: Document possible conflict between `tr' and
2344 2002-03-21 Werner LEMBERG <wl@gnu.org>
2346 Improve handling of hyphenation patterns. It is now possible to
2347 use most of TeX's pattern files unmodified. To make the process
2348 more flexible, a new request `hpfcode' has been added which
2349 provides a character code mapping for the `hpf' request. See
2350 comment before hpf_getc() for more details.
2352 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
2354 (read_patterns_file): Additional parameter for exception dictionary.
2355 Extended to recognize \pattern, \hyphenation, and \endinput.
2356 (do_hyphenation_patterns_file): Updated.
2357 * src/roff/troff/env.h (hpf_code_table): New extern.
2359 * src/roff/troff/input.cc (hpf_code_table): New array.
2360 (init_hpf_code_table, hyphenation_patterns_file_code): New
2362 (hyphenation_code): Handle translation from `trin' correctly.
2363 (main, init_input_requests): Updated.
2364 (charinfo::set_translation): Handle hyphenation code also.
2366 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
2369 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
2370 char' is used for offsets in hyphenation exceptions.
2372 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
2374 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2376 2002-03-20 Larry Kollar <kollar@alltel.net>
2378 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
2381 2002-03-18 Werner LEMBERG <wl@gnu.org>
2383 * tmac/html.tmac: Fix serious typo.
2385 2002-03-17 Larry Kollar <kollar@alltel.net>
2387 * doc/groff.texinfo: Add documentation for `writec' request.
2389 2002-03-17 Werner LEMBERG <wl@gnu.org>
2391 Added request `hpfa' to append hyphenation patterns.
2393 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2395 (hyphenation_patterns_file): Renamed to...
2396 (do_hyphenation_patterns_file): This.
2397 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
2399 (init_hyphen_requests): Updated.
2400 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2402 2002-03-16 Werner LEMBERG <wl@gnu.org>
2404 Added request `writec' in analogy to `tmc'.
2406 * src/roff/troff/input.cc (write_request): Renamed to...
2407 (do_write_request): This.
2408 Added one parameter.
2409 (write_request, write_request_continue): New functions.
2410 (init_input_requests): Updated.
2411 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2413 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
2415 * NEWS: Document it.
2417 2002-03-15 Werner LEMBERG <wl@gnu.org>
2419 * man/groff.man: Add writem request.
2421 Add request `trin' (translate input) to make `.asciify' work
2422 correctly. This is necessary since `charXXX' entity names are no
2423 longer hardcoded in font definition files.
2425 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
2426 `translate_input' members.
2427 (charinfo::set_asciify_code, charinfo::get_asciify_code,
2428 charinfo::set_translation_input): New methods.
2429 (charinfo::set_translation): Add third argument.
2430 * src/roff/troff/input.cc (charinfo:set_translation): Set
2432 (do_translate): Add second argument.
2433 (translate_input): New function.
2434 (init_input_requests): Updated.
2435 * src/roff/troff/node.cc (glyph_node::asciify,
2436 composite_node::asciify): Use `get_asciify_code'.
2438 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
2440 * NEWS, man/groff.man, man/groff_diff.man: Updated.
2442 2002-03-14 Larry Kollar <kollar@alltel.net>
2444 * doc/groff.texinfo: Improve documentation of .RS and .RE.
2446 2002-03-14 Werner LEMBERG <wl@gnu.org>
2448 Add a new request `sizes' similar to the `sizes' command in DESC
2451 * src/roff/troff/env.cc (override_sizes): New function.
2452 (init_env_requests): Use it.
2453 * src/roff/troff/token.h: Export `read_string'.
2454 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2456 2002-03-12 Werner LEMBERG <wl@gnu.org>
2458 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
2460 2002-03-10 Werner LEMBERG <wl@gnu.org>
2462 * tmac/pspic.tmac: Add support for -Tdvi.
2463 * tmac/dvi.tmac: Include pspic.tmac.
2464 * src/devices/grodvi/grodvi.man: Document it.
2467 * font/devlj4/generate/Makefile: Fix URL of metric files.
2469 2002-03-09 Werner LEMBERG <wl@gnu.org>
2471 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
2473 2002-03-09 Larry Kollar <kollar@alltel.net>
2475 * tmac/groff_ms.man: Add documentation for RS and RE macros.
2477 2002-03-08 Werner LEMBERG <wl@gnu.org>
2479 * doc/groff.texinfo: Fixes for texinfo 4.1.
2481 2002-03-07 Werner LEMBERG <wl@gnu.org>
2483 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
2485 Handle CYGWIN properly.
2487 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
2489 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
2490 * tmac/lbp.tmac: Add some font translations.
2492 2002-03-02 Werner LEMBERG <wl@gnu.org>
2494 * font/devcp1047/R.proto, font/devlatin1/R.proto,
2495 font/devhtml/R.proto: Remove `charXXX' entries.
2496 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
2499 * font/devlj4/generate/text.map: Remove `charXXX' entries.
2500 * font/devlj4/*: Regenerated all font definition files.
2501 * tmac/lj4.tmac: Load latin1.tmac.
2503 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
2504 from 2000-06-17: LJ4 metric files are *not* text files.
2506 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
2507 register to test for EBCDIC.
2509 2002-03-01 Werner LEMBERG <wl@gnu.org>
2511 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
2512 files (as grops already does).
2513 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
2515 * src/devices/grops/grops.man: Document comment lines in encoding
2518 * tmac/cp1047.tmac: New file.
2519 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
2520 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
2521 * tmac/Makefile.sub (NORMALFILES): Updated.
2523 * tmac/ec.tmac: Don't load latin1.tmac again.
2525 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
2526 font/devps/generate/dingbats.map,
2527 font/devps/generate/dingbats.rmap, font/devps/text.enc,
2528 font/devps/generate/Makefile (symbolmap): Add header comment.
2529 * font/devps/generate/textmap: Ditto.
2530 Remove `charXXX' entries.
2531 * font/devps/symbolmap: Regenerated.
2532 * font/devps/*: Regenerated all font definition files.
2534 2002-02-28 Werner LEMBERG <wl@gnu.org>
2536 Add color support to grodvi (for drawing colors are currently
2537 translated to gray values).
2539 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
2540 (dvi_printer): Add `cur_color' member.
2541 (dvi_printer::set_color): New function.
2542 (draw_dvi_printer): Remove `fill'.
2543 (draw_dvi_printer::fill_next): Pass environment as parameter.
2544 Update code for new color support translated to gray.
2545 (dvi_printer::set_char): Updated.
2546 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
2547 changes crossing the page border.
2548 (dvi_printer::draw): Updated.
2549 Remove cases `f' and `F'.
2550 * tmac/dvi.tmac: Add color definitions.
2551 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2553 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
2556 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
2557 versions of autoconf.
2558 * configure: Updated.
2560 * doc/homepage.ms: Use `.blm'.
2561 * tmac/www.tmac (www-depth): New auxiliary variable.
2562 (www-pop-level): Don't issue HTML tag.
2563 (ULS, ULE, LI): Use absolute indentation.
2565 * src/devices/grops/ps.cc (ps_printer::begin_page,
2566 ps_printer::end_page): Switch forth and back to default color while
2567 starting a new page.
2569 2002-02-27 Werner LEMBERG <wl@gnu.org>
2571 Add EC and TC fonts to devdvi.
2573 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
2574 * font/devdvi/generate/cork.map: Renamed to...
2575 * font/devdvi/generate/ec.map: This.
2576 Remove entry for `aq'.
2577 * font/devdvi/generate/tc.map: New file.
2578 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
2581 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
2582 * font/devdvi/Makefile.sub (DEVFILES): Updated.
2583 * tmac/ec.tmac: New file.
2584 * tmac/Makefile.sub (NORMALFILES): Updated.
2585 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2586 * man/groff_char.man: Check `ECFONTS' register.
2588 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
2590 2002-02-26 Werner LEMBERG <wl@gnu.org>
2592 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
2593 * font/devdvi/generate/cork.map: Add 'y and 'Y.
2594 * font/devdvi/*: Updated.
2595 * tmac/dvi.tmac: Formatting.
2597 Add font `HBI' for the dvi output.
2598 Add support for font families `T' and `H'.
2600 * font/devdvi/HBI: New file.
2601 * font/devdvi/B: Renamed to ...
2602 * font/devdvi/TB: This.
2603 * font/devdvi/BI: Renamed to ...
2604 * font/devdvi/TBI: This.
2605 * font/devdvi/I: Renamed to ...
2606 * font/devdvi/TI: This.
2607 * font/devdvi/R: Renamed to ...
2608 * font/devdvi/TR: This.
2609 * font/devdvi/H: Renamed to ...
2610 * font/devdvi/HR: This.
2611 * font/devdvi/Makefile.sub (DEVFILES): Updated.
2612 * font/devdvi/generate/Makefile (HBI): New rule.
2614 (R, I, B, BI, H): Renamed to ...
2615 (TR, TI, TB, TBI, HR): This, respectively.
2617 * NEWS, src/devices/grodvi/grodvi.man: Updated.
2618 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
2619 Add `styles' and `family' keywords.
2620 * tmac/dvi.tmac: Alias `H' to `HR'.
2621 Add some fspecial requests for italic fonts.
2622 Add TR and TI as special.
2623 Add support for `_' with font CWI.
2625 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
2626 operator `:'. Until now, the expression `0:1' would return 2
2629 2002-02-25 Werner LEMBERG <wl@gnu.org>
2631 * man/groff_char.man: Added some missing PS glyph names (from the
2633 * font/devps/generate/textmap, font/devps/symbolmap: Add
2636 * doc/groff.texinfo: Minor additions and fixes.
2637 * man/groff_diff.man: Remove documentation of fp request. This
2638 is already covered in the original troff manual.
2639 Updated to be consistent with other doc files.
2642 2002-02-24 Werner LEMBERG <wl@gnu.org>
2644 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
2646 Define new variable OTHERDEVDIRS (containing `font/devlj4
2647 font/devlbp' if not EBCDIC).
2648 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
2649 (OTHERDEVDIRS): New variable.
2650 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
2651 * configure: Regenerated.
2653 * NEWS, src/devices/grotty/grotty.man: Updated.
2655 2002-02-23 Werner LEMBERG <wl@gnu.org>
2657 * src/roff/troff/input.cc (do_overstrike, do_bracket,
2658 get_line_arg): Honour input level.
2660 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
2662 * font/*/*: Implement it in all font files.
2663 * font/devps/generate/textmap, font/devps/generate/symbolchars,
2664 * font/devps/symbolmap: Updated.
2665 * font/devlj4/generate/text.map: Updated.
2666 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
2667 * font/devdvi/generate/texmi.map: Updated.
2669 * font/devutf8/R.proto: Remove all `charXXX' entries.
2670 * font/devutf8/NOTES: Updated.
2672 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
2675 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
2677 * NEWS, man/groff_char.man: Updated.
2679 2002-02-21 Phil Lobbes <phil@perkpartners.com>
2681 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
2683 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2685 * src/roff/grog/grog.pl: Fix computation of $refer.
2687 2002-02-19 Werner LEMBERG <wl@gnu.org>
2689 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
2690 `snprintf' and `vsnprintf'.
2692 * src/include/htmlindicate.h: Renamed to...
2693 * src/include/htmlhint.h: This.
2694 * src/include/Makefile.sub: Updated.
2695 * src/preproc/eqn/main.cc: Updated.
2697 2002-02-18 Werner LEMBERG <wl@gnu.org>
2699 * man/roff.man, man/groff_out.man, man/groff.man,
2700 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2701 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2703 * win32-diffs: Updated.
2705 2002-02-17 Werner LEMBERG <wl@gnu.org>
2707 * doc/Makefile (clean): Add *.eps.
2708 (MEMACROS): Removed.
2709 (TFLAG): New variable.
2712 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2714 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2716 * tmac/www.tmac: Use dummy diversion while resetting and disabling
2718 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2720 * src/roff/troff/troff.man: Fix order of parameter description.
2724 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
2726 Simplify image handling for grohtml.
2729 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2731 (html_text::dump_stack): Don't emit newline while debugging.
2732 (html_text::do_push) [DEBUGGING]: Print more info.
2733 (html_text::check_emit_text): Fix handling of <p>.
2734 * src/devices/grohtml/html.h: Updated.
2735 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2736 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
2737 send its data to stderr also.
2739 (simple_output::space_or_newline) [DEBUGGING]: Removed.
2740 * src/devices/grohtml/post-html.cc (html_printer::do_links,
2741 html_printer::html_printer): Remove `DEBUGGING' conditionals.
2743 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2745 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2746 is_inline_image): Removed.
2747 (html_begin_suppress, html_end_suppress): Don't take a parameter.
2748 (graphic_start, graphic_end): Removed.
2749 * src/include/htmlindicate.h: Updated.
2750 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2751 (macroset_template): New global variable.
2752 (makeFileName): Use `macroset_template'.
2753 (write_end_image): Don't take a parameter.
2755 (write_start_image: Don't emit newline.
2756 (char_buffer::write_upto_newline): Updated.
2757 (char_buffer::skip_to_newline): Renamed to ...
2758 (char_buffer::skip_until_newline): This.
2760 (char_buffer::write_file_troff, char_buffer::write_file_html):
2762 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2763 (removeAllPages): Remove `DEBUGGING' conditionals.
2764 (addRegDef, dump_args): New functions.
2765 (char_buffer::do_html, char_buffer::do_image): Handle
2766 `www-image-template' command line variable.
2767 Add more debugging code.
2768 (addps4html): Removed.
2769 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2771 * src/preproc/eqn/main.cc: Include `ctype.h'.
2772 (suppress_html): Removed.
2774 (inline_equation): Use `html_begin_suppress' and
2775 `html_end_suppress'.
2776 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2777 (troff_output::start_picture, troff_output::finish_picture):
2779 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2780 (process_input_file): Updated.
2782 * src/roff/troff/div.cc (page_number): Set page number only if the
2783 `ps4html' register isn't defined.
2784 * src/roff/troff/input.cc (image_no): New external variable.
2785 (do_suppress): Use it.
2786 * src/roff/troff/node.h (suppress_node::image_id): New member.
2787 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2788 (suppress_node::suppress_node): Initialize `image_id' member.
2789 (suppress_node::same): Handle `image_id' also.
2790 (suppress_node::copy): Updated.
2791 (last_image_id): New global variable.
2792 (suppress_node::tprint): Use it.
2794 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2796 * tmac/pspic.mac (PSPIC): Fix html support.
2797 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2798 * tmac/www.tmac (www-image-template): Set up.
2799 (HTMLINDEX): Renamed to...
2801 (BODYCOLOR): Renamed to...
2803 (BACKGROUND): Renamed to...
2805 (URL): Change order of parameters for consistency.
2806 (MAILTO): Renamed to...
2808 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2809 (IMG, PIMG, MPIMG): This.
2810 (HTML-H-BEGIN, HTML-H-END): Renamed to...
2812 (LINKS): Renamed to...
2814 (LINE): Renamed to...
2816 (NO-AUTO-RULE): Renamed to...
2818 (HTML-TL): Renamed to...
2820 (UL-BEGIN, UL-END): Renamed to...
2822 (DROPCAP): Renamed to...
2824 (TS, TE, EQ, EN): Provide default definitions.
2825 (www-make-unique-name): Updated.
2826 (HTML-IMAGE-INLINE): Fix typo.
2827 * tmac/groff_www.man: Updated.
2829 * doc/Makefile (homepage.html): Add option -r to grohtml.
2830 Use shortened image name.
2831 * doc/groff.texinfo: Updated info on grohtml strings and macros.
2832 * doc/homepage.ms: Updated and extended.
2834 2002-02-14 Werner LEMBERG <wl@gnu.org>
2836 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2838 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2839 SGR_BACK_DEFAULT_COLOR): Replaced with ...
2840 (tty_printer::put_color): Use it.
2841 (ttr_printer::end_page): Simplify.
2843 2002-02-13 Werner LEMBERG <wl@gnu.org>
2845 * tmac/groff_tmac.man: Moved to...
2846 * man/groff_tmac.man: This place.
2847 * tmac/Makefile.sub, man/Makefile.sub: Updated.
2849 2002-02-12 Werner LEMBERG <wl@gnu.org>
2851 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2852 $(COMPILE.c) to not include groff's assert.h.
2854 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2856 * NEWS, src/drivers/grotty/grotty.man: Document it.
2858 2002-02-11 Werner LEMBERG <wl@gnu.org>
2860 * src/libs/snprintf/snprintf.c: Updated to latest version
2863 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
2864 test whether there is `.]' also.
2865 Don't check for spaces after `.['.
2866 * src/roff/grog/grog.sh: Do the same.
2868 2002-02-10 Werner LEMBERG <wl@gnu.org>
2872 * src/libs/libgroff/illegal.cc: Renamed to ...
2873 * src/libs/libgroff/invalid.cc: This.
2874 (illegal_char_table): Renamed to ...
2875 (invalid_char_table): This.
2876 * src/libs/libgroff/Makefile.sub: Updated.
2877 * win32-diffs: Updated.
2879 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2880 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2881 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2882 font::load), src/preproc/eqn/main.cc (read_line, main),
2883 src/preproc/eqn/lex.cc (file_input::read_line),
2884 src/preproc/pic/lex.cc (file_input::read_line,
2885 simple_file_input::get, simple_file_input::peek),
2886 src/preproc/pic/main.cc (top_input::get, top_input::peek),
2887 src/preproc/pic/pic.man, src/preproc/refer/main.cc
2888 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2889 do_bib), src/preproc/tbl/main.cc (table_input::get),
2890 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2891 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2892 do_zero_width, read_request, encode_char, ps_get_line,
2893 transparent_file, get_char_for_escape_name, transparent_translate,
2894 asciify, input_char_description, read_string, set_string),
2895 src/roff/troff/env.cc (environment::add_html_tag),
2896 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2898 * src/include/lib.h: Updated.
2900 * src/preproc/eqn/eqn.cc: Removed.
2904 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2906 2002-02-09 Werner LEMBERG <wl@gnu.org>
2908 * doc/gnu.xpm: New image.
2909 * doc/Makefile (DOCS): Add homepage.ps.
2910 Add rules for converting xpm->png and xpm->eps.
2911 Use `gnu.{xpm,eps}' as image names.
2912 * doc/homepage.ms: Updated.
2914 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
2916 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
2917 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
2918 Remove calls to `B1' and `B2'
2919 (PNG-IMAGE): New macro for inclusion of images in PNG format.
2920 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
2921 auxiliary variables for MARGIN-PNG-IMAGE.
2922 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
2923 auxiliary macros for MARGIN-PNG-IMAGE.
2924 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
2926 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
2927 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
2928 (DROPCAP): New macro to produce dropcap characters.
2929 (www-do-image): Renamed back to...
2930 (HTML-DO-IMAGE): This.
2931 Updated all callers.
2933 * doc/Makefile (gnubw.eps): Updated.
2934 * doc/homepage.ms: Updated.
2936 2002-02-08 Werner LEMBERG <wl@gnu.org>
2938 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
2939 Added `linethick' to table in section `Style Variables'.
2941 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
2943 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
2945 2002-02-07 Werner LEMBERG <wl@gnu.org>
2947 Adding options -C (compatibility mode) and -c (grotty's old output
2950 * src/roff/nroff/nroff.sh: Implement it.
2952 * NEWS, src/roff/nroff/nroff.man: Updated.
2954 * PROBLEMS: Document bison 1.32 bug.
2956 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
2958 * src/roff/troff/node.cc (make_tfont): Define it earlier.
2959 * src/roff/troff/div.h: Add prototype for `end_diversions'.
2960 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
2961 * src/roff/troff/env.h: Add prototype for `title'.
2963 Adding EBCDIC support to grotty.
2965 * src/devices/grotty/tty.cc (CSI): New macro.
2966 (SGR_*, tty_printer::put_color): Use it.
2968 2002-02-06 Werner LEMBERG <wl@gnu.org>
2970 Implementing color support in grotty. The new switch -c activates
2971 the old drawing scheme, disabling color at the same time. The new
2972 switch `-i' selects italic instead of underlining (SGR only).
2974 * src/devices/grotty/tty.cc (putstring): New define instead of
2975 `fputs'. Updated all callers.
2976 (old_drawing_scheme): New global variable.
2977 (COLOR_CHANGE): New enum value.
2978 (SGR_*): New defines containing color handling escape sequences.
2979 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
2980 (glyph): New members `back_color_idx' and `fore_color_idx'.
2981 (glyph::order): Add COLOR_CHANGE.
2982 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
2983 `is_underline', `is_bold', `cu_flag', `tty_colors'.
2984 New methods `make_underline', `make_bold', `color_to_idx',
2985 `change_color', `put_color'.
2986 (cu_flag): Moved into `tty_printer' class.
2987 (tty_printer::tty_printer): Initialize colors.
2988 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
2989 tty_printer::draw, tty_printer::end_page): Handle colors also.
2990 (main): Add options `-c' and `-i'.
2992 * NEWS, src/devices/grotty/grotty.man: Updated.
2994 * src/include/errarg.h (errarg): Add support for `unsigned int'.
2995 * src/libs/libgroff/errarg.c: Implement it.
2997 * src/include/printer.h (printer): Add `change_color' method
2998 (currently used by grotty only).
2999 * src/libs/libdriver/printer.cc: Implement it.
3000 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
3001 call to `pr->change_color'.
3003 * src/roff/troff/node.cc (troff_output_file::fill_color,
3004 troff_output_file::glyph_color): Call `do_motion'.
3006 * tmac/tty.tmac: Add color definitions.
3008 * src/roff/groff/groff.man: Minor fixes.
3010 2002-02-05 Bernd Warken <bwarken@mayn.de>
3012 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
3013 it. This is a preparation for future changes.
3015 2002-02-05 Werner LEMBERG <wl@gnu.org>
3017 * src/roff/troff/input.cc (process_input_stack): Fix the case
3018 where leading spaces are followed by \f or \s; previously, an
3019 incorrect space width has been used.
3021 * doc/roff.man (quoted_char): Fix argument.
3022 (comment): Define string.
3024 2002-02-04 Larry Kollar <kollar@alltel.net>
3026 * doc/groff.texinfo: More fixes.
3028 2002-02-04 Werner LEMBERG <wl@gnu.org>
3030 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
3031 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
3032 `restore_compatibility' before `output_string' -- the LINE_STRING
3033 register now already contains proper switches from and to
3036 * man/groff_char.man: Add Euro symbol.
3037 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
3038 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
3039 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
3042 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
3044 (.texinfo.html): Add support for texinfo->html.
3046 2002-02-03 Werner LEMBERG <wl@gnu.org>
3048 Added three new requests `ds1', `as1', and `ami'. The former two
3049 are equivalent to `ds' and `as' with the difference that
3050 compatibility mode is saved on entry, switched off during string
3051 expansion, and restored on exit. The latter is the pendant to `dei'
3054 (do_define_string): Use `define_mode' and `calling mode'.
3055 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
3056 end of string, respectively.
3057 (define_string, append_string): Use `calling_mode'.
3058 (define_nocomp_string, append_nocomp_string,
3059 define_string_indirect): New functions.
3060 (init_input_requests): Updated.
3061 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3063 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
3064 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
3065 mm macro package accesses this string register directly.
3066 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
3068 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
3071 2002-02-02 Larry Kollar <kollar@alltel.net>
3073 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
3075 2002-01-31 Werner LEMBERG <wl@gnu.org>
3077 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
3079 2002-01-31 Bernd Warken <bwarken@mayn.de>
3081 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
3082 * man/groff_out.man: Revised and updated.
3084 2002-01-30 Bernd Warken <bwarken@mayn.de>
3086 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
3087 out the unused `{' and `}' commands. Undefined by default.
3088 (IntArray): Make `data' private.
3089 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
3090 new methods instead.
3091 (skip_line_D, skip_to_end_of_line): New functions.
3092 (get_D_fixed_args): Use `skip_line_D'.
3093 Changed to handle dummy odd arguments by ...
3094 (get_D_fixed_args_odd_dummy): This new function.
3095 (get_D_variable_args): Split some code into ...
3096 (get_possibly_integer_args): This new function.
3097 (send_draw): Use more `const'.
3098 (delete_current_env): New function.
3099 (position_to_end_of_args): Use `size_t'.
3101 (send_draw): Updated.
3102 (parse_D_command): Handle `c', `C', and `t' better.
3106 2002-01-29 Werner LEMBERG <wl@gnu.org>
3109 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
3110 @Def...ListEnd which replaces @Def...x. This is necessary to get
3111 proper HTML output -- see the comment in the file for more
3115 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
3117 Fixes to make color changes of 2002-01-21 work with grohtml.
3119 * src/devices/grohtml/post-html.cc (style): Updated.
3120 (html_printer): Remove unused methods.
3121 (html_printer::do_font, html_printer::draw, html_printer::set_char,
3122 html_printer::special): Updated.
3123 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
3124 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
3125 Added some debugging code.
3126 (html_text::start_tag): Updated.
3127 (html_text::do_push): New method.
3128 (html_text::push_para): Call it.
3129 Add method for handling color.
3130 (html_text::do_color): Updated.
3131 (html_text::shutdown): Handle color.
3132 * src/devices/grohtml/html-text.h (tag_definition): New member
3136 2002-01-28 Werner LEMBERG <wl@gnu.org>
3138 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
3140 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
3142 Add two switches -a and -g to control the antialiasing bits for
3143 text and graphics, respectively.
3145 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
3147 * src/devices/grohtml/grohtml.man: Document them.
3148 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
3150 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
3151 (setupAntiAlias): New function.
3152 (createAllPages): Updated.
3153 (scanArguments): Handle `-a' and `-g'.
3154 (main): Call `setupAntiAlias'.
3157 2002-01-27 Werner LEMBERG <wl@gnu.org>
3159 * doc/groff.texinfo (Def*): Call index function after deffn.
3161 * tmac/html.tmac: Call `nroff' request.
3163 2002-01-26 Larry Kollar <kollar@alltel.net>
3165 * tmac/groff_ms.man: Add some omissions.
3167 2002-01-25 Larry Kollar <kollar@alltel.net>
3169 * tmac/groff_ms.man: Typographical improvements.
3171 2002-01-25 Werner LEMBERG <wl@gnu.org>
3173 * doc/groff.texinfo: Updated version and copyright.
3174 * src/devices/grops/grops.man: Updated.
3176 * tmac/groff_tmac.man: Fix `ig' macro.
3178 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
3180 Use `.ne' unconditionally everywhere.
3181 (TS): Only insert some vertical space. Doing a page break is no
3182 longer necessary due to the redefinition of the `ne' request.
3184 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
3185 warning for unknown subcommands but parse and pass them to the
3188 2002-01-24 Werner LEMBERG <wl@gnu.org>
3190 * tmac/groff_www.man, NEWS: Fix typos.
3192 2002-01-21 Werner LEMBERG <wl@gnu.org>
3194 Complete revision of color support:
3196 Adapt programs to the new libdriver/input.cc.
3198 Color spaces are no longer converted to RGB but transferred as-is
3199 in the troff intermediate output format.
3201 Handle default color gracefully. troff now supports a `default'
3202 color (which can't be changed).
3204 grops will now use the proper color space functions if available.
3208 Note that currently grohtml doesn't handle colors properly. This
3211 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
3212 (ui_to_a): New function.
3213 * src/include/lib.h: Updated.
3215 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
3216 (color): Simplified; removed all `double' members and methods.
3217 A new array `components' now holds the color parameters.
3218 (color::is_default, color::get_components): New methods.
3219 (color::operator==, color:operator!=): New.
3220 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
3221 to make access to the `components' array more comprehensible.
3222 * src/libs/libgroff/color.cc: Implement new color support.
3223 (atoh): Small fixes.
3224 (color::read_encoding): Simplified for new troff intermediate color
3226 (default_color): New global variable.
3228 * src/roff/troff/input.cc (default_symbol): New global variable.
3229 (lookup_color): Use it.
3230 (default_black): Removed.
3231 (do_glyph_color, do_fill_color): Simplified.
3232 (define_color): Handle default color.
3234 (do_if_request): Handle default color.
3235 * src/roff/troff/env.cc (environment::environment): Initialize
3236 colors with `default_color'.
3237 * src/roff/troff/node.cc (troff_output_file::put): Add method
3239 (troff_output_file::hex): Removed.
3240 (troff_output_file::fill_color, troff_output_file::glyph_color):
3241 Updated to include/color.h and libdriver/input.cc.
3243 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
3244 fill color properly (identically to the outline color). \D'f...'
3245 doesn't work any more.
3246 All function calls to it updated.
3248 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
3250 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
3253 * src/devices/grops/ps.cc (ps_output::put_color): New method.
3254 (ps_printer::sbuf_color): Make a real member instead of pointer.
3255 (ps_printer::fill_color, ps_printer::output_color): Removed.
3256 (ps_printer::ps_printer): Updated.
3257 (ps_printer::set_char): Ditto.
3258 (ps_printer::set_color): Use various color schemes.
3259 Use `put_color' method.
3260 (ps_printer::flush_sbuf): Don't set color.
3261 (ps_printer::fill_path): Take `environment' as parameter.
3262 Simplify color handling.
3263 (ps_printer::set_line_thickness): Renamed to ...
3264 (ps_printer::set_line_thickness_and_color): This (and updated).
3265 (ps_printer::set_color): Change second parameter from `complete'
3266 to `fill' which better describes what it does.
3267 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
3268 and text in the right order.
3270 Remove branches for `f' and `F'; this is handled by
3272 * src/devices/grops/ps.h: Updated.
3273 * font/devps/prologue (FL): Redefined.
3274 ({F,C}r,k,g: New color functions (with and without filling).
3276 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
3277 * man/groff_diff.man, man/groff.man, man/groff_out.man,
3278 doc/groff.texinfo, NEWS: Updated.
3280 2002-01-20 Bernd Warken <bwarken@mayn.de>
3282 * src/libs/libdriver/input.cc: Completely rewritten. See comments
3283 in this file for what has been changed.
3285 2002-01-19 Werner LEMBERG <wl@gnu.org>
3287 * test-groff: Fix GROFF_FONT_PATH.
3288 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
3289 is read before .TH or .Dd is parsed.
3291 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
3293 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
3294 quadrant boundaries.
3296 2002-01-18 Werner LEMBERG <wl@gnu.org>
3298 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
3301 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3303 * tmac/doc.common: Initialize %I register for the %I macro to
3304 avoid (harmless) warning.
3305 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
3306 when in the SYNOPSIS section.
3308 2002-01-17 Bruno Haible <haible@clisp.cons.org>
3310 * src/preproc/pic/lex.cc (get_token): Fix typo.
3312 2002-01-17 Werner LEMBERG <wl@gnu.org>
3314 * devices/grops/ps.cc: Fix incorrectly applied last patch.
3316 2002-01-17 Larry Kollar <kollar@alltel.net>
3318 * tmac/groff_ms.man: Completely rewritten.
3320 2002-01-16 Werner LEMBERG <wl@gnu.org>
3322 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
3324 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
3326 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
3328 (ps_printer::draw): Ditto.
3330 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
3332 * tmac/groff_mdoc.man: Minor fixes.
3334 2002-01-13 Werner LEMBERG <wl@gnu.org>
3336 * man/groff_out.man: Some fixes.
3338 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
3340 * doc/pic.ms: Fix typos.
3342 2002-01-12 Werner LEMBERG <wl@gnu.org>
3344 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
3346 2002-01-10 Werner LEMBERG <wl@gnu.org>
3348 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
3352 2002-01-09 Bernd Warken <bwarken@mayn.de>
3354 * man/groff_out.man: Revised.
3355 * man/roff.man: Minor fixes.
3356 * src/roff/troff/troff.man: Some reordering.
3358 2002-01-09 Werner LEMBERG <wl@gnu.org>
3360 * tmac/an-old.tmac: Add dummy macros for equation support.
3362 2002-01-07 Werner LEMBERG <wl@gnu.org>
3364 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
3366 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
3368 * tmac/groff_man.man: Small improvements.
3370 2002-01-07 Bernd Warken <bwarken@mayn.de>
3372 * man/groff_diff.man: Revised.
3374 2002-01-06 Werner LEMBERG <wl@gnu.org>
3376 * tmac/www.tmac: Remove extraneous backslash.
3378 2002-01-06 Bernd Warken <bwarken@mayn.de>
3380 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
3382 2002-01-05 Werner LEMBERG <wl@gnu.org>
3384 Integrated groffer, contributed by Bernd Warken.
3386 * contrib/groffer/*: New.
3387 * Makefile.in, NEWS: Updated.
3389 2002-01-04 Werner LEMBERG <wl@gnu.org>
3391 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
3392 registers defined in macro packages.
3393 Revising the ms part.
3395 2002-01-04 Larry Kollar <kollar@alltel.net>
3397 * doc/groff.texinfo: Add documentation for ms macros.
3399 2002-01-02 Werner LEMBERG <wl@gnu.org>
3401 First step in adding PS support for the Euro symbol. `eu' is the
3402 official Euro logo, `Eu' is a font-specific glyph variant.
3404 * font/devps/text.enc: Add `Euro' at position 9.
3405 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
3406 * font/devps/symbolmap: Regenerated.
3410 2002-01-02 Bernd Warken <bwarken@mayn.de>
3412 * man/roff.man: Revised.
3414 2002-01-01 Bernd Warken <bwarken@mayn.de>
3416 * src/roff/groff/groff.man: Completely rewritten.
3418 2001-12-31 Werner LEMBERG <wl@gnu.org>
3420 * doc/Makefile: Updated.
3422 2001-12-30 Werner LEMBERG <wl@gnu.org>
3424 * tmac/www.tmac: Make all names of internal macros/registers/strings
3425 lowercase, and prepend `www-'.
3426 Other minor changes.
3427 * src/roff/troff/troff.man: Add preprocessor string at BOF.
3429 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
3431 Implement option `-b' in grohtml to set the HTML background colour.
3433 * src/devices/grohtml/post-html.cc (default_background): New global
3435 (html_printer::html_printer): Initialize `background' to
3436 `default_background'.
3437 (main): Implement option `-b'.
3439 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
3441 * src/devices/grohtml/grohtml.man: Updated.
3442 * doc/Makefile (.ms.html): Use `-b'.
3443 * tmac/html.tmac: Don't set background color.
3445 Add new grohtml tag `.html-tl'.
3447 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
3449 (title_desc::title_desc): Updated.
3450 (html_printer::troff_tag): Handle `.html-tl'.
3451 (html_printer::write_title): Use `with_h1'.
3452 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
3453 (HTML-TL): New macro.
3455 Add support for unordered lists in HTML.
3457 * tmac/www.tmac (www-level): New auxiliary register.
3458 (www-level1, www-level2, www-level3): New auxiliary strings.
3459 (www-push-level, www-pop-level): New auxiliary macros
3460 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
3464 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
3465 (DEFAULT_VERTICAL_OFFSET): Removed.
3466 (IMAGE_BOARDER_PIXELS): Set to 0.
3467 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
3468 (vertical_offset): Initialize with 0.
3469 (gsPaper): New global variable.
3470 (get_resolution): Scan for and return unsigned int.
3471 (get_papersize): New function to get paper length from devps/DESC.
3472 (determine_vertical_offset): New function.
3473 (createAllPages): Produce gray-level images and use proper page
3475 (createImage): Use `-quiet' option of pnmcrop.
3476 (addZ): Fix passing of `-Z'.
3477 (scanArguments): Fix handling of `-o'.
3478 (main): Call `determine_vertical_offset'.
3479 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
3482 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
3483 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
3484 glyph descenders properly.
3486 * doc/homepage.ms: Include `gnubw.eps'.
3487 * doc/Makefile (gnubw.eps): New rule.
3488 (homepage.html): Depend on `gnubw.eps'.
3490 2001-12-25 Werner LEMBERG <wl@gnu.org>
3492 * src/roff/troff/input.cc (default_black): Fix return value.
3494 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
3496 * tmac/doc-common (Dt): Change output of architecture strings.
3497 Do some syntax cleanup.
3498 * tmac/groff_mdoc.man: Updated.
3500 2001-12-23 Werner LEMBERG <wl@gnu.org>
3502 Adding an `itc' request (input line trap accepting \c).
3504 * src/roff/troff/env.h (environment): New member
3505 `continued_input_trap'.
3506 Make `do_input_trap' a friend function instead of `input_trap'.
3507 * src/roff/troff/env.cc (environment::environment,
3508 environment::copy): Updated.
3509 (environment::newline): Implement it.
3510 (do_input_trap): New function.
3511 (input_trap): Call `do_input_trap'.
3512 (input_trap_continued): New function.
3513 (init_env_requests): Updated.
3514 * src/roff/troff/TODO: Updated.
3516 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
3519 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
3521 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
3523 * tmac/doc-common, tmac/doc-syms: Small updates.
3525 2001-12-22 Colin Watson <cjwatson@debian.org>
3527 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
3529 2001-12-22 Bernd Warken <bwarken@mayn.de>
3531 * MANIFEST: New file.
3533 2001-12-22 Werner LEMBERG <wl@gnu.org>
3535 * src/preproc/grn/grn.man: Updated.
3537 2001-12-22 Solar Designer <solar@openwall.com>
3539 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
3542 2001-12-19 Werner LEMBERG <wl@gnu.org>
3544 Implement a fallback character request `.fchar'.
3546 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
3547 (is_fallback): New inline function.
3548 * src/roff/troff/input.cc (do_define_character): New function.
3549 (define_character): Call `do_define_character'.
3550 (define_fallback_character): New function.
3551 (init_input_requests): Add `fchar'.
3552 (charinfo::charinfo): Updated.
3553 (charinfo::set_macro): New argument to set `fallback' flag.
3554 * src/roff/troff/node.cc (make_glyph_node, make_node,
3555 node::add_char): Check `fallback' flag.
3556 * NEWS, man/groff_diff.man, man/groff_man: Updated.
3558 2001-12-16 Werner LEMBERG <wl@gnu.org>
3560 * groff.texinfo: Document exact search algorithm for glyphs.
3562 2001-12-15 Werner LEMBERG <wl@gnu.org>
3564 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
3565 the left side of $(MANPAGES) rule to make it always non-empty.
3567 2001-12-14 Werner LEMBERG <wl@gnu.org>
3569 * src/roff/troff/input.cc (default_black): Define default color
3570 `black' if not yet defined.
3572 2001-12-13 Werner LEMBERG <wl@gnu.org>
3574 Implement new string-valued register `.fn' to return the current
3575 real (internal) font name.
3577 * env.cc (environment::get_font_name_string): New function.
3578 (init_env_requests): Add `.fn' register.
3579 * env.h (environment): Updated.
3580 * node.cc (font_info): Make `get_font_name' a friend.
3581 (get_font_name): New function.
3584 * man/groff_diff.man, man/groff.man, NEWS: Updated.
3586 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3588 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
3590 2001-12-12 Werner LEMBERG <wl@gnu.org>
3592 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
3594 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
3596 * man/groff_diff.man: Adding documentation for \O.
3598 2001-12-10 Werner LEMBERG <wl@gnu.org>
3600 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
3601 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
3603 2001-12-09 Werner LEMBERG <wl@gnu.org>
3605 * man/roff.man: Revised.
3606 * src/roff/groff/groff.man: Replace man page references with a
3607 pointer to roff.man.
3609 2001-12-09 Bernd Warken <bwarken@mayn.de>
3611 * man/roff.man: Completely rewritten.
3613 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3615 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
3617 2001-12-05 Werner LEMBERG <wl@gnu.org>
3619 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
3621 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
3622 order of initializers.
3625 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
3627 * doc/groff.texinfo: Fix documentation of \O.
3629 * src/devices/grohtml/html-text.cc (html_text::do_indent,
3630 html_text::do_table, html_text::do_emittext, html_text::do_para):
3631 Use `const' for first argument.
3632 (html_text::do_table): Use cast.
3633 * src/devices/grohtml/html-text.h: Updated.
3634 * src/devices/grohtml/output.cc (simple_output::put_string): Add
3635 method for `const string &s'.
3636 * src/devices/grohtml/html.h: Updated.
3637 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
3638 (ANCHOR_TEMPLATE): Modified.
3639 (manufacture_headings): New global variable to handle `-h' option.
3640 (is_subsection): Removed.
3641 (char_buffer::add_string): Add `const' to first argument.
3642 Protect against invalid string argument.
3643 Add method for `const string &s'.
3644 (text_glob): Completely redesigned.
3645 (page): Use `const' for strings and remove string length variable.
3646 (page::add_html): Removed.
3647 (page::add_end_encode): New member function.
3648 (to_unicode): Moved upwards.
3649 (title_desc, header_desc): Updated.
3650 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
3652 (html_printer::is_bold, html_printer::make_bold): New member
3654 (html_printer::end_of_line): Updated.
3655 (generate_img_src, html_printer::do_auto_image,
3656 html_printer::do_title, html_printer::write_header,
3657 html_printer::determine_header_level, html_printer::do_heading,
3658 html_printer::do_linelength, html_printer::do_pageoffset,
3659 html_printer::do_indentation, html_printer::do_tempindent,
3660 html_printer::do_indentedparagraph, html_printer::do_break,
3661 html_printer::flush_sbuf, get_html_translation,
3662 html_printer::begin_page, html_printer::special): Rewritten to get
3663 rid of static string length limit.
3664 (html_printer::troff_tag): Added `.no-auto-rule'.
3665 (html_printer::flush_globs): Small fix.
3666 (html_printer::determine_space): Don't compute `space_width'.
3667 (html_printer::translate_to_html): Renamed to ...
3668 (html_printer::emit_html): This (with updates).
3669 (html_printer::write_header): Implement `-h' option.
3670 (html_printer::draw): Remove commented-out code. Handle `F'
3672 (html_printer::add_char_to_sbuf): Removed.
3673 (html_printer::add_to_sbuf): Rewritten.
3674 (html_printer::sbuf_continuation): Fixed.
3675 (html_printer::seen_backwards_escape, reverse,
3676 html_printer::remove_last_char_from_sbuf): Removed.
3677 (char_translate_to_html, str_translate_to_html): Removed.
3678 (html_printer::overstrike): New function member.
3679 (html_printer::set_char): Use it.
3680 (html_printer::do_body): New function member.
3681 (html_printer::~html_printer): Use it.
3682 (main): Handle `-h' option.
3684 * src/devices/grohtml/grohtml.man: Document -h switch.
3686 * src/preproc/html/pre-html.cc: Include searchpath.h
3687 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
3688 (get_resolution): New function.
3689 (checkImageDir): Use `0777' permissions in mkdir()
3690 (write_start_image): Rewritten to use `\O[5...]'.
3691 (createImage, generateImages): Updated.
3692 (main): Handle `F' and `h' options.
3693 Use `get_resolution'.
3695 * src/roff/troff/input.cc (begin, end, image): Removed.
3696 (do_suppress): Take parameter.
3697 Handle modified syntax of `\O'.
3698 (token::next): Updated.
3699 (init_markup_requests): Removed.
3702 * src/roff/troff/div.h: Add declaration for begin_page().
3704 * tmac/color-html.tmac: Removed. Contents moved to...
3705 * tmac/html.tmac: Here. Set background color.
3706 * tmac/color.tmac: Removed. Contents moved to...
3707 * tmac/ps.tmac: Here.
3708 * tmac/www.tmac: Remove the title command when generating images
3710 (NO_AUTO_RULE): New macro.
3711 (HTML_DO_IMAGE): Use revised `\O' escapes.
3712 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3714 2001-12-02 Werner LEMBERG <wl@gnu.org>
3716 * tmac/groff_mdoc.man: Fix typo.
3718 2001-12-01 Colin Watson <cjwatson@debian.org>
3720 * man/roff.man: Fix typo.
3722 2001-11-29 Werner LEMBERG <wl@gnu.org>
3724 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3727 * src/roff/troff/input.cc (read_draw_node): Emit error message if
3728 more than one argument to \D'f ...'.
3730 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3732 2001-11-28 Werner LEMBERG <wl@gnu.org>
3734 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3737 * tmac/groff_man.man: Minor cosmetic fix.
3739 2001-11-27 Werner LEMBERG <wl@gnu.org>
3741 * src/roff/groff/groff.man, tmac/groff_tmac.man,
3742 tmac/groff_www.man: s/mwww/www/.
3744 2001-11-26 Werner LEMBERG <wl@gnu.org>
3746 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3747 * configure: Regenerated.
3748 * win32-diffs: Updated.
3750 * tmac/groff_mwww.tmac: Renamed to ...
3751 * tmac/groff_www.tmac: This.
3752 * tmac/mwww.tmac: Removed.
3753 * NEWS, tmac/Makefile.sub: Updated.
3755 2001-11-21 Werner LEMBERG <wl@gnu.org>
3757 * doc/groff.texinfo: Improve documentation of the `\v' escape.
3758 Fix explanation of `\D' and `rt'.
3760 2001-11-20 Werner LEMBERG <wl@gnu.org>
3762 * tmac/an-old.tmac (an-header): Set header length equal to page
3764 * doc/groff.texinfo: Improve documentation of `ne' request. Other
3768 2001-11-19 Werner LEMBERG <wl@gnu.org>
3770 * NEWS, man/Makefile.sub: Updated.
3772 2001-11-19 Bernd Warken <bwarken@mayn.de>
3774 * man/ditroff.man: New file.
3776 2001-11-17 Werner LEMBERG <wl@gnu.org>
3778 * man/groff_differences.man: Renamed to ...
3779 * man/groff_diff.man: This. Updated.
3780 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3782 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3783 * src/preproc/html/pushback.cc: This. Updated.
3784 * src/preproc/html/pushbackbuffer.h: Renamed to ...
3785 * src/preproc/html/pushback.h: This.
3786 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3789 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3790 * src/libs/libgroff/htmlhint.cc: This.
3791 * src/libs/libgroff/Makefile.sub: Updated.
3793 * tmac/an-old.tmac (an-end): Fix page length.
3795 2001-11-16 Werner LEMBERG <wl@gnu.org>
3797 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3798 * man/Makefile.sub: Include groff_differences.man.
3799 * VERSION: Set to 1.18.
3800 * REVISION: Set to 0.
3802 2001-11-16 Bernd Warken <bwarken@mayn.de>
3804 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3805 the second dot (or ending macro name) to end a macro.
3806 * doc/groff.texinfo: Doc fix.
3808 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
3810 * tmac/doc-common (doc-header): Handle very long document titles
3813 2001-11-16 Werner LEMBERG <wl@gnu.org>
3815 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3817 2001-11-15 Werner LEMBERG <wl@gnu.org>
3819 * src/roff/troff/troff.man: Revised and split into troff.man and...
3820 * man/groff_differences.man: New file.
3823 2001-11-13 Werner LEMBERG <wl@gnu.org>
3825 * tmac/an-old.tmac (TS, TE): New macros for table support.
3827 2001-11-12 Werner LEMBERG <wl@gnu.org>
3829 * src/include/lib.h: Provide a fix for emx to not include
3832 2001-10-27 Werner LEMBERG <wl@gnu.org>
3834 * src/roff/troff/input.cc (substring_macro): Fix computation of
3837 2001-10-20 Werner LEMBERG <wl@gnu.org>
3839 Undo change from 2001-08-28.
3841 * src/roff/troff/input.cc (have_input): New global variable.
3842 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3843 in compatibility mode.
3844 (process_input_stack): Use it.
3846 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
3848 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3849 being handled as end-of-sentence characters,
3851 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
3853 * src/roff/troff/input.cc (file_iterator): New members
3854 `suppress_newline_flag' and `seen_escape'.
3855 (file_iterator::next_file): Updated.
3856 (file_iterator::fill): Use it.
3857 (string_iterator): New member `suppress_newline_flag'.
3858 (string_iterator::fill): Set it.
3859 (get_color_element): Use MAX_COLOR_VAL.
3860 * src/roff/troff/env.cc (environment): Remove `need_eol'.
3861 (no_fill): Don't set `env->ignore_next_eol'.
3862 (environment::newline): Handle `eol' tag properly.
3864 (environment::add_html_tag): Set `env->ignore_next_eol'.
3866 * src/roff/troff/env.h (environment): Updated.
3868 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3870 (html_printer::outstanding_eol): New member function.
3871 (html_printer::do_title): Use new functions.
3872 (html_printer::troff_tag): Test `id_eol_ce'.
3874 2001-10-10 Werner LEMBERG <wl@gnu.org>
3876 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3877 files work with -C also.
3879 2001-10-05 Werner LEMBERG <wl@gnu.org>
3881 * doc/pic.ms: Minor fix.
3882 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3883 as a valid command line switch.
3884 * src/devices/grohtml/post-html.cc (main): Ditto.
3886 * src/devices/grohtml/grohtml.man: Updated.
3887 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3889 2001-10-04 Werner LEMBERG <wl@gnu.org>
3891 Implementing color support in troff, pic, grops, and grohtml. These
3892 changes are based on a major patch provided by Gaius Mulley
3895 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3896 definitions with both hex values and fractions.
3898 New escapes: \m and \M for drawing and background color,
3899 respectively. This corresponds to the troff output commands `m'
3902 groff and troff accept command line switch `-c' to disable color
3903 output (which is automatically disabled in compatibility mode).
3905 New scaling indicator `f' for fractions (1f = 65536u).
3907 New conditional operator `m' to test for defined colors with `if'
3910 New keywords `color' (or `colour', `colored', `coloured'), `outline'
3911 (or `outlined'), and `shaded' added to pic.
3913 * src/include/color.h: New file.
3914 * src/include/driver.h: Include it.
3915 * src/include/printer.h: Include color.h.
3916 (environment): New members `col' and `fill'.
3917 (printer): Remove `adjust_arc_center' member function.
3918 * src/include/Makefile.sub: Updated.
3920 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
3922 Handle `m' and `DF' troff commands.
3923 * src/libs/libgroff/color.cc: New file.
3924 * src/libs/libgroff/Makefile.sub: Updated.
3926 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
3928 (createImage): Fix computation of `y2'.
3930 (buffer::write_file_html): Remove calls to `stop'.
3932 * src/preproc/pic/common.h (common_output): New abstract function
3933 members `set_color', `reset_color', `get_last_filled', and
3934 `get_outline_color'.
3935 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
3936 (object_spec): Add members `shaded' and `outlined'.
3937 * src/preproc/pic/output.h (output): `command' is now abstract.
3938 New function members `set_color', `reset_color', `get_last_filled',
3939 and `get_outline_color'.
3940 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
3941 `outline[d]', and `shaded'.
3942 * src/preproc/pic/object.cc (output::command): Removed.
3943 (output::set_location): Moved to output.h.
3944 (graphic_object): Add protected members `outline_color' and
3946 Add member functions `set_outline_color', `get_outline_color', and
3948 (closed_object): Add member function `set_fill_color'.
3949 Add member `color_fill'.
3950 (graphic_object::print_text): Use `out->set_color' and
3952 (box_object::print, ellipse_object::print, circle_object::print,
3953 line_object::print, spline_object::print, arc_object::print): Ditto.
3954 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
3955 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
3956 `SHADED', making them `%left'.
3957 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
3958 * src/preproc/pic/tex.cc (tex_output): New dummy function members
3959 `set_color', `reset_color', `get_last_filled', and
3960 `get_outline_color'.
3961 * src/preproc/pic/troff.cc (simple_output): New abstract function
3962 members `set_color', `reset_color', and `get_last_filled'.
3963 (simple_output::polygon, simple_output::circle,
3964 simple_output::ellipse): Use `get_last_filled'.
3965 (troff_output): New members `last_filled' and `last_outlined'.
3966 New function members `set_color', `reset_color', `get_last_filled',
3967 and `get_outline_color'.
3968 (troff_output::finish_picture): Use `reset_color'.
3969 (troff_output::set_fill): Test `last_filled'.
3970 * src/preproc/pic/pic.man: Updated.
3972 * src/roff/groff/groff.cc (main): Implement `-c' option.
3973 (synopsis, help): Updated.
3974 src/roff/groff/groff.man: Updated.
3976 * src/roff/troff/troff.h: Include color.h.
3977 (warning_type): Add WARN_COLOR.
3978 * src/roff/troff/env.h (environment): New members
3979 `{cur,prev}_{glyph,fill}_color'.
3980 New member functions `get_{prev_,}{glyph,fill}_color'.
3981 * src/roff/troff/env.cc: Initialize and implement them.
3982 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
3983 Replace `NULL' with `0' everywhere for consistency.
3984 (lookup_color, default_black, do_glyph_color, do_fill_color,
3985 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
3986 define_color): New functions.
3987 (token::next): Implement \M and \m escapes.
3988 (do_if_request): Implement `m' operator.
3990 (main): Implement `-c' option.
3991 (init_markup_requests): Add `defcolor' request.
3992 (warning_table): Add `color' warning.
3993 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
3995 * src/roff/troff/node.cc (troff_output_file): New members
3996 `current_{page,glyph}color'. New member functions `put_hex',
3997 `glyph_color', and `fill_color'.
3998 (glyph_color_node::*, fill_color_node::*): Implement it.
3999 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
4000 (parse_term): Add support for `f'.
4001 * src/roff/troff/troff.man: Updated.
4003 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
4005 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
4006 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
4008 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
4009 (tag_definition): Use `void *' for arg1.
4010 (html_text): New member functions `do_color' and `done_color'.
4011 Use `void *' for second parameter of `push_para' member function.
4012 New `push_para' member function with a single parameter.
4013 Use `char *' for parameter of `issue_table_begin' member funtion.
4014 New `issue_color_begin' member function.
4015 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
4017 (html_text::issue_color_begin): New function.
4018 (html_text::issue_table_begin): Use `char *' for parameter.
4019 (html_text::start_tag, html_text::shutdown,
4020 html_text::check_emit_text): Updated.
4021 (html_text::push_para): Use `void *' for second parameter.
4022 Add same function with only one parameter.
4023 (html_text::do_*): Updated.
4024 (html_text::do_color, html_text::done_color): New functions.
4025 * src/devices/grohtml/post-html.cc (style): New member `col'.
4026 Mew member `style' with 6 parameters.
4027 (style::style, style::operator==): Updated.
4028 (html_printer::do_font): Use it.
4029 (html_printer::draw): Add dummy entry for `F'.
4030 (html_printer::set_char): Updated.
4031 * src/devices/grohtml/grohtml.man: Updated.
4033 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
4034 trailing zeroes removed.
4035 (ps_printer): New members `sbuf_color', `fill_color', and
4037 Removed member `fill'.
4038 New member function `set_color'.
4039 (ps_printer::ps_printer, ps_printer::set_char): Updated.
4040 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
4041 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
4043 * tmac/color-html.tmac, tmac/color.tmac: New files.
4044 * tmac/troffrc: Include them.
4045 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
4046 * tmac/Makefile.sub: Updated.
4048 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
4049 man/groff.man: Updated.
4050 * font/devps/prologue.ps: Define FC and CO functions.
4052 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
4054 Fix incorrect cropping of images and incorrect handling of special
4055 characters. Fix handling of file names in \O.
4057 * src/include/geometry.h: New file.
4058 * src/libs/libgroff/geometry.cc: New file.
4059 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
4061 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
4063 (do_suppress): Updated.
4064 * src/roff/troff/node.cc: Include geometry.h.
4065 (troff_output_file::flush_tbuf): Fixed parameters to
4066 `check_output_limits'.
4067 (troff_output_file::check_charinfo): Ditto.
4068 (troff_output_file::determine_line_limits): Add support for `Da'
4071 * src/devices/grohtml/post-html.cc (str_translate_to_html):
4072 Add new parameter `is_special' to decode special characters from
4074 (html_printer::do_title, html_printer::do_heading,
4075 html_printer::do_indentedparagraph,
4076 html_printer::translate_to_html, html_printer::special): Updated.
4078 2001-10-03 Werner LEMBERG <wl@gnu.org>
4080 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
4081 Fix entry for config.h.
4082 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
4083 * tmac/troffrc: Translate nonbreakable space character to `\~'.
4084 * src/preproc/eqn/eqn.man: Document -d command line option.
4086 2001-09-27 Werner LEMBERG <wl@gnu.org>
4088 * man/groff.man: Use
4096 instead of the old code (`.ad .hy' after the table) to suppress
4097 incorrect hyphenation for grohtml output.
4099 2001-09-22 Werner LEMBERG <wl@gnu.org>
4101 * man/groff_font.man, man/groff_out.man: Minor fixes.
4103 2001-09-20 Werner LEMBERG <wl@gnu.org>
4105 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
4106 Arnold Robbins <arnold@skeeve.com>).
4108 2001-09-09 Werner LEMBERG <wl@gnu.org>
4110 * configure: Regenerated with autoconf 2.52.
4112 * doc/groff.texinfo: Complete revision of indices.
4114 2001-09-07 Werner LEMBERG <wl@gnu.org>
4116 * doc/Makefile (clean): Updated to delete all indices.
4118 2001-09-05 Werner LEMBERG <wl@gnu.org>
4120 * src/roff/troff/troff.man: Remove superfluous line.
4122 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
4123 given on the command line (or rather, if only the default warnings
4126 2001-09-03 Werner LEMBERG <wl@gnu.org>
4128 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
4129 use .ne for TTY devices.
4131 2001-08-31 Werner LEMBERG <wl@gnu.org>
4133 * src/roff/troff/token.h, src/roff/troff/input.cc:
4134 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
4136 2001-08-28 Werner LEMBERG <wl@gnu.org>
4138 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
4139 * src/roff/troff/input.cc (token::next): Return
4140 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
4142 (token::description): Updated.
4143 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
4144 (token::add_to_node_list, token::process): Ignore
4145 TOKEN_TRANSPARENT_ESCAPE.
4147 2001-08-27 Werner LEMBERG <wl@gnu.org>
4149 * tmac/an-old.tmac: Fix `S' string.
4151 2001-08-26 Werner LEMBERG <wl@gnu.org>
4153 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
4155 2001-08-25 Werner LEMBERG <wl@gnu.org>
4157 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
4159 Many other minor fixes.
4161 * configure.ac: Add message at end to inform how to compile
4163 * configure: Regenerated.
4165 2001-08-24 Werner LEMBERG <wl@gnu.org>
4167 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
4168 Updated to latest version of libc.
4170 2001-08-23 Werner LEMBERG <wl@gnu.org>
4172 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
4173 Autoconf 2.50 and newer can handle this.
4174 * configure: Regenerated.
4176 2001-08-21 Werner LEMBERG <wl@gnu.org>
4178 * doc/pic.ms: Fix typo.
4179 * src/preproc/tbl/tbl.man: Document case of global options.
4181 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
4183 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
4184 handling of `CR' font.
4186 2001-08-20 Werner LEMBERG <wl@gnu.org>
4188 Use a config.h file.
4190 * src/include/lib.h: Include config.h.
4191 * All C files: Ditto (if necessary).
4192 * All C++ source and header files: Include lib.h first (if
4195 * src/include/config.hin: New file (autogenerated by autoheader).
4196 * stamp-h.in: New file.
4197 * configure.ac: Updated.
4198 * aclocal.m4: Add third parameters to AC_DEFINE macros.
4199 (GROFF_ARRAY_DELETE): Simplified.
4200 * Makefile.sub (DISTCLEANFILES): Updated.
4201 Added targets for remaking config.status, config.hin, config.h,
4202 stamp-h.in, and stamp-h.
4203 * configure: Regenerated.
4205 2001-08-19 Werner LEMBERG <wl@gnu.org>
4209 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
4211 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
4212 (do_sprintf): Use snprintf().
4214 2001-08-18 Werner LEMBERG <wl@gnu.org>
4216 * src/libs/snprintf/*: Added an snprintf module written by Mark
4218 * src/libs/libgroff/Makefile.sub: Updated.
4219 * configure.ac: Add test for snprintf().
4220 * Makefile.in: Updated.
4221 * configure: Regenerated.
4223 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
4226 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
4228 * tmac/doc.tmac (Ex): New implementation.
4229 * tmac/doc-common, tmac/groff_tmac.man: Updated.
4231 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
4233 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
4235 * tmac/groff_tmac.man: Updated.
4237 2001-08-13 Werner LEMBERG <wl@gnu.org>
4239 * src/preproc/tbl/tbl.man: Minor documentation update.
4241 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
4243 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
4244 * configure.ac: Add declaration test for gettimeofday().
4245 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
4246 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
4247 * configure: Regenerated.
4249 2001-08-11 Werner LEMBERG <wl@gnu.org>
4251 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
4252 * configure.ac: Add declaration test for strcasecmp().
4253 * Makefile.in: Updated.
4254 * configure: Regenerated.
4255 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
4256 this is necessary because groff's mkstemp.cc is C++.
4257 Add declaration conditionally for strcasecmp().
4259 2001-08-10 Werner LEMBERG <wl@gnu.org>
4261 Integrated pic2graph, contributed by Eric S. Raymond.
4263 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
4265 * Makefile.in, NEWS: Updated.
4267 * src/preproc/tbl/tbl.man: Revised.
4269 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
4271 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
4273 2001-08-09 Werner LEMBERG <wl@gnu.org>
4275 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
4278 2001-08-08 Paul Eggert <eggert@twinsun.com>
4280 * Makefile.sub (configure): Depend on configure.ac, not
4282 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
4284 2001-08-07 Werner LEMBERG <wl@gnu.org>
4286 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
4289 2001-08-06 Werner LEMBERG <wl@gnu.org>
4291 * src/roff/troff/troff.man: Improve documentation of -E option.
4293 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4295 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
4298 2001-07-27 Werner LEMBERG <wl@gnu.org>
4300 * src/preproc/refer/refer.cc: Undo last change.
4301 * src/devices/grohtml/post-html.cc: Ditto.
4303 2001-07-26 Werner LEMBERG <wl@gnu.org>
4305 * src/preproc/refer/refer.cc: Include `lib.h'.
4306 * src/devices/grohtml/post-html.cc: Ditto.
4308 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
4310 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
4311 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
4312 * Makefile.in: Comment updated.
4313 * configure: Regenerated.
4315 2001-07-25 Werner LEMBERG <wl@gnu.org>
4317 * src/preproc/pic/pic.cc: Removed.
4318 * src/preproc/pic/pic_tab.h: Removed.
4319 * src/preproc/refer/label.cc: Removed.
4321 * doc/Makefile (.ms.html): Don't use a file name extension in
4322 argument to grohtml's -I option.
4323 * Makefile.in (dist): Remove CVS directories.
4324 Call `distfiles' target.
4326 * src/devices/grohtml/grohtml.man: Add information about valid
4327 versions of pnmtopng.
4328 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
4329 name instead of number.
4331 2001-07-24 Werner LEMBERG <wl@gnu.org>
4333 * doc/groff.texinfo: Minor fixes.
4335 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
4337 * doc/Makefile (.ms.html): Put image files into a subdirectory.
4340 2001-07-20 Werner LEMBERG <wl@gnu.org>
4342 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
4343 * src/libs/libgroff/mkstemp.cc: New file.
4344 * src/libs/libgroff/mksdir.cc: New file.
4345 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
4346 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
4347 * src/libs/libgroff/Makefile.sub: Updated.
4348 * src/include/lib.h: Add mksdir() prototype.
4349 * src/include/posix.h: Define S_IXUSR if not yet defined.
4351 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
4352 (createAllPages): Use mksdir() instead of current code.
4353 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
4354 (main): [!HAVE_MKSTEMP]: Removed.
4356 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
4357 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
4359 * configure.ac: Add tests for stdint.h, sys/time.h, and
4361 Call new GROFF_xxx macros.
4362 * configure: Regenerated.
4363 * Makefile.in: Comments updated.
4365 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
4367 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
4368 instead of current code.
4369 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
4370 * src/roff/groff/groff.cc (possible_command::insert_args): New
4372 (main): Use it for predriver handling instead of insert_arg().
4374 2001-07-19 Werner LEMBERG <wl@gnu.org>
4376 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
4379 * src/include/posix.h: Define S_IWUSR if not yet defined.
4381 2001-07-18 Werner LEMBERG <wl@gnu.org>
4385 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
4387 * tmac/groff_mdoc.man: Document new -width and -column syntax.
4388 Some other minor fixes.
4389 * tmac/an-old.tmac: Add `AT' and `UC' macros.
4391 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
4393 Replace call to `troff' with `groff -Z' to make it aware of
4396 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
4397 (troff_command, command_prefix): Removed.
4398 (alterDeviceTo): Use groff.
4399 (addZ): New function.
4400 (char_buffer::do_html): Use it.
4401 (scanArguments): Use TROFF_COMMAND.
4402 (findPrefix): Removed.
4404 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
4406 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
4408 * doc/pic.ms: Documentation fixes.
4410 2001-07-17 Werner LEMBERG <wl@gnu.org>
4412 Replace atexit() with global destructor.
4414 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
4415 (xtmpfile_list_init): New global structure to deallocate
4416 xtmpfile_list on exit. Its destructor inherits most code from
4418 (remove_tmp_files): Deleted.
4419 (add_tmp_file): Simplified.
4421 2001-07-16 Werner LEMBERG <wl@gnu.org>
4423 Replace strdup() with strsave().
4425 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
4426 (set_papersize): Use strsave() and a_delete.
4427 (main): Use strsave().
4428 * src/preproc/html/pre-html.cc (make_message, createAllPages,
4429 removeAllPages): Use strsave() and a_delete.
4431 * configure.ac: Remove test for strdup.
4432 * Makefile.in: Comment updated.
4433 * configure: Regenerated.
4435 2001-07-15 Werner LEMBERG <wl@gnu.org>
4437 * win32-diffs: Updated.
4439 2001-07-14 Werner LEMBERG <wl@gnu.org>
4441 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
4442 removing the old one.
4443 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
4445 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4447 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
4449 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
4451 Merge -xwidth into -width. Add -xwidth functionality to -column
4454 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
4456 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
4457 string immediately following a leading dot starts with a valid mdoc
4459 Add similar code to the -column branch.
4460 (doc-Bl-usage): Updated.
4461 * groff_mdoc.man: s/-xwidth/-width/.
4463 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
4465 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
4466 running into centered or non-formatted text.
4468 2001-07-11 Werner LEMBERG <wl@gnu.org>
4470 Introduce short and long prefixes to have the selection at run-time
4471 whether there is a 8+3 limit for names of temporary files.
4473 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
4474 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
4475 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
4477 (temp_init): New global structure to initialize above three
4479 (xtmptemplate): Use two parameters for long and short prefix.
4480 Simplify code use above three variables.
4481 (xtmpfile): Use long and short prefixes as parameters.
4482 * src/include/lib.h: Updated.
4484 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
4486 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
4487 (createAllPages, makeTempFiles): Updated.
4489 2001-07-09 Werner LEMBERG <wl@gnu.org>
4491 * REVISION: Increased to 3.
4493 Version 1.17.2 released
4494 =======================
4496 2001-07-07 Werner LEMBERG <wl@gnu.org>
4498 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
4501 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
4503 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
4505 * tmac/groff_mdoc.man: Fix synopsis.
4507 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
4509 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
4510 Restore `doc-Pa-font'.
4512 2001-07-04 Werner LEMBERG <wl@gnu.org>
4514 * src/utils/indxbib/dirnamemax.c: Moved to ...
4515 * src/libs/libgroff/maxfilename.cc: Here.
4516 s/dir_name_max/file_name_max/.
4518 * src/include/lib.h: Add file_name_max.
4519 * src/utils/indxbib/indxbib.cc: Updated.
4520 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
4523 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
4525 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
4527 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
4528 REGION_TEMPLATE): New macros.
4529 (createAllPages, makeTempFiles): Use them.
4530 Include `nonposix.h'.
4531 (html_system): New function.
4532 (createAllPages, createImage): Use it.
4535 * tmac/www.tmac: Fix typos.
4537 2001-07-03 Werner LEMBERG <wl@gnu.org>
4539 * tmac/www.tmac: Disable hyphenation in normal text only if output
4541 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
4542 * tmac/groff_mwww.man, NEWS: Updated.
4544 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
4546 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
4549 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
4551 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
4552 doc-display-ps-stack): Implement font and font size stack for
4555 2001-07-02 Werner LEMBERG <wl@gnu.org>
4557 * REVISION: Increased to 2.
4558 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
4560 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
4561 beginning of a line.
4562 * src/groff/grog/grog.sh: Ditto.
4564 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
4566 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
4569 2001-06-27 Werner LEMBERG <wl@gnu.org>
4571 Fix problems with preprocessor string for `man' program.
4573 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
4574 Updated/added copyright.
4575 Moved Emacs's local variable to identify nroff mode to the end of
4576 the file; add local variable if missing.
4578 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
4580 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
4581 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
4582 * configure: Regenerated.
4584 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
4586 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
4587 * configure: Regenerated.
4589 2001-06-24 Werner LEMBERG <wl@gnu.org>
4591 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
4593 * doc/pic.ms: Fix typos.
4595 Version 1.17.1 released
4596 =======================
4598 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
4600 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
4601 * configure: Updated.
4603 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
4605 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
4607 * src/roff/troff/dic.cc (blank_line): Add html tag.
4609 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
4611 * src/roff/troff/input.cc (do_suppress): Fix typo.
4613 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
4615 Added two new options (-D and -I) to specify image names and a
4616 subdirectory to place the images in.
4618 Change syntax from \\Ox to \\O[x].
4620 * src/devices/grohtml/post-html.cc (main): Add options.
4622 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
4623 Use `NULL' instead of `0' for null string pointers.
4624 (MAX_RETRIES): New macro.
4625 (lengthOfintToStr, intToStr, make_message): New functions.
4626 (makeFileName): Make function static.
4627 Implement -D and -I options.
4628 (checkImageDir): New function.
4629 (write_end_image, write_start_image): Use new syntax of \O.
4630 (createAllPages, removeAllPages): Implement -D and -I options. Use
4632 (createImage): Use make_message().
4633 (addps4html): Add guard for malloc().
4634 (usage, scanArguments): Updated.
4635 (makeTempFiles): Use mkstemp().
4636 (removeTempFiles): Use unlink().
4637 (findPrefix): Add guard for malloc().
4639 * src/roff/troff/input.cc (get_delim_file_name): New function to
4641 (do_suppress): Updated to parse new syntax.
4642 * src/devices/grohtml/grohtml.man: Updated.
4643 * tmac/www.tmac: Updated to new syntax.
4647 2001-06-15 Werner LEMBERG <wl@gnu.org>
4649 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
4651 * src/devices/grohtml/grohtml.man: Minor improvements.
4653 2001-06-14 Werner LEMBERG <wl@gnu.org>
4655 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
4657 2001-06-11 Werner LEMBERG <wl@gnu.org>
4659 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
4660 line to specify preprocessor options -- mandb 2.3.1 only recognizes
4662 * src/preproc/grn/grn.man: Add proper '\" string.
4664 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
4666 * test-groff: Don't use PATH but GROFF_BIN_PATH.
4668 2001-06-08 Werner LEMBERG <wl@gnu.org>
4670 Updated to autoconf 2.50.
4672 * configure.in: Renamed to...
4673 * configure.ac: This.
4674 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
4675 (GROFF_OS390): Updated.
4676 * configure: Regenerated.
4678 2001-05-18 Werner LEMBERG <wl@gnu.org>
4680 * src/roff/troff/env.c, src/roff/troff/env.h,
4681 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
4684 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
4686 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
4688 2001-05-16 Werner LEMBERG <wl@gnu.org>
4690 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
4691 less than or equal zero; set it to 1 then.
4692 * src/roff/troff/node.h (node::node): Initialize `last'.
4694 2001-05-08 Werner LEMBERG <wl@gnu.org>
4696 * tmac/an-old.tmac: Make predefined strings work in compatibility
4698 Add troff version guard.
4699 * tmac/doc.tmac: Simplify version guard.
4701 2001-05-07 Werner LEMBERG <wl@gnu.org>
4703 The .ns and .rs requests are now honoured not only in the top-level
4704 but in all diversions (similar to UNIX troff).
4706 This change is based on a patch from Tadziu Hoffmann
4707 <hoffmann@usm.uni-muenchen.de>.
4709 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4710 (top_level_diversion): Remove `no_space_mode' member.
4711 * src/roff/troff/div.cc (diversion::diversion,
4712 top_level_diversion::top_level_diversion): Updated.
4713 (macro_diversion::output): Reset `no_space_mode'.
4714 (no_space, restore_spacing): Use `curdiv' unconditionally.
4715 (space_request, blank_line): Check `curdiv->no_space_mode'.
4716 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4717 `curdiv' unconditionally.
4718 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4721 2001-05-06 Werner LEMBERG <wl@gnu.org>
4723 Added two new requests `de1' and `am1' which are similar to `de' and
4724 `am' with the difference that compatibility mode is saved on entry,
4725 switched off during macro execution, and restored on exit.
4727 * src/roff/troff/input.h: Added two new special characters
4728 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4729 * src/roff/troff/input.cc (input_iterator): Added two member
4730 functions `save_compatible_flag' and `get_compatible_flag'.
4731 (input_stack): Ditto.
4732 (string_iterator): Ditto. Also add private member
4733 `saved_compatible_flag'.
4734 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4735 (calling_mode): New enumeration.
4736 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
4737 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4738 (define_macro, define_indirect_macro, append_macro, ignore): Use
4740 (define_nocomp_macro, append_nocomp_macro): New functions.
4741 (init_input_requests): Updated.
4742 (do_request): Rename local variable `saved_compatible_flag' to
4743 `old_compatible_flag'.
4744 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4746 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4747 public and trap-invoked macros. As a consequence, the man macros
4748 work in compatibility mode also.
4750 2001-05-06 Solar Designer <solar@openwall.com>
4752 * Makefile.in: Use $(mandir).
4754 2001-05-06 Alexios Zavras <zvr@pobox.com>
4756 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4758 2001-05-05 Werner LEMBERG <wl@gnu.org>
4760 Added `.ns' number register: Returns 1 in no-space mode (if in
4761 top-level diversion), 0 otherwise.
4763 * src/roff/troff/div.cc (no_space_mode_reg): New class.
4764 (init_div_requests): Updated.
4765 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4768 2001-05-04 Werner LEMBERG <wl@gnu.org>
4770 * src/roff/nroff/nroff.man: Improved documentation (especially
4773 2001-05-02 Werner LEMBERG <wl@gnu.org>
4775 Added `brp' request: This is \p as a request.
4777 * src/roff/troff/env.cc (environment::do_break): Add parameter
4779 (do_break_request): New function (was `break_request').
4780 (break_request): Calls `do_break_request'.
4781 (break_spread_request): New; calls `do_break_request'.
4782 (init_env_requests): Updated.
4783 * src/roff/troff/env.h: Updated.
4784 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4786 * REVISION: Increased to 1.
4787 * win32-diffs: Updated.
4789 2001-05-01 Werner LEMBERG <wl@gnu.org>
4791 * tmac/an-old.tmac: Fix minor compatibility mode issue.
4792 * tmac/troffrc-end: Make it really work in compatibility mode.
4794 2001-04-27 Werner LEMBERG <wl@gnu.org>
4796 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4799 2001-04-22 Werner LEMBERG <wl@gnu.org>
4801 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4802 latest versions from glibc CVS archive.
4804 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4805 <c.zeelenberg@hccnet.nl>.
4807 2001-04-21 Werner LEMBERG <wl@gnu.org>
4809 * configure.in: Move check for mkstemp() to...
4810 * aclocal.m4 (GROFF_MKSTEMP): This new function.
4811 * configure: Regenerated.
4813 * src/include/groff-getopt.h: Don't use variable names in
4816 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
4817 * src/devices/grohtml/Makefile.sub,
4818 src/devices/grohtml/post-html.cc: Updated.
4820 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
4822 * configure.in: Add special check for mkstemp().
4823 * src/libs/libgroff/tmpfile.cc: Use it.
4824 * src/utils/indxbib/indxbib.cc: Ditto.
4825 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4826 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4829 2001-04-20 Bruce Lilly <blilly@erols.com>
4831 `Version_string' as C++ object was not visible to linker from C
4833 Add `const' to `Version_string'.
4835 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4836 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4837 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4838 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4839 (scanArguments), src/preproc/refer/refer.cc (main),
4840 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4841 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4842 (main), src/devices/grohtml/post-html.cc (main),
4843 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4844 (main), src/utils/hpftodit/hpftodit.cc (main),
4845 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4846 (main), src/utils/lkbib/lkbib.cc (main),
4847 src/utils/addftinfo/addftinfo.cc (main): Implement it.
4849 * src/roff/groff/pipeline.c: Add _UWIN.
4850 * src/include/nonposix.h: Ditto.
4852 2001-04-20 Werner LEMBERG <wl@gnu.org>
4854 * src/include/lib.h: Use HAVE_STRERROR.
4855 * src/roff/groff/pipeline.c: Ditto.
4856 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4857 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4858 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4859 * win32-diffs: Updated.
4860 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4862 2001-04-19 Werner LEMBERG <wl@gnu.org>
4864 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4865 instead of hardwired `"troff"'.
4866 (char_buffer::read_file): Remove unused variables.
4867 (char_buffer::write_file_troff): Ditto.
4868 (char_buffer::write_file_html): Ditto.
4869 (generateImages): Ditto.
4871 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4873 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4875 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4876 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4877 index_search_item::search1): Ditto.
4878 * src/roff/troff/node.h (width_list): Reorder members.
4879 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4880 (lookup_warning): Ditto.
4881 (prepend_string): Commented out.
4882 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4883 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4884 * src/preproc/tbl/main.cc (process_format): Ditto.
4885 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4887 * src/preproc/pic/pic.cc: Updated.
4888 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4889 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4890 * src/preproc/refer/command.cc (execute_command): Ditto.
4891 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4892 * src/preproc/refer/token.cc (lookup_token): Ditto.
4893 * src/preproc/soelim/soelim.cc: Ditto.
4894 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4895 (isHexDigit): Commented out.
4896 (pushBackBuffer::isString): Remove unused variable.
4897 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4899 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4900 resource_manager::read_resource_arg, read_one_of, parse_extensions):
4902 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4903 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4904 lookup_paper_size): Ditto.
4905 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4906 (text_glob, element_list): Reorder members.
4907 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4909 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4910 return value to `void'.
4911 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
4913 * src/devices/grohtml/html.h (simple_output::check_newline,
4914 simple_output::space_or_newline, simple_output::enable_newlines):
4916 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
4918 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
4919 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
4920 output_ligatures, output_charset, read_map): Ditto.
4921 * src/utils/lookbib/lookbib.cc (main): Ditto.
4922 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
4923 (do_file): Fix typo (`=' -> `==').
4924 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
4925 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
4927 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
4929 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
4930 Fix usage of GROFF_BIN_PATH.
4931 * src/roff/nroff/nroff.man: Updated.
4933 2001-04-18 Werner LEMBERG <wl@gnu.org>
4935 * NEWS: Fixing typos.
4938 Version 1.17 released
4939 =====================
4941 2001-04-17 Werner LEMBERG <wl@gnu.org>
4943 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
4944 directory, not in $(srcdir).
4946 2001-04-16 Werner LEMBERG <wl@gnu.org>
4948 * doc/groff.texinfo: More info on conditionals.
4950 2001-04-15 Werner LEMBERG <wl@gnu.org>
4952 * doc/groff.texinfo: Added some info about groff internals.
4954 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
4955 about missing special character only if the name is non-null.
4957 2001-04-14 Werner LEMBERG <wl@gnu.org>
4959 Removing the grohtml-old device driver which is now obsolete.
4961 * src/devices/grohtml-old/*: Removed.
4962 * font/devhtml-old/*: Removed.
4963 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
4965 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
4966 * test-groff (PATH): Updated.
4967 * tmac/Makefile.sub (NORMALFILES): Updated.
4968 * tmac/an-old.tmac: Remove special code for html-old device.
4969 Replace `html-or-html-old' register with `an-html'.
4970 * tmac/eqnrc: Updated.
4971 * tmac/html-old.tmac: Removed.
4972 * tmac/troffrc, tmac/troffrc-end: Updated.
4973 * tmac/www.tmac: Remove special code for html-old device.
4974 Replace `html-or-html-old' register with `www-html'.
4976 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
4977 src/libs/libgroff/htmlindicate.cc (graphic_end),
4978 include/htmlindicate.h, src/preproc/grn/*.cc,
4979 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
4980 single argument for consistency with rest of source code.
4982 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
4984 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
4986 * src/roff/troff/troff.man: Fixing typos.
4988 2001-04-13 Werner LEMBERG <wl@gnu.org>
4990 * doc/pic.ms: Fixing many font switches.
4991 * doc/groff.texinfo: Fixes, additions.
4992 * MORE.STUFF: Updated.
4994 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
4996 * src/devices/grohtml/grohtml.man: Updated manual page regarding
4998 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
5000 (removeTempFiles): New function to tidy up temporary files.
5001 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
5002 Many fixes to do with the new inline suppress node and image regions
5004 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
5005 (generate_img_src): New function.
5006 (html_printer::do_auto_image): Utilizes it.
5007 (do_heading, do_title): Include inline images within their contents.
5008 (html_printer::begin_page): Tidied up comments that are issued to
5009 the html output file.
5010 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
5012 (text_glob::is_br): New method used by do_heading.
5013 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
5014 equivalent diversion.
5015 * src/include/html-strings.h: Altered image tags to reflect the
5017 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
5019 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
5020 it is already inside a pic image. Only emit tags if the argument
5021 `-Tps:html' is present.
5022 * src/preproc/tbl/main.cc: Changes to reflect additional
5023 `html_end_suppress' parameter.
5024 * src/roff/troff/env.cc: Only emit eol tag if a node has been
5025 emitted since the last eol tag was written.
5026 * src/roff/troff/env.h: New boolean `emitted_node'.
5027 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
5028 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
5029 * src/roff/troff/node.cc (check_charinfo): New method.
5030 (troff_output_file::determine_line_limits): Alterations to limit
5032 * tmac/www.tmac: Changes to reflect new suppress nodes.
5034 2001-04-12 Bruno Haible <haible@clisp.cons.org>
5036 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
5037 Escape the html_glyph in the buffer.
5038 (str_translate_to_html): Output the unescaped escaped_char.
5039 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
5040 `frame=void', not `frame=none'. Add `border=0'.
5042 2001-04-12 Werner LEMBERG <wl@gnu.org>
5044 * PROBLEMS: Add some words on how to avoid wrapper macros.
5046 2001-04-11 Blake McBride <blake@florida-software.com>
5048 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
5050 2001-04-11 Werner LEMBERG <wl@gnu.org>
5052 * font/devlbp/Makefile.sub (CLEANADD): Set it.
5053 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
5054 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
5055 * Makefile.sub (DISTCLEANFILES): Here.
5057 * libs/libgroff/new.cc: Include `nonposix.h'.
5058 * win32-diffs: Updated.
5060 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
5062 Added skeleton macro for defunct macros.
5064 Updated documentation.
5066 When inside displays, an empty input line warning should be
5067 suppressed. If another macro call is put inside a display,
5068 all subsequent empty lines found in that display caused a
5069 warning to be emitted.
5071 * tmac/doc.tmac (doc-defunct-macro): New macro.
5072 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
5073 (doc-restore-global-vars): Fixed typo.
5074 (doc-empty-line): Check the `doc-display-depth' register to
5075 determine whether we are inside display or not.
5077 * tmac/doc-common: Removed `Or' and `Sf' registers.
5078 Moved obsolete `Ds' macro to doc.tmac.
5080 * tmac/groff_mdoc.man: Bump document date.
5081 Document `.Vt' under ``Variable Types''.
5082 Removed documentation for obsolete `.Or' macro.
5084 2001-04-10 Werner LEMBERG <wl@gnu.org>
5087 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
5089 2001-04-10 Bruno Haible <haible@clisp.cons.org>
5091 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
5092 (usage): Add stream argument. Don't exit.
5093 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
5094 Write --version output to stdout, not stderr.
5095 (usage): Add stream argument. Don't exit.
5096 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
5097 (usage): Add stream argument. Don't exit.
5098 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
5100 (usage): Add stream argument. Don't exit.
5101 (main): Write --help output to stdout, not stderr.
5102 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
5103 (usage): Add stream argument. Don't exit.
5104 * src/devices/grops/ps.cc (main): Accept --help and --version.
5105 (usage): Add stream argument. Don't exit.
5106 * src/devices/grotty/tty.cc (main): Accept --help and --version.
5107 (usage): Add stream argument. Don't exit.
5108 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
5109 (main): Accept --help and --version.
5110 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
5111 (main): Accept --help and --version.
5112 * src/preproc/html/pre-html.cc (usage): Add stream argument.
5113 (scanArguments): Accept --help and --version.
5114 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
5115 (main): Accept --help and --version.
5116 * src/preproc/refer/refer.cc (main): Accept --help and --version.
5117 (usage): Add stream argument. Don't exit.
5118 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
5120 (main): Accept --help and --version.
5121 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
5122 (main): Accept --help and --version.
5123 * src/roff/groff/groff.cc (main): Accept --help and --version.
5124 (synopsis): Add stream argument.
5125 (help): Write --help output to stdout, not stderr.
5126 (usage): Add stream argument. Don't exit.
5127 * src/roff/grog/grog.pl: Accept --help and --version.
5129 * src/roff/grog/grog.sh: Accept --help and --version.
5130 * src/roff/nroff/nroff.sh: Accept --help and --version.
5131 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
5132 (usage): Add stream argument. Don't exit.
5133 (main): Accept --help and --version.
5134 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
5135 (usage): New function with stream argument, doesn't exit.
5136 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
5137 (usage): New function with stream argument, doesn't exit.
5138 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
5139 (usage): Add stream argument. Don't exit.
5140 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
5141 (main): Accept --help and --version.
5142 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
5144 (main): Accept --help and --version.
5145 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
5146 (main): Accept --help and --version.
5147 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
5148 (usage): Add stream argument. Don't exit.
5150 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
5152 Fix indentation in SYNOPSIS.
5154 Updated to include changes of latest BSD mdoc version (basically,
5155 the only change is that `.Fn' and `.Fc' put a final semicolon after
5156 a function declaration in the SYNOPSIS section).
5158 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
5159 (doc-in-synopsis-section): New variable. Updated all related
5161 (doc-indent-synopsis-active): New register.
5162 (Nd, Fn, Fo): Use it.
5163 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
5164 `.Cd' with long argument line produces indented wrapped lines.
5165 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
5166 undesirable line break to be output.
5167 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
5169 (Fn, Fc): Add final `;' to output.
5170 (doc-save-global-vars, doc-restore-global-vars): Updated.
5171 * tmac/doc-common: Remove `Ex' register.
5173 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
5176 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5178 * tmac/doc.tmac (Cd): Simplify code.
5179 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
5181 2001-04-06 Werner LEMBERG <wl@gnu.org>
5183 Implement continuous underlining for nroff mode. To do that, a new
5184 request in the ditroff language has been added: `x u N' (N is 0
5187 \X and \Y are now transparent to end-of-sentence recognition.
5189 * src/include/printer.h (printer): Add `type' parameter to `special'
5191 * src/libs/libdriver/printer.cc (printer::special): Updated.
5192 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
5194 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
5195 specials of type `p'.
5196 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
5197 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
5198 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
5199 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
5200 (glyph::order): New method.
5201 (tty_printer::add_char): Use it.
5202 (tty_printer::special): New method.
5203 (tty_printer::end_page): Implement it.
5205 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
5206 * src/roff/troff/node.cc (special_node::special_node): Add parameter
5207 to set `no_init_string'.
5208 (special_node::tprint_start): Use it.
5209 (special_node::same, special_node::copy): Updated.
5210 (special_node::ends_sentence): New method.
5211 (troff_output_file::start_special): Add parameter to include
5212 inititialization of special conditionally.
5214 * src/roff/troff/env.h (environment): New member `underline_spaces'.
5215 * src/roff/troff/env.cc (do_underline_special): New function.
5216 (environment::set_font): Use it.
5217 (do_underline): Use it. This was `underline()'.
5218 (underline): Call `do_underline()'.
5219 (continuous_underline): New function which calls `do_underline()'.
5220 (environment::newline): Use `do_underline_special()'.
5221 (init_env_requests): Updated.
5223 * NEWS, man/troff_out.man: Updated.
5225 2001-04-06 Bruno Haible <haible@clisp.cons.org>
5227 * font/devutf8/R.proto: Fix code of 'shc'.
5229 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5231 Many fixes. Diag lists can now be nested also; additionally,
5232 `-compact' and `-offset' are supported.
5234 * tmac/doc.tmac (doc-have-indent): Replaced with ...
5235 (doc-list-have-indent-stackXXX): A new register stack.
5236 (doc-have-diag-list): Removed.
5237 (Bl): Use `doc-list-have-indent-stackXXX'.
5239 (doc-diag-list): Use `doc-compact-list-stackXXX'.
5240 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
5241 (doc-set-vertical-and-indent): Ditto.
5242 (doc-next-list-depth): Removed.
5243 (doc-increment-list-stack): Updated.
5244 (doc-decrement-list-stack): Use `doc-list-depth' instead of
5245 `doc-next-list-depth'.
5246 (doc-end-list, doc-end-column-list): Don't use
5247 `doc-increment-list-stack'.
5248 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
5249 (doc-save-global-vars, doc-restore-global-vars): Updated.
5250 * tmac/doc-common: Updated.
5251 * tmac/groff_mdoc.man: Updated.
5254 2001-04-02 Werner LEMBERG <wl@gnu.org>
5256 * src/devices/grotty/grotty.man: Fix grammatical error.
5258 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
5260 Remove .Ld from mdoc package; replace it with special handling of
5263 * tmac/doc-common: Remove `Ld' register.
5264 Uncomment `doc-volume-ds-*' strings.
5265 Remove `doc-operating-system-default'.
5267 * tmac/doc-syms (Ld): Removed.
5268 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
5272 * tmac/groff_mdoc.man: Many fixes and updates.
5274 2001-03-29 Werner LEMBERG <wl@gnu.org>
5276 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
5277 Bond <tkb@tkb.mpl.com>.
5278 * tmac/www.tmac: Save compatibility mode.
5280 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
5282 * tmac/groff_mdoc.man: Many fixes.
5284 2001-03-28 Werner LEMBERG <wl@gnu.org>
5286 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
5289 2001-03-27 Werner LEMBERG <wl@gnu.org>
5291 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
5292 diversion. This fixes overlong tags.
5294 2001-03-26 Werner LEMBERG <wl@gnu.org>
5296 * doc/groff.texinfo: Fixed and improved documentation of fonts.
5297 * tmac/doc-syms: Fix error messages.
5298 * tmac/an-old.tmac: Remove incorrect double backslashes.
5300 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
5302 * tmac/Makefile.sub: Strip mdoc.local also
5303 * tmac/strip.sed: Fixed.
5305 2001-03-24 Werner LEMBERG <wl@gnu.org>
5307 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
5308 selecting the font size.
5309 * tmac/groff_mdoc.man, NEWS: Document it.
5311 2001-03-23 Werner LEMBERG <wl@gnu.org>
5313 * src/roff/troff/div.cc (save_vertical_space): Add default argument
5315 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
5316 argument to restore previous font family.
5317 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
5319 * doc/groff.texinfo: More fixes and additions (mainly for font
5320 manipulating commands).
5322 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
5323 * tmac/groff_mdoc.man: This. The quick reference has been removed.
5324 * tmac/Makefile.sub, NEWS: Updated.
5326 2001-03-23 Werner LEMBERG <wl@gnu.org>
5328 Replaced mdoc implementation. The new version is `state of the
5329 art', using almost all new features of groff 1.17 -- it won't run
5330 with older versions.
5332 * tmac/doc.tmac: Completely rewritten.
5333 * tmac/doc-common: Ditto.
5334 * tmac/doc-nroff: Ditto.
5335 * tmac/doc-ditroff: Ditto.
5336 * tmac/doc-syms: Ditto.
5337 * tmac/mdoc.local: New file.
5338 * tmac/groff_mdoc.samples.man: Replaced with ...
5339 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
5340 * tmac/strip.sed: Updated.
5341 * tmac/Makefile.sub: Updated.
5344 * tmac/groff_man.man: Add `man.local' to the FILES section.
5346 2001-03-22 Werner LEMBERG <wl@gnu.org>
5348 * doc/groff.texinfo: Added many @noindent.
5349 Replaced @end_Example -> @endExample.
5350 Added info whether registers are r/o.
5351 Many other additions and fixes.
5353 2001-03-21 Werner LEMBERG <wl@gnu.org>
5355 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
5356 in makeinfo of texinfo 4.0) to be used in @Def* macros.
5357 Improved @Def* macros: Now the exact syntax of request, register,
5358 and escapes is shown.
5359 Added macros for parentheses and brackets to be used in @Def*.
5360 Many fixes and improvements of the documentation.
5362 2001-03-20 Werner LEMBERG <wl@gnu.org>
5364 * doc/groff.texinfo: Added new index: `st' (for strings).
5365 Added macros @Defstr(x).
5366 Added macro @Example (adding @group).
5367 Other minor improvements.
5369 2001-03-19 Werner LEMBERG <wl@gnu.org>
5371 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
5372 `rq' for requests. `fn' is no longer used.
5373 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
5376 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
5377 number with name of man page.
5379 2001-03-19 Larry Kollar <kollar@alltel.net>
5381 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
5384 2001-03-19 Werner LEMBERG <wl@gnu.org>
5386 * man/groff_font.man: Document `prepro', `postpro', and `print'.
5387 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
5388 * src/devices/grohtml/grohtml.man: Fixing typos.
5390 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
5392 * tmac/s.tmac (@IP): Pass `.ip' html tag.
5393 * tmac/groff_mwww.man: Remove .LINE macro
5394 * tmac/www.tmac (LINE): Add `.ti'.
5396 * src/devices/grohtml/post-html.cc (html_printer): New member
5398 (html_printer::emit_raw): Use it.
5399 (html_printer::do_linelength): Ditto.
5400 (html_printer::do_pageoffset): Ditto.
5401 (html_printer::do_indentation): Ditto.
5402 (html_printer::do_tempindent): Ditto.
5403 (html_printer::do_break): Ditto.
5404 (html_printer::begin_page): Ditto.
5405 (html_printer::do_indentedparagraph): New function.
5406 (html_printer::troff_tag): Handle `.ip'.
5407 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
5408 Add `<td width=...>' handling.
5409 (html_text::do_table): Add parameter.
5410 (html_text::do_indent): Updated.
5411 * src/devices/groohtml/html-text.h: Updated.
5413 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
5415 Introduced simple html tables to implement indentation.
5417 * src/devices/grohtml/html.h (word, word_list): New structures.
5418 (simple_output): Use it.
5419 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
5420 (html_printer): Improve indentation handling.
5421 (html_printer::emit_raw): Set `in_table' element. Handle
5423 (html_printer::write_header): Move conditional downwards.
5424 Don't allow whitespace in tags.
5425 (html_printer::do_linelength): Handle line length and indentation
5427 (html_printer::do_pageoffset): Handle indentation conditionally.
5428 (html_printer::do_indentation): Ditto.
5429 (html_printer::do_tempindent): New function member.
5430 (html_printer::do_fill): Take care of indentation.
5431 (html_printer::do_flush): Finish table.
5432 (html_printer::do_links): Ditto.
5433 (html_printer::do_break): New function for handling `.br' and `.ti'.
5434 (html_printer::troff_tag): Use it.
5436 (html_printer::flush_globs): Fix.
5437 (html_printer::flush_page): Finish table.
5438 (html_printer::html_printer): Fix error message. Set up
5440 (html_printer::add_to_sbuf): Remove special handling of character
5442 (to_unicode): Remove `stop()'.
5443 (html_printer::write_title): Cleanup.
5444 (html_printer::begin_page): Use `put_string()'. Handle indentation.
5445 (html_printer::~html_printer): Flush text and end the line.
5447 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
5448 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
5450 (html_text::start_tag): Disable newlines.
5451 (html_text::table_is_void): New function.
5452 (html_text::issue_table_begin): Ditto.
5453 (html_text::issue_table_end): Ditto.
5454 (html_text::push_para): Better table handling.
5455 (html_text::do_indent): New function.
5456 (html_text::do_table): Ditto.
5457 (html_text::done_table): Ditto.
5458 (html_text::do_tt): Handle PRE_TAG.
5459 (html_text::is_in_table): New function.
5460 (html_text::check_emit_text): Handle tables.
5461 (html_text::do_emittext): Use `nl()'.
5462 (html_text::do_para): Handle table.
5463 (html_text::remove_def): New function.
5464 * src/devices/grohtml/output.cc (word, word_list): Implement
5466 (simple_output::end_line): Flush last word.
5467 (simple_output::simple_comment): Ditto.
5468 (simple_output::begin_comment): Recoded.
5469 (simple_output::end_comment): Ditto.
5470 (simple_output::comment_arg): Removed.
5471 (simple_output::check_newline): Improve test and flush last word.
5472 (simple_output::space_or_newline): Improved.
5473 (simple_output::write_newline): Replaced with...
5474 (simple_output::nl): This.
5475 (simple_output::put_raw_char): Flush last word.
5476 (simple_output::check_space): Removed.
5477 (simple_output::put_translated_string): Ditto.
5478 (simple_output::put_string): Simplified.
5479 (simple_output::put_number): Updated.
5480 (simple_output::put_float): Ditto.
5481 (simple_output::put_symbol): Removed.
5482 (simple_output::enable_newlines): Add `check_newline()'.
5483 (simple_output::flush_last_word): New function.
5485 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
5486 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
5488 * tmac/s.tmac (@PP, @IP): Add html conditional code.
5489 * tmac/an-old.tmac (TP): Ditto.
5491 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
5493 * mdate.sh: Make it POSIX compliant.
5495 2001-03-09 Werner LEMBERG <wl@gnu.org>
5497 Added the `return' request to end a macro immediately. It simply
5498 pops iterators from the input stack until a macro iterator is found.
5500 * src/roff/troff/input.cc (input_iterator::is_macro,
5501 macro_iterator::is_macro): New member.
5502 (input_return_boundary): New class to signal an immediate return
5504 (input_stack::add_return_boundary, input_stack::is_return_boundary):
5506 (input_stack::clear): Use it.
5507 (input_stack::pop_macro): New function.
5508 (while_request): Use `is_return_boundary()'.
5509 (return_macro_request): New function.
5510 (init_input_requests): Use it.
5512 * src/roff/troff/TODO: Updated.
5513 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5515 2001-03-08 Werner LEMBERG <wl@gnu.org>
5517 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
5520 2001-03-07 Werner LEMBERG <wl@gnu.org>
5522 Make `\B' more rigid.
5524 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
5526 (get_number_rigidly): New function.
5527 * src/roff/troff/input.cc (do_expr_test): Use it.
5528 * src/roff/troff/token.h: Updated.
5530 * src/roff/troff/request.h: Fix typo (init_html_request ->
5531 init_markup_request).
5533 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
5535 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
5536 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
5537 are now `.begin', `.end', `.image'.
5539 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
5540 (html_printer::add_to_sbuf): Changing type of `code' parameter.
5541 Use add_char_to_sbuf().
5542 (to_unicode): New function.
5543 (char_translate_to_html): Changing type of `ch' parameter.
5545 (html_printer::~html_printer): Comment out doctype string.
5546 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
5547 instead of `.html-end'.
5548 (write_start_image): Use `.begin' and `.image' instead of
5549 `.html-begin' and `.html-image'.
5550 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
5551 (html_begin): Renamed to ...
5553 (html_end): Renamed to ...
5555 (html_image): Renamed to ...
5557 (init_html_requests): Renamed to ...
5558 (init_markup_requests): This.
5559 * tmac/www.tmac: Updated.
5561 2001-02-28 Bram <bram@avontuur.org>
5563 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
5566 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
5568 * doc/meref.me: Fixing some typos.
5570 2001-02-16 Werner LEMBERG <wl@gnu.org>
5572 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
5573 method. Return `HYPHEN_MIDDLE' if it was `\:'.
5574 * src/roff/troff/node.h: Updated.
5576 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
5578 * tmac/groff_tmac.man: Fix typo.
5580 2001-02-16 Werner LEMBERG <wl@gnu.org>
5582 Fixing a bug which prevented proper end-of-sentence recognition
5583 between an `unformatted' box and the following text. As a
5584 consequence, vertical line distances are no longer preserved in
5585 boxes after a call to `.unformat' -- because boxes aren't
5586 line-oriented (contrary to diversions), this doesn't make sense
5589 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
5591 (vertical_size_node::set_unformat_flag): New method.
5592 * src/roff/troff/node.hh: Updated.
5593 * src/roff/troff/input.cc (word_space_node::reread,
5594 hmotion_node::reread): Reset `unformat' flag after usage.
5595 (unformat_macro): Append only if `set_unformat_flag()' returns
5597 * src/roff/troff/troff.man: Updated.
5599 2001-02-15 Werner LEMBERG <wl@gnu.org>
5601 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
5602 documentation of `asciify' and `unformat' requests.
5604 2001-02-13 Werner LEMBERG <wl@gnu.org>
5606 Redesigned the `unformat' request. It is no longer connected with
5607 `asciify' but rather uses new `reread()' methods if the `unformat'
5608 flag is set. Additionally, the handling of space characters after
5609 unformatting has been fixed so that they retain their width.
5611 * src/roff/troff/node.h (width_list): New structure to store
5612 original widths of spaces.
5613 (node): Added `unformat' member.
5614 Replaced `num_spaces' variable with `orig_width' list.
5615 * src/roff/troff/node.cc (*node::asciify,
5616 asciify_reverse_node_list): Removed `unformat_only' flag and related
5618 (word_space_node::asciify, word_space_node::word_space_node): Use
5620 (word_space_node::~word_space_node): New destructor.
5621 (word_space_node::copy): Updated to handle `orig_width'.
5622 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
5623 (*node::merge_space): Update `orig_width' list if necessary.
5624 (*node::set_unformat_flag): New methods to set the `unformat' flag.
5625 * src/roff/troff/enc.cc (environment::space_newline): Use
5627 (environment::space): Added method to handle space width and
5628 sentence space width as parameters. Use `width_list'.
5629 (environment::make_tab_node): Updated.
5630 * src/roff/troff/env.h: Updated.
5631 * src/roff/troff/input.cc (word_space_node::reread,
5632 unbreakable_space_node::reread, hmotion_node::reread): New methods
5633 to handle nodes specially if `unformat' flag is set.
5634 (do_asciify_macro): Renamed back to ...
5635 (asciify_macro): This.
5636 (unformat_macro): New implementation to simply set the `unformat'
5639 * MORE.STUFF: Added more info about deroff.
5641 2001-02-08 Werner LEMBERG <wl@gnu.org>
5643 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5644 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
5645 and `add_self()' methods to avoid hyphenation. For example, the
5646 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
5647 soft hyphen after `foo'. Now the hyphen list is correctly
5648 `foo<ignore><ignore>bar'.
5650 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
5652 * tmac/groff_tmac.man: Fix `BIR' macro.
5654 2001-02-04 Werner LEMBERG <wl@gnu.org>
5656 A new escape sequence `\:', inserting a zero-width break point.
5658 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
5659 * src/roff/troff/input.cc (get_copy, token::next, asciify):
5661 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
5663 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
5664 and `asciify()' methods.
5665 * src/roff/troff/node.cc (space_node::space_node): Updated.
5666 (space_node::asciify): Handle `was_escape_colon'.
5667 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5669 Handle `\~' similar to other comparable requests.
5671 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
5673 (token::next): Move creation of an unbreakable_space_node to...
5674 (token::add_to_node_list): Here.
5676 Fix a bug which sometimes prevented hyphenation of words connected
5677 with `\~' or `\ ' (and other escape sequences handled as
5678 TOKEN_NODE). This also fixes a hyphenation problem with boxes
5679 (after a call to the `unformat' request).
5681 * src/roff/troff/env.h (environment::possibly_break_line,
5682 environment::hyphenate_line): Introducing `start_here' parameter.
5683 * src/roff/troff/env.cc (environment::space_newline,
5684 environment::space): Use it.
5685 (environment::possibly_break_line, environment::hyphenate_line):
5687 * src/roff/troff/input.cc (process_input_stack): Use it.
5688 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5689 space_char_hmotion_node, overstrike_node): Add
5690 `get_hyphenation_type()' method.
5691 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
5692 if `unformat_only' is active.
5694 2001-01-30 Werner LEMBERG <wl@gnu.org>
5696 Implemented new read-only number register `.linetabs' which
5697 returns 1 if in line-tabs mode, 0 otherwise.
5699 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5700 * src/roff/troff/env.cc (get_line_tabs): New function.
5701 (init_env_requests): Use it.
5702 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5704 * VERSION, REVISION: Changing to 1.17.0.
5706 2001-01-28 Werner LEMBERG <wl@gnu.org>
5708 Fixed a bug which prevented hyphenation of words which are finished
5711 * src/roff/troff/token.h (token): Add enum type
5712 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5713 * src/roff/troff/input.cc (token::next, token::description,
5714 get_line_arg, token::add_to_node_list, token::process): Use it.
5716 2001-01-27 Werner LEMBERG <wl@gnu.org>
5718 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5719 * src/roff/troff/div.cc (do_divert): Use it.
5721 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5723 2001-01-25 Werner LEMBERG <wl@gnu.org>
5725 Adding the `linetabs' request. If set, tab distances are not
5726 computed relative to the input line but relative to the output line.
5728 * src/roff/troff/env.h (environment): New member `line_tabs'.
5729 * src/roff/troff/env.cc (line_tabs_request): Implement request.
5730 (environment::environment, environment::copy): Updated.
5731 (environment::distance_to_next_tab): Use `line_tabs'.
5732 (init_env_requests): Register request.
5733 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
5736 2001-01-24 Werner LEMBERG <wl@gnu.org>
5738 Introducing a new read-only register `.int' which is set to a
5739 positive value if the last output line is interrupted (i.e., if it
5742 * src/roff/troff/env.cc (init_env_requests): Add it.
5743 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5745 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
5747 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5748 * src/preproc/html/pre-html.cc (findPrefix): New function which
5749 generates the troff executable name via the system prefix.
5750 * src/preproc/eqn/main.cc: Modified warning message.
5752 2001-01-23 Werner LEMBERG <wl@gnu.org>
5754 troff's `box' and `boxa' requests didn't preserve temporary
5757 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5758 `saved_target_text_length' members.
5759 * src/roff/troff/div.cc (do_divert): Use them.
5761 Tabs (but not yet leaders and fields) are now handled correctly by
5764 * node.h (hmotion_node): Add field `was_tab'.
5765 * env.cc (environment::make_tab_node): Set it.
5766 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5768 Added new request `unformat' which will, contrary to `asciify',
5769 preserve font information after unformatting (i.e., only nodes
5770 dealing with horizontal space are converted back to input
5773 * input.cc (asciify_macro): Renamed to ...
5774 (do_asciify_macro): this, having a new parameter `unformat_only'.
5775 (asciify_macro, unformat_macro): New; using do_asciify_macro.
5776 (init_input_requests): Added `unformat'.
5777 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5778 parameter to control asciification process.
5779 * node.h (*_node::asciify): Ditto.
5780 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5782 2001-01-20 Werner LEMBERG <wl@gnu.org>
5784 * doc/groff.texinfo: Minor improvement of `.in' documentation.
5786 2001-01-18 Werner LEMBERG <wl@gnu.org>
5788 * tmac/ps.tmac: Remove call of psold.tmac.
5789 * tmac/psold.tmac: Comment updated.
5790 * tmac/psnew.tmac: Removed since no longer needed.
5791 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5793 * font/devutf8/R.proto: Adding `shc' glyph.
5794 * font/devutf8/NOTES: Updated.
5796 * test-groff: Updated.
5798 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
5800 First cut of the new html device driver. Changes to pre-html and
5801 the new grohtml are too numerous to be documented here.
5803 Stuff related to `html' has been renamed to `html-old' and `html2'
5804 stuff has been renamed to `html' (including directories). The new
5805 html device driver is therefore invoked as `-Thtml'.
5807 Added new `\O' escape to suppress output (needed by html driver).
5809 Added functions and code to pass info about input-level commands
5810 (`.in', `.fl', etc.) to html driver.
5812 Three new functions (.html-begin, .html-end, and .html-image) for
5813 better html handling: `html-begin' will execute the remaining line
5814 if at the outermost nesting level, increasing an internal counter.
5815 `html-end' does the same but decreases the internal counter.
5816 `html_image' puts its arguments into a special node (suppress_node)
5817 to define an image region.
5819 The `output' request has been removed.
5821 * tmac/html-tags.tmac: Removed.
5822 * tmac/arkup.tmac: Updated and renamed to ...
5823 * tmac/www.tmac: New file.
5824 * tmac/markup.tmac Updated and renamed to ...
5825 * tmac/mwww.tmac: New file.
5826 * tmac/Makefile.sub: Updated.
5827 * tmac/an-old.tmac: Updated.
5828 * tmac/eqnrc: Updated.
5829 * tmac/groff_man.man
5830 * tmac/groff_markup.man: Updated and renamed to ...
5831 * tmac/groff_mwww.man: New file.
5832 * tmac/groff_tmac.man: Updated.
5833 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5834 * tmac/html.tmac: Updated and renamed from html2.tmac.
5835 * tmac/pspic.tmac: Updated html support.
5836 * tmac/s.tmac: Added html output support.
5837 * tmac/troffrc, tmac/troffrc-end: Updated.
5839 * Makefile.in, doc/Makefile: Updated.
5840 * doc/groff.texinfo: Added info about new `\O' escape.
5841 * doc/homepage.ms: Use `MAILTO' macro.
5843 * font/devhtml/DESC.proto: Add `C' font.
5844 * font/devhtml/Makefile.sub: Updated.
5845 * font/devhtml/R.proto: Minor fixes.
5846 * font/devhtml-old/Makefile.sub: Updated.
5848 * src/devices/grohtml-old/Makefile.sub: Updated.
5850 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5852 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5853 graphic_start): Add `inline' parameter. Update.
5854 (html_end_suppress, graphic_end): Update.
5856 * src/include/html-strings.h: New file.
5857 * src/include/htmlindicate.h: Comments updated.
5858 * src/include/printer.h: Updated.
5860 * src/preproc/eqn/main.cc (do_file, main): Updated.
5861 * src/preproc/pic/troff.cc (troff_output::start_picture,
5862 troff_output::finish_picture): Updated.
5863 * src/preproc/tbl/main.cc (process_input_file): Updated.
5865 * src/roff/groff/groff.cc (main): Updated.
5866 Pass device arguments to predrivers also.
5867 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5868 * src/roff/troff/env.h (environment): Updated.
5869 New elements `need_eol' and `ignore_next_eol' (for html output).
5870 * src/roff/troff/env.cc (environment::environment): Add initializers
5871 for `need_eol' and `ignore_next_eol'.
5872 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5874 (point_size, fill, no_fill, center, right_justify, line_length,
5875 indent, temporary_indent, break_request, handle_tab): Use
5877 (set_tabs): Use `add_html_tag_tabs()'.
5878 (environment::add_html_tag): Updated.
5879 (environment::do_break): Updated.
5880 * src/roff/troff/div.cc (space_request, flush_output): Use
5881 `environment::add_html_tag()'.
5882 * src/roff/troff/input.cc: Updated.
5883 New variable `html_level' to indicate nested `html-begin' requests.
5884 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5885 (non_interpreted_char_node, token_node, non_interpreted_node): Add
5886 `force_tprint()' method.
5887 (token::next): Handle `\O'.
5888 (do_suppress): Implement it.
5889 (html_begin, html_end, html_image): New functions.
5890 (init_output_requests): Renamed to ...
5891 (init_html_requests): this.
5893 (macro::append_str, macro::append_unsigned, macro::append_int): New
5895 New variable `output_low_mark_miny' to limit minimal value of y.
5896 (reset_output_registers): Use it.
5897 (output_request): Removed.
5898 (get_output_registers): New function.
5899 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5900 (*_node): Added `force_tprint()' if necessary.
5901 (special_node): New elements `tf' and `get_tfont()'.
5902 (suppress_node): New class.
5903 * src/roff/troff/node.cc:
5904 New global variables `image_no' and `suppress_start_page'.
5905 (real_output_file): New method `is_on()'.
5906 (troff_output_file): New method `start_special(tfont)'.
5907 (troff_output_file::really_print_line): Use `tprint' conditionally.
5908 (real_output_file::print_line): Updated.
5909 (real_output_file::on): Updated.
5910 (*_node): Added `force_tprint()'.
5911 (special_node::special_node): Initializer updated.
5912 (special_node::same, special_node::copy, special_node::tprint_start):
5914 (get_reg_int, get_reg_str): New functions.
5915 (suppress_node::*): New methods.
5916 New global variables last_position, last_image_filename;
5917 (min): New inline function.
5918 * src/roff/troff/reg.h, src/roff/troff/request.h,
5919 src/roff/troff/troff.h: Updated.
5921 2001-01-13 Werner LEMBERG <wl@gnu.org>
5923 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
5924 documentation of `asciify' request.
5926 2001-01-12 Werner LEMBERG <wl@gnu.org>
5928 * src/roff/troff/input.cc: Move definition of special characters
5929 like `ESCAPE_TILDE' to ...
5930 * src/roff/troff/input.h: New file.
5931 * src/roff/troff/Makefile.sub (HDRS): Add it.
5933 Extending the .asciify request to `unformat' space characters also.
5935 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
5936 to count input space characters.
5937 Update constructors to take care of it.
5938 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
5939 `ESCAPE_SPACE' instead of normal space.
5940 (word_space_node::asciify): New method.
5941 (unbreakable_space_node::asciify): New method.
5942 (word_space_node::merge_space): New method.
5943 * src/roff/troff/env.cc (environment::space_newline,
5944 environment::space): Add code to initialize `num_spaces' (using the
5945 constructor of `word_space_node').
5946 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5949 2001-01-09 Werner LEMBERG <wl@gnu.org>
5951 * man/groff_char.man: Use table header traps only conditionally.
5953 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
5955 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
5957 2001-01-08 Werner LEMBERG <wl@gnu.org>
5959 Introducing the `box' and `boxa' requests which are similar to
5960 `di' resp. `da' but omitting a partially filled line (which is
5961 restored after ending the diversion).
5963 * src/roff/troff/div.h (diversion): Add elements to save partially
5965 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
5966 partially filled line.
5967 (divert, divert_append): Updated.
5968 (box, box_append): New functions.
5969 (init_div_requests): Use them.
5970 * src/roff/troff/env.h (environment): do_divert() is now a friend.
5971 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5973 * doc/groff.texinfo: Fix documentation of `lf' request.
5975 2000-12-25 Werner LEMBERG <wl@gnu.org>
5977 * src/roff/troff/troff.man, NEWS: Document `writem' request.
5979 2000-12-21 Werner LEMBERG <wl@gnu.org>
5981 Ignore `ss' request if in compatibility mode.
5983 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
5984 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
5985 * src/roff/troff/env.cc (space_size): Use it.
5987 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
5988 `ss' request in nroff mode.
5990 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
5993 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
5995 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5997 2000-12-13 Werner LEMBERG <wl@gnu.org>
5999 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
6000 * src/preproc/eqn/neqn.man: Small fixes and additions.
6002 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
6004 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
6007 * src/preproc/eqn/neqn.man: New file.
6009 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
6012 * tmac/e.tmac: Add `T&' macro.
6013 Fix `indent cannot be negative' warning.
6014 * tmac/s.tmac: Fix `indent cannot be negative' warning.
6016 2000-12-07 Werner LEMBERG <wl@gnu.org>
6018 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
6020 2000-12-06 Werner LEMBERG <wl@gnu.org>
6022 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
6025 * MORE.STUFF: Added info about deroff for djgpp.
6027 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
6028 documentation of -rcR switch.
6030 2000-12-03 Werner LEMBERG <wl@gnu.org>
6032 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
6033 if -rcR=1 (which is now the default in nroff mode), a single, very
6034 long page is created instead of multiple pages: All `ne' and `wh'
6035 requests are put into conditionals; a new macro `an-end' is added to
6036 be called with `em'.
6038 Some other minor cleanups.
6040 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
6042 2000-12-02 Werner LEMBERG <wl@gnu.org>
6044 Fixing a bug which prevented hyphenation in words followed
6045 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
6047 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
6048 Adding possibly_break_line().
6049 * src/roff/troff/env.h (environment): Make possibly_break_line()
6052 Make `\~' usable in .tr request.
6054 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
6055 (token): Add stretchable_space().
6056 * src/roff/troff/input.cc (token::next, token::delimiter,
6057 token::description, process_input_stack, do_translate,
6058 add_to_node_list, token::process): Use it.
6059 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
6060 for adjusting the space.
6061 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
6062 for stretchable space.
6063 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
6064 (make_node): Add code for stretchable space.
6065 * src/roff/troff/env.cc (environment::add_char): Use it.
6066 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
6067 (get_copy, token::next, transparent_translate, asciify): Use it.
6069 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
6070 doc/groff.texinfo: Updated.
6071 * man/groff.man: Small reorderings.
6073 2000-11-23 Werner LEMBERG <wl@gnu.org>
6076 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
6078 * src/roff/troff/input.cc (main): Add `config_macro_path' and
6079 `safer_macro_path' to -M option.
6080 * src/roff/troff/troff.man: Fixes.
6082 2000-11-22 Werner LEMBERG <wl@gnu.org>
6084 Use safer path (except for config files) if -U isn't specified. Add
6085 a special macro path (without home and current directory) for config
6086 files. Add home directory to unsafe path for consistency. Don't
6087 include the home directory in the font path.
6089 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
6091 * src/include/macropath.h: Add `config_macrp_path'.
6092 * src/libs/libgroff/fontfile.cc: Fix font path.
6093 * src/roff/troff/input.cc (process_startup_file): Use
6094 `config_macro_path'.
6095 (main): Select unsafe path if -U is given.
6097 * src/preproc/eqn/main.cc (main): Fixing search path for
6099 * src/preproc/eqn/eqn.man: Updated.
6101 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
6104 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
6105 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
6106 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6107 src/devices/grotty/grotty.man: Updated.
6109 * Makefile.in: Fix comments.
6111 2000-11-17 Werner LEMBERG <wl@gnu.org>
6113 * tmac/safer.tmac: Empty file added (again) for compatibility
6115 * tmac/Makefile.sub: Updated.
6117 2000-11-16 Werner LEMBERG <wl@gnu.org>
6119 * src/devices/grodvi/dvi.cc (main),
6120 src/devices/grohtml2/post-html.cc (main),
6121 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6122 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6123 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6124 (main), src/preproc/html2/pre-html.cc (main),
6125 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6126 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6127 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6128 (main), src/utils/hpftodit/hpftodit.cc (main),
6129 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
6130 (main), src/utils/lookbib/lookbib.cc (main),
6131 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
6132 (main): Use stdout for -v.
6133 * src/roff/groff/groff.cc (run_commands),
6134 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
6135 to make direct printing to stdout possible.
6136 * src/roff/groff/pipeline.h: Updated.
6138 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
6139 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
6140 * src/utils/afmtodit/afmtodit.man: Updated.
6142 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
6143 (version): New function.
6145 * src/utils/addftinfo/addftinfo.man: Updated.
6147 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
6148 Fixing copyright dates.
6150 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
6153 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
6156 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
6158 2000-11-15 Werner LEMBERG <wl@gnu.org>
6160 In all programs, make -v return immediately with exit status 0 to
6161 be compliant with the GNU standard.
6163 * src/devices/grodvi/dvi.cc (main),
6164 src/devices/grohtml2/post-html.cc (main),
6165 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6166 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6167 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6168 (main), src/preproc/html2/pre-html.cc (main),
6169 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6170 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6171 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6172 (main): Implement it.
6175 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
6176 and postprocessors to the -v option.
6178 * src/roff/grog/grog.pl: Implement -v.
6179 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
6180 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6182 * src/roff/nroff/nroff.sh: Implement -v.
6183 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
6184 * src/roff/nroff/nroff.man: Updated.
6186 * src/preproc/eqn/main.cc (main): Fix comment typo.
6188 * MORE.STUFF: Added info about djgpp port of grap.
6190 2000-11-14 Werner LEMBERG <wl@gnu.org>
6192 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
6193 mode (or rather, implemented non-compatibility mode).
6194 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6196 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
6197 replacing it -- we don't find gxditview otherwise.
6198 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
6200 * src/preproc/pic/depend: Removed. Unnecessary.
6202 Implemented dummy keyword `solid' in pic for compatibility with
6205 * lex.cc (lookup_keyword): Added `solid'.
6206 * pic.y: Added SOLID with dummy rule.
6207 * pic.cc, pic_tab.h: Regenerated.
6208 * doc/pic.ms: Updated.
6210 2000-11-13 Werner LEMBERG <wl@gnu.org>
6212 For security reasons, don't use the current directory but the home
6213 directory while searching and scanning troffrc and troffrc-end.
6214 Similarly, replace the current directory with the home directory
6217 * Makefile.in (fontpath, tmacpath): Remove current directory.
6219 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
6220 two parameters `add_home' and `add_current'.
6221 (search_path::~search_path, search_path::command_line_dir,
6222 search_path::open_file): Remove tests for `dirs' being zero.
6223 * src/include/searchpath.h: Adjust.
6224 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
6226 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
6228 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
6229 * src/roff/troff/input.cc: Use `mac_path', initialized with
6231 (process_startup_file): Set `mac_path' to `safer_macro_path'.
6232 * src/roff/troff/env.cc: Use `mac_path'.
6234 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
6236 * NEWS, man/roff.man, src/roff/troff/troff.man,
6237 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
6240 2000-11-12 Werner LEMBERG <wl@gnu.org>
6242 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
6244 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
6245 * configure.in: Fix typo in comment.
6246 * configure: Regenerated.
6248 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
6251 2000-11-08 Werner LEMBERG <wl@gnu.org>
6253 Add system tmac directory (/usr/local/lib/groff/site-tmac).
6255 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
6256 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
6259 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
6260 * tmac/Makefile.sub (install_data): Create
6261 $(systemtmacdir) and $(localtmacdir).
6262 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
6263 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
6264 NEWS, doc/groff.texinfo: Updated and minor fixes.
6266 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
6267 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
6268 $(systemtmacdir) since the wrapper files are platform-dependent.
6270 2000-11-01 Werner LEMBERG <wl@gnu.org>
6272 * doc/groff.texinfo: Fix typo.
6274 2000-10-26 Werner LEMBERG <wl@gnu.org>
6276 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
6277 tmac.doc.old -> doc-old.tmac
6278 tmac.an.old -> an-old.tmac
6280 * tmac/tmac.*: Moved to ...
6281 * tmac/*.tmac: this.
6282 * tmac/man.local: Fix comment.
6283 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
6284 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
6285 Added some `FILES' sections. More use of @...@ directives. Other
6287 * arch/djgpp/README, font/devutf8/NOTES: Updated.
6288 * doc/homepage.ms, doc/groff.texinfo: Updated.
6289 * man/groff.man, man/roff.man: Updated.
6290 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
6291 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6292 src/devices/grotty/grotty.man: Updated.
6293 * src/preproc/pic/pic.man: Updated.
6294 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
6295 instead of -mdoc.old.
6296 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
6297 * src/roff/nroff/nroff.man: Updated.
6300 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
6302 * tmac/mm.diff: Removed -- it has no use now since the mm package
6305 * tmac/*: Removed trailing spaces.
6307 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
6308 the tmac subdirectory also).
6310 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
6311 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
6312 stuff since it is no longer needed.
6314 * README, PROBLEMS: Updated.
6316 2000-10-25 Werner LEMBERG <wl@gnu.org>
6318 Invert current behaviour: Search first FOOBAR.tmac, then
6321 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
6322 (open_mac_file, macro_source): Implement it.
6323 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
6324 doc/groff.texinfo, NEWS: Document it.
6326 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
6327 Small documentation improvements.
6329 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
6332 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
6334 2000-10-24 Werner LEMBERG <wl@gnu.org>
6336 Add local tmac directory (groff/site-tmac).
6338 * Makefile.in: Add $(localtmacdir).
6339 (uninstall_dirs): Add $(localtmacdir).
6340 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
6341 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
6342 in $(localtmacdir). Create $(localtmacdir).
6343 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
6344 Updated and minor fixes.
6346 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
6348 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
6350 2000-10-23 Werner LEMBERG <wl@gnu.org>
6352 Move hyphen.us to tmac directory.
6354 * src/roff/troff/hyphen.us: Removed.
6355 * src/tmac/hyphen.us: Added.
6356 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
6358 Change installation structure for data files from .../groff/... to
6359 .../groff/<version><revision>/... to be conform with other GNU
6362 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
6363 doc/Makefile: Implement it.
6364 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
6365 * configure: Updated.
6366 * arch/djgpp/README, font/devutf8/NOTES: Use it.
6367 * NEWS: Document it.
6368 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
6369 @MACRODIR@ instead of hard-coded directories.
6371 2000-10-22 Werner LEMBERG <wl@gnu.org>
6373 Implement $GROFF_BIN_PATH environment variable (which defaults to
6374 $bindir) used for child programs of groff and similar wrappers.
6376 * gendefs.sh: Improve documentation.
6377 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
6378 src/preproc/eqn/Makefile.sub (neqn),
6379 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
6380 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
6382 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
6383 $GROFF_PATH__ (the latter for communication with troff).
6384 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
6386 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
6387 doc/groff.texinfo: Document it.
6389 * doc/groff.texinfo: Improve documentation of troff's -a option.
6391 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
6393 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
6394 non-intrusive eol marker.
6395 (troff_output_file::determine_line_limits): New function.
6396 (troff_output_file::draw): Use it.
6397 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
6398 output_pending_lines() instead of output_line().
6399 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
6400 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
6401 createImage): Small fixes.
6403 2000-10-14 Werner LEMBERG <wl@gnu.org>
6405 Replace tmac.safer with a real secure solution.
6407 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
6408 system_request, pipe_output): Disable requests if in safer mode.
6409 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
6410 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
6411 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
6412 doc/groff.texinfo, src/roff/groff/groff.man,
6413 src/roff/troff/troff.man, arch/djgpp/README: Updated.
6415 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
6416 (resource_manager::output_prolog): Replace setenv() with putenv().
6418 2000-10-09 Werner LEMBERG <wl@gnu.org>
6420 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
6421 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
6422 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
6423 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
6424 compilation errors with some compilers. It seems that this code
6425 is no longer necessary -- if yes, it is easy to add some #ifdef's
6426 for that particular old-fashioned compiler.
6428 * MORE.STUFF: Added info about Meta-tbl.
6430 * doc/groff.texinfo: Added more info about `.if "..."..."'.
6432 2000-10-07 Werner LEMBERG <wl@gnu.org>
6434 Adding a new escape sequence \B'...': If the string between
6435 the delimiters is a valid numeric expression, return the character
6436 `1', and `0' otherwise. This is an analogon to \A.
6438 * src/roff/troff/input.cc (do_expr_test): Implement it.
6439 (token::next): Use it.
6440 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
6442 * tmac/tmac.trace: Made independent from escape character.
6444 2000-10-06 Werner LEMBERG <wl@gnu.org>
6446 Adding a new request .dei: define indirect. The first and second
6447 parameter of .dei are taken from string registers instead directly;
6448 this very special request is needed to make tmac.trace independent
6449 from the escape character (which might even be disabled).
6451 * src/roff/troff/input.cc (do_define_macro): Implement it.
6452 (define_macro_indirect): New function.
6453 (init_input_requests): Use it.
6455 Adding two requests .ecs and .ecr: Save and restore the escape
6456 character. These two requests are needed to make tmac.trace
6457 independent from the escape character (which might even be
6460 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
6462 (init_input_requests): Use it.
6464 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6466 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
6468 Adding a new option -P and new environment variable GROPS_PROLOGUE
6469 to grops, selecting a different prologue file (minor modifications
6472 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
6473 src/devices/grops/ps.cc (main): Implement it.
6474 * src/devices/grops/grops.man, NEWS: Document it.
6476 2000-09-22 Werner LEMBERG <wl@gnu.org>
6478 * INSTALL: Add info about selecting paper format.
6480 2000-09-21 Werner LEMBERG <wl@gnu.org>
6482 * src/roff/troff/input.cc (main): Fixing compiler warning.
6483 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
6484 strings.h from the former to the latter.
6485 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
6486 stuff from the former to the latter.
6488 2000-09-11 Werner LEMBERG <wl@gnu.org>
6490 Implementing two new requests .tm1 and .tmc: The former is similar
6491 to .tm but can output leading spaces; its syntax is similar to
6492 defining a string, i.e., a `"' can be used to mark the beginning of
6493 the string to be written to stderr: `.tm1 " test'. The latter is
6494 similar to .tm1 but doesn't write out a final newline character.
6496 * src/roff/troff/input.cc (terminal1, terminal_continue,
6497 do_terminal): New functions.
6498 (init_input_requests): Use them.
6499 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6501 2000-09-09 Werner LEMBERG <wl@gnu.org>
6503 * tmac/groff_mdoc.samples.man: Small fixes.
6505 2000-09-08 Werner LEMBERG <wl@gnu.org>
6507 * tmac/groff_mdoc.man: Fixing typo.
6509 2000-09-02 Werner LEMBERG <wl@gnu.org>
6511 Implementing a .nop request which does nothing.
6513 * src/roff/troff/input.cc (nop_request): New function.
6514 (init_input_requests): Use it.
6515 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6517 2000-09-01 Werner LEMBERG <wl@gnu.org>
6519 * doc/groff.texinfo: Added some comments.
6521 2000-08-30 Werner LEMBERG <wl@gnu.org>
6523 * src/roff/troff/TODO: Updated.
6525 2000-08-25 Werner LEMBERG <wl@gnu.org>
6527 * doc/groff.texinfo: Fix comment how to compile the DVI file.
6529 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
6531 * font/devps/generate/Makefile (SHELL): Define explicitly to
6532 "/bin/sh", for non-Unix platforms.
6533 (extraclean): Use a more portable "" quoting instead of a
6534 backslash (which doesn't work on DOS/Windows).
6536 * font/devlj4/generate/Makefile (extraclean): Ditto.
6538 * font/devdvi/generate/Makefile (extraclean): Ditto.
6540 2000-08-25 Werner LEMBERG <wl@gnu.org>
6542 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
6543 src/roff/troff/troff.man: Document Eli's latest changes.
6545 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
6547 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
6548 macro file names of the form NAME.tmac as well as tmac.NAME.
6550 2000-08-25 Werner LEMBERG <wl@gnu.org>
6552 * src/include/posix.h: Remove definition of FILENAME_MAX.
6554 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
6555 `sys_fatal' and `stop' function().
6557 * test-groff: Updated.
6559 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
6561 Added the new troff command .output <arg> to suppress output (while
6562 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
6563 registers (for passing the output dimensions to the output device).
6565 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
6567 * src/roff/troff/node.h, src/roff/troff/node.cc
6568 (troff_output_file::really_print_line,
6569 ascii_output_file::really_print_line,
6570 supress_output_file::really_print_line): Use `width' parameter.
6571 (troff_output_file::really_on, troff_output_file::really_off,
6572 output_file::on, output_file::off, real_output_file::on,
6573 real_output_file::off, real_output_file::really_on,
6574 real_output_file::really_off): New functions.
6575 (real_output_file:public output_file): New variable `output_on'.
6576 (real_output_file::begin_page, real_output_file::copy_file,
6577 real_output_file::transparent_char, real_output_file::print_line):
6579 (real_output_file::print_line): Use check_output_limits.
6580 * src/roff/troff/reg.h, src/roff/troff/request.h,
6581 src/roff/troff/input.cc (assign_registers): New function to remove
6583 (do_ps_file): Use it.
6584 (check_output_limits, reset_output_registers, output_request,
6585 init_output_requests): New functions.
6586 (init_input_requests): Updated.
6588 Added new grohtml2 device and html2 preprocessor (coding
6589 not yet finished) which will eventually replace grohtml.
6591 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
6593 * src/include/htmlindicate.h, src/include/htmlindicate
6594 (html_begin_suppress, html_end_suppress): New functions.
6595 * src/preproc/tbl/main.cc: Use it.
6596 * src/roff/groff/groff.cc: Add support for html2 device (which will
6597 automatically invoke the html2 preprocessor).
6598 * src/roff/troff/input.cc (is_html2): New variable.
6599 * src/roff/troff/troff.h, src/roff/troff/env.h,
6600 src/roff/troff/env.cc (environment::add_html_tag): New function
6602 (environment::do_break): Use it.
6603 * font/devhtml2/*: New files.
6604 * src/devices/grohtml2: New device.
6605 * src/preproc/html2: New preprocessor.
6606 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
6608 2000-08-23 Werner LEMBERG <wl@gnu.org>
6610 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
6612 2000-08-22 Werner LEMBERG <wl@gnu.org>
6614 * src/include/lib.h: Provide a fix for IRIX to not include
6617 2000-08-18 Werner LEMBERG <wl@gnu.org>
6619 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
6620 since some non-GNU sed programs can't handle null regexps.
6621 * configure, src/preproc/eqn/Makefile.sub,
6622 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
6624 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
6625 bug (string.h and strings.h are both needed according to latest
6628 * MORE.STUFF: Added info about unroff and troffcvt.
6630 2000-08-08 Werner LEMBERG <wl@gnu.org>
6632 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
6635 * tmac/tmac.man.old: Remove unused number register.
6637 * tmac.doc: Minor documentation fix.
6639 2000-08-07 Paul Eggert <eggert@twinsun.com>
6641 * src/roff/groff/pipeline.c (is_system_shell):
6642 Fix typo: "monocased_shell" no longer exists.
6644 2000-08-07 Paul Eggert <eggert@twinsun.com>
6646 Remove FILENAME_MAX limits.
6648 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
6649 that the argument length is less than FILENAME_MAX.
6650 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
6651 Use struct hack to allocate and free file name.
6652 (struct xtmpfile_list): fname is now part of the structure,
6653 not a pointer to another string.
6655 2000-08-07 Tom Schmidt <tschmidt@micron.com>
6657 * src/include/posix.h: Add a default value for FILENAME_MAX.
6659 2000-08-06 Paul Eggert <eggert@twinsun.com>
6661 Add support for new BSD-style man pages (with ".Dd" instead of
6662 ".TH"), so that "groff -man" understands both styles, even
6663 when running "groff -man" on a host whose system man page
6664 macros don't support ".Dd".
6666 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
6667 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
6668 in case the system man macros don't define Dd or TH.
6670 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
6671 * tmac/tmac.an: New one-line file.
6672 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
6674 2000-08-06 Werner LEMBERG <wl@gnu.org>
6676 * src/roff/troff/troff.man: Fixing typos.
6678 Version 1.16.1 released
6679 =======================
6681 2000-07-31 Werner LEMBERG <wl@gnu.org>
6683 Preparing release 1.16.1.
6685 * REVISION: Revision number set to 1.
6686 * MORE.STUFF: Added info about port to DOS.
6687 * NEWS, win32-diffs: Updated.
6689 * src/include/nonposix.h: Remove first line -- this file is used
6692 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
6695 2000-07-30 Werner LEMBERG <wl@gnu.org>
6697 * doc/texinfo.tex: Update to latest version.
6699 2000-06-28 Paul Eggert <eggert@twinsun.com>
6701 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6702 commands that fail. Don't assume that "export a=b" is valid shell
6703 syntax. This is needed for Solaris 2.5.1.
6705 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6706 comment about missing Solaris headers.
6708 * PROBLEMS: Add section about problems with Sun Make and VPATH.
6710 2000-06-25 Werner LEMBERG <wl@gnu.org>
6712 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6715 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6717 * win32-diffs: Updated.
6718 * README.WIN32: Added CRs to make all Windows editors happy.
6720 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6721 src/roff/groff/pipeline.c).
6723 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
6725 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6726 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6728 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
6730 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6731 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6733 (main): Support non-Posix systems with several different styles of
6734 slash characters in file names.
6736 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6737 (main) [SET_BINARY]: Switch stdin into binary mode.
6739 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6740 (main): Support file names with several possible slash-type
6741 characters, as given by DIR_SEPS[] in nonposix.h.
6742 (main) [__MSDOS__]: If renaming the temporary index file fails
6743 because it has more than one dot in its trunk, replace the dot
6744 with an underscore and try again.
6745 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
6747 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6749 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6750 (File::File): Open the input file in binary mode. Strip CR
6751 characters from each CR-LF pair.
6752 (xbasename): Support file names with several possible slash-type
6753 characters, as given by DIR_SEPS[] in nonposix.h.
6755 * src/include/Makefile.sub (HDRS): Add nonposix.h.
6757 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6758 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6759 [!_POSIX_VERSION]: Define for traditional Unix systems.
6760 (real_output_file::real_output_file): Remove the MSVC-specific
6761 call to popen, use instead POPEN_WT, appropriately defined on
6762 nonposix.h. #include nonposix.h.
6763 (real_output_file::~real_output_file): Remove the MSVC-specific
6764 call to pclose, a suitable macro is now defined on nonposix.h.
6765 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6766 and WEXITSTATUS instead of assuming traditional Unix
6767 interpretation of the status returned by pclose.
6769 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6770 call to popen, use POPEN_RT instead (appropriately defined on
6771 nonposix.h). #include nonposix.h.
6772 (ps_bbox_request): Open the PostScript file in binary mode.
6773 Close the file after processing it.
6774 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6777 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6778 A version of run_pipeline that doesn't use `fork'.
6779 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6780 (system_shell_name, system_shell_dash_c)
6781 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6782 the ugliness of testing DOS/Windows file names for equality, and
6783 support both stock shells and ports of Unix shells.
6785 * src/roff/groff/groff.cc: #include nonposix.h.
6786 (BSHELL): Definition moved to nonposix.h.
6787 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
6788 instead of a literal "-c".
6789 (xbasename): Support file names with several possible slash-type
6790 characters, as given by DIR_SEPS[] in nonposix.h.
6791 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6794 * src/preproc/soelim/soelim.cc: #include nonposix.h.
6795 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6797 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6800 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6802 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6805 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6807 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6808 P_tmpdir is defined, use it instead of the literal "/tmp".
6809 (remove_tmp_files, add_tmp_file): New functions.
6810 (xtmpfile): Record temporary files and register an atexit function
6811 to delete them explicitly, instead of relying on the OS to do
6812 that, which doesn't work on non-Unix systems.
6814 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6815 (search_path::search_path): Use PATH_SEP instead of a literal
6817 (search_path::command_line_dir): Ditto.
6818 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6819 to support non-Posix systems.
6821 * src/libs/libbib/search.cc: #include nonposix.h.
6822 (search_list::add_file): Open the file in binary mode.
6824 * src/libs/libbib/linear.cc: #include nonposix.h.
6825 (file_buffer::load): Remove \r characters preceding \n from the
6828 * src/libs/libbib/index.cc: #include nonposix.h.
6829 (make_index_search_item): Open index_filename in O_BINARY mode.
6830 (index_search_item_iterator::get_tag): Ditto. Remove \r
6831 characters before \n characters.
6832 (index_search_item::check_files): Open files in binary mode.
6833 (index_search_item::munge_filename): Support DOS-style file names
6834 with backslashes and drive letters, use IS_ABSOLUTE.
6836 * src/devices/grops/ps.cc: #include nonposix.h.
6837 (main) [SET_BINARY]: Switch stdout to binary mode.
6839 * src/devices/grolj4/lj4.cc: #include nonposix.h.
6840 (main) [SET_BINARY]: Switch stdout to binary mode.
6842 * src/devices/grolbp/lbp.cc: #include nonposix.h
6843 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6845 * src/devices/grodvi/dvi.cc: #include nonposix.h.
6846 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6848 (main) [SET_BINARY]: Switch stdout to binary mode.
6849 [_MSC_VER]: Remove an explicit call to _setmode.
6851 * src/include/nonposix.h: New file.
6853 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6854 operation when building with DJGPP.
6855 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6856 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6859 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6861 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6862 etc. can include a semi-colon on DOS/Windows.
6863 (depend.temp): Use depend1.temp instead of depend.temp1, to
6864 prevent files from overerwiting each other on 8+3 filesystems.
6866 * gendef.sh (t): Change definition to work with DOS/Windows.
6868 doc/groff.texinfo: Apart of some typo corrections, I also changed
6869 some index entris, to make them more non-ambiguous, and also put
6870 @ignore around some parts that are not yet written, to allow the
6871 Info output be readable.
6873 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
6875 Replaced specific checks for function declarations with a generic
6876 routine taken from GNU bfd.
6878 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6879 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6880 * configure.in: Use it.
6881 * src/devices/grolbp/lbp.cc, src/include/lib.h,
6882 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6883 src/roff/groff/groff.cc: Use it.
6884 * Makefile.in, configure: Updated.
6886 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
6888 * src/devides/grolbp/lbp.h: Removed unused variables.
6890 2000-05-31 Keith Thompson <kst@sdsc.edu>
6892 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6895 2000-05-31 Werner LEMBERG <wl@gnu.org>
6897 * aclocal.m4 (GROFF_SRAND): New function to test the return value
6898 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6899 * configure.in: Use it.
6900 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6901 * configure, Makefile.in: Updated.
6903 * configure.in: Add test for strncasecmp().
6904 * src/include/lib.h: Use it.
6906 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
6908 * src/preproc/grn/Makefile.sub: Add MLIB.
6910 2000-05-29 Nix <nix@esperi.demon.co.uk>
6912 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
6914 2000-05-29 Werner LEMBERG <wl@gnu.org>
6916 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
6918 * PROBLEMS: Small update.
6920 * src/devices/grolbp/lbp.cc: Various small fixes.
6922 2000-05-28 Keith Thompson <kst@sdsc.edu>
6924 * src/roff/nroff/nroff.sh: Fix main loop syntax.
6926 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
6928 2000-05-25 Werner LEMBERG <wl@gnu.org>
6930 * man/roff.man: Removed unused macro.
6932 2000-05-24 Werner LEMBERG <wl@gnu.org>
6934 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
6935 This is needed e.g. if you do
6936 `make distclean; ./configure; make dist'.
6938 Version 1.16 released
6939 =====================
6941 2000-05-23 Werner LEMBERG <wl@gnu.org>
6943 Adding font CWI (constant width italic) to devdvi.
6945 * font/devdvi/CWI: New file.
6946 * font/devdvi/generate/Makefile: Add generating rule.
6947 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
6948 tmac/tmac.dvi: Use it.
6949 * NEWS: Announce it.
6951 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
6952 * font/devlj4/generate/Makefile: Cosmetic changes only.
6954 * man/groff.man: Removed most of the redundant description of
6955 special characters (which is in groff_char.man). Added font
6956 translation CB->CR for devdvi. Other minor fixes.
6958 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
6959 (registered) symbols.
6961 2000-05-22 Werner LEMBERG <wl@gnu.org>
6963 * doc/Makefile: Added rule for creating info files.
6965 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
6967 * font/devdvi/generate/Makefile: Fixed dependencies.
6969 * font/devps/*: Regenerated. Heavy changes for Bookman and
6970 NewCentury Schoolbook!
6971 * font/devps/generate/afmname: Will now run with GNU awk.
6972 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
6973 * font/devps/generate/Makefile: Cosmetic changes only.
6975 2000-05-21 Werner LEMBERG <wl@gnu.org>
6977 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
6978 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
6979 `.SS' now produces a heading with a smaller size than `.SH'.
6980 Completely formatted.
6981 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
6983 * man/groff.man: Improved table appearance. Use of `eo' request
6984 to reduce number of doubled backslashes in macro definitions.
6985 Replacing `\e' with `\(rs'. Other minor fixes.
6987 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
6988 to have correct line number.
6990 * INSTALL: Small improvement.
6992 2000-05-20 Bernd Warken <bwarken@mayn.de>
6994 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
6997 2000-05-19 Bernd Warken <bwarken@mayn.de>
6999 * man/groff.man: Complete update (with a lot of corrections by WL).
7001 2000-05-18 Werner LEMBERG <wl@gnu.org>
7003 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
7005 * font/*/*: Implement it.
7006 * man/groff_char.man, NEWS: Document it.
7008 * src/include/unix.h: Removed. It isn't used.
7010 * doc/groff.texinfo: Slight improvements.
7012 2000-05-17 Werner LEMBERG <wl@gnu.org>
7014 * README, win32-diffs: Small fixes and improvements.
7016 2000-05-16 Werner LEMBERG <wl@gnu.org>
7018 * FDL: New file (the Free Documentation License version 1.1).
7020 * doc/groff.texinfo: Added many start-up values for gtroff.
7021 Some structural improvements of the source code.
7023 2000-05-15 Werner LEMBERG <wl@gnu.org>
7025 * src/roff/troff/input.cc: Added small comment about troffrc-end.
7026 * src/roff/troff/troff.man: Added info about troffrc-end.
7028 2000-05-14 Werner LEMBERG <wl@gnu.org>
7030 * Makefile.in (EXTRADIRS): Fix typos.
7031 (dist): Handle deletion of old .tar.gz file correctly.
7032 (DISTDIRS): Include all tty output devices.
7034 * doc/groff.texinfo: Adding more cross references; countless other
7037 2000-05-13 Werner LEMBERG <wl@gnu.org>
7039 * MORE.STUFF: Added Robert Marks's utilities.
7041 2000-05-12 Werner LEMBERG <wl@gnu.org>
7043 Added win32 port contributed by Blake McBride
7044 <blake@florida-software.com>.
7046 * README.WIN32, win32-diffs: New files.
7049 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
7050 (tmove, tmove2): Added parentheses to avoid compiler warnings.
7051 (change): Removed unused variables.
7053 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
7054 (savebounds): Changed return value from `int' to `void'.
7055 * src/preproc/grn/hdb.cc: Ditto.
7057 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
7058 final backslash in comment to avoid compiler warning.
7060 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
7062 * doc/groff.texinfo: More fixes.
7064 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
7066 * tmac/tmac.doc: Documentation fix.
7068 2000-05-11 Werner LEMBERG <wl@gnu.org>
7070 * doc/groff.texinfo: Reading the source code shows up a lot of
7071 omissions and incorrect data... More conversion to @Deffn macros.
7073 2000-05-10 Werner LEMBERG <wl@gnu.org>
7075 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
7078 * src/roff/troff/request.h: Removing unused `no_break_flag'.
7080 2000-05-09 Werner LEMBERG <wl@gnu.org>
7082 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
7085 * doc/groff.texinfo: Extended history section. More conversion to
7086 @Deffn macros. More .tr documentation.
7088 2000-05-07 Werner LEMBERG <wl@gnu.org>
7090 * doc/groff.texinfo: Completed tab section. Added info about
7093 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
7095 * PROBLEMS: Describe configure script fix for OS/390 Unix.
7097 2000-05-05 Werner LEMBERG <wl@gnu.org>
7099 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
7101 * NEWS: Document it.
7103 * man/troff.man: Minor optical improvements.
7105 2000-05-03 Werner LEMBERG <wl@gnu.org>
7107 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
7109 * font/*/*: Implement it.
7110 * man/groff_char.man, NEWS: Document it.
7112 2000-05-02 Werner LEMBERG <wl@gnu.org>
7114 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
7116 * NEWS: Document the three new man pages.
7118 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
7119 * configure: Updated.
7121 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
7123 2000-05-01 Werner LEMBERG <wl@gnu.org>
7125 Added grap support to grog.
7127 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
7128 * src/roff/grog/grog.man: Document it.
7130 * doc/groff.texinfo, NEWS: Add info about grap support.
7132 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
7133 (with slight fixes by me).
7135 * tmac/groff_tmac.man: New file documenting tmac mechanism.
7136 * tmac/Makefile.sub: Add groff_tmac.man.
7137 * man/roff.man: New file giving overview of roff system.
7138 * man/troff.man: A short reference of troff.
7139 * man/Makefile.sub: Add roff.man and troff.man.
7141 2000-04-30 Werner LEMBERG <wl@gnu.org>
7143 Added grap support to groff.
7145 * src/roff/groff/groff.cc: Implement it.
7146 * src/roff/groff/groff.man: Document it.
7148 * src/devices/grotty/grotty.man: Add cp1047 device.
7149 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
7151 * src/roff/groff/groff.man: Ditto.
7152 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
7153 * doc/groff.texinfo: Ditto.
7155 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
7158 2000-04-29 Werner LEMBERG <wl@gnu.org>
7160 * man/groff_char.man: Add `pc' glyph.
7161 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
7162 * tmac/tmac.tty: Add `pc' glyph.
7163 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
7164 we use cp1047 output device.
7166 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
7167 there are still hardcoded latin1->unicode values in utf8's font
7169 * configure: Updated.
7170 * NEWS: Minor clarification. Updated.
7172 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
7175 2000-04-28 Werner LEMBERG <wl@gnu.org>
7177 Adding EBCDIC code page 1047.
7179 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
7180 font/devcp1047/DESC.proto: New files.
7182 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
7183 either ascii/latin1 or cp1047.
7184 * Makefile.in: Use it.
7185 * configure: Updated.
7187 Replacing and/or adding `md' (mathdot) glyph with `pc'
7188 (periodcentered) in all text fonts.
7190 * font/*/*: Change it.
7192 2000-04-27 Werner LEMBERG <wl@gnu.org>
7194 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
7196 * configure.in: Add check for strings.h.
7197 * src/include/driver.h: Use HAVE_STRINGS_H.
7198 * src/devices/grolbp/lpb.cc: Remove string.h.
7200 * src/include/groff-getopt.h: New file. It will be used instead of
7201 getopt.h (to be included in lib.h) to avoid endless problems with
7202 picky C++ compilers.
7203 * src/include/lib.h: Use groff-getopt.h.
7204 * src/include/Makefile.sub: Updated.
7206 * configure: Updated.
7207 * Makefile.in: Updated.
7209 * NEWS: Mention EBCDIC support.
7211 2000-04-26 Werner LEMBERG <wl@gnu.org>
7213 * TODO: Some additions.
7215 2000-04-25 Werner LEMBERG <wl@gnu.org>
7217 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
7220 2000-04-23 Werner LEMBERG <wl@gnu.org>
7222 * src/roff/troff/troff.man: Minor fixes.
7224 2000-04-22 Werner LEMBERG <wl@gnu.org>
7226 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
7227 `.T' string register and the incompatible definition of the `.T'
7228 number register (compared to Unix troff).
7230 * man/groff_char.man: Add some missing characters.
7231 * font/devutf8/NOTES: Update.
7233 2000-04-21 Werner LEMBERG <wl@gnu.org>
7235 * src/include/htmlindicate.h, src/include/lib.h,
7236 src/include/posix.h: Fix copyright.
7238 * src/include/Makefile.sub: Update.
7240 2000-04-20 Werner LEMBERG <wl@gnu.org>
7242 * src/roff/troff/input.cc (input_char_description): Removing
7243 superfluous space char.
7245 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
7247 * doc/groff.texinfo: Document EBCDIC.
7249 2000-04-19 Werner LEMBERG <wl@gnu.org>
7251 Introducing `shc' as the glyph name for the soft hyphen character.
7253 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
7254 font/devlatin1/R.proto: Use it.
7258 2000-04-18 Werner LEMBERG <wl@gnu.org>
7260 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
7261 dependency on ASCII order.
7263 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
7265 * src/libs/libgroff/illegal.c: Added EBCDIC table.
7266 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
7268 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
7269 to increase portability.
7271 2000-04-15 Werner LEMBERG <wl@gnu.org>
7273 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
7274 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
7275 the generic `\n' if under OS/390 Unix.
7277 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
7279 * configure: Regenerated.
7281 2000-04-14 Werner LEMBERG <wl@gnu.org>
7283 * doc/groff.texinfo: More conversions to @Deffn.
7285 2000-04-12 Werner LEMBERG <wl@gnu.org>
7287 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
7290 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
7292 2000-04-10 Werner LEMBERG <wl@gnu.org>
7294 * doc/groff.texinfo: More conversions to @Deffn.
7296 2000-04-08 Werner LEMBERG <wl@gnu.org>
7298 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
7299 Updated to latest version (glibc 2.1.3).
7301 2000-04-07 Werner LEMBERG <wl@gnu.org>
7303 * doc/Makefile (clean): Include more index files.
7304 Add rule texinfo->dvi.
7306 2000-04-05 Werner LEMBERG <wl@gnu.org>
7308 * doc/groff.texinfo: Added new index `op' for operators. More
7309 info on end of sentence characters. More use of @Deffn.
7311 2000-03-30 Werner LEMBERG <wl@gnu.org>
7313 * */*.man: Adding a note that a whitespace can be inserted between
7314 a command line option and its parameter -- we are using GNU getopt.
7316 * src/roff/groff/groff.man: Add example of `-m mandoc'.
7318 2000-03-28 Werner LEMBERG <wl@gnu.org>
7320 Correct anachronism of calling the man macro file with `-man'
7321 instead of `-m man' etc.
7323 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
7324 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
7325 load tmac.<package>.
7327 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
7331 * doc/groff.texinfo: Updated.
7333 * tmac/groff_man.man: Copyright added.
7335 2000-03-27 Werner LEMBERG <wl@gnu.org>
7337 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
7338 typeset the request resp. escape name with a tt font -- due to a
7339 bug in texinfo.tex it is necessary to use the `-e' switch with
7342 Improving info about usage of groff units.
7346 2000-03-20 Werner LEMBERG <wl@gnu.org>
7348 * doc/groff.texinfo: Added section about man macro package
7349 (I've basically taken groff_man.man). Introducing new indices `ma'
7350 for macros/strings and `gl' for glyph names. Other minor fixes.
7352 * tmac/groff_man.man: Fixed some typos.
7354 2000-03-19 Werner LEMBERG <wl@gnu.org>
7356 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
7359 * doc/texinfo.tex: New file.
7361 2000-03-18 Werner LEMBERG <wl@gnu.org>
7363 * doc/groff.texinfo: Improved section on number registers. Other
7366 2000-03-16 Werner LEMBERG <wl@gnu.org>
7368 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
7371 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
7372 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
7373 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
7374 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
7376 * src/preproc/grn/grn.man: Better synopsis; added copyright.
7378 * src/roff/grog/grog.man: Updated copyright date.
7380 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
7382 * configure.in: Added test for strdup.
7384 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
7387 Replaced dynamic allocation of arrays `[...]' with `new' operator.
7391 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
7393 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
7395 2000-03-11 Werner LEMBERG <wl@gnu.org>
7397 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
7399 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
7400 * src/include/lib.h: Remove some spaces.
7402 2000-03-10 Werner LEMBERG <wl@gnu.org>
7404 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
7405 initializers from arguments (some compilers don't like this).
7407 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
7409 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
7410 used by pic and eqn to tell grohtml where the graphic regions start
7412 * src/libs/libgroff/Makefile.sub: Use it.
7413 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
7414 graphic_start() and graphic_end() from htmlindicate.cc.
7416 2000-03-09 Werner LEMBERG <wl@gnu.org>
7418 * tmac/tmac.safer: Will now work correctly in compatibility mode.
7419 * tmac/groff_man.man: More fixes.
7421 2000-03-08 Werner LEMBERG <wl@gnu.org>
7423 * doc/Makefile: Added texput.log to the `clean' target.
7424 * doc/groff.texinfo: Added info about delimiters for escapes.
7426 2000-03-08 Bernd Warken <bwarken@mayn.de>
7428 * src/preproc/pic/pic.man: Add info on conversion of pic images to
7429 other graphic formats.
7431 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
7433 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
7434 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
7435 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
7438 2000-03-07 Werner LEMBERG <wl@gnu.org>
7440 * doc/groff.texinfo: Spelling fixes.
7442 2000-03-06 Werner LEMBERG <wl@gnu.org>
7444 * tmac/groff_man.man: Completely revised to cover everything in
7447 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
7448 Other minor fixings.
7449 * src/roff/troff/env.cc (environment_copy): Improve error message and
7451 * src/roff/troff/TODO: Updated.
7453 * doc/Makefile: Bug fixes -- this is still provisional, though...
7455 * tmac/eqnrc: Small fixes.
7457 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
7459 Adding a request `evc' to copy environments.
7461 * src/roff/troff/env.cc (environment::copy, environment_copy):
7463 * src/roff/troff/env.h: Add prototype.
7465 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
7467 Adding strsep() -- Solaris 8 doesn't have it.
7469 * configure.in: Test it.
7470 * src/devices/grolbp/lbp.cc: Add code.
7472 2000-03-05 Werner LEMBERG <wl@gnu.org>
7474 * src/roff/troff/div.cc (macro_diversion::output,
7475 top_level_diversion::output): Fixing an incompatibility with
7476 original troff: \x'0' updates the .a register also. Thanks to
7477 <Andries.Brouwer@cwi.nl> for pointing this out.
7478 * doc/groff.texinfo: Document it.
7480 * Makefile.in: Create Makefile.dep if necessary before calling the
7481 submake process to avoid warning about nonexistent file.
7483 * NEWS, PROJECTS: Updated.
7485 2000-03-04 Werner LEMBERG <wl@gnu.org>
7487 * tmac/troffrc: Add tmac.lbp.
7489 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
7491 * tmac/tmac.lbp: New file.
7492 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
7495 2000-03-03 Werner LEMBERG <wl@gnu.org>
7497 * Makefile.in: Fixing $(subdir).
7499 * README, NEWS: Small fixes.
7501 * test-groff: Adding path to grolbp.
7503 * configure.in: The (new) file src/xditview/Imakefile.in will be
7504 also configured -- it is now possible to build gxditview in a
7505 directory different from $srcdir.
7507 2000-03-02 Blake McBride <blake@florida-software.com>
7509 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
7511 * MORE.STUFF: Added website of bell labs and info about plot2dev.
7513 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
7515 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
7518 2000-02-29 Werner LEMBERG <wl@gnu.org>
7520 Adding GNU getopt to the groff distribution.
7522 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
7524 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
7525 * aclocal.a4: Remove GROFF_GETOPT function.
7526 * configure.in, Makefile.in, PROBLEMS: Update.
7527 * src/include/lib.h: Replace getopt tests with getopt.h.
7528 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
7530 * doc/groff.texinfo: Further checking/updating. Adding more index
7533 * man/groff_out.man: Fix nroff mode activation (for emacs).
7534 * man/groff_font.man: Add missing ligature.
7536 2000-02-28 Werner LEMBERG <wl@gnu.org>
7538 * doc/groff.texinfo: Further checking/updating. Adding more index
7541 * src/devices/grolbp/grolbp.man: Added a comment line at the
7542 beginning of the file (similar to shell scripts) which indicates
7543 that `tbl' should be used as a preprocessor.
7545 2000-02-27 Blake McBride <blake@florida-software.com>
7547 Adapting groff to MS Visual C++ 6.0 compiler (tested with
7548 Windows NT 4.0). Uses _MSC_VER define where necessary.
7550 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
7551 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
7552 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
7553 src/include/lib.h, src/libs/libgroff/errarg.cc,
7554 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
7555 src/preproc/refer/label.y, src/preproc/refer/label.cc,
7556 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
7557 src/roff/troff/div.cc, src/roff/troff/env.cc,
7558 src/roff/troff/input.cc, src/roff/troff/node.cc,
7559 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
7560 if_to_a() to avoid name clashes.
7561 * src/include/posix.h: Don't use unistd.h.
7562 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
7563 clause for integrating non-Unix xtmpfile() code.
7564 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
7565 structure; use "rt" for popen() in pipe_source(); add getpid()
7567 * src/roff/troff/node.cc: Use special versions of popen() in
7568 real_output_file() and pclose() in ~real_output_file().
7570 2000-02-27 Werner LEMBERG <wl@gnu.org>
7572 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
7573 LBP-8 series laser printers). This code has been contributed by
7574 Francisco Andrés Verdú <pandres@dragonet.es>.
7576 * src/devices/grolbp/*: The grolbp output device.
7577 * font/devlpb/*: The font description files.
7578 * Makefile.in: Add grolpb and devlbp subdirectories.
7580 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
7581 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
7584 * doc/groff.texinfo: Further checking/updating. Adding more index
7589 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
7591 * man/groff_font.man: Adding info about obsolete DESC keywords.
7592 * src/devices/grolj4/grolj4.man: Documenting additional DESC
7595 2000-02-26 Werner LEMBERG <wl@gnu.org>
7597 * src/preproc/grn/grn.man: Added info about the gremlin file format
7598 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
7600 2000-02-25 Werner LEMBERG <wl@gnu.org>
7602 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
7603 friends to be non-integer.
7605 * src/preproc/grn/grn.man: Document it.
7607 * doc/groff.texinfo: Further checking/updating. Adding more index
7610 2000-02-24 Werner LEMBERG <wl@gnu.org>
7612 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
7613 line thicknesses to be integer multiples of this value.
7615 * src/preproc/grn/grn.man: Commenting out the -s option -- the
7616 corresponding code doesn't work (yet).
7618 * doc/groff.texinfo: Further checking/updating. Adding more index
7621 2000-02-23 Werner LEMBERG <wl@gnu.org>
7623 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
7624 specify line thickness instead of base units. The new default
7625 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
7626 thick lines respectively.
7628 Removed unused variable `prevval'.
7630 * src/preproc/grn/grn.man: Updated.
7632 2000-02-22 Werner LEMBERG <wl@gnu.org>
7634 * src/preproc/grn/main.cc: Slight formatting.
7636 * src/roff/groff/groff.man: Formatting fix.
7637 * src/preproc/grn/grn.man: Ditto.
7639 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
7641 * doc/groff.texinfo: Further checking/updating.
7643 2000-02-21 Werner LEMBERG <wl@gnu.org>
7645 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
7647 * test-groff: Added grn subdir to path.
7649 * doc/groff.texinfo: Some restructing and other small improvements.
7651 * src/roff/groff/groff.cc (help): Fixed info string.
7653 2000-02-20 Werner LEMBERG <wl@gnu.org>
7655 * doc/meref.me: Fix description of .GS request.
7657 * src/roff/troff/troff.man: Fixing typo.
7659 Adding the `grn' preprocessor for gremlin graphic files.
7661 * src/preproc/grn/*: This is the Berkeley distribution written by
7662 David Slattengren and Barry Roitblat, adapted to groff by Daniel
7663 Senderowicz and Werner Lemberg.
7665 * doc/grnexampl.{me,g}: A sample for grn.
7667 * Makefile.in: Added subdirectory entry for grn.
7669 * src/roff/groff/groff.cc: Added support for grn. It can be now
7670 called with the switch `-g'.
7672 * src/roff/groff/groff.man: Updated.
7674 * src/roff/grog/grog.{man,pl,sh}: Updated.
7678 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
7680 * src/include/lib.h: Added xtmptemplate and made xtmpfile
7681 parametrically polymorphic.
7683 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
7684 and the alterations to xtmpfile.
7685 xtmpfile can be requested to return the filename created
7686 and asked not to unlink the temp file. The default behaviour
7687 if parameters are absent is exactly the same as before.
7689 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
7691 A new request `length' is available which returns the length of a
7692 string in a number register:
7694 * src/roff/troff/input.cc (length_macro): Implement it.
7695 * src/roff/troff/input.cc (init_input_requests): Register it.
7697 2000-02-11 Werner LEMBERG <wl@gnu.org>
7699 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7700 of the `substring' request.
7702 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7705 * src/roff/troff/TODO, NEWS: Updated.
7707 2000-02-09 Werner LEMBERG <wl@gnu.org>
7709 * src/roff/groff/groff.man: Added an example.
7711 2000-02-06 Werner LEMBERG <wl@gnu.org>
7713 I've considerably modified the directory structure of the
7714 distribution to get a more vertical layout. For example, the number
7715 of top level directories has been reduced from 42 to 6.
7717 As a consequence, many changes, especially to the makefiles, were
7720 * The makefile variables `top_builddir' and `top_srcdir' have been
7721 introduced. Virtually all relative paths have been replaced with
7722 absolute ones using these two variables.
7724 * Dependencies (in the files `Makefile.dep') are no longer part of
7725 the distribution. Instead, they are created during a `make install'
7726 in the build directory.
7728 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7729 make `top_srcdir' and `top_builddir' absolute.
7733 * Man pages now depend on the files `VERSION' and `REVISION'.
7735 * The added shell script `mkinstalldirs' will replace `mkdir' in
7738 * VERSION: Version number increased to 1.16.
7740 2000-02-04 Werner LEMBERG <wl@gnu.org>
7742 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7744 * Makefile.in: Removed $(tmac_m) since it is no longer needed
7745 (after an update of the mm stuff).
7747 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7749 2000-02-03 Werner LEMBERG <wl@gnu.org>
7751 The .psbb request will now also accept Mac PS images (i.e. using LF
7752 as the EOL character).
7754 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7755 (with slight modifications).
7756 * troff/input.cc (do_ps_file): Use it.
7758 * test-groff: Add grohtml and grolj4 output devices to PATH.
7760 2000-01-30 Werner LEMBERG <wl@gnu.org>
7762 * NEWS, MORE.STUFF: Updated.
7764 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
7766 Add the `srand' command to pic.
7768 * pic/lex.cc, pic/pic.y: Implement it.
7769 * pic/pic.man: Document it.
7770 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7772 2000-01-30 Werner LEMBERG <wl@gnu.org>
7774 Add a new request `.psbb'. This does exactly what the external
7775 program psbb did. It scans a PostScript image file for a
7776 %%BoundingBox comment and extracts the bounding box values (in
7777 PostScript units) which are then stored in the four new (read-only)
7778 number registers `llx', `lly', `urx', and `ury'.
7780 This will allow the usage of the .PSPIC macro without worrying
7781 about unsafe behaviour of groff, i.e., it will work without the
7782 `-U' switch of groff.
7784 * troff/input.cc: Implement it.
7785 * tmac/tmac.pspic: Use it.
7786 * troff/troff.man, grops/grops.man, NEWS: Document it.
7787 * psbb/*, Makefile.in: Remove it since it is no longer needed.
7789 This is bloody C code simply adapted from psbb.c! Any improvements
7792 2000-01-29 Werner LEMBERG <wl@gnu.org>
7794 * man/groff_font.man: Minor clarifications.
7798 2000-01-28 Werner LEMBERG <wl@gnu.org>
7800 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7802 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
7804 * man/groff_font.man: Brought up to date regarding tcommand
7806 * libgroff/font.cc: Handle everything after `--' as a comment
7808 * devps/*: Added comment delimiter inside devps font files.
7810 2000-01-28 Werner LEMBERG <wl@gnu.org>
7812 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7813 \fC...\fP (which now works as expected).
7815 * troff/troff.man: Fix typo.
7817 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
7819 Completed the pass_filenames implementation in troff.
7821 * libdriver/input.cc: Will read the new `F' tcommand.
7822 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7823 * troff/input.cc: Use it.
7825 2000-01-26 Werner LEMBERG <wl@gnu.org>
7827 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
7828 font will now be updated even if an invalid font is selected.
7830 2000-01-24 Werner LEMBERG <wl@gnu.org>
7832 * doc/homepage.ms: Updated for new tmac.arkup.
7834 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7836 * tmac/tmac.arkup: Cleanup.
7838 Added `\&' to .HTML macro to `leave vertical mode', so to say.
7840 Removed obsolete .LINK macro completely.
7842 The macros .URL, .FTP, and .MAILTO now accept a third argument which
7843 will be immediately appended to the second argument (to be used with
7844 punctuation, for example).
7846 Disabled .CDFTP macro temporarily for security reasons.
7848 * tmac/groff_markup.man: Complete revision for latest changes in
7849 tmac.arkup -- note that it does not yet format correctly with
7852 2000-01-23 Bruno Haible <haible@clisp.cons.org>
7854 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7855 * devutf8/R.proto: Add mappings for wp, lh, rh.
7856 * devutf8/NOTES: Updated.
7858 2000-01-23 Werner LEMBERG <wl@gnu.org>
7860 * doc/groff.texinfo: Updated version/copyright info.
7862 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
7864 Added support for two new directives in device descriptions:
7865 `pass_filenames' (to pass the input file name to the output device)
7866 and `use_charnames_in_special' (to support e.g. accented characters
7867 in the `X' request).
7869 * include/font.h, troff/charinfo.h: Declare it.
7871 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7873 * devhtml/DESC: Use it.
7875 * troff/input.cc: New function encoded_char.
7877 * troff/token.h: Add test for `specialness'.
7879 2000-01-21 Werner LEMBERG <wl@gnu.org>
7881 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7882 mistake from the list of files to be installed.
7884 2000-01-18 Werner LEMBERG <wl@gnu.org>
7886 * README: Added info how to apply patches.
7888 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
7890 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
7892 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
7894 * troff/input.cc: Add support for troffrc-end.
7896 * tbl/main.cc: Altered to issue table-start and table-end special
7897 characters if using the html device.
7899 * devhtml/*: Modified font files to incorporate html encoding of
7902 * tmac/groff_markup.man: New file documenting tmac.arkup.
7904 * tmac/troffrc-end: New file. This is invoked after all user
7905 specified macros. Currently used by the html device to include
7906 tmac.html. Thus no need for users to specify -mhtml anymore.
7908 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7909 (MAN7): Add groff_markup.man.
7911 * tmac/tmac.an, tmac/tmac.html: Small html updates.
7913 * tmac/troffrc: tmac.arkup will now be called for the html device.
7915 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
7916 extra device specific information about fonts.
7918 * doc/homepage.ms: New file. It is an example how an HTML home page
7919 could look like with grohtml.
7921 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
7923 2000-01-12 Bruno Haible <haible@clisp.cons.org>
7925 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
7928 * devutf8/NOTES: Updated.
7930 2000-01-08 Bruno Haible <haible@clisp.cons.org>
7932 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
7933 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
7934 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7935 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
7936 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
7937 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
7938 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
7939 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
7942 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
7944 2000-01-12 Fabrizio Polacco <fab@prosa.it>
7946 grolj4: Paper size will be searched case-insensitively.
7948 * include/lib.h: Add check for strcasecmp().
7949 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
7950 * configure.in: Check for strcasecmp().
7952 2000-01-11 Werner LEMBERG <wl@gnu.org>
7954 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
7957 2000-01-10 Werner LEMBERG <wl@gnu.org>
7959 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
7962 Add a new read-only register, `.Y', which contains the groff
7965 * troff/input.cc (init_input_requests): Define it.
7966 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
7967 * doc/groff.texinfo, troff/troff.man: Document it.
7969 * libgroff/Makefile.sub (version.cc): Add definition of
7970 `Version_string[]', consisting of `<major>.<minor>.<revision>'
7971 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
7972 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
7973 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
7974 troff/input.cc, pfbtops/pfbtops.c: Use it.
7976 2000-01-10 Fabrizio Polacco <fab@prosa.it>
7978 Add a revision scheme to the groff package.
7980 * REVISION: New file.
7981 * libgroff/Makefile.sub (version.cc): Use it to define
7982 `revision_string[]'.
7983 * grops/psrm.cc: Use revision_string (converted to an unsigned
7984 integer) in constructor of resource_manager.
7986 2000-01-10 Bruno Haible <haible@clisp.cons.org>
7988 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
7990 * Makefile.in (DEVDIRS): Add devutf8.
7991 * grotty/tty.cc: Include device.h.
7992 (glyph): Change type of `code' to `unsigned int'.
7993 (tty_printer): New field is_utf8. Constructor takes device argument.
7994 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
7995 (tty_printer::add_char): Change type of first arg to `unsigned int'.
7996 (tty_printer::put_char): New function.
7997 (tty_printer::end_page): Use put_char() instead of ::putchar().
7998 (make_printer): Pass device to tty_printer constructor.
7999 * nroff.sh: Determine default device by calling 'locale'. As a
8000 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
8001 Recognize UTF-8 locales.
8002 * tmac/eqnrc: Recognize utf8 like latin1.
8003 * tmac/troffrc: Device utf8 needs tmac.tty.
8005 2000-01-07 Werner LEMBERG <wl@gnu.org>
8007 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
8009 2000-01-07 Paul Eggert <eggert@twinsun.com>
8011 Add a new predefined writeable number register, `year',
8012 which contains the current year.
8014 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
8015 * tmac/tmac.s: Use it.
8016 * troff/input.cc (init_registers): Initialize it.
8018 2000-01-06 Werner LEMBERG <wl@gnu.org>
8020 * PROBLEMS: Fixed typo.
8022 2000-01-04 Paul Eggert <eggert@twinsun.com>
8024 * PROBLEMS: Add Y2k advice for the yr number register.
8026 2000-01-03 Paul Eggert <eggert@twinsun.com>
8028 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
8030 2000-01-02 Werner LEMBERG <wl@gnu.org>
8032 * tmac/tmac.arkup: Slight modification of macros to provide better
8033 appearance for non-HTML formats.
8035 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
8037 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
8038 does not automatically translate to malloc(n) on all OSes
8039 (e.g., SunOS) so do it explicitly. Also, check the returned
8042 2000-01-01 Werner LEMBERG <wl@gnu.org>
8044 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
8046 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
8047 expects this variable
8049 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
8051 * doc/Makefile: Added instructions to create HTML and text
8052 versions of some files.
8054 1999-12-31 Werner LEMBERG <wl@gnu.org>
8056 * Updated INSTALL.gen.
8058 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
8059 better resp. correctly with non-HTML devices.
8061 Version 1.15 released
8062 =====================
8064 1999-12-28 Werner LEMBERG <wl@gnu.org>
8066 * NEWS, VERSION: Changed to 1.15
8068 1999-12-27 Paul Eggert <eggert@twinsun.com>
8070 * nroff/nroff.man: -S is safer, not safe.
8072 * groff/groff.cc (main): Use `safer', not `safe', in variable
8073 names. This does not change the behavior.
8075 * troff/input.cc (main): Likewise.
8077 * nroff/nroff.sh: Likewise.
8079 * troff/input.cc (prepend_string): New function.
8080 (main): Prepend -msafer, so that we check macro libraries for
8083 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
8085 Version 1.14 released
8086 =====================
8088 1999-12-26 Werner LEMBERG <wl@gnu.org>
8090 * NEWS, VERSION: Changed to 1.14.
8092 1999-12-24 Werner LEMBERG <wl@gnu.org>
8094 * refer/refer.cc: Fixing the last fix.
8096 Version 1.13 released
8097 =====================
8099 1999-12-23 Werner LEMBERG <wl@gnu.org>
8101 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
8106 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
8108 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
8109 document conventions, the version number must be a real.
8111 Version 1.12.1 released
8112 =======================
8114 1999-12-22 Werner LEMBERG <wl@gnu.org>
8116 * VERSION: Changed to 1.12.1.
8118 1999-12-22 Alan Rooks <arooks@istar.ca>
8120 * refer/refer.cc (do_file): Slight modification to satisfy the
8121 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
8124 1999-12-20 Werner LEMBERG <wl@gnu.org>
8126 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
8129 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
8130 list of unsafe requests.
8132 * pic/pic.man: Fixed a typo.
8134 * man/groff_out.man: Fixed a typo.
8136 1999-12-18 Werner LEMBERG <wl@gnu.org>
8138 * Makefile.in: Doc fixes.
8140 1999-12-17 Fabrizio Polacco <fab@prosa.it>
8142 * groff/groff.cc: Missing `U' option added to getopt().
8144 * troff/troff.man: Missing `U' option added to synopsis.
8146 Version 1.12 released
8147 =====================
8149 1999-12-14 Werner LEMBERG <wl@gnu.org>
8151 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
8154 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
8155 with the more appropriate terms `safer' and `unsafe'.
8157 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
8158 sys_nerr and sys_errlist[].
8160 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
8162 * pic/pic.y, pic/pic.cc: Added check for fmod().
8164 1999-12-13 Werner LEMBERG <wl@gnu.org>
8166 * VERSION: Changed to 1.12.
8168 Here some patches from various sources; most of them taken from
8169 the Debian distribution.
8171 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
8172 tmac/Makefile.sub: New files copied directly from the NetBSD
8173 distribution. Probably, some additional adaptation later on is
8176 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
8179 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
8180 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
8181 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
8182 (`-S') is now the default.
8184 * README, NEWS: Updated.
8186 1999-12-09 Werner LEMBERG <wl@gnu.org>
8188 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
8190 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
8192 1999-12-06 Werner LEMBERG <wl@gnu.org>
8194 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
8195 grief than relief today. Additionally, it is against the GNU
8198 * configure: Recreated.
8200 1999-12-05 Werner LEMBERG <wl@gnu.org>
8202 * configure.in: Added GROFF_LIBM.
8204 * configure: Recreated.
8206 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
8209 * Makefile.in: Added definition of $(LIBM).
8211 * Makefile.comm (LIBM): Removed.
8213 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
8215 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
8217 * doc/Makefile: Added rule for generation pic.html.
8219 (clean): Files produced by grohtml will be removed also.
8221 * doc/pic.ms: Small fix.
8223 * tmac/tmac.html: Fixed suppression of headers.
8225 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
8227 * tmac/tmac.html: Fixing horizontal arrows.
8229 Turning off hyphenation.
8231 * tmac/tmac.an: Improved support for grohtml; better indentation,
8234 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
8236 * tmac/tmac.arkup: Added CDFTP macro
8238 * tmac/tmac.html: All headers are turned off for ms, me, and mm
8241 * tmac/troffrc: Some additions for HTML stuff.
8243 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
8245 * tmac/tmac.html: Small changes.
8247 1999-09-26 Werner LEMBERG <wl@gnu.org>
8249 * doc/groff.texinfo: Minor fixes.
8251 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
8253 * devhtml/TR: Changed spacewidth to 3.
8255 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
8257 * tmac/tmac.html: Moved markup macros to tmap.arkup.
8259 * tmac/tmac.arkup: New file.
8261 * grohtml/ChangeLog: New file.
8263 1999-09-16 Werner LEMBERG <wl@gnu.org>
8265 * doc/groff.texinfo (Common Features): Added Copying chapter.
8266 Changed format to @smallbook.
8268 1999-09-15 Werner LEMBERG <wl@gnu.org>
8270 * NEWS: Added info about groff.texinfo.
8272 * doc/groff.texinfo: Will now compile (using texi2dvi) without
8275 1999-09-14 Werner LEMBERG <wl@gnu.org>
8277 * groff/groff.man: More updates.
8279 1999-09-13 Werner LEMBERG <wl@gnu.org>
8281 * doc/groff.texinfo: New file. This manual is still very
8282 rudimentary. It has been originally contributed by Trent
8283 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
8286 * INSTALL: Added information about the `doc' subdir
8288 * troff/troff.man: Minor fixes.
8290 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
8293 * troff/input.cc (usage): Added missing `-ffam' to usage message.
8295 * Makefile.in (dist): groff-$(version).tar.gz must be removed
8296 also, otherwise it is included itself in another call of `make
8299 * groff/groff.cc (synopsis): Removed superfluous space.
8301 * PROJECTS, PROBLEMS, NEWS: Updated.
8303 * VERSION: Updated to 1.12beta.
8305 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
8307 * README: Updated: Included documentation about CVS repository,
8308 mailing lists, and daily snapshots.
8310 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
8312 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
8314 * tmac/tmac.an: If the tag didn't fit into the space that the
8315 macro `TP' specifies, the rest of the tag went into the space for
8318 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
8320 * grolj4/lj4.cc: Added duplex printing (option `-d').
8322 * grolj4/grolj4.man: Document duplex printing.
8324 1999-09-12 Werner LEMBERG <wl@gnu.org>
8326 * doc/Makefile (pic.ps): Fixed rule which caused problems with
8327 non-GNUish sed programs.
8329 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
8332 * configure.in (LIBS): Added `-lc'
8334 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
8336 * pic/tex.cc (solid_arc): Casting M_PI to double.
8338 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
8340 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
8341 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
8342 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
8344 * groff/groff_man.man: New file. This manual page was originally
8345 written for the Debian GNU/Linux system by Susan G. Kleinmann
8348 * eqn/list.cc (list_box::compute_metrics,
8349 list_box::compute_sublist_width): Removed variable declaration to
8350 avoid shadowing warnings.
8352 * grops/psrm.cc (resource_manager::process_file): Ditto.
8354 * tfmtodit/tfmtodit.cc (main): Ditto.
8356 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
8357 to avoid shadowing warnings.
8359 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
8360 shadowing loop variable.
8362 * groff/groff.man, troff/troff.man: Added doc about grohtml.
8364 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
8366 New grohtml frontend to convert groff input to html.
8368 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
8370 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
8372 * tmac/eqnrc: Added html device.
8374 * tmac/tmac.html: New file.
8376 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
8377 (troff_output::start_picture, troff_output::finish_picture),
8378 tbl/main.cc (process_input_file):
8379 Surrounded output with `graphics_start' and `graphics_end' so that
8380 the html driver can identify non-text portions.
8382 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
8383 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
8384 grotty/tty.ps (tty_printer::set_char): Additional parameter
8387 * include/printer.h: Class printer: New function
8388 set_char_and_width; new variables (is_char_named, is_named_set,
8389 named_command, named_char_s, named_char_n) to hold information
8390 about named characters -- needed by the html driver.
8392 * libdriver/printer.cc (printer::set_ascii_char,
8393 printer::set_special_char): Use set_char_and_width.
8395 * devhtml/*: New device files for html driver.
8397 * grohtml/*: New driver grohtml.
8399 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
8401 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
8404 1999-09-11 Luke Mewburn <lukem@netbsd.org>
8406 * libgroff/string.cc (search): Small fix to test against NULL
8409 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
8411 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
8412 \b'abc') were stacked in reverse order when processed in a
8415 * troff/node.h: Added `*last' to struct `node' to make the above
8418 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
8419 The default scale for the 'f' and 't' graphics functions were 'm'
8420 rather than 'u' (i.e., no scaling).
8422 1999-09-11 Peter Miller <peterm@jna.com.au>
8424 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
8425 do_file), soelim/soelim.man: Added `-I file' option to soelim,
8426 defining include paths.
8428 * soelim/soelim.cc (include_path_append): New function.
8430 1999-09-11 Larry Jones <larry.jones@sdrc.com>
8432 * tbl/main.cc (process_options): Unix (at least Documenter's
8433 Workbench) tbl allows arbitrary non-alpha characters between
8436 1999-09-11 Paul Eggert <eggert@twinsun.com>
8438 Y2k fixes. Don't assume that the current year precedes 2000.
8440 * doc/meref.me: Add \n(y2, \n(y4.
8442 * tmac/doc-common (Yr): New number register.
8443 (Dd): Don't assume current year precedes 2000.
8445 * tmac/tmac.e (td): Likewise.
8446 (y2, y4): New number registers.
8448 * pic/pic.man: Update reference for pic paper to May, 1991
8451 1999-09-11 Werner LEMBERG <wl@gnu.org>
8453 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8454 Removed quotation marks which prevented correct expansion of
8457 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
8459 1999-09-10 Werner LEMBERG <wl@gnu.org>
8461 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
8464 * Removed configure.old.
8466 1999-08-31 Werner LEMBERG <wl@gnu.org>
8468 * VERSION: Updated to 1.11.1
8470 1999-05-27 Werner LEMBERG <wl@gnu.org>
8472 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
8474 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8475 added quotations around $(tmac_wrap) to avoid syntax error if
8478 * configure: Newly generated using autoconf 2.13.
8480 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
8482 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
8484 * README, PROJECTS, NEWS, INSTALL, VERSION,
8485 doc/Makefile. doc/pic.ms, groff/groff.man:
8486 Prepare for 1.11 release. No code changes.
8487 Documentation for pic added (doc/pic.ms).
8489 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
8491 * Version 1.10 released.
8493 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
8495 * afmtodit/afmtodit.pl: Avoid comment on first line.
8497 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
8499 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
8500 * configure.in: Call it.
8502 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
8503 (distfiles): Doesn't depend on config.log or config.cache.
8505 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
8507 * grog/grog.sh: Use print "" rather than print in END rule.
8509 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
8511 * tbl/main.cc (process_data): Don't give error for excess data
8512 entries that are comments.
8514 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
8516 * tbl/main.cc (process_data): Fix case where new for-scope rules
8517 silently change meaning of code.
8519 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
8521 * troff/env.cc (hyphenate): Loop over all consecutive sequences
8522 of non-zero hyphenation codes.
8524 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
8526 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
8528 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
8530 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
8532 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
8534 * tmac/tmac.andoc: Make it work in compatibility mode.
8536 * refer/token.h (token_info::is_range_sep): New function.
8537 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
8538 * refer/ref.cc (reference::output): More sophisticated check for
8541 * devps/prologue.ps (MANUAL): New procedure.
8542 * grops/ps.cc (main): New -m option.
8543 (usage): Include -m.
8544 (ps_printer::~ps_printer): Implement -m.
8546 * aclocal.m4 (GROFF_G): New macro.
8547 * configure.in: Call it.
8548 * Makefile.in (g): Provided by configure.
8550 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
8552 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
8555 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
8556 (tmac_m, tmac_s): Deleted.
8557 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
8558 tmac_s_prefix): New variables.
8559 (MDEFINES): Change accordingly.
8560 * Makefile.comm (.man.n): Use new TMAC_* variables.
8561 * configure.in (GROFF_TMAC): Call.
8562 * aclocal.m4 (GROFF_TMAC): Define.
8563 * tmac/Makefile.sub (stamp_wrap): New target.
8564 (install_data, uninstall_sub): Handle macro wrapping.
8566 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
8568 * tbl/main.cc (main): Ignore -T option.
8570 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
8572 * devlj4/generate/special.map: Add definition of \(nb.
8574 * tmac/tmac.dvi: Add definition of \(nb.
8576 * troff/dictionary.c (dictionary::dictionary): association::v gets
8577 initialized by association::association.
8579 * tmac/Makefile.sub: Avoid using temporary files when installing.
8581 * troff/env.cc (environment::set_font): Make bad font number a
8584 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
8586 * Makefile.in (datadir): Use share rather than lib.
8588 * groff/groff.cc (basename): Rename to xbasename.
8590 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
8592 * Makefile (CCLIBS): Don't use.
8593 * Makefile.ccpg: Likewise.
8595 * acgroff.m4: Rename to...
8596 * aclocal.m4: Modify extensively for autoconf 2.
8597 * configure.in: Likewise.
8598 * Makefile.in: Likewise.
8600 * groff/pipeline.c (const): Declare as empty if __STDC__ not
8602 (xstrsignal): Check for definition of NSIG. Conditionalize
8603 on SYS_SIGLIST_DECLARED. Make return type const.
8605 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
8607 * troff/input.cc (interpolate_macro): Rephrase missing space
8610 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8612 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
8613 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
8614 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
8615 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8616 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
8617 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
8618 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
8619 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
8620 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
8621 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
8622 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
8625 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
8627 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
8629 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
8631 (macro_iterator::macro_iterator): Add additional argument.
8633 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
8635 * troff/div.cc (vertical_size::vertical_size): In place of integer
8636 specifying line spacing use cunits specifying post vertical
8638 (macro_diversion::output, top_level_diversion::output): Likewise.
8639 * troff/div.h: Change declarations accordingly.
8640 * troff/env.cc (pending_output_line): Replace ls field by post_vs
8642 (pending_output_line::pending_output_line,
8643 pending_output_line::output, environment::output,
8644 environment::output_line, environment::output_title,
8645 environment::hyphenate_line): In place of
8646 integer specifying line spacing use cunits specifying post vertical
8648 (environment::environment): Add post_vertical_spacing and
8649 prev_post_vertical_spacing arguments.
8650 (environment::get_post_vertical_spacing): New function.
8651 (environment::total_post_vertical_spacing): New function.
8652 (environment::post_vertical_spacing): New function.
8653 (init_env_requests): Initialize pvs request and .pvs register.
8654 * troff/env.h: Change declarations.
8656 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
8658 * tmac/tmac.pspic: Immediately remove the temporary file.
8660 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
8662 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
8663 height is specified.
8665 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
8667 * tbl/table.c (struct vertical rule, class table_entry): Use int
8668 not short for start_row and end_row.
8670 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
8672 * troff/input.cc (trapping_blank_line, blank_line_macro): New
8674 (diverted_space_node::reread, process_input_stack): Call
8675 trapping_blank_line() rather than blank_line().
8676 (init_input_requests): Bind "blm" to blank_line_macro().
8678 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
8680 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
8682 * troff/env.cc (environment::possibly_break_line): Require that
8683 width total excluding width of final space node be greater than
8684 the target text length.
8686 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
8688 * troff/node.cc (kern_pair_node::vertical_extent): New function.
8690 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
8692 * troff/node.cc (charinfo_node): New class.
8693 (glyph_node, composite_node): Derive from charinfo_node. Change
8694 member functions accordingly.
8696 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
8698 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8700 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
8702 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8704 * devps/generate/textmap (notsubset): Add.
8706 * tmac/tmac.a4: New file.
8708 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
8710 * pic/main.cc (had_parse_error): New variable.
8711 (do_picture, do_whole_file): Set had_parse_error if yyparse()
8713 (main): Return 1 if had_parse_error is true.
8715 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
8717 * grolj4/lj4.cc (main): Avoid use of strtoul.
8719 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
8721 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8722 iso_8859_1 or $LESSCHARSET is latin1.
8724 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
8726 * hpftodit: New directory.
8727 * Makefile.in (CCPROGDIRS): Add hpftodit.
8728 * devlj4/generate: New directory.
8730 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
8732 * configure.in: Don't use AC_VFORK.
8733 * groff/pipeline.c (run_pipeline): Use fork() always.
8735 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
8737 * grops/ps.cc (main): Use %1 not %s in error message for -w.
8739 * Makefile.in (CCPROGDIRS): Add grolj4.
8740 (DEVDIRS): Add devlj4.
8741 * grolj4, devlj4: New directories.
8742 * tmac/troffrc: Handle lj4.
8743 * tmac/tmac.lj4: New file.
8745 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
8747 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8749 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
8751 * troff/input.cc (do_if_request): At end of second string, switch
8752 environments before getting next token.
8754 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
8756 * devps/psstrip.sed: Split rule that strips whitespace on either
8759 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
8761 * troff/node.h (font_family::make_definition): Add return value to
8762 declaration. * troff/symbol.h (symbol::operator==,
8763 symbol::operator!=): Likewise.
8765 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
8767 * groff/groff.cc (main, help, synopsis): Handle -S.
8768 (possible_command::insert_arg): New function.
8770 * tmac/tmac.safer: New file.
8771 * tmac/msafer.man: New file.
8772 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8774 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
8776 * pic/pic.h, pic/main.cc (safer_flag): New variable.
8777 * pic/pic.y (placeless_element): Avoid unsafe operations if
8778 `safer_flag' is set.
8779 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8781 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
8783 * eqn/lex.cc (get_token): Put call to add_context() in block to
8784 work around Sun C++ 4.0 bug.
8786 * include/stringclass.h (operator +): Use ?: instead of `if' to
8787 work around Sun C++ 4.0 bug.
8789 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
8791 * tbl/main.cc (process_format): Accept - as a synonym for the _
8794 * libbib/index.cc (minus_one): Don't declare as const.
8796 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
8798 * troff/input.cc (get_char_for_escape_name): Push back a newline.
8800 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
8802 * troff/input.cc (write_macro_request): New function.
8803 (init_input_requests): Bind write_macro_request to writem.
8805 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
8807 * tmac/tmac.s (@EN): Turn filling back on even if there was no
8810 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8812 * tmac/tmac.s (@TS): Renamed from TS.
8813 (TS): Call LP then TS again.
8814 (cov*ab-init): Alias @TS to TS.
8816 * tmac/tmac.s: Allow QP or RS to initialize.
8818 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
8819 Move initializations of PS and LL here.
8820 (par@init): Don't initialize HY. Avoid changing environment 0.
8821 (par*env-init): Don't all par@reset.
8823 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
8825 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8827 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
8829 * Makefile.in (MDEFINES): Add LDFLAGS.
8830 (LDFLAGS): Add definition line.
8832 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
8834 * troff/input.cc (get_optional_char): Split off error check into...
8835 (check_missing_character): New function.
8836 * troff/token.h: Declare it.
8837 * troff/env.cc (margin_character): Don't call get_optional_char.
8838 Only call tok.next() after making the node.
8840 * include/lib.h (getopt): Make 2nd argument char *const *.
8842 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
8844 * nroff/conftest.sh: Deleted.
8846 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
8848 * pic/make-dos-dist: Deleted.
8850 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
8852 * devps/psstrip.sed: Strip comments before stripping trailing
8855 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
8857 * Version 1.09 released.
8859 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
8861 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8863 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
8865 * libgroff/font.cc (font::load_desc): Fix typo in error message.
8867 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
8869 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8870 about returning without a value.
8872 * troff/charinfo.h (charinfo::get_special_translation): Cast
8873 TRANSLATE_NONE to int.
8875 * refer/token.cc (lookup_token, store_token): Remove bogus loop
8876 test. Fix test so that it works with n unsigned.
8878 * pic/pic.y (defaults_table): Fully bracket initializer.
8879 * pic/lex.cc (lookup_keyword): Likewise.
8880 * eqn/lex.cc (token_table, def_table): Likewise.
8881 * eqn/box.cc (param_table): Likewise.
8882 * troff/input.cc (warning_table): Likewise.
8883 * libgroff/font.cc (table): Likewise.
8884 * grops/ps.cc (ps_printer::special): Likewise.
8885 * grops/psrm.cc (resource_manager::process_file): Likewise.
8886 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8887 * refer/command.cc (command_table): Likewise.
8888 * addftinfo/addftinfo.cc (param_table): Likewise.
8890 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8891 about temp's being unused.
8892 (unused): New function.
8894 * groff/pipeline.cc: Declare c_fatal.
8896 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8899 * libbib/index.cc (index_search_item::load): Prevent compiler
8900 warnings about fd_closer's being unused.
8901 (unused): New function.
8903 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
8905 * troff/input.cc (copy_mode_error): Make `prefix' static.
8908 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8910 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8911 HAVE_CC_OSFCN_H and modify accordingly.
8913 * troff/input.cc (init_charset_table): radicalex overlaps
8916 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
8917 udodo!hans@relay.NL.net).
8918 * groff/configure.in: Call it.
8920 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
8921 * groff/configure.in: Call it.
8922 * include/lib.h: Conditionalize declaration of pclose.
8924 * troff/div.cc (last_page_number): New global variable.
8925 (top_level_diversion::begin_page): Exit if we just printed the
8927 * troff/div.h (last_page_number): Declare it.
8928 * troff/input.cc (parse_output_page_list): Set last_page_number.
8930 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
8931 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
8932 tmac/tmac.X: Likewise.
8933 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
8934 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
8936 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
8938 * tmac/doc-ditroff (hK): Remove groff specific code which
8939 prevented page-breaks between separate manual entries. If this is
8940 the first page, don't set the page number to 1.
8942 * acgroff.m4 (GROFF_POSIX): New macro.
8943 * configure.in: Use it.
8945 * troff/node.cc (class real_output_file,
8946 real_output_file::real_output_file,
8947 real_output_file::~real_output_file): Conditionalize use of
8948 popen/pclose on POPEN_MISSING.
8949 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
8950 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
8951 (pipe_source): Similarily.
8953 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
8955 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
8956 presence of declarations by trying to compile example with
8957 conflicting declarations. (gcc only gives a warning for missing
8960 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
8962 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
8963 (from Ulrich Lauther).
8965 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
8967 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
8969 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
8971 * indxbib/indxbib.cc (write_hash_table): Add code for case where
8972 pointers and ints have different sizes.
8974 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
8976 * tmac/tmac.s (par*env-init): Call par@reset.
8978 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
8980 * tmac/tmac.s (@IP): Switch to a new environment when diverting
8982 (par*push-tag-env, par*pop-tag-env): New macros.
8984 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
8986 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
8987 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
8989 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
8990 comment. Include <time.h>.
8992 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
8994 * grops/ps.cc (is_small_h, is_small_v): Deleted.
8995 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
8998 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
9000 * troff/input.cc (read_request): Only print a prompt if reading
9001 from the terminal. Also clearerr on EOF if reading from the
9002 terminal. Declare isatty.
9004 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
9006 * refer/label.y: Rename map_t to map_func and extractor_t to
9009 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
9011 * include/assert.h: Don't use volatile.
9012 * libgroff/assert.cc: Likewise.
9014 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
9016 * troff/input.cc (abort_request): Look at character in tok before
9019 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
9021 * troff/troff.h (NO_RETURN): Deleted.
9022 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
9023 * troff/input.cc (exit_troff): Likewise
9025 * Makefile.in: Remove `Making ...' messages since GNU make now
9028 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
9030 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
9032 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
9035 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
9037 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
9039 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
9041 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
9042 MARK_REG if there was no left delimiter.
9044 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
9046 * pic/troff.cc (troff_output::text): Set line thickness to
9047 relative before outputting text.
9049 * tmac/tmac.e (@k): Don't zero ?T.
9052 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
9054 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
9056 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
9058 * troff/input.cc (decode_args): Warn about unquoted tabs (from
9061 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
9063 * troff/input.cc (ignoring): New variable.
9064 (ignore): Set ignoring during call to do_define_macro.
9065 (do_define_macro): Clear ignoring before interpolating terminating
9067 (copy_mode_error): New function.
9068 (get_char_for_escape_name, read_long_escape_name,
9069 interpolate_arg): Use copy_mode_error.
9070 (warning_table): Add WARN_IG.
9071 * troff/troff.h (WARN_IG): Declare.
9072 (WARN_TOTAL): Change accordingly.
9074 * groff/pipeline.c (strsignal): Rename to xstrsignal.
9075 * groff/groff.cc (strsignal): Delete declaration.
9077 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
9079 * troff/div.cc (page_offset): Use 'm' as default scaling.
9081 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
9083 * nroff/nroff.sh: Ignore -u.
9085 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
9087 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
9089 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
9091 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
9093 (B2): With -Tascii, leave additional vertical space before
9094 and after. Ensure that the left and right indent is restored to
9095 what it was even if the point size changes. Don't call
9096 par@finish. Change the indent, line length and title length
9097 directly. With -Tascii, make the width of the box 1n less.
9098 (B1): Remember 1n at the current point size. Don't call
9099 par@reset. Change the indent, line length and title length
9100 directly. Ensure that the temporary indent is preserved.
9101 (par*box-mark-top): Turn off no spacing mode.
9103 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
9105 * Makefile.in (dist): Use .gz suffix.
9107 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
9109 * troff/input.cc (main): Add return 0.
9110 * pic/main.cc (main): Use return instead of exit.
9111 * tbl/main.cc (main): Likewise.
9112 * eqn/main.cc (main): Likewise.
9113 * grops/ps.cc (main): Likewise.
9114 * grotty/tty.cc (main): Likewise.
9115 * groff/groff.cc (main): Likewise.
9116 * grodvi/dvi.cc (main): Likewise.
9117 * refer/refer.cc (main): Likewise.
9118 * indxbib/indxbib.cc (main): Likewise.
9119 * lkbib/lkbib.cc (main): Likewise.
9120 * soelim/soelim.cc (main): Likewise.
9121 * addftinfo/addftinfo.cc (main): Likewise.
9122 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
9123 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
9125 * troff/token.h (process_input_stack): Don't declare as static.
9126 * troff/input.cc: Likewise.
9128 * troff/node.c (invalidate_fontno): Make it a static member of
9129 class font_family. Change callers.
9130 * troff/node.c: Change declaration.
9132 * tbl/main.cc (struct input_entry_format): Add explicit public
9134 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
9135 struct double_hline_stuff): Likewise.
9136 * tbl/table.h (struct entry_format): Likewise.
9137 * pic/object.h (struct saved_state): Likewise.
9139 * include/stringclass.h: Add forward declarations of friend
9140 functions that are later declared as inline. Don't include inline
9141 specifier in friend declaration.
9143 * libgroff/lib.h: Declare popen and pclose.
9144 * acgroff.m4 (GROFF_POPEN): New macro.
9145 * configure.in: Call it.
9147 * include/lib.h (PI): New constant. Undef first if necessary.
9148 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
9149 * grops/ps.cc (degrees, radians): Likewise.
9150 * libgroff/font.cc (font::get_skew): Likewise.
9152 * grops/ps.cc (is_ascii): New function.
9153 (ps_output::put_string): Use is_ascii. Use csprint rather than
9155 (ps_printer::define_encoding): Use csspace.
9156 * libgroff/strtol.c (ISASCII): New macro.
9157 (strtol): Cast arguments to is*() and tolower() to unsigned char.
9158 Use ISASCII rather than isascii.
9159 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
9160 * libgroff/cset.cc: Likewise.
9161 * libdriver/input.cc: Include cset.h.
9162 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
9165 * refer/refer.cc (main): Use %ld rather than %d for longs.
9167 * libbib/index.cc (index_search_item_iterator::get_tag): Use
9170 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
9172 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
9174 * troff/input.cc (hyphenation_code): Skip white space between
9177 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
9179 * tbl/table.h (table::entry_list_tailp): New member.
9180 (table::table): Initialize it.
9181 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
9184 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
9186 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
9187 with negative horizontal positions. Remove casts of glyph::hpos to
9189 (USHRT_MAX): Delete definition.
9190 (SHRT_MAX, SHRT_MIN): New definitions.
9191 (glyph::hpos): Change type to short.
9192 (tty_printer::end_page): Output multiple backspaces if necessary.
9193 Remove casts of glyph::hpos to int.
9195 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
9197 * tmac/tmac.s (@RT): New definition.
9199 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
9201 * refer/refer.cc (do_file): Make sure current_filename is set when
9204 * pic/common.cc (common_output::dot_line): Handle zero length
9207 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
9209 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
9210 (par@init): Initialize \n[HY].
9212 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
9214 * troff/dictionary.cc (dictionary::remove): Continue when
9217 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
9219 * Makefile.com (.y.cc): Avoid ending up with two versions of
9222 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
9224 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
9225 (\(,C): Likewise. Also fix typo.
9227 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
9229 * lib.h: Delete extraneous semi-colon.
9231 * Add pso request: `so' from a pipe.
9232 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
9233 (file_iterator::close): New function.
9234 (file_iterator::~file_iterator, file_iterator::next_file): Use
9235 file_iterator::close.
9236 (file_iterator::backtrace): Say `process' rather than `file' when
9237 the stream is popened.
9238 (pipe_source): New function.
9239 (init_input_requests): Bind ".pso" to pipe_source.
9241 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
9243 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
9245 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
9246 digits in lower case.
9248 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
9250 * Version 1.08 released.
9252 * Makefile.in (dist): Insert || true after ln -s commands that
9255 * mm: Update to mm 1.16.
9257 * acgroff.m4 (GROFF_CSH_HACK): New macro.
9258 * configure.in: Call GROFF_CSH_HACK. Substitute for
9260 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
9262 * nroff/Makefile.sub (nroff): New target.
9263 (install_data): Install nroff.
9264 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
9265 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
9267 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
9269 * eqn/Makefile.sub (neqn): Add chmod +x.
9271 * grog/Makefile.sub (grog): Remove spurious semi-colon.
9273 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
9275 * troff/input.cc (string_iterator::string_iterator()): Initialize
9278 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
9280 * troff/div.cc (macro_diversion::space,
9281 top_level_diversion::space): Don't set high_water_mark.
9282 (macro_diversion::output, top_level_diversion::output): Don't
9283 include post line space in high water mark.
9285 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
9287 * eqn/eqn.y: Don't define YYDEBUG.
9288 * pic/pic.y: Likewise.
9290 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
9292 * tmac/tmac.e ([3): Add space after comma following editors.
9293 Change double spaces to single spaces.
9294 ([4): Change double spaces to single spaces.
9296 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
9297 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
9298 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
9299 after %!PS-Adobe- (for Newsprint).
9301 * troff/div.cc (top_level_diversion::begin_page): When
9302 before_first_page is 1, set page_number to 1.
9304 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
9306 * eqn/box.cc (box::top_level): Protect equation with \&.
9308 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
9310 * groff/groff.cc (possible_command::set_name): Delete old name.
9312 * groff/groff.cc (possible_command::~possible_command): Use
9315 * troff/node.cc (troff_output_file::begun_page): New member.
9316 (troff_output_file::troff_output_file): Initialize it.
9317 (troff_output_file::really_begin_page): Only output V command if a
9318 page has been begun.
9320 * pic/pic.y (placeless_element): Delete argument to PRINT after
9323 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
9325 * Make wrapman work.
9326 * troff/div.h (class top_level_diversion): Replace
9327 first_page_begun by before_first_page (with opposite sense).
9328 * Change first_page_begun to before_first_page inverting sense.
9329 * troff/div.cc (class nl_reg): New class.
9330 (init_div_requests): Use class nl_reg for \n(nl.
9331 (top_level_diversion::begin_page): Don't call
9332 output_file::begin_page if before_first_page is 2;
9333 reset before_first_page afterwards. If have_next_page_number is
9334 false, then always increment page_number.
9335 * tmac/tmac.an: Set traps within TH rather than at the top-level.
9336 Restore compatibility mode after loading, and then disable
9337 compatibility mode in TH.
9339 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
9341 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
9343 * troff/node.h (output_file::trailer): Declare.
9344 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
9345 * troff/node.cc (output_file::trailer): New function.
9346 (troff_output_file::~troff_output_file): Move most code into...
9347 (troff_output_file::trailer): New function.
9348 (class troff_output_file): Delete page_length member. Declare
9350 (troff_output_file::really_begin_page): Use current page length
9351 for final V command.
9353 * tbl/main.cc (struct options): New decimal_point_char member.
9354 (options::options): Initialize this.
9355 (process_options): Implement decimalpoint option.
9356 (process_data): Pass decimal_point_char option to table::table.
9357 * tbl/table.h (class table): New decimal_point_char member.
9358 (table::table): Add additional argument.
9359 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
9360 second argument specifying decimal point character. Use this
9362 (table::table): Initialize decimal_point_char.
9363 (table::add_entry): Change call to find_dot.
9365 * troff/input.cc (get_copy, token::next): Implement \V.
9366 (interpolate_environment_variable): New function.
9368 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
9370 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
9371 * pic/pic.y: Likewise.
9373 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
9375 * refer/ref.cc (reference::insert_field, reference::delete_field):
9377 * troff/number.cc (parse_term): Likewise.
9379 * acgroff.m4 (GROFF_PROG_YACC): New macro.
9380 * configure.in: Use GROFF_PROG_YACC.
9382 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
9384 * Makefile.in (OPTIMIZE): New define.
9385 (DEBUG): Empty by default.
9386 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
9388 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
9389 (GROFF_ARRAY_DELETE): Likewise.
9390 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
9392 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
9394 * devps/psstrip.sed: Use different delimiter on last line (so that
9395 it works with BSD 4.4 sed.)
9397 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
9399 * devps/psstrip.sed: Delete comments.
9401 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
9402 optind, opterr, optarg.
9403 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
9406 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
9408 * Makefile.in (check): Dummy target.
9410 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
9412 * Version 1.07 released.
9414 * Integrate mm 1.11.
9416 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
9417 where start_col was meant.
9419 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
9421 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
9423 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
9425 * troff/input.cc (token::next): Make \z\o'...' and similar things
9428 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
9430 (environment): Add margin_character_flags member.
9431 * env.cc (environment::environment(symbol),
9432 environment::environment(const environment *): Initialize
9433 margin_character_flags.
9434 (margin_character): Rewrite.
9435 (environment::output_line): Add a margin character if
9436 margin_character_flags is non-zero. Turn off the
9437 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
9438 zero, use margin_character_node without copying and then set
9439 margin_character_node to 0.
9441 * devps/DESC.in: Change minimum size to 1000.
9443 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
9445 * troff/symbol.h (symbol::hash): Change return type to unsigned
9447 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
9450 * test-groff: Use -r rather than -x.
9452 * grops/psfig.diff: Include in distribution again.
9454 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
9456 * Makefile.in (dist): Use gzip.
9458 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
9460 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
9461 unistd.h as well as in stdlib.h.
9462 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
9463 defined; otherwise include <sys/types.h> and <unistd.h> if
9464 UNISTD_H_DECLARES_GETOPT is defined.
9466 * configure.in: use builtin(include, ... rather than include(...
9467 * configure: Regenerate with autoconf 1.3.
9469 * libdriver/print.cc (printer::adjust_arc_center): Use new
9470 algorithm suggested by Andy Fyfe.
9472 * libdriver/printer.cc (printer::adjust_arc_center): New function.
9473 * include/printer.h: Declare this.
9474 * grops/ps.cc (ps_printer::draw): Use it.
9475 * grodvi/dvi.cc (dvi_printer::draw): Use it.
9477 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
9479 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
9481 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
9483 * eqn/main.cc (main): Handle "eqn -".
9485 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
9487 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
9489 * mm: Integrate version 1.08.
9491 * pic/troff.cc (troff_output::finish_picture): Set
9492 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
9493 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
9494 if it's not defined. Check whether the register is non-zero rather
9495 than whether it's not defined.
9496 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
9498 * indxbib/indxbib.cc: Move all signal handling into...
9499 * indxbib/signal.c: New file.
9500 * configure.in: Call AC_RETSIGTYPE.
9502 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
9503 * configure.in: Call GROFF_STRUCT_EXCEPTION.
9504 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
9506 * troff/input.cc (token::token, token::operator=): Work round SGI
9508 * pic/object.cc (position::position): Likewise.
9510 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
9512 * pic/pic.h: Move declaration of hypot().
9514 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
9516 * pic/pic.h: Declare hypot().
9518 * pic/pic.h: Define M_PI if necessary.
9520 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
9522 * tmac/tmac.e (re): Add alternative version that doesn't use groff
9525 * devps/prologue.ps (RE): Handle the possibility that the old font
9526 doesn't have a FontName entry.
9528 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
9530 * tmac/tmac.e (fam): Redefine to set family in environment 2.
9531 (@C): Use @fam not fam.
9533 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
9535 * lookbib/lookbib.cc (main): Change type of start to const char *.
9536 * lkbib/lkbib.cc (main): Likewise.
9538 * eqn/lex.cc (definition::definition): Don't use member
9539 initializer syntax for members of anonymous unions.
9541 * troff/input.cc (input_stack::backtrace): Change type of to const
9544 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
9546 * include/stringclass.h (class string): Declare inline friend
9547 functions as inline in class declaration.
9548 * troff/hvunits.h (class hunits, class vunits): Likewise.
9549 * include/refid.h (class reference_id): Likewise
9550 * troff/troff.h (points_to_units(units), scale(units, double)):
9551 Delete declarations.
9552 * libdriver/input.cc (get_char): Delete declaration.
9553 * include/lib.h: Change 2nd argument of getopt from const char **
9555 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
9556 char **' before assigning to a `const char **'.
9557 * tbl/table.cc: Delete extra declarations of prints().
9559 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
9561 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
9562 char **' before assigning to a `const char **'.
9564 * libgroff/errarg.cc (errarg::errarg): Don't use member
9565 initializer syntax for members of anonymous unions.
9567 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
9569 * mm: Integrate version 1.07.
9571 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
9573 * troff/input.c (translate2): Rename to
9574 (translate_no_transparent).
9575 (init_input_requests): Rename tr2 to trnt.
9577 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
9579 * troff/charinfo.h (class charinfo): Add transparent_translate field.
9580 (charinfo::set_translation, charinfo::set_special_translation):
9581 Add second argument that specifies value for
9582 transparent_translate.
9583 (charinfo::get_translation, charinfo::get_special_translation):
9584 Add optional second argument that specifies whether translation is
9585 being used for transparent throughput.
9586 * troff/input.cc (charinfo::set_translation,
9587 charinfo::set_special_translation): Handle second argument.
9588 (charinfo::charinfo): Initialize transparent_translate.
9589 (translate): Split main part off into
9590 (do_translate): New function. Pass argument saying whether
9591 translation applies to transparent throughput.
9592 (translate2): New request.
9593 (init_input_requests): Bind translate2 to `tr2'.
9595 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
9597 * tbl/table.h (class table): Add `nokeep' flag.
9598 * tbl/main.cc (process_options): Handle `nokeep' option.
9599 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
9600 table::do_bottom): Don't output keep/release macro definitions or
9601 calls when `nokeep' option has been specified.
9603 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
9605 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
9607 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
9609 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
9610 block_entry::divert, alphabetic_block_entry::divert): Add extra
9611 argument giving column separation.
9612 (table::compute_widths): Pass column separation to
9613 table_entry::divert().
9614 (block_entry::do_divert): If an entry spans multiple columns and a
9615 minimumum width has been specified for each column, then set the
9616 line length to the sum of the widths (plus possibly the column
9619 * troff/input.cc (set_escape_char): Don't set the escape_char
9620 until after calling has_arg().
9622 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
9624 * tbl/table.cc (table::do_top): Add missing \s0 for double box
9627 * tbl/table.cc (table::print_double_hline): Avoid extra new line
9628 in case where r > nrows - 1.
9630 * tbl/table.cc (BODY_HEIGHT): Deleted.
9631 (LINE_SEP): New definition.
9632 (table::print_single_hline, table::print_double_hline,
9633 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
9634 table::do_row, table::do_top): Use LINE_SEP space before a line
9635 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
9637 * tbl/table.cc (text_entry::print_contents): New function.
9638 (text_string_name, right_text_string_name): Deleted.
9639 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
9640 (simple_text_entry::do_width, numeric_text_entry::do_width,
9641 alphabetic_text_entry::do_width): Don't store the contents of the
9643 (left_text_entry::simple_print, right_text_entry::simple_print,
9644 center_text_entry::simple_print,
9645 alphabetic_text_entry::simple_print,
9646 numeric_text_entry::simple_print): Print the entry directly
9647 instead of using the stored string.
9649 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
9651 * devps/Makefile: Strip PostScript files.
9652 * devps/prologue: Rename to...
9653 * devps/prologue.ps.
9654 * devps/psstrip.sed: New file.
9655 * devps/download: Use .pfa rather than .ps for installed versions
9658 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
9660 * troff/env.cc (input_trap): Give a warning if the argument is out
9663 * troff/env.cc (adjust): Treat negative argument as missing. Round
9664 argument > 5 down to 5.
9666 * troff/env.cc (center, right_justify): Make negative argument zero.
9668 * troff/div.cc (page_offset, vertical_position_traps): Treat
9669 invalid argument as missing.
9670 * troff/env.cc (line_spacing, line_length, title_length, indent,
9671 underline, hyphen_line_max_request, control_char,
9672 no_break_control_char, widow_control_request, adjust, input_trap,
9673 point_size): Likewise.
9674 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
9675 constant_space): Likewise.
9676 * troff/input.cc (compatible, shift, warn_request,
9677 set_escape_char): Likewise.
9679 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
9680 * tbl/table.cc (table::table): Likewise.
9682 * Makefile.dev (install_dev): depends on $(DEVFILES).
9684 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
9686 * devX75, devX75-12, devX100, devX100-12: New directories.
9687 * Makefile.in: Add these to DEVDIRS.
9689 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
9690 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
9691 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
9692 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
9694 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
9695 (uninstall): New target.
9696 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
9697 uninstall_prog, uninstall_dev): New targets.
9699 * troff/div.cc (return_request): Treat an invalid argument as
9702 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
9704 * tmac/tmac.e ((f): Set up the environment even when there's a
9705 current diversion. Transperently throughput a call to @N.
9708 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
9710 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9711 up to vertical resolution.
9713 * tbl/table.cc (table::do_row): Change row number after printing
9716 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9718 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
9720 * Rename CHANGES to NEWS.
9722 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
9724 * libgroff/new.cc (operator new): Avoid calling malloc(0).
9726 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
9728 * man.ultrix: Removed.
9730 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
9732 * Makefile.comm (extraclean): Delete files whose names begin with
9735 * pic/troff.cc (troff_output::text): Fix typo in implementation of
9738 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
9740 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9741 * troff/div.cc (page_length, need_space, space_request): Treat
9742 invalid optional argument as missing.
9743 * troff/env.cc (number_lines): If the first argument is present
9744 but not a number, turn on line numbering, don't change the next
9745 line number and parse the remaining arguments.
9747 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9749 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
9751 * eqn/box.h: Change declaration accordingly.
9752 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
9753 the specified size was bad but don't give an error. Check for
9755 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9756 * eqn/lex (do_size): Likewise.
9758 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
9760 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9763 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
9765 * tbl/table.cc (table::init_output): Improve error message when
9766 table won't fit on one page.
9768 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
9770 * pic/troff.cc (troff_output::start_picture): Generate line
9771 containing a horizontal motion equal to the width of the picture.
9773 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9774 using GROFF_COMMAND_PREFIX environment variable.
9776 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
9778 * mdate.sh: Use $NF rather than $(NF).
9780 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
9782 * pic/main.cc (main): Use %1 not %c in argument to warning.
9784 * eqn/main.cc (main): Output code to check that geqn was given the
9787 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
9789 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9790 `ln -s ../Makefile .; make; rm -f Makefile'.
9792 * troff/hyphen: Rename to...
9794 * troff/input.cc (main): Delete -H option. Don't call
9796 * troff/env.cc: Include searchpath.h and macropath.h.
9797 (exception_dictionary): Deleted.
9799 (read_hyphen_file): Deleted.
9800 (hyphenation_language): New struct.
9801 (class trie, class hyphen_trie): Move declarations up.
9802 (trie_node::~trie_node): Deleted.
9803 (trie::delete_trie_node): New function.
9804 (trie::do_delete): New pure virtual function.
9805 (hyphen_trie::do_delete): New function.
9806 (trie::~trie): New function.
9807 (hyphen_trie::~hyphen_trie): New function.
9808 (trie::clear): No need to chcek that tp is not 0.
9809 (current_language, language_dictionary): New variables.
9810 (hyphen_word): Give an error if no current language. Use
9811 exceptions dictionary in current language.
9812 (hyphen_trie::read_patterns_file): Find file using macro_path.
9813 Allow comments (starting with %) in patterns file. Don't make it
9814 a fatal error if the file can't be found.
9815 (hyphenate): Return if no current language. Get the exceptions
9816 dictionary and the hyphenation patterns from the current language.
9817 (set_hyphenation_language): New variable.
9818 (hyphenation_patterns_file): New function.
9819 (hyphenation_language_reg): New class.
9820 (hyphenation_language_reg::get_string): New function.
9821 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9822 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
9824 * groff/groff.cc (main, help, synopsis): Delete -H option.
9825 * include/Makefile.sub: Don't define HYPHENFILE.
9826 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9827 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9828 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9829 hyphenation patterns.
9831 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
9833 * eqn/neqn.sh: New file.
9834 * eqn/Makefile.sub: Handle neqn.sh.
9836 * eqn/eqn.h: Declare `nroff' variable.
9837 * eqn/box.cc (param_table): Add `nroff' param.
9839 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9841 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9843 * troff/troff.h (WARN_FONT): New warning.
9844 (WARN_TOTAL): Change accordingly.
9845 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9846 (warning_table): Add WARN_FONT.
9847 * troff/node.cc (mount_font_no_translate): Pass argument to
9848 font::load_font. If this is non-zero, give a warning.
9849 Don't give an error message when accessing a font that has already
9850 been found to be invalid.
9851 * include/font.h (font::load, font::load_font): Add additional
9852 optional argument which suppresses error message if the font is
9854 * libgroff/font.cc (font::load_font): Handle additional argument.
9855 (font::load): Add additional argument. If this is non-null, set it
9856 to 1 and don't give error message.
9858 * include/printer.h (printer::end_page): Add argument giving
9860 * libdriver/input.cc (do_file): Pass this.
9861 * grops/ps.cc (ps_printer::end_page): Add argument.
9862 * grodvi/dvi.cc (dvi_printer::end_page,
9863 draw_dvi_printer::end_page): Add argument.
9864 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9865 columns_per_page members. New member nlines.
9866 (DEFAULT_LINES_PER_PAGE): Deleted.
9867 (tty_printer::tty_printer): Don't compute lines_per_page from
9868 font::paperlength. Don't compute columns_per_page from
9870 (tty_printer::add_char): Don't check horizontal position against
9871 columns_per_page. Grow glyphs vector if neccessary.
9872 (tty_printer::end_page): Add argument giving page_length in units.
9873 Discard lines past end of page.
9875 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
9877 * tmac/tmac.tty-char: Fix definition of \(/l.
9879 * tmac/tmac.X: Define \(en.
9881 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
9883 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9884 lpq, then use lp rather than lpr.
9886 * tmac/tmac.s (par@reset): Don't call `ad'.
9887 (par*env-init): Call `ad'.
9889 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
9891 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9894 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9895 * indxbib/indxbib.cc: Likewise.
9897 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
9899 * libgroff/putenv.c: New file.
9900 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9901 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9902 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9903 stdlib.h with AC_HAVE_HEADERS.
9905 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
9907 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9910 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
9912 * eqn/box.cc (gsize): Make it an int.
9913 (set_gsize): Parse argument handling increment or decrement.
9914 (box::top_level): Convert gsize to a string.
9916 * troff/input.cc (exit_troff): Make buf unsigned char [].
9917 Call to make_temp_iterator casts buf to char*.
9919 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
9921 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
9922 * Makefile.cpg (depend.temp): Likewise.
9924 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
9926 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
9928 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
9930 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
9932 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
9934 * Version 1.06 released.
9936 * Integrate mm 1.04.
9938 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
9940 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
9942 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
9944 * afmtodit/afmtodit.pl: Add -n option that disables generation of
9946 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
9947 afmtodit. Regenerate.
9949 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
9950 @f back past the current position.
9952 * tmac/tmac.e: Change calls to @R so that comments are not part of
9955 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
9957 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
9959 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
9960 check that we can link a call to a function declared in <stdio.h>.
9961 (GROFF_UNISTD_H): New macro.
9962 * configure.in: Call it.
9963 * Makefile.in: Document it.
9964 * include/posix.h: New file.
9965 * troff/troff.h: Don't include <osfcn.h>
9966 * troff/input.cc: Include posix.h.
9967 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
9969 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
9970 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
9972 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
9973 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
9974 * libbib/search.cc (O_RDONLY): Delete definition.
9975 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
9976 Don't include <osfcn.h>.
9978 * acgroff.m4 (GROFF_TIME_T): New macro.
9979 * configure.in: Call it.
9980 * Makefile.in: Document it.
9982 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
9983 * configure.in: Call it.
9984 * Makefile.in: Document -DTRADITIONAL_CPP.
9985 * include/ptable.h: Don't include generic.h.
9988 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
9989 Afterwards remove [T1 and [T2.
9990 (ref*spec!0, ref*spec!2): Use T1 rather than T.
9991 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
9992 (ref*add-T2): Renamed from ref*add-T.
9993 (ref*add-T1): New macro.
9995 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
9997 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
9999 * libbib/index.cc: Include <fcntl.h>.
10000 (O_RDONLY): Define if necessary.
10001 (make_index_search_item, index_search_item_iterator::get_tag,
10002 index_search_item::check_files): Use O_RDONLY.
10003 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
10004 (O_RDONLY): Define if necessary.
10005 (search_list::add_file): Use O_RDONLY.
10006 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
10008 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
10011 * libbib/index.cc (S_ISREG): Define it if necessary.
10012 (index_search_item::load): Use S_ISREG.
10014 * include/driver.h: Include <errno.h>.
10016 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
10018 * eqn/box.cc (body_height): Increase default value to 85.
10019 (body_depth): Increase default value to 35.
10021 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
10023 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
10024 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
10025 protected from expansion with \E.
10027 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
10029 * Makefile (Makefile): New target.
10031 * Makefile.sub (configure, distfiles): New targets.
10033 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
10036 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
10038 * eqn/box.cc (param_table): Add body_height and body_depth.
10040 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
10042 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
10044 * psbb/Makefile.sub: Don't link with libgroff.a.
10046 * acgroff.m4 (GROFF_PUTENV): New macro.
10047 * configure.in: Call GROFF_PUTENV.
10048 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
10049 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
10052 * troff/env.cc (distribute_space): Rename force_forward argument
10053 to force_reverse. Reverse the list if force_reverse is true.
10055 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
10057 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
10059 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
10060 height or depth to be negative. Guard against SUP_RAISE quantity
10063 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
10065 * devps/generate/textmap: Add `an' (arrowhorizex).
10066 * tmac/tmac.ps: \(an overlaps horizontally.
10067 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
10069 * devps/symbolchars: Add arrowverttp, arrowvertbt.
10070 * devps/textmap: Add arrowvertex.
10071 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
10072 updownarrow delimiters.
10073 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
10075 * tbl/table.cc (simple_entry::position_vertically,
10076 block_entry::position_vertically): For a centered entry, perform
10077 the motion in two stages.
10079 * refer/refer.cc (split_punct): Don't call lookup_token if there
10082 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
10084 * troff/input.cc (token::next): Delete token_node after copying
10087 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
10090 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
10092 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
10094 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
10096 * grops/ps.cc (usage): -b option takes an argument.
10098 * devps/prologue (PLG): New procedure.
10099 * grops/ps.cc (main, usage): New -g option.
10100 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
10103 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
10105 * include/cset.h: Include <limits.h> if we have it.
10107 * libgroff/illegal.cc: New file.
10108 * include/lib.h (illegal_input_char): Use table.
10109 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
10110 * pic/lex.cc (ARG1): Renumber to 14.
10111 * eqn/lex.cc (ARG1): Likewise.
10113 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
10114 (eg 1.05.90) correctly.
10116 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
10118 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
10119 Rename $r and $R registers to $v and $V.
10120 ($r, $R): Initialize to 0.
10121 (@v, @V): New macros.
10125 * troff/input.cc (main, usage): Add -R option that says not to
10127 * eqn/main.cc (main, usage): Rename -n to -R.
10129 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
10131 * devps/DESC.in: Leave font positions 5-9 blank.
10132 * devdvi/DESC.in: Likewise.
10134 * grog/grog.pl: Handle `.PS <file' correctly.
10136 * troff/input.cc (input_stack::push): Improve error message when
10137 input stack limit exceeded.
10139 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
10141 * refer/refer.cc (main): Fix typo in handling of `a' option.
10143 * refer/refer.cc (do_bib): In state START after a newline remain
10146 * groff/groff.sh: Deleted.
10147 * groff/Makefile.sub: Delete handling of groff.sh.
10149 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
10150 to determine whether to use \X'ps:...'.
10151 * tmac/troffrc: Set 0p register to 0.
10152 * tmac/tmac.ps: Set 0p register to 1.
10154 * groff/groff.cc: Support -X option. Give warning for -TXps and
10155 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
10156 * tmac/troffrc: Support -r.X=1.
10158 * pic/troff.cc (troff_output::dot): Don't test
10159 zero_length_line_flag.
10161 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
10163 * include/lib.h: Declare getopt() and friends unless
10164 STDLIB_H_DECLARES_GETOPT is defined.
10166 * doc/chars.tr: Delete.
10167 * man/groff_char.man: New file.
10169 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
10171 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
10172 user has changed register format.
10174 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
10176 * groff/groff.cc: Get rid of device_table. Get postprocessor from
10177 `postpro' command in DESC file. Get spooler command from `print'
10178 command in DESC file. Execute spooler command with /bin/sh.
10180 * groff/groff.cc: Split Unix-specific parts into...
10181 * groff/pipeline.c: New file.
10184 * COPYING: New file.
10185 * all files: Update copyright notices.
10187 * Rearrange files. Redo Makefiles. Use autoconf.
10189 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
10191 * troff/input.c (charinfo_to_node_list): Interpret character
10192 definition with escape_char of `\'.
10194 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
10196 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
10197 Define INT_DIGITS as big enough for 64-bit integer.
10198 * lib/strtol.c: Don't include lib.h.
10199 * lib/lib.h: Delete ifdef __cplusplus stuff.
10201 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
10203 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
10204 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
10205 get DESC from current directory.
10207 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
10209 * tbl/main.c (main): Always reset the line number when reading
10212 * tbl/table.c (table::print_single_hline, table::print_double_hline,
10213 table::define_bottom_macro, table::do_row, table::do_top): Round
10214 vertical spacing up to vertical resolution.
10216 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
10218 * ps/ps.h (enum resource_type): Avoid comma at end of
10220 * dvi/dvi.c (class dvi_printer): Likewise.
10221 * dvi/tfmtodit.c (gf::load): Likewise.
10222 * refer/label.y (struct expression): Likewise.
10223 * refer/refer.c (class label_processing_state): Likewise.
10224 * refer/indxbib.c (do_file): Likewise.
10225 * troff/troff.c (enum warning_type): Likewise.
10226 * tbl/main.c (process_data): Likewise.
10227 * troff/charinfo.h (class charinfo):
10229 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
10231 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
10233 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
10235 * groff.c: Move to new groff subdirectory.
10236 * groff/Makefile: New file.
10237 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
10239 * man/mdate.sh: Use ls -L if supported.
10241 * Consolidate all header files produced by gendef into lib/defs.h.
10242 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
10243 Don't include path.h.
10244 * lib/Makefile (path.h): Don't generate.
10245 * troff/input.c: Include defs.h. Don't include config.h.
10246 * troff/Makefile (config.h): Don't generate.
10247 * refer/index.h: Don't include suffix.h.
10248 * refer/index.c: Include defs.h.
10249 * refer/indxbib.c: Include defs.h.
10250 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
10252 * refer/Makefile (suffix.h, path.h): Don't generate.
10253 * groff.c: Don't include config.h. Include defs.h.
10254 * Makefile (config.h): Don't generate.
10255 (lib/defs.h): Generate.
10256 (topclean): Remove lib/defs.h.
10258 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
10260 * lib/malloc.c, lib/getpagesize.h: Deleted.
10261 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
10263 * lib/Makefile: Delete malloc-related stuff.
10264 * lib/new.c: Workaround COOKIE_BUG if necessary.
10266 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
10267 needed header files directly.
10268 * refer/refer.h: Omit definition of DEFAULT_INDEX.
10269 * Makefile: Include definition of DEFAULT_INDEX in path.h.
10271 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
10273 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
10275 * lib/font (font::load_desc, font::load): Don't split argument of
10277 (font::handle_unknown_font_command): Change type.
10278 * ps/ps.c (ps_font::handle_unknown_font_command,
10279 handle_unknown_desc_command): Change type.
10280 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
10282 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
10284 * lib/font.h (font::handle_unknown_font_command): Add file and
10286 * lib/font.c (font::handle_unknown_font_command):
10287 * ps/ps.c (ps_font::handle_unknown_font_command):
10288 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
10289 lineno arguments. Use _with_file_and_line functions for error
10292 * lib/fontfile.c (font::unknown_desc_command_handler): New static
10294 * lib/font.c (font::set_unknown_desc_command_handler): New
10296 (font::load_desc): For unknown commands, call
10297 unknown_desc_command_handler if not null.
10298 * lib/font.h (class font): Declare them.
10299 (FONT_COMMAND_HANDLER): New typedef.
10300 * ps/ps.c (handle_unknown_desc_command): New function.
10301 (main): Set bflag if we had a -b option. Call
10302 font::set_unknown_desc_command_handler.
10303 (broken.h): Don't include.
10304 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
10306 * ps/devps/Makefile: Add `broken' command to DESC file using
10307 BROKEN_SPOOLER_FLAGS.
10309 * macros/tmac.e ([, ]): Add as synonyms for { and }.
10311 * macros/tmac.e ($p): Only exdent if \$3 > 0.
10313 * macros/tmac.e (@R, @S): New macros.
10314 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
10315 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
10316 Declare $H, $[0-9], .. macros with @S.
10317 Declare |0, |1, |2, |3 strings with @S.
10319 * macros/tmac.e (@S): Rename to @U.
10321 * macros/tmac.e (@z): Define @b and bp as empty instead of
10324 * macros/tmac.e (@m): Deleted.
10325 (@h): Don't call @m.
10326 (@z): Don't set @m trap.
10328 * macros/tmac.e ($h, $f): Define |z as empty string.
10330 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
10333 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
10335 ()f): Likewise for * register.
10337 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
10338 argument is missing, don't change $R. Call sr with three
10339 arguments when initializing.
10341 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
10343 * macros/tmac.e (sr): New macro.
10344 Initialize $r and $R using sr.
10346 * macros/tmac.e (,): Delete \*(#[.
10348 * troff/env.c (set_tabs): Read the tab type even if the position
10349 is bad. Allow the position of the first tab stop to be negative.
10351 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
10353 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
10355 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
10356 rather than -DPATHCONF_MISSING.
10357 * Makefile: Get rid of PATHCONF_MISSING.
10359 * refer/map.c: New file.
10360 * refer/index.c: Interface to mmap through map.c. Rename map_size
10362 * refer/Makefile: Handle map.c.
10363 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
10365 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
10367 * Makefile: RANLIB should be `true' if there is no ranlib.
10368 * lib/Makefile (libgroff.a): Simplify.
10369 * driver/Makefile (libdriver.a): Simplify.
10371 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
10372 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
10375 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
10377 * troff/env.c (compare_ranges): Declare as extern "C".
10379 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
10381 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
10383 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
10385 * pic/troff.c (troff_output::text): Merge in grops_output::text,
10386 but conditionalize use of \X based on \*(.T.
10387 (grops_output::*): Deleted.
10388 * pic/output.h: Delete declaration of make_grops_output.
10389 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
10390 by default. -n sets it to 0.
10391 (usage): Corresponding changes.
10392 * groff.c (main): Don't pass -x or -p to pic.
10393 * groff.sh: Likewise.
10395 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
10398 * ps/devps/afmtodit: Change calculation of asc_boundary and
10399 desc_boundary. Make these bounds inclusive.
10400 * ps/devps: Regenerate font files.
10402 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
10404 * macros/tmac.latin1: New file.
10405 * macros/tmac.tty-char: Use tmac.latin1.
10406 (tmac.tty-tr): Deleted.
10407 * macros/Makefile: Install tmac.latin1.
10408 * macros/tmac.dvi: Use tmac.latin1.
10409 * macros/troffrc: Translate \[char160] onto no-break space here.
10410 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
10412 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
10414 * macros/tmac.Xps: Use `do' request.
10416 * macros/tmac.ps: Use `do' request.
10418 * macros/tmac.e (@C): Use `do' request.
10420 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
10421 * macros/Makefile: Install tmac.X*.
10423 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
10424 * tty/Makefile: Don't install tmac.tty*.
10425 * macros/Makefile: Install tmac.tty*.
10427 * dvi/tmac.dvi: Move to macros.
10428 * dvi/Makefile: Don't install tmac.dvi.
10429 * macros/Makefile: Install tmac.dvi.
10431 * ps/tmac.ps*: Move to macros.
10432 * ps/Makefile: Don't install tmac.ps*.
10433 * macros/Makefile: Install tmac.ps*.
10435 * eqn/box.c: Provide draw_lines parameter corresponding to -D
10437 * macros/eqnrc: Set draw_lines parameter based on device.
10438 * groff.c: Don't pass -D flag to eqn.
10439 * groff.sh: Likewise.
10440 * eqn/main.c: Warn about use of -D.
10442 * troff/input.c (process_startup_file): New function.
10443 (main): Call process_startup_file().
10444 * macros/troffrc: New file.
10445 * macros/Makefile: Install troffrc.
10446 * groff.c (main): Don't pass extra -m option to troff. For a
10447 pseudo device pass the name of the pseudo device to troff using
10449 * groff.sh: Likewise.
10450 * groff.c (possible_command::prepend_arg): Deleted.
10452 * troff/input.c (do_request): New function.
10453 (init_input_requests): Bind "do" to do_request.
10455 * eqn/main.c (main): Instead of loading eqnchar from device directory,
10456 load eqnrc from macro directory.
10457 * macros/eqnrc: New file.
10458 * macros/Makefile: Install eqnrc.
10459 * ps/devps/eqnchar: Deleted.
10460 * ps/devps/Makefile: Don't install eqnchar.
10461 * dvi/devdvi/eqnchar: Deleted.
10462 * dvi/devdvi/Makefile: Don't install eqnchar.
10463 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
10466 * lib/device.[ch]: New files.
10467 * lib/font.h (font::set_device_name, font::get_device_name):
10469 * lib/fontfile.c: Use device.h.
10470 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
10471 * troff/input.c: Delete definition of `device'.
10472 (main): Don't initialize device.
10473 * troff/troff.h: Include device.h rather than declaring device.
10474 * troff/Makefile: No need to handle DEVICE.
10475 * driver/input.c: Include device.h. Don't use
10476 font::{set,get}_device_name.
10477 * groff.c, Makefile: Rename device.h to config.h.
10478 * groff.c: Use library device variable.
10479 * eqn/main.c: Use library device variable.
10480 * eqn/Makefile: No need to handle DEVICE.
10482 * lib/searchpath.[ch]: New files.
10483 * lib/Makefile: Handle searchpath.[ch].
10484 * troff/input.c (open_file, init_dirs): Deleted.
10485 (macro_dirs): Deleted.
10486 (open_mac_file, macro_source): Use class search_path.
10487 (add_string, struct string_list): Move definition.
10488 (main): Change -M option to use macro_path. Delete call to
10490 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
10491 Rewrite to use class search_path.
10492 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
10493 * lib/Makefile: fontfile.c depends on searchpath.h.
10494 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
10496 * lib/macropath.[ch]: New files.
10497 * troff/Makefile: No need to handle MACROPATH.
10499 * troff/input.c: Delete DUMP code.
10500 * lib/fontfile.c, lib/font.h: Delete
10501 font::forget_command_line_font_dirs.
10503 * troff/input.c (push_token): New function.
10504 (handle_first_page_transition): Use push_token().
10505 (process_input_stack): Change handling of a space at the beginning
10508 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
10510 * troff/input.c (font_dirs): Delete unused variable.
10512 * eqn/lex.c (do_set): Correct error messages.
10514 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
10516 * troff/input.c (do_define_string): Allow the string name to be
10517 followed immediately by a tab.
10518 (define_character): Likewise.
10520 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
10522 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
10525 * troff/input.c (input_iterator::is_file): New virtual function.
10526 (file_iterator::is_file): New function.
10527 (input_stack::end_file): New function.
10528 (input_stack::next_file): Handle the situation where there is no
10529 file on the input stack correctly. Avoid making two passes over
10531 (next_file): Make the filename optional; in this case call
10532 input_stack::end_file().
10534 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
10536 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
10537 produce a real _ charater when the current font is CW and _
10540 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
10541 expression to work around gcc 2.2 bug.
10543 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
10545 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
10547 * troff/env.c (environment::add_padding): New function.
10548 (environment::add_char): Use add_padding().
10549 (environment::space): Likewise.
10550 (environment::wrap_up_field): Add some padding if there is none
10551 and there's no current tab.
10552 * troff/env.h: Declare environment::add_padding.
10554 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
10556 * pic/pic.y: undef fmod and rand before declaring them.
10558 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
10560 * troff/input.c (main): If the DESC file specifies a font name of
10561 0, then leave the corresponding font position empty.
10563 * nroff.sh: New file.
10564 * Makefile (install.nobin): Install nroff.sh.
10566 * tty/devlatin1/R.proto: Add ao as synonym for de.
10567 * tty/tmac.tty-char: Define ao as o.
10569 * tty/dev{ascii,latin1}/R.proto: Add aq.
10570 * tty/tmac.tty-char: Delete definition of aq.
10572 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
10574 * troff/input.c (init_charset_table): Don't translate 0240.
10575 * ps/tmac.ps: Translate char160 to space.
10576 * dvi/tmac.dvi: Likewise.
10577 * tty/tmac.tty: Likewise.
10579 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
10581 * dvi/tmac.dvi: Add support for all Latin-1 characters.
10583 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
10584 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
10587 * tty/tmac.tty-char: Add \(ah.
10589 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
10590 No need to define \(FM and \(!/. Conditionalize all character
10593 * ps/devps/lgreekmap: Add +h, +f, +p.
10595 * ps/tmac.psnew: New file.
10596 * ps/Makefile: Install tmac.psnew.
10598 * troff/input.c (charinfo_to_node_list): Don't ever interpret
10599 character definitions in compatible mode.
10601 * troff/input.c (remove_character): New function.
10602 (init_input_requests): Bind remove_character to "rchar".
10604 * ps/tmac.psold: New file.
10605 * ps/Makefile: Install tmac.psold.
10606 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
10607 characters into tmac.psold. Make these definitions unconditional.
10609 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
10611 * ps/tmac.ps: Don't define \('c and \('C.
10613 * ps/devps/textmap: Move Greek characters to...
10614 * ps/devps/symbolchars:
10616 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
10618 * ps/devps/text.enc: Add quotesingle.
10619 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
10620 * tty/tmac.tty-char: Likewise.
10621 * dvi/devdvi/texmi.map: Add +h, +f, +p.
10622 * dvi/devdvi/texi.map: Add Fn.
10623 * dvi/devdvi/msam.map: Add lz.
10624 * dvi/tmac.dvi: Handle Bq, bq, aq.
10626 * pic/lex.c (get_token): Recognize 'th.
10627 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
10629 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
10631 * ps/devps/textmap: Move di, mu, +- to...
10632 * ps/devps/symbolchars:
10634 * macros/tmac.s (@XS): Don't call par@reset or fi.
10635 (XA): Call LP. Turn off adjustment. Reduce line length.
10637 * macros/tmac.s: Initially alias XS to LP.
10638 (XS): Rename to @XS.
10639 (cov*ab-init): Alias XS to @XS.
10641 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
10643 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
10644 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
10645 (token::is_size, token::changes_env): Deleted.
10646 * troff/number.c (parse_term): No need to process \s explicitly.
10647 Call tok.next() only after scale indicator has been processed.
10648 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
10650 (token::next): Handle \s, \f, \S, \H immediately rather than
10651 returning them as tokens.
10652 (token::operator==, token::description, token::add_to_node_list,
10653 token::process): Remove handling of deleted tokens.
10655 * troff/env.c (environment::add_char): When adding padding
10656 indicator character, call start_line() if necessary.
10658 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
10660 * ps/devps/afmtodit: Don't output 0 kerns.
10662 * ps/devps/afmtodit: Remove directory from name of encoding in
10663 font description file.
10665 * ps/devps/afmtodit: Improve error messages.
10667 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
10669 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
10670 * ps/devps/FontMakefile: Deleted.
10671 * ps/devps/afmname: New file.
10673 * ps/devps/symbol.sed: New file.
10674 * ps/devps/symbol.diff: Deleted.
10675 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
10676 Generate zapfdr.afm from zapfd.afm.
10678 * tty/tmac.tty (tty-char): Prefix definition with ".
10680 * macros/tmac.an (TP): Don't start a diversion if one has already
10683 * tty/tmac.tty-char: Add Latin-1 characters.
10685 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
10687 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
10689 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
10690 Move declaration of struct horizontal_span.
10692 * tbl/table.c (table::table): Initialize span_list.
10693 (table::~table): Delete span_list.
10695 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
10697 * ps/devps/Makefile: Avoid dependency on GNU make.
10699 * ps/tmac.ps: Check that character does not already exist before
10702 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10703 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10704 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10707 * tty/tmac.tty-char: New file.
10708 * tty/Makefile: Install tmac.tty-char.
10709 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10712 * tty/tmac.tty: Fix definition of \(34.
10714 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10715 bracket-drawing characters onto |. Add *o.
10717 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10718 only if current_field.
10720 * troff/dictionary.c (dictionary::lookup): Free old_table after
10723 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
10725 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10726 whose glyphs are identical to glyphs of some Roman character.
10728 * tty/devlatin1/R.proto (bu): Deleted.
10729 * tty/devascii/R.proto (bu): Deleted.
10730 * tty/tmac.tty: Add definition of \(bu.
10732 * eqn/main.c (do_file): Pass FILE as argument.
10733 (main): Automatically load eqnchar. New options -F and -n.
10734 Pass do_file an opened FILE.
10735 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10736 No need to include font.h.
10737 * groff.sh: Likewise. Don't need to use - for standard input.
10738 Prefix files with -- if first file starts with -.
10740 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10742 * troff/env.c (environment::possibly_break_line): Don't set line
10743 to 0 across call to output_line(). Don't call output_line() until
10744 after discarding nodes after break.
10746 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
10748 * request.h (macro::empty): Declare it.
10749 * input.c (macro::empty): New method.
10750 (interpolate_macro): Don't give a WARN_SPACE if the two-character
10753 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
10755 * troff/env.c (environment::start_field): Decrement space_total
10756 when a space is frozen.
10758 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
10760 * macros/tmac.an (R): Delete macro.
10762 * troff/input.c (get_copy, token::next): Support \# (like \" but
10763 newline is ignored).
10765 * troff/input.c (token::next): Fix error message in 'Y' case.
10767 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
10769 * eqn/delim.c (define_extensible_string): Recognize any prefix of
10772 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
10774 * c++test.c: Include <osfcn.h>.
10776 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10779 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
10781 * tbl/table.c (table::divide_span): Don't count column separation
10782 if expand was specified.
10784 * tbl/main.c (process_format): Don't ignore width specs in
10785 continued format. Give warning for changing equal widths or
10786 column separation in continued format.
10787 (process_data): Set column separation, minimum width, equal
10788 columns at end of table.
10790 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
10792 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10793 node::add_discretionary_hyphen): Use soft_hyphen_char.
10794 (set_soft_hyphen_char): New function.
10795 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
10797 * Makefile (c++tested): Give more helpful message if test fails.
10799 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
10801 * troff/input.c (init_charset_table): Translate 0240 to
10802 an unbreakable space.
10804 * troff/token.h (token::hyphen_indicator): New function.
10805 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10807 * troff/input.c (translate): Allow translation to \%.
10808 * troff/node.c (node::add_char): Handle
10809 TRANSLATE_HYPHEN_INDICATOR.
10810 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10812 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10815 * tty/devlatin1/R.proto: \(hy and - should print as 055.
10817 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
10819 * groff.c (run_commands): If the last command gets a SIGPIPE send
10820 a SIGPIPE to all children than haven't yet terminated. When
10821 command terminates, set pid field to -1.
10823 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
10825 * groff.c (main): Pass an appropriate -filename option to gxditview.
10827 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
10829 * Makefile.bd (install): Remove existing program before copying.
10831 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10832 programs which have Unix counterparts to be installed with
10833 user-specified prefix.
10835 * troff/input.c (exit_troff): Don't check if exit_started.
10836 (exit_request): Don't call exit_troff if exit_started.
10838 * Makefile.bd (install.mm): Rename to install.dwbmm.
10840 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
10842 * driver/input.c (do_file): Add missing break for '#' case.
10844 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
10846 * troff/input.c (input_stack::clear): Clear past any boundaries and
10847 then add the boundaries back.
10849 * troff/input.c (exit_troff): Return immediately if already
10852 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
10854 (pg*end-page): If the text has ended and there are no more
10855 footnotes or keeps, exit.
10857 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10859 * troff/input.c (init_charset_table): Make \(rq transparent by
10862 * macros/tmac.an: Define lq and rq strings.
10864 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10866 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
10868 * troff/env.c (environment::final_break): New function.
10869 (environment::newline): Set prev_line_interrupted to 2 if
10871 * troff/env.h: Declare environment::final_break.
10872 * troff/input.c (exit_troff): Call environment::final_break()
10873 instead of environment::do_break().
10875 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10876 doesn't already exist.
10877 * macros/man.local: New file.
10878 * macros/tmac.an: Load man.local.
10879 * macros/man.ultrix: New file.
10881 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
10883 * troff/input.c (exit_groff): Rename to...
10884 (exit_troff): New function.
10886 * troff/div.c (exit_started, done_end_macro,
10887 seen_last_page_ejector): New global variables.
10888 (began_page_in_end_macro): New static variable.
10889 (exit_flag): Deleted.
10890 (top_level_diversion::top_level_diversion): Initialize
10892 (top_level_diversion): More elaborate test for whether
10893 cleanup_and_exit() should be called.
10894 Set began_page_in_end_macro if the end macro isn't yet finished.
10895 * troff/div.h (top_level_diversion::last_page_count): New data
10897 (top_level_diversion::set_last_page): New function.
10898 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10899 * troff/env.c (do_break): Zero prev_line_interrupted.
10900 * troff/input.c (exit_flag): Delete declaration.
10901 (LAST_PAGE_EJECTOR): New magic cookie.
10902 (token::next): Handle LAST_PAGE_EJECTOR.
10903 (exit_groff): Set exit_started and done_end_macro instead of
10904 exit_flag. Call top_level_diversion::set_last_page. Push a
10905 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
10906 another ejection after setting seen_last_page_ejector.
10908 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
10910 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10912 * macros/tmac.e (TH): Make sure there's room for the initial
10915 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
10916 Set FVS in points rather than units.
10918 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
10920 * troff/div.c (top_level_diversion::add_trap): Don't consider the
10921 position of empty slots.
10923 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
10925 * ps/devps/S: Fix height and depth of parenrightex.
10926 * ps/devps/symbol.diff: Regenerate.
10928 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
10930 * tmac.e (u): Do underlining as in -mgs.
10932 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
10934 * tty/tty.c (tty_printer::end_page): If overstriking is
10935 suppressed, still turn overstruck horizontal and vertical lines
10938 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
10941 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
10943 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
10945 * Version 1.05 released.
10947 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
10949 * tty/tty.c: Instead of keeping an array of glyphs and then
10950 sorting it, keep a ordered linked list of glyphs for each line.
10952 * driver/driver.h: Include stddef.h.
10954 * tty/tty.c (compare_glyph):
10955 * refer/refer.c (rcompare):
10956 * troff/env.c (compare_ranges): Arguments of qsort comparison
10957 function should be const void *.
10959 * troff/number.c (parse_term):
10960 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
10963 * refer/label.y (consider_authors): Don't access variables
10964 constructed under a condition outside that condition: put braces
10965 round for statement containing declaration; redeclare use of same
10968 * pic/pic.y (text_expr): Delete production that allows
10969 parenthesised text_expr.
10970 (expr): Allow a conditional_expr to appear in parentheses.
10971 (conditional_expr): Rename to any_expr.
10973 * mm: Install new version 1.01 from jh.
10975 * lib/font.c (font::get_width): Cache scaled widths.
10976 (font::font): Initialize widths_cache.
10977 (font::~font): Destroy widths_cache.
10978 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
10980 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
10982 * c++test.c, c++test.ref: New files.
10983 * Makefile: Check that the C++ compiler works.
10985 * ps/tmac.pspic (PSPIC): Do a break.
10987 * ps/tmac.ps: Move definition of PSPIC into...
10988 * ps/tmac.pspic: New file.
10989 (PSPIC): Draw box around picture, but make it invisible to grops.
10990 * ps/tmac.ps: Load tmac.pspic.
10991 * ps/Makefile: Install tmac.pspic.
10993 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
10995 * lib/font.c (scale_round): If n is negative,
10996 subtract .5 before truncating floating point result.
10998 * lib/fontfile.c: Include <errno.h>.
11000 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
11002 * driver/input.c (get_char): Inline. Don't update current_lineno.
11003 Change callers to up date current_lineno if necessary.
11004 Use get_char() instead of getc(current_file).
11006 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
11008 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
11010 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
11012 * tty/tty.c (tmac.tty): Define \(rg as (R).
11014 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
11016 * lib/lib.h: New define a_delete.
11017 * Use a_delete instead of delete when deleting an array of objects
11018 without destructors.
11020 * lib/lib.h: Rename adelete to ad_delete.
11021 * Change uses of adelete.
11023 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
11025 * eqn/eqn.y: Include lib.h.
11027 * troff/node.c (grow_font_table): Delete old_font_table.
11029 * mm: Install new version from jh.
11031 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
11033 * tbl/table.h (format_type): Make global instead of local to class
11034 entry_format. Prefix enumerators with FORMAT_.
11035 * tbl/table.c, tbl/main.c: Corresponding changes.
11036 * refer/token.h (token_type): Make global. Prefix enumerators
11038 * refer/token.[ch]: Corresponding changes.
11039 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
11041 * troff/div.c (node::set_vertical_size): Don't name argument.
11043 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
11045 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
11046 * lib/lib.h: Define adelete accordingly.
11047 * pic/object.c (graphic_object::graphic_object):
11048 * tbl/main.c (format::~format):
11049 * tbl/table.c (table::~table):
11050 * refer/ref.c (reference::~reference, reference::merge,
11051 reference::insert_field, reference::delete_field): Use adelete.
11053 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
11055 * tbl/table.h: Corresponding changes.
11057 * common.c (common_output::dashed_arc, common_output::dotted_arc):
11058 Ensure total_angle is positive.
11060 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
11062 * refer/ref.c (reference::merge, reference::insert_field,
11063 reference::delete_field): Avoid delete[0].
11065 * refer/token.c (init_special_chars): Move calls to cmupper
11066 outside calls to init_two_char_letter to work around bug in gcc
11069 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
11071 * lib/new.c (operator new): Use __builtin_new for g++.
11073 * pic/object.c (graphic_object::~graphic_object): Don't use
11076 * pic/object.c (output::compute_scale): Initialize max_width and
11079 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
11081 * troff/input.c (write_request): Call fflush.
11083 * troff/node.h (class composite_node): Move declaration to node.c
11084 * troff/input.c (charinfo_to_node): Rename to ...
11085 (charinfo_to_node_list): Return node list rather than composite
11087 * troff/node.c (make_composite_node): New function.
11088 (make_node, add_char): Call make_composite_node instead of
11090 (class composite_node): Add a tfont * member. Delete font_size
11092 (composite_node::composite_node, composite_node::copy,
11093 composite_node::size): Corresponding changes.
11094 (composite_node::tprint): Provide constant spacing, emboldening
11095 and track kerning as specified in tfont.
11096 (composite_node::width): Change width calculation accordingly.
11097 * troff/env.h (environment::composite): New member.
11098 (environment::is_composite, environment::set_composite): New
11100 * troff/env.c (environment::environment): Initialize composite.
11101 * troff/input.c (charinfo_to_node): Call
11102 environment::set_composite.
11103 * troff/node.c (make_composite_node, make_glyph_node): Use the
11104 plain version of the tfont if the environment is composite.
11106 * troff/node.c (font_info::get_space_width): Additional argument
11107 giving space_size. Handle constant space correctly. Scale by
11108 space_size unless constant spaced.
11109 (env_sentence_space_width): New function.
11110 * troff/node.h: Declare it.
11111 * troff/env.h (environment::get_space_size,
11112 environment::get_sentence_space_size,
11113 environment::get_narrow_space_width,
11114 environment::get_half_narrow_space_width): Make inline.
11115 (environment::get_space_width): Make inline. Just call
11117 * troff/env.c: Delete definitions for funtions made inline.
11118 (environment::space_newline, environment::space): Use
11119 env_sentence_space_width(). Don't scale by space_size.
11120 * troff/node.h: Move declarations of env*space_width() functions
11123 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
11125 * macros/tmac.s (PS): Don't try to set negative indent.
11127 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
11129 * pic/pic.y: Fix min function.
11131 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
11133 * man/mdate.sh: Clear LANGUAGE.
11135 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
11137 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
11138 * pic/lex.c: New COMMAND keyword.
11139 * pic/pic.y (print_args, print_arg): New rules.
11140 (placeless_element): Use print_args for PRINT.
11141 New COMMAND element.
11143 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
11145 * troff/input.c (terminal): Handle missing argument correctly.
11147 * pic/pic.y (text_expr): New rule.
11149 * pic/pic.y: Implement := operator.
11151 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
11153 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
11156 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
11158 * ps/devps/dingbatsrmap: Include this in the distribution.
11160 * macros/tmac.doc: Replace with new version from 2nd Networking
11161 Release. Fix loading of doc-* files.
11162 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
11163 * macros/tmac.doc.old: New file. Apply fixes that had been
11164 applied to old tmac.doc.
11165 * macros/tmac.andoc: Check that we're running under groff.
11166 * macros/Makefile: Rework.
11168 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
11170 * tbl/table.h (format_type):
11171 * refer/token.h (token_type): If NESTED_TYPES is defined, use
11172 typedef to make these types visible at file scope.
11173 * Makefile: Add NESTED_TYPES configuration option.
11175 * troff/div.c (mark): At the top level use the value of
11176 nl_reg_contents rather than the current vertical position.
11178 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
11180 * tty/tty.c: Implement \D for horizontal or vertical lines.
11181 (tty_printer::set_char): Use vec_used+2 as serial number.
11182 Don't allow size of vector to exceed USHRT_MAX-2.
11183 Split off part into...
11184 (tty_printer::add_char): New function.
11185 (tty_printer::draw): New function.
11186 (compare_glyph): Handle equal serial numbers.
11187 (tty_printer::end_page): Handle overstruck characters from \D.
11188 (main, usage): Implement -d option.
11190 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
11192 * tbl/main.c (process_format):
11193 * eqn/text.c (split_text):
11194 * troff/input.c (token::next): Use inner block for declarations
11195 with initializers in switch statement.
11197 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
11199 * pic/common.c (common_output::dash_line): Cope with zero-length
11202 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
11204 * Version 1.04 released.
11206 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
11208 * macros/tmac.an (TH): Define a macro an-init to define variables
11209 based on command line arguments.
11210 (an-header): Call it.
11212 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
11214 * Makefile (install.mm): Rename to install.dwbmm.
11216 * Makefile: Integrate mm.
11217 * mm: New directory.
11219 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
11221 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
11224 * pic/troff.c (troff_output::simple_spline,
11225 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
11226 shadowing parameter.
11228 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
11230 * lib/ptable.h: Add explicit casts when converting from unsigned
11233 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
11234 * dvi/devdvi/Makefile: Install SA, SB.
11236 * refer/indxbib.c: Add declaration of mktemp.
11238 * refer/lookbib.c: Add declaration of isatty.
11240 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
11242 * pic/lex.c (interpolate_macro_with_args): While collecting
11243 arguments, keep track of whether we're in a string.
11245 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
11247 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
11248 down with \v, so as to avoid problems with top of page trap
11249 setting no space mode.
11251 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
11253 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
11255 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
11257 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
11258 Improve error message.
11260 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
11262 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
11265 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
11267 * groff.c (possible_command::execp): Always use _exit() after a
11270 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
11271 NO_SYS_WAIT_H configuration options.
11272 * groff.c: Use these options. Use POSIX-style macros to extract
11273 fields from the status returned by wait().
11275 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
11277 * tbl/table.c (table::compute_separation_factor): Allow the
11278 separation factor to drop to 0.
11280 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
11282 * refer/search.c: Include <errno.h>.
11284 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
11286 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
11288 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
11291 * pic/lex.c (input_stack::bol): Move definition out of class body.
11293 * pic/main.c: On MSDOS munge argv[0].
11295 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
11297 * lib/ptable.c (hash_string): Use unsigned long rather than
11299 (next_ptable_size): Use unsigned rather than int. Give an error
11300 message if we've hit the largest table size.
11301 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
11304 * pic/object.h (object_spec): Make flags unsigned long. Declare
11305 flags as const unisgned long rather than as enums.
11307 * pic/output.c: Deleted.
11309 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
11311 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
11312 Add additional argument.
11313 (line_entry::note_double_vrule_on_{left,right}): Set value of
11314 douvle_vrule_on_{right,left} flag according to argument.
11315 (simple_line_entry::simple_print,
11316 simple_line_entry::double_line_print): If adjacent to double vrule
11317 on a corner extend rather than shorten the rule by half the double
11320 * troff/number.c (parse_term): In checking for overflow, handle the
11321 case where the current horizontal position is negative.
11323 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
11325 * pic/object.c (draw_arrow): Check for object having zero length.
11327 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
11329 * eqn/main.c (do_file): Split off inline equation handling into...
11330 (inline_equation): New function. Search for starting delimiter
11332 (delim_search): New function. Don't recognize a delimiter that
11333 occurs in the name of an escape sequence, number register, string
11336 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
11338 * eqn/delim.c (delim_box::compute_metrics): Don't call
11339 define_extensible_string if left is 0.
11340 (delim_box::output): Don't print the left delimiter if left is 0.
11341 (delim_box::debug_print): Check for left == 0 before calling printf.
11343 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
11345 * troff/Makefile (majorminor.c): Include only digits in
11348 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
11350 * refer/dirnamemax.c: new file.
11351 * refer/genlimits.c: Deleted.
11352 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
11353 Don't check path length.
11354 * refer/Makefile: Add dir_name_max.o; delete genlimits.
11355 * Makefile: Add PATHCONF_MISSING option.
11357 * refer/indxbib.c (get_cwd): New function.
11358 (main): Use get_cwd().
11359 * lib/getcwd.c: New file.
11360 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
11361 GETCWD in SUBFLAGS.
11362 * lib/Makefile: Compile getcwd.o.
11364 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
11367 * refer/indxbib.c (main): Check success of mktemp.
11369 * lib/tmpfile.c: New file.
11370 * lib/Makefile: Add tmpfile.c.
11371 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
11372 * ps/ps.h: Delete declaration of mktemp().
11373 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
11374 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
11375 * driver/driver.h: No need now to include errno.h.
11377 * everywhere: Set errno to 0 before calling fopen().
11379 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
11380 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
11381 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
11383 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
11385 * troff/env.h (translate_space_to_dummy): Declare it.
11386 * troff/env.c (environment::space_newline, environment::space):
11387 If translate_space_to_dummy is set then make the width of spaces 0.
11388 * troff/input.c (translate): If the second character of a
11389 translation is a space, translate to unbreakable space. If the
11390 first character is a space, set or clear translate_space_to_dummy
11391 according to whether the second character is \&. Weird!
11393 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
11395 * groff.c (run_commands): Don't use non-zero exit code because a
11396 command gets SIGPIPE.
11398 * groff.c, groff.sh: Use -mXps with -TXps.
11400 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
11401 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
11402 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
11403 (ps_printer::special): New specials invis and endinvis.
11404 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
11405 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
11406 (ps_printer::end_page): Check that invis_count == 0.
11407 (ps_printer::invis_count): New member.
11408 (ps_printer::ps_printer): Initialize invis_count to 0.
11410 * troff/env.c (environment::hyphenate_line): Hyphenation
11411 indicator at beginning of word inhibits splitting after -, \(em
11414 * pic/pic.y (element): Allow another element to follow } without
11415 any intervening separator.
11417 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
11419 * pic/lex.c (get_delimited): Allow tabs before delimiter.
11421 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
11423 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
11424 declaration of wait() in header files.
11425 * Makefile: Get rid of -DHAVE_UNION_WAIT.
11427 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
11429 * lib/lib.h: Declare return type of strerror as char *.
11431 * man/Makefile: Add g flag to sed substitutions.
11432 * Makefile (shgroff, bindist): Likewise.
11434 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
11436 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
11437 * ps/devps/prologue (PBEGIN): Define showpage after pushing
11440 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
11442 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
11445 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
11447 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
11450 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
11452 * troff/input.c (define_number_reg): If currently undefined,
11453 don't define it if the argument is an invalid expression.
11455 * Makefile: Ignore return value of `if' commands without `else'
11458 * Makefile: Split up CPPDEFINES into a series of separate
11459 configuration options.
11461 * troff/input.c (init_registers): Use time_t instead of long
11462 unless LONG_FOR_TIME_T is defined. Use returned result rather
11463 than passing pointer.
11464 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
11466 * lib/Makefile (fontpath.h): Use gendef.
11468 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
11470 * troff/input.c (input_iterator::shift): Delete argument name.
11471 * troff/node.c (suppress_output_file::really_begin_page,
11472 suppress_output_file::really_transparent_char, node::ascii_print,
11473 node::tprint): Delete names of unused arguments.
11475 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
11477 * refer/label.y (string): Pass $4 to command_error.
11479 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
11481 * Version 1.03 released.
11483 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
11485 * Makefile: Pass definition of SHELL in SUBFLAGS.
11487 * gendef: New file.
11488 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
11489 ps/Makefile: Use gendef to construct header files that are
11490 constructed from the Makefile.
11492 * macros/Makefile: make all should build stripped version of tmac.e.
11494 * refer/Makefile (clean): Remove y.output.
11496 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
11498 * ps/pfbtops.c (main): Add -v option which prints out a version
11500 * ps/Makefile (pfbtops): Link with libgroff.a.
11502 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
11504 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
11505 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
11507 * refer/lkbib.c (main): Always terminate reference with blank
11509 * refer/lookbib.c (main): Likewise.
11511 * refer/linear.c (file_buffer::load): Check that the file is not a
11514 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
11515 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
11516 Delete second inclusion of <sys/param.h>.
11518 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
11520 * troff/token.h (token::special): Deleted.
11522 * tbl/main.c (process_format): Rework so that opt->tab_char is
11523 recognized only when appropriate.
11525 * ps/Makefile (clean): Remove pfbtops.
11527 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
11529 * lib/font.c (text_file::next): Don't return if we have got a
11532 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
11534 * refer/refer.c (store_reference): Get hash code from old_table[i]
11535 when rehashing the table.
11537 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
11539 * eqn/box.c (box::top_level): Save size and prev size using \R and
11540 restore it afterwards. Set the size to the size at the beginning
11542 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
11543 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
11545 * refer/Makefile (limits.h): Use ./genlimits.
11547 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
11549 * refer/index.c: Delete declarations of stat() and fstat().
11551 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
11553 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
11555 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
11557 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
11559 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
11561 * troff/input.c (token::get_char): Handle \e.
11563 * refer/linear.c: Delete declarations of fstat() and stat().
11565 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
11567 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
11568 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
11570 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
11572 * troff/input.c (do_define_macro): Improve error handling for end
11573 of file while defining macro.
11575 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
11577 * eqn/box.h: Fix declaration of set_gsize.
11578 * eqn/box.c (set_gsize): Make argument const char *.
11579 (gsize): Declare as char *.
11580 * eqn/main.c (main): Don't convert gsize to int.
11581 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
11583 * Version 1.02 released.
11585 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
11587 * macros/tmac.andoc: New file.
11588 * macros/Makefile: Install tmac.andoc.
11590 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
11591 operator new and delete on OP_DELETE_BROKEN not being defined.
11592 * Makefile: Mention OP_DELETE_BROKEN.
11594 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
11596 * Makefile (bindist): Pass SUBFLAGS.
11598 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
11600 * Makefile, groff.c: Pass definitions to groff.c via device.h.
11602 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
11605 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
11607 * ps/ps.h, ps/psrm.c: Make comment_table and
11608 header_comment_table local to resource_manager::process_file.
11610 * groff.sh: With -TXps pass -printCommand option to gxditview.
11612 * groff.c (possible_command::print): Implement using
11613 append_arg_to_string.
11615 * xditview: Merge in new implementation with own ChangeLog.
11617 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
11619 * groff.c (main): Implement PRINT_OPTION.
11620 (append_arg_to_string): New command.
11621 (device_table): Set PRINT_OPTION flag for Xps.
11623 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
11625 * troff/groff.h: Rename to troff.h.
11627 * pic/lex.c (lookup_keyword, docmp): New functions.
11628 (get_token): Use new lookup_keyword.
11629 Don't include key.h.
11630 * pic/key.[ch], pic/pic.gperf: Deleted.
11631 * pic/Makefile: Remove gperf stuff.
11633 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
11635 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
11637 * troff/Makefile, troff/node.c: Move definition of
11638 STORE_WIDTH into node.c.
11640 * etc/grog.pl, etc/grog.sh: Support -mdoc.
11642 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
11644 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
11645 dvi/devdvi/texb.map: Add lq and rq.
11646 dvi/devdvi: Regenerate fonts.
11647 * ps/devps/textmap: Add lq and rq.
11648 * ps/devps: Regenerate fonts.
11649 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
11650 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
11652 * pic/object.c (position_rectangle): When checking radius
11653 cope with possiblity that width or height is negative.
11654 (box_object::box_object): Have separate xrad and yrad with
11655 signs matching signs of dim components.
11656 (box_object::{north,south}_{east,west}): Use xrad and yrad.
11657 (box_object::print): With rounded boxes use absolute values
11658 for dim and rad arguments.
11660 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
11663 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
11665 * various files: Add explicit destructors to keep Saber CC +d
11668 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
11670 * eqn/box.c (box::top_level): Restore fonts correctly after
11671 font changes in line containing inline equation. Also
11672 restore previous font as well as current font.
11673 * eqn/pbox.h: Define necessary string and register names.
11675 * troff/input.c (token::next): Case 'R' calls do_register.
11676 (do_register): New function.
11678 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
11680 * groff.c, groff.sh: Support Xps device. Allow each device
11681 to have a pseudo_name and a real_name.
11683 * groff.c (run_commands): Don't print `Broken pipe' messages.
11685 * ps/pfbtops.c: New file.
11686 * ps/Makefile: Add pfbtops.
11688 * troff/number.c (parse_term): Improved error message.
11690 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
11692 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
11694 * Makefile: Integrate refer.
11695 * refer: New directory.
11696 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
11697 man/lkbib.man: New files.
11698 * man/Makefile: Support refer man pages.
11700 * lib/lib.h: Declare is_prime.
11701 * lib/prime.c: New file.
11703 * troff/input.c (macro_source): New function.
11704 (init_input_requests): Bind "mso" to macro_source.
11706 * troff/env.c (environment::possibly_break_line): Maintain
11707 pointer to pointer to node to be split in ndp so as to avoid
11708 using address of freed node.
11710 * troff/env.c (environment::hyphenate_line): Maintain pointer to
11711 pointer to first node to be hyphenated in startp so as to
11712 avoid using address of freed node.
11714 * troff/env.c (class trie, class hyphen_trie): Make the
11715 elements of the trie be of type char not unsigned char.
11716 Declare arguments to be const char* instead of unsigned char *.
11718 * troff/env.c (hyphenate): Initialize hbuf[0].
11720 * troff/input.c (set_string): Declare p to be char * and cast
11721 *p to unsigned char when necessary.
11723 * troff/input.c (do_define_macro): Declare s to be const
11724 char*. Cast element to unisgned char when necessary, Declare
11725 d to be an int. Handle EOF better.
11727 * troff/Makefile, troff/input.c: Different scheme for passing
11728 definitions of MACROPATH, HYPHENFILE and DEVICE.
11730 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
11732 * tty/devascii/R.proto: Delete entry for em.
11733 * tty/devlatin1/R.proto: Likewise.
11735 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
11737 * troff/input.c (translate): Stop when we get a space. Treat eof
11740 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11742 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
11744 * tbl/main.c (process_format): A font name following a `f'
11745 modifier that starts with a digit can be only one character long.
11746 Also deal with EOF on the second character of the font name.
11748 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
11750 * troff/input.c (token::next): Turn \~ into an
11751 unbreakable_space_node.
11752 * troff/node.c (unbreakable_space_node): New class.
11753 * troff/node.h: Declare it.
11755 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
11757 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
11758 it's >= 0, before outputting it as a single byte.
11760 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
11762 * lib/font.c: Make font_char_metric::code an int.
11763 (font::get_code): Change return type to int.
11764 (font::load): Allow code to be arbitrary integer.
11765 * lib/font.h (font::get_code): Change return type to int.
11766 (font::number_to_index): Change argument type to int.
11767 * troff/input.c (token::next): In case 'N', allow any value.
11768 Store value in token::val.
11769 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11770 (token::get_char, token::add_to_node_list, token::process): Get
11772 (charinfo::set_number): Change argument to int.
11773 (charinfo::get_number): Require that NUMBERED flag be set.
11774 (get_charinfo_by_number): Store numbered characters not between 0
11775 and 255 in a dictionary.
11776 * troff/charinfo.h (get_charinfo_by_number): Change argument type
11778 (charinfo::number): Change type to int.
11779 (charinfo::set_number): Change type of set_number to int.
11780 * troff/node.c (troff_output_file::put_char_width,
11781 troff_output_file::put_char): Test whether character is numbered
11782 using charinfo::numbered().
11783 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11785 * lib/nametoindex.c: New implementation to cope with arbitrary
11788 * troff/input.c (token::operator==): Test val for
11789 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11792 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11793 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
11795 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
11797 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
11800 * all Makefiles: rm targets of cp and >.
11802 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11805 * eqn/lex.c (def_table): Add dollar.
11807 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
11809 * troff/input.c (do_width): Push back newline before closing delim
11812 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
11814 * groff.c (possible_command::prepend_arg): New function.
11815 (main): Prepend device -m option.
11816 * groff.sh: Put device -m options before command-line options.
11818 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
11820 * macros/tmac.an (IP): Quote argument to TP.
11822 * ps/ps.c (main): New option -b, which sets...
11823 (broken_flags): New variable.
11824 (ps_printer::~ps_printer): Incorporate the setup section in the
11825 prolog if (broken_flags & NO_SETUP_SECTION).
11826 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11827 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11828 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11829 ps_printer::print_needed_font_comment,
11830 ps_printer::print_supplied_font_comment,
11831 ps_printer::print_include_font_comments,
11832 ps_printer::lookup_doc_font, ps_printer::download_fonts,
11833 ps_printer::read_download_file, read_document_fonts, add_font,
11834 skip_line, parse_fonts_arg, document_font::document_font,
11835 document_font::~document_font, document_font::download,
11836 ps_output::include_file): Deleted.
11837 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11838 rather than %!PS-Adobe-2.0. Make calls to
11839 resource_manager::need_font for each font that we used. Replace
11840 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11841 print_supplied_font_comment, print_needed_font_comment by call to
11842 resource_manager::print_header_comments. Output %%Orientation
11843 comment. Output %%Requirements: numcopies comment if ncopies > 1.
11844 Don't output the prolog directly. Instead call
11845 resource_manager::output_prolog. Only define #copies when ncopies
11846 > 1. Delete calls to print_include_font_comments and
11847 download_fonts. Add call to resource_manager::document_setup.
11848 (ps_printer::do_file): Call resource_manager::import_file instead
11849 of including it ourselves.
11850 (ps_printer::do_import): Likewise. Also don't call
11851 merge_import_fonts. Push userdict on the dictionary stack before
11852 and pop it afterwards.
11853 Move declaration of ps_output into ps.h.
11854 * ps/psrm.c: New file implementing resource_manager class.
11855 * ps/ps.h: New file declaring ps_output and resource_manager
11857 * ps/devps/zapfdr.ps:
11858 * ps/devps/symbolsl.ps:
11859 * ps/devps/prologue: Use 3.0 conventions.
11860 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11861 Add default definition of BROKEN_SPOOLER_FLAGS.
11862 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
11863 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11865 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
11867 * etc/grog.pl: New file.
11868 * Makefile (GROG): New variable.
11869 Add GROG to SUBFLAGS.
11870 * etc/Makefile (GROG): New variable.
11871 (install.nobin): Install $(GROG) rather than grog.sh.
11873 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
11875 * eqn/special.c (special_box::compute_metrics): Make the input and
11876 output strings the same. Get the new height and depth from the
11877 predefined height and depth registers. Also make subscript kern
11878 and skew available.
11879 (special_box::compute_subscript_kern, special_box::compute_skew):
11882 * eqn/box.c (pointer_box::compute_skew,
11883 simple_box::compute_metrics, box::top_level)
11884 * eqn/text.c (prime_box::compute_metrics,
11885 prime_box::comput_subscript_kern)
11886 * eqn/limit.c (limit_box::compute_metrics):
11887 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11888 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11889 negative numbers in `nr' requests with a leading 0.
11891 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
11893 * eqn/special.c: New file.
11894 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
11895 Add new rule for simple.
11896 * eqn/lex.c (token_table): Add SPECIAL.
11897 * eqn/box.h: Declare make_special_box.
11898 * eqn/Makefile: Add special.[co].
11900 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
11902 * ps/devps/prologue: Possibly set packing to true while defining.
11903 Create grops dictionary here. Initialize local variables before
11904 defining procedures.
11905 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11906 the dictionary stack. Set strokeadjust and overprint to false if
11907 the relevant operators are defined.
11908 (PEND): New procedure.
11909 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11910 prologue. Do everything else in the setup section.
11911 (ps_printer::do_import): Just call PBEGIN and PEND around the
11912 picture. Also push userdict before, and pop it afterwards.
11914 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
11916 * troff/node.c (bracket_node::tprint): Brackets were being printed
11919 * macros/tmac.an (SH, SS): Set fill mode.
11921 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
11923 * troff/div.c (top_level_diversion::begin_page): Set
11924 high_water_mark to 0.
11926 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
11928 * man/mdate.sh: New file.
11929 * man/mdate.c: Deleted.
11930 * man/Makefile: Use mdate.sh instead of mdate.
11933 * eqn/lex.c (do_gsize): Supply missing argument to error message.
11935 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
11937 * man/mdate.c: New file.
11938 * man/*.man: Replace modification date by @MDATE@.
11939 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
11940 (mdate): New target.
11942 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
11943 Remove illegal input characters.
11945 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
11947 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
11949 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
11951 * troff/div.c (begin_page): Change behaviour when
11952 !first_page_begun and !break_flag.
11954 * troff/input.c (do_name_test): Return 0 if argument is empty.
11956 * troff/input.c (read_long_escape_name): Require closing ] to be
11957 at same input level as opening [.
11959 * troff/input.c (read_increment_and_escape_name): New function.
11960 (get_copy, process_input_stack): Use this for \n.
11962 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
11964 * troff/div.c (top_level_diversion::begin_page): Ignore the
11965 current value of page_number if !first_page_begun.
11967 * groff.c (main): Fix declaration of buf.
11969 * troff/input.c (do_name_test): New function.
11970 (token::next): Implement \A.
11971 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
11972 (token::description, token::add_to_node_list, token::process):
11973 Handle TOKEN_ESCAPE.
11974 * troff/token.h: New token TOKEN_ESCAPE.
11976 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
11978 * pic/main.c (do_picture): Allow space before and after filename
11979 following `<'. Check that the filename is not empty.
11981 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
11983 * Version 1.01 released.
11985 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
11987 * dvi/tmac.dvi: ftr HR to H.
11989 * macros/tmac.e: Round up computation of $r.
11991 * xditview/tmac.X: Don't give up completely in compatibility mode.
11992 Use \n(.s instead of \n[.s].
11994 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
11995 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
11996 Add u to factors inside \s[...]. Rename frac to dvi-frac.
11997 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
11998 short names in the char definitions.
12000 * ps/tmac.ps: Don't give up completely in compatibility mode.
12001 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
12002 quote in front of \n(.s. Add u to factors inside \s[...].
12004 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
12006 * tty/tmac.tty: Call the nroff request.
12008 * macros/tmac.e ((x, )x): Better definitions that work properly
12010 (@0, @1): Helper macros for (x.
12012 * macros/tmac.e ($s, hl): Use \l rather than \D.
12014 * tty/tmac.tty: Make it work better in compatibility mode.
12015 (pchar): Rename to tty-char.
12017 * macros/tmac.e (@E): New macro.
12018 (r, i, b, rb, bi): Use @E.
12020 * macros/tmac.e (@F): Don't use (;...) syntax.
12022 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
12023 it was modified for groff.
12025 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
12027 * macros/tmac.e (<., .>): Removed.
12028 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
12030 * macros/tmac.e: Remove check that groff is being used.
12032 * macros/tmac.e (@C): Change families only if using groff; turn
12033 compatibility mode off while changing familes. Save compatibility
12034 mode before changing families and restore it afterwards.
12036 * macros/tmac.e (@h): Remove test for offset + line length.
12038 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
12039 (lo, th, ac): Define to call @S instead of using als.
12041 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
12042 the ratio of the vertical spacing to the point size in units
12043 expressed as a percentage. Use these instead of $10r and $10R,
12044 Delete $10r and $10R.
12046 * lib/font.c (font::load): In default computation of space_width,
12047 divide by sizescale. Use scale_round.
12049 * macros/tmac.an (TP): Don't call `nf'.
12050 (an-do-tag): Don't call `fi'.
12052 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
12054 * troff/input.c (process_input_stack): Handle the case where
12055 spaces at the beginning of an input line are followed by a
12058 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
12060 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
12061 * groff.sh: Use pic -x with the dvi device.
12063 * dvi/devdvi/FontMakefile (H): Don't use -s.
12065 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
12066 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
12067 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
12070 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
12072 * ps/psfig.diff: New file.
12073 * ps/tmac.psfig: New file.
12075 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
12077 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
12078 (]-): Don't call ref*do-tl.
12080 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
12082 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
12083 (fn@do-FS): Rename to fn*do-FS.
12085 * troff/input.c (transparent_translate): New function.
12086 (process_input_stack): Apply transparent_translate before calling
12087 diversion::transparent_output(unsigned char).
12089 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
12091 * troff/input.c (do_define_macro): Define the macro before calling
12094 * xditview/Makefile: Add DEVICES variable. Change install target
12097 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
12099 * groff.c (run_commands): Handle the possibility that there are
12100 child processes other than those forked by us.
12102 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
12104 * lib/string.c (string::append): New function.
12105 * lib/stringclass.h: Declare it.
12107 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
12109 * eqn/main.c (main): New option -N which sets
12110 no_newline_in_delim_flag.
12111 (do_file): If no_newline_in_delim_flag is set don't allow newlines
12113 * groff.c (main): Pass -N on to eqn.
12114 (help, synopsis): Mention -N.
12115 * groff.sh: Implement -N.
12117 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
12119 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
12120 (]-): Call ref*do-tl if ref*need-tl is non-zero.
12121 (XP): Allow as initializer.
12123 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
12125 * troff/env.c (environment::wrap_up_field): If field_spaces are
12126 non-zero and we have a current_tab, subtract padding from
12127 tab_distance. If this makes tab_distance <= 0, use the next tab
12128 stop instead. If there isn't any next tab or it's a left tab,
12129 wrap up the current tab.
12130 (environment::start_field): Initialize tab_precedes_field.
12131 (environment::wrap_up_tab): If there's a current field, update
12132 pre_field_width, field_distance and tab_precedes_field.
12133 * troff/env.h (environment::tab_precedes_field): New member.
12135 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
12137 * ps/ps.c (ps_printer::do_file): New function.
12138 (ps_printer::special): Bind to `file' special.
12139 (ps_printer::do_exec): Set ndefined_styles to 0.
12141 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
12143 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
12144 Avoid stripping first character from the start of unrecognized
12145 escapes. Use lex_error instead of error to report errors.
12146 * eqn/lex.c (get_token): Rework handling of escapes.
12147 (lex_error): Move declaration into...
12150 * xditview/xditview.c (main): Make -page option work.
12152 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
12154 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
12156 * macros/tmac.s (B2): Correct size of box.
12158 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
12160 * macros/tmac.s (B2): Postpone drawing the box until in the
12161 top-level diversion.
12163 * tty/tmac.tty: Add font translations for C, CR, CW.
12165 * groff.c (synopsis, help): Document -i.
12166 * groff.sh: Implement -i.
12168 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
12169 Simplify the construction of SN.
12171 * troff/number.c (parse_term): Give `|' a higher precedence.
12172 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
12175 * macros/tmac.s (B2): Use par@finish instead of par@reset.
12177 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
12179 * lib/string.c (string::move): New function.
12180 * lib/stringclass.h: Declare it.
12182 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
12184 * troff/env.c (distribute_space): Add optional argument
12186 (environment::wrap_up_field): Call distribute_space with
12187 `force_forward' argument of 1.
12189 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
12191 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
12192 Inline it. Move reallocation into...
12193 (string::grow1): New function.
12194 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
12195 dependencies to include library header files.
12196 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
12198 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
12200 * macros/tmac.s (@NH): Use the same number registers than -ms does
12201 for the heading level counters. Use the same string that -ms does
12202 for the number for this heading.
12204 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
12206 * lib/new.c (operator new): Cast result of malloc to char *.
12208 * troff/input.c (spring_trap, lookup_request): Add assert that nm
12211 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
12213 * groff.c (main): Support -i.
12215 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
12217 * pic/pic.h: Include <osfcn.h>.
12219 * ps/ps.c: Add declaration of mktemp.
12221 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
12222 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
12223 argument as union wait *.
12224 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
12225 argument to union wait *.
12227 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
12229 * tty/tmac.tty: Add definition of \(co.
12231 * pic/object.c (make_arc): Only increase radius when radius
12232 strictly less than d.
12233 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
12236 * troff/env.c (environment::environment(symbol),
12237 environment::environment(const environment *)): Initialize
12240 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
12242 * tbl/main.c (main): Add exit(0).
12244 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
12246 * pic/main.c (main):
12247 * eqn/main.c (main):
12248 * tbl/main.c (main):
12249 * etc/soelim.c (main):
12250 * driver/printer.c (printer::~printer):
12251 * troff/node.c (real_output_file::~real_output_file,
12252 real_output_file::flush): Check for errors on stdout.
12254 * most files: Add 1991 to copyright notice.
12256 * macros/tmac.s: Don't test \n(.x and \n(.y.
12258 * troff/input.c (token::next): Rename `escape_char' label to
12259 `handle_escape_char' and `normal_char' label to
12260 `handle_normal_char'.
12262 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
12264 * groff.c (main, synopsis, help): Support -a option.
12265 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
12266 to trflags while parsing options.
12268 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
12270 * troff/number.c (parse_term): With `m', `M' and `n' scale
12271 indicators, convert scale factor to hunits before scaling.
12273 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
12275 * lib/font.c (scale_round): Better test for overflow when n is
12278 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
12280 * tbl/main.c (process_format): Add second argument of type
12281 options*. Change callers. Allow opt->tab_char as well as '\t'
12282 between format items.
12284 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
12286 * macros/tmac.an (PD): With no arguments, make sure register PD is
12288 (TH): Call PD with no argument, instead of setting register PD
12291 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
12293 * Version 1.00 released.
12295 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
12297 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
12299 * dvi/devdvi/DESC: Mount CW instead of CR.
12301 * dvi/tmac.dvi: Add definition of \(tm.
12303 * dvi/devdvi/texsy.map: Add lh, and rh.
12304 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
12305 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
12307 * dvi/devdvi/FontMakefile: Generate H from cmss10.
12308 * dvi/devdvi/Makefile: Install H.
12309 * dvi/devdvi/H: New file.
12311 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
12313 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
12316 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
12318 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
12320 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
12322 * macros/tmac.s (@EN): Handle the case where the equation is empty
12323 but the label is not.
12325 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
12327 * troff/groff.h: New warning category WARN_SPACE.
12328 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
12329 WARN_SPACE to warning_table.
12330 (interpolate_macro): Give a warning of type WARN_SPACE if the name
12331 is longer than two characters and is not defined, but the first
12332 two characters do make a defined name.
12334 * PROBLEMS: New file.
12336 * CHANGES: New file.
12337 * README-0.6, README-1.00: Deleted.
12339 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
12340 * xditview/devX75/Makefile: Make devX75-12.
12341 * xditview/devX100/Makefile: Make devX100-12.
12343 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
12344 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
12346 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
12348 * README-0.7: Rename to README-1.00.
12350 * macros/tmac.pic: New file.
12351 * macros/Makefile (install.nobin): Install tmac.pic.
12353 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
12355 * troff/env.c (hyphen_word): Correct the test for whether the
12356 token is a hyphen. Reset npos to 0.
12358 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
12360 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
12362 * macros/tmac.s (ds*common-end): Call par*reset.
12364 (par@reset-indent): Deleted.
12366 * macros/tmac.s (@IP): Divert the label.
12368 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
12370 * xditview/draw.c (setGC): Use a line width of .1m rather than
12371 .04m by default; round rather than truncate value.
12373 * tbl/table.c (class empty_entry): New class.
12374 (empty_entry::empty_entry, empty_entry::line_type): New functions.
12375 (table::add_entry): Represent empty entries by objects of type
12377 (table_entry::line_type): Return -1.
12378 (table::determine_row_type): Ignore entries with line_type 0.
12379 Treat type -1 as non-lines.
12381 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
12383 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
12384 macros/tmac.s: Rename \(-d to \(Sd.
12386 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
12388 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
12389 * xditview/libXdvi/DviChar.c: Likewise.
12390 * dvi/devdvi/texsy.map: Add `<<', `>>'.
12392 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
12394 * troff/div.c (top_level_diversion::begin_page): Call
12395 init_output() if the_output is 0.
12397 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
12399 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
12401 (get_copy): Turn \E into ESCAPE_E.
12402 (token::process, asciify): Handle ESCAPE_E.
12404 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
12406 (DS): Implement `.DS R'.
12408 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
12410 * macros/tmac.s (FS): New macro.
12412 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
12414 * macros/tmac.s (cov*tl-init): Remove after first execution
12415 instead of aliasing to @nop. Call top of page macro explicitly
12416 instead of setting trap; call @init first. Set pg@top as top of
12418 (cov*auto-init): Deleted. Set cov*tl-init instead of
12419 cov*auto-init as top of page trap.
12420 (TL, LP): Do a break instead of calling cov*tl-init.
12421 (cov*print): With RP format but no TL, alias FS and FE to @FS and
12422 @FE; in this case also give a warning and always start another
12423 page. No need to set pg@top here.
12424 (cov*tl-init): Rename to cov*first-page-init.
12426 * macros/tmac.s (RP): Do `.pn 0'.
12427 (cov*tl-init): With RP format don't do `.pn 0'.
12429 * macros/tmac.s (pg@cs-top): Set no space mode.
12431 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
12432 (cov*ab-init): Alias TL, AU and AI to these.
12434 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
12436 * macros/tmac.s (@EQ): Move the space before the equation into @EN
12437 (@EN): Do nothing unless \n[dl] is > 0.
12439 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
12441 * pic/object.c (ellipse_object::radius): New function.
12443 * VERSION: Change version to 0.7.
12445 * tbl/table.c (block_entry::do_divert): Declare return type as
12447 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
12449 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
12451 * troff/column.c: New file.
12452 * troff/Makefile: Corresponding changes.
12454 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
12457 * troff/div.c (top_level_diversion::space): If the space causes
12458 the first-page transition and springs a trap, truncate the space
12461 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
12463 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
12466 * pic/troff.c (troff_output::line_thickness,
12467 troff_output::set_fill): Do a horizontal motion to compensate for
12468 the width of the \D escape sequence.
12470 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
12472 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
12475 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
12478 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
12479 Supply empty definition.
12480 (text_entry::simple_print, simple_text_entry::simple_print):
12481 Delete declarations.
12482 (table::add_entry): Represent empty entries by objects of type
12485 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
12487 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
12489 * tbl/table.c (left_text_entry::add_tab): New function.
12491 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
12492 initialize like LP.
12494 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
12496 * troff/env.c (environment::start_field): Give an error message if
12497 there is no next tab.
12499 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
12501 * troff/env.c (hyphenate): Skip initial elements with zero
12504 * macros/tmac.s (par@init): Keep VS in points rather than units.
12506 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
12508 * pic/main.c (main): Implement `-c' option.
12509 * pic/output.h: Declare make_tpic_output().
12510 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
12512 (tpic_output): New class.
12513 (tpic_output::tpic_output, tpic_output::set_pen_size,
12514 tpic_output::command, make_tpic_output): New functions.
12516 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
12518 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
12519 if they're not already defined.
12520 * tbl/table.c (init_output): Don't test \n(.g.
12522 * troff/input.c (do_if_request): Delete `g' condition. Recognize
12523 `d', `r' and `c' conditions even in compatibility mode.
12525 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
12527 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
12530 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
12532 * troff/env.h (environment::prev_line_interrupted): New member.
12533 (environment::get_prev_line_interrupted): New function.
12534 * troff/env.c (environment::newline): Set prev_line_interrupted.
12535 (environment::environment(const environment *),
12536 environment::environment(symbol)): Initialize
12537 prev_line_interrupted.
12538 * troff/input.c (process_input_stack): Don't give special
12539 treatment to space and newline at the beginning of the line if the
12540 previous line was interrupted.
12542 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
12544 * eqn/eqn.y: Disallow PRIME by itself.
12545 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
12547 (def_table): Remove definition of '. Define prime to be `.
12549 * eqn/eqn.y: Split off part of rule `script' into a new rule
12552 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
12554 * macros/tmac.s ({, }): New string aliases.
12556 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
12558 * README-0.7: New file.
12560 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
12562 * macros/tmac.s: New file.
12563 * man/groff_ms.man: New file.
12564 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
12565 * Makefile.bd: Similarily.
12566 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
12567 definition of TMAC_S.
12568 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
12569 * macros/TODO: New file.
12571 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
12573 * troff/env.c (right_justify): New function.
12574 (init_env_requests): Bind this to request "rj".
12575 (center_lines): Set right_justify_lines to 0. If we get a bad
12576 integer, center 1 line.
12577 (environment::environment(symbol), environment::environment(const
12578 environment *)): Initialize right_justify_lines.
12579 (environment::get_right_justify_lines): New function.
12580 (init_env_requests): Bind this to number_register ".rj".
12582 * troff/env.c (environment::choose_breakpoint): Implement
12583 hyphenation_margin and hyphenation_space.
12584 (environment::get_hyphenation_space,
12585 environment::get_hyphenation_margin): New functions.
12586 (init_env_requests): Bind these to .hys and .hym.
12587 (hyphenation_space_request, hyphenation_margin_request): New
12589 (init_env_requests): Bind these to hys and hym.
12590 (environment::environment(symbol), environment::environment(const
12591 environment *)): Initialize hyphenation_margin and
12593 * troff/env.h: Corresponding changes to class environment.
12595 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
12597 * troff/div.c (blank_line): Always do a break.
12599 * eqn/box.c (do_text): Turn off escapes while appending text to
12602 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
12604 * troff/input.c (while_break_request, while_continue_request): New
12606 (init_input_requests): Bind these to "break" and "continue".
12607 (while_depth, while_break_flag): New variables.
12608 (while_request): Update while_depth. Break out of loop if
12609 while_break_flag is set.
12611 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
12613 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
12616 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
12618 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
12620 * stringify: New file.
12621 * Makefile (groff.o): Use stringify.
12623 * xditview/tmac.X: Remove definition of \(rn.
12624 * xditview/libXdvi/DviChar.c: Remove radicalex from
12627 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
12629 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
12630 (alphabetic_block_entry::alphabetic_block_entry,
12631 alphabetic_block_entry::divert, alphabetic_block_entry::print):
12633 (block_entry::divert): Split off body into ...
12634 (block_entry::do_divert): If the block is alphabetic, subtract 2n
12635 from the line length; also update the span width to dl+2n, and the
12636 alphabetic span width to dl.
12638 * driver/input.c (do_file): While reading argument to D command,
12639 when expanding buffer, multiply szp by sizeof(int) rather than 2
12640 in the argument to memcpy.
12642 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
12643 width of alphabetic columns.
12645 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
12647 * troff/node.c (lookup_family): Supply second argument to lookup.
12649 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
12650 search, return immediately if v is 0.
12652 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
12653 (troff_output::start_picture): Set this reg.
12654 (troff_output::end_picture): Remove this reg
12655 * eqn/box.c (box::extra_space): Don't produce `\x's if
12656 EQN_NO_EXTRA_SPACE_REG is defined.
12658 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
12659 * eqn/text.c (split_text): Map ' to \(fm when it's the first
12662 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
12664 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
12667 * troff/div.c (top_level_diversion::top_level_diversion):
12668 Initialize page_number to 0.
12670 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
12672 * groff/troff (environment::environment(const environment *)):
12673 Initialize name to e->name, rather than "anonymous".
12675 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
12677 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
12678 requested_page. Split middle part into ...
12679 (FindPage): New function.
12680 (SetValues): If we don't yet know the last page, and the requested
12681 page is greater than the current page, call FindPage.
12682 Update the font_map_string before doing this.
12684 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
12685 Translate \(lh and \(rh into left and right double arrows.
12687 * troff/node.c (class hyphen_inhibitor_node): New class.
12688 (hyphen_inhibitor_node::hyphen_inhibitor_node,
12689 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
12690 hyphen_inhibitor_node::type,
12691 hyphen_inhibitor_node::get_hyphenation_type): New functions.
12692 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
12693 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
12696 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
12698 * troff/node.h (dummy_node::get_hyphenation_type,
12699 transparent_dummy_node::get_hyphenation_type): Declare them.
12700 * troff/node.c: (dummy_node::get_hyphenation_type,
12701 transparent_dummy_node::get_hyphenation_type): New functions.
12703 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
12705 * xditview/libXdvi/draw.c: If M_PI not defined after including
12706 math.h, then define it.
12708 * xditview/Makefile: Add definition of AR. Pass it to the submake
12710 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12712 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
12714 * troff/dictionary.h (object_dictionary::alias): Declare return
12716 * troff/dictionary.c (object_dictionary::alias): Return non-zero
12717 if the old name was defined.
12718 * troff/input.c (alias_macro): Give a warning if the old name was
12720 * troff/reg.c (alias_reg): Likewise.
12722 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
12724 * troff/input.c (token::next): Delete implementation of \R.
12726 * macros/Makefile: Strip comments from tmac.e while installing it.
12728 * troff/input.c: New variable `nroff_mode'.
12729 (troff_request, nroff_request): New functions.
12730 (init_input_requests): Bind `troff' and `nroff' to troff_request
12732 (do_if_request): Compute results of t and n conditions from
12735 * text/text.c (split_text): Fix typo in >=.
12737 * eqn/lex.c: Add definition of `==' to def_table.
12739 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
12741 * pic/tex.c (tex_output::start_picture): Change the definitions of
12742 \graph and \graphtemp so that they work properly with Plain TeX.
12744 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12745 argument to `ar' is not less than the first.
12747 * pic/pic.y: Allow a comma between elements of the variable list
12748 in the argument to `reset'.
12750 * pic/object.c (arc_object::arc_object): Fix computation of
12753 * eqn/main.c (main): Add exit(0).
12755 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
12757 * troff/div.c (begin_page): Test no_space_mode after doing the
12758 break, but still push the page ejector cookie before doing the
12759 break. Also set the next page number after doing the break.
12761 * xditview/xditview.c (NewFile): Don't set the title and icon name
12762 if this is the first file and its name is `-'.
12763 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
12764 the X75 and X100 devices.
12765 (main): If a device has the XT_OPTION flag set and there's exactly
12766 one file argument, pass the driver -xrm and -title options to set
12767 the icon name and window title to the name of the file.
12769 * troff/env.c (environment_switch): If there was an argument but
12770 it wasn't a valid number or name, then pop an environment but
12771 don't give an error message on underflow.
12773 * troff/number.c (start_number): Correct spelling in error message.
12775 * troff/input.c (token::delimiter): Don't print an error message
12778 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12779 ParseDrawFunction if dw->display_enable is true.
12781 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
12783 * pic/pic.y: Parse text positioning like normal attributes, so as
12784 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
12785 positioning attribute.
12787 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
12789 * tbl/main.c (process_data): When in state START while reading a
12790 text block, don't change to state MIDDLE if c is a newline.
12792 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
12794 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12795 so as to avoid shadowing parameter.
12797 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
12799 * tbl/table.c (trim_space): Deleted.
12800 (table::add_entry): Don't call trim_space.
12802 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
12804 * VERSION: Change version to 0.6.
12806 * troff/number.c (parse_expr): Make == work.
12808 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
12810 * man/grog.man: New file.
12811 * man/Makefile: Add grog.n to MAN1PAGES.
12812 * etc/grog.sh: New file.
12813 * etc/Makefile: Install grog.sh as grog.
12815 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
12817 * troff/input.c (token::next): Implement \E.
12819 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
12821 * xditview/tmac.X: Change font translations to match tmac.ps.
12823 * troff/input.c (non_empty_name_warning): Don't give a warning if
12824 `\{' terminates the name.
12826 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
12828 * ps/devps/symbol.diff: New file.
12829 * ps/devps/FontMakefile: Mention symbol.diff.
12831 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
12833 * troff/node.c (font_position): Use get_long_name to read the
12836 * troff/env.c (environment_switch): If we get a number that's < 0
12837 or >= NENVIRONMENTS, treat it like a name.
12838 Change NENVIRONMENTS to 10.
12840 * troff/groff.h: Remove definition of FONTS_MAX.
12841 * troff/node.h (class font_family): Make map a pointer instead of
12842 an array. Add a map_size member. Make it a class. Make nm const
12843 and public. Make invalidate_fontno a friend.
12844 * troff/node.c: Define font_table_size. Make font_info a pointer
12845 rather than an array.
12846 (class troff_output_file): Allocate font_position dynamically. Add
12847 nfont_positions member.
12848 (troff_output_file::set_font): Grow font_position if necessary.
12849 (troff_output_file::~troff_output_file): Delete font_position.
12850 (troff_output_file::troff_output_file): Allocate font_position.
12851 (grow_font_table): New function.
12852 (troff_output_file::really_begin_page,
12853 troff_output_file:really_copy_page): Use nfont_positions rather
12855 (mount_font_no_translate, mount_style): Call grow_font_table if
12857 (font_family::font_family): Allocate map.
12858 (font_family::make_definite): Grow map if necessary. Use
12859 font_table_size instead of FONTS_MAX.
12860 (font_family::~font_family): New function.
12861 (invalidate_fontno): Use font_family::map_size.
12862 (get_fontno, env_space_width, env_half_narrow_space_width,
12863 env_narrow_space_width, symbol_fotno, is_good_fontno,
12864 get_bold_fontno, make_glyph_node): Use font_table_size rather than
12866 (next_available_font_position): Never return 0.
12868 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
12870 * ps/tmac.ps: Add font translations for compatibility with dpost.
12872 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
12874 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12875 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12876 Move definitions baseline_sep, shift_down, column_sep,
12877 matrix_side_sep into...
12878 * eqn/box.c: Add them to param_table.
12879 * eqn/pbox.h: Add declarations to pbox.h.
12881 * troff/input.c (set_string): Cast value to unsigned char *.
12883 * troff/token.h (process_input_stack): Declare it static before
12884 declaring it a friend.
12886 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
12888 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12890 * dvi/devdvi/EX: Regenerate.
12892 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12895 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
12897 * eqn/lex.c: In defaults_table, make definition of `dot' call
12898 `dot_def'. Don't explicitly make it roman. Similarily for other
12901 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12903 (for_input::get, for_input::peek): Use this.
12904 (do_for): Add by_is_multiplicative argument.
12905 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12906 Change semantic value of optional_by to be a double plus a flag
12907 saying whethet the by clause is multiplicative.
12909 * eqn/lex.c (get_delimited_text): Remember location of start of
12910 definition. Improve error handling when EOF is encountered.
12912 * lib/font.h: Rename handle_x_command to
12913 handle_unknown_font_command.
12914 * lib/font.c (font::load): Call handle_unknown_font_command for
12915 any unknown command in the font description file. Don't call
12916 handle_x_command. Include the name of the command in the argv.
12917 Improve message for unknown command after kernpairs or charset
12919 * ps/ps.c (ps_font::handle_x_command): Rename to
12920 handle_unknown_font_command. Remove message about `x download'
12921 command. Give error message for wrong number of arguments.
12922 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
12923 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
12924 handle_unknown_font_command. Give an error message for wrong
12925 number of arguments. Rename design_size to designsize.
12926 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
12927 checksum', `designsize' instead of `design_size'.
12929 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
12931 * eqn/*.[chy]: Change underaccent to uaccent.
12933 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
12934 give it the same precedence as ACCENT.
12935 * eqn/other.c (make_underaccent_box): New function.
12936 * eqn/box.h: Declare it.
12937 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
12940 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
12942 * pic/pic.y (reset_all): New function. Called in rule for RESET.
12943 (parse_init): Call reset_all.
12944 (define_variable): When defining scale reset only those
12945 pre-defined variables that are scaled.
12946 (defaults_table): Add `scale' as non-scaled value.
12948 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
12949 together with the text; allow any number of positioning words;
12950 allow center as a positioning word.
12952 * pic/object.c (output::compute_scale): Get picture maximum height
12953 and width from variables called maxpswid and maxpsht.
12954 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
12956 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
12958 * pic/object.c (object_spec::make_text): Multiply textht by number
12961 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
12963 (do_sprintf): New function.
12964 (pic.gperf): Add sprintf token.
12965 (text, sprintf): New rules.
12967 * pic/pic.y: `rand()' with no arguments returns a random number
12968 in the range [0,1).
12970 * pic/pic.y: Allow a bare expression to be an attribute: change
12971 precedences to support this. Change optional_ordinal rule to
12972 optional_ordinal_last to avoid reduce/reduce conflict.
12973 * pic/object.c (object_spec::object_spec): Initialize direction.
12975 * pic/pic.y: Implement ^ operator meaning exponentiation.
12977 * troff/node.h: Add default argument to mount_font.
12978 * troff/node.c (font_position): Read an optional third argument
12979 giving the external_name.
12980 (mount_font): Add optional argument giving the external_name.
12981 (mount_font_not_translate): Have additional argument giving
12982 external name. Use this name to load the font. Pass both names
12983 to font_info::font_info.
12984 (font_info::font_info): Have additional argument giving
12986 (class tfont): New member external_name.
12987 (font_info::get_tfont): Use external name to construct tfont_spec.
12989 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
12991 * eqn/lex.c (init_table): Add argument giving device. Define
12992 name of device to be "1".
12993 (do_ifdef): Counts as true if the argument has been defined with
12995 * eqn/main.c (main): Call init_table with device argument. Make
12996 device local to main.
12997 * eqn/eqn.h: Change declaration of init_table. Remove declaration
13000 * pic/lex.c (get_delimited): Allow text to be delimited by
13001 matching {}s. Don't recognize ending delimiter within a string.
13003 * troff/input.c (get_delim_name): New function.
13004 (token::next): Implement \C.
13006 * lib/font.c (font::load): Grok ---. Add an alias for each
13007 character based on its code.
13008 (font::get_code_width): Deleted.
13009 * lib/font.h (class font): Declare font::number_to_index().
13010 Remove declaration of font::get_code_width.
13011 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
13012 to indices of named characters.
13013 (font::number_to_index): New function.
13014 * troff/input.c (font::number_to_index): New function.
13015 (get_charinfo_by_number, charinfo::get_number,
13016 charinfo::set_number): New functions.
13017 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
13018 (token::process, token::description, token::get_char,
13019 token::add_to_node_list, token::operator==): Handle
13020 TOKEN_NUMBERED_CHAR.
13021 * troff/charinfo.h: Declare get_charinfo_by_number,
13022 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
13024 (charinfo::numbered): New function.
13025 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
13026 * troff/env.h (class environment): Remove declaration of ...
13027 * troff/env.c (environment::make_numbered_char_node): Deleted.
13028 * troff/node.c (make_numbered_node): Deleted.
13029 (class numbered_glyph_node): Remove.
13030 (troff_output_file::put_char_width, troff_output_file::put_char):
13031 Handle numbered chars.
13032 (troff_output_file::numbered_char): Removed.
13033 (tfont::get_code_width): Removed.
13034 (make_glyph_node): Don't search special fonts for numbered
13036 * troff/node.h: Remove declaration of make_numbered_node.
13037 * driver/input.c (do_file): Handle N command.
13038 * driver/printer.h: Add declaration of ...
13039 * driver/printer.c (printer::set_numbered_char): New function.
13040 * dvi/tfmtodit.c (main): Generate unnamed entries.
13041 * ps/devps/afmtodit: Likewise.
13042 * xditview/xtotroff.c (MapFont): Likewise.
13043 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
13045 * tbl/main.c (process_format): If multiple widths are specified
13046 for a column but all the widths are the same, don't give an error
13049 * tbl/table.c (table::do_row): If the current row is all lines and
13050 the stuff doesn't contains a line, mark the top of the row after
13051 printing stuff before the row. If the current row is not all
13052 lines and the stuff doesn't contain a line, don't unnecessarily
13053 mark the top of the row before printing the stuff.
13055 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
13057 * troff/groff.h: Remove MAX_PATH.
13058 * troff/input.c (open_file): Dynamically allocate space for the
13060 (open_mac_file, process_macro_file): Corresponding changes.
13062 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
13064 * troff/node.h (class output_file): Make copy_file pure. Add
13065 vspace method ifdef COLUMN. Add is_printing method.
13066 * troff/node.c: Add class printing_reg. Add class
13067 real_output_file. Derive other output_file classes from
13068 real_output_file; in these classes rename begin_page to
13069 really_begin_page, print_line to really_print_line, copy_file to
13070 really_copy_file, transparent_char to really_transparent_char.
13071 Move output_file::flush to real_output_file. Add printing member
13072 to class output_file.
13073 * troff/div.h: Remove printing member from top_level_diversion.
13074 Add vspace member function to class diversion ifdef COLUMN. Add
13075 some declarations ifdef COLUMN.
13076 * troff/div.c (top_level_diversion::copy_file,
13077 top_level_diversion::transparent_output,
13078 top_level_diversion::output): Don't test printing member before
13080 * troff/input.c: Handle initial variable_space_request ifdef
13082 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
13083 but comment it out.
13085 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
13087 * troff/div.c (diversion::need): Make any space forced. If we
13088 sprung a trap, set truncated_space to minus the distance to the
13089 trap and set needed_space to the amount that was needed.
13090 (top_level_diversion::space): A forced space turns no_space_mode
13092 (class constant_vunits_reg): New class.
13093 (init_div_requests): Implement number registers .trunc and .ne
13094 using constant_vunits_reg.
13095 (class truncated_space_reg): Deleted.
13097 * troff/div.h: Don't have a no_space_mode member in diversion.
13098 Instead have it in top_level_diversion.
13099 * troff/div.c (diversion::diversion): Don't initialize
13101 (top_level_diversion::top_level_diversion): Initialize
13103 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
13104 (macro_diversion::output): Don't clear no_space_mode.
13106 * troff/input.c (diverted_space_node::reread): Don't call
13107 environment::do_break. In fill mode, act like a blank line.
13108 (diverted_copy_file_node::reread): Don't call
13109 environment::do_break.
13111 * troff/div.c (blank_line): New function.
13112 * troff/div.h: Declare it.
13113 * troff/input.c (process_input_stack): Call it.
13115 * troff/div.c (truncated_space_reg::get_string): New function.
13116 (init_div_requests): Bind to .trunc.
13117 (space_request, top_level_diversion::space,
13118 top_level_diversion::output, macro_diversion::space,
13119 macro_diversion::output): Update truncated_space.
13120 (macro_diversion::output): Redo calculations when trap sprung.
13121 (macro_diversion::output, macro_diversion::space): No need for
13124 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
13125 after truncating post line spacing.
13127 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
13129 * ps/devps/prologue (MF, SF): Make them work even if setfont is
13130 defined as a procedure rather than as an operator.
13132 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
13134 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
13136 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
13138 * troff/div.c (top_level_diversion::output): Merge
13139 output_file::print_line and output_file::end_of_line member
13141 * troff/div.h (class output_file):
13142 * troff/node.c (troff_output_file::print_line,
13143 troff_output_file::end_of_line, output_file::end_of_line,
13144 ascii_output_file::print_line, suppress_output_file::print_line):
13145 Corresponding changes.
13147 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
13149 * troff/input.c (token::next): Don't give a warning for `\.'.
13151 * troff/env.c (environment::get_center_lines): New function.
13152 (init_env_requests): Bind number register .ce to it.
13153 * troff/env.h: Declare it.
13154 * tbl/table.c (table::init_output): Define reset macro to restore
13155 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
13157 (table::print): If center option not given, then imply center
13158 option if SAVED_CENTER_REG > 0.
13160 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
13162 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
13163 Troff.ps from DOWNLOAD.
13165 * troff/Makefile: Change comment in DEFINES to avoid confusing
13168 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
13169 code. Don't try to catch errors with stopped.
13170 (check_line_lengths): New function.
13171 * ps/devps/prologue (EXEC): Deleted.
13172 (EBEGIN, EEND): New procedures.
13174 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
13176 * troff/input.c: Include request.h before node.h.
13177 * troff/node.c: Likewise.
13178 * troff/env.c: Likewise.
13179 * troff/div.c: Likewise.
13180 * troff/node.h (class special_node): Store argument as a macro
13181 rather than a char *.
13182 * troff/node.c (special_node::special_node, special_node::copy):
13184 (special_node::~special_node): Deleted.
13185 (special_node::tprint): Deleted.
13186 (special_node::tprint_start, special_node::tprint_end,
13187 special_node::tprint_char): New functions.
13188 (troff_output_file::special): Deleted.
13189 (troff_output_file::start_special, troff_output_file::end_special,
13190 troff_output_file::special_char): New functions.
13191 * troff/input.c (special_node::tprint): New function.
13192 (do_special): Use macro not char *.
13193 (do_transparent_macro): Deleted.
13194 (token::next): Don't call do_transparent_macro.
13196 * troff/input.c (token::next): Add 'Y' case.
13197 (do_transparent_macro): New function.
13198 * troff/node.c (troff_output_file::special): Handle newlines with
13199 argument using new continuation convention.
13200 * driver/input.c (get_string): Cope with continuation convention.
13201 (do_file): Don't call skip_line after calling get_string(1).
13202 * ps/ps.c (ps_printer::special, ps_printer::do_import,
13203 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
13205 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
13208 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
13210 * troff/input.c (asciify): By default, illegal input characters
13211 should return empty string.
13213 * troff/input.c (copy_file): Handle first page transition like title.
13214 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
13216 * troff/input.c (token::next): Improve error message for EOF after
13218 (input_char_description): New function.
13219 (get_char_for_escape_name): Use input_char_description.
13220 (token::next): Warn about unrecognized escape sequences.
13221 (warning_table): Add WARN_ESCAPE.
13222 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
13225 * troff/token.h: Remove declaration of process_input_stack.
13227 * troff/input.c: Remove declaration of init_hyphen_requests.
13228 * troff/request.h: Correct spelling in declaration of same.
13230 * troff/input.c (token::next): Check whether escape_char is 0.
13232 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
13234 * groff.c (main, usage, help): Implement -P and -L options.
13235 * groff.sh: Likewise.
13237 * troff/input.c (token::next): Use some gotos to avoid code
13240 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
13241 Avoid calling symbol::symbol if name empty.
13243 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
13245 * troff/input.c (init_input_requests): Make \n(.x return the major
13246 version number and \n(.y return the minor version number.
13247 * troff/Makefile: Construct file majorminor.c defining
13248 major_version and minor_version automatically from ../VERSION.
13250 * troff/node.c (class glyph_node): Make operator new and operator
13252 (class ligature_node): Similarily.
13254 * troff/input.c (operator==(const macro &, const macro &)): New
13256 (non_interpreted_node::same): Use this.
13257 (string_iterator::string_iterator): Make macro& argument const.
13259 * troff/input.c (input_iterator::get): New function. Don't make
13260 asciify_macro or class non_interpreted_node friends of class
13262 (non_interpreted_node::interpret): Use input_iterator::get.
13263 (asciify_macro): Likewise.
13265 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
13266 ~non_interpreted_node): Deleted.
13267 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
13270 * troff/symbol.h: Make all symbol member functions const.
13272 * lib/strtol.c: New file.
13273 * lib/Makefile: Add strtol.c.
13274 * Makefile: Define STRTOL as strtol.o to include strtol in
13277 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
13279 * pic/troff.c (troff_output::simple_circle): Divide by scale.
13281 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
13283 * troff/input.c (do_special): Use input_level.
13285 * troff/token.h (TOKEN_BACKSPACE): New token.
13286 (token::backspace): New function.
13287 * troff/input.c (token::description, token::next, token::process):
13288 Grok TOKEN_BACKSPACE.
13289 (do_special): Turn TOKEN_BACKSPACE back into \b.
13291 * troff/token.h (token::leader): New function.
13292 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
13294 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
13296 * troff/input.c (do_special): Use token::description in error
13299 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
13301 * troff/input.c (decode_args): Combine quoted and
13302 quote_input_level variables. Make it a for (;;) loop.
13304 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
13306 * troff/input.c (read_long_escape_name): The test for whether to
13307 expand buffer was off by 1.
13308 (read_string): Similarily.
13310 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
13312 * troff/input.c: Use `const int' rather than `static const int'.
13314 * troff/div.h (diversion::copy_file): Declare as pure virtual.
13315 (macro_diversion::copy_file): New function.
13316 * troff/node.h: New class diverted_copy_file_node.
13317 * troff/node.c: Implement it.
13318 * troff/input.c (copy_file): Use diversion::copy_file. Handle
13319 first page transition by pushing a diverted_copy_file_node.
13320 * troff/input.c (token::next, process_input_stack): Don't handle
13323 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
13325 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
13326 whether space widths need adjusting.
13328 * troff/charinfo.h: Generalize translated_to_space to
13329 special_translation so as to allow translation to \&.
13330 * troff/input.c (translate): Allow translation to \&.
13331 (charinfo::*): Corresponding changes.
13332 * troff/node.c (make_node, node::add_char): Corresponding changes.
13333 * troff/node.h (dummy_node::dummy_node): Allow optional first
13336 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
13337 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
13339 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
13340 TOKEN_REQUEST with an argument of TITLE_REQUEST.
13341 (token::process): Grok that.
13342 * troff/input.c (copy_file): Handle first page transition like
13343 title by pushing a COPY_FILE_REQUEST cookie.
13344 (token::next, process_input_stack): Grok that.
13345 * troff/node.h (output_file::copy_file): Add x and y arguments.
13347 * troff/div.c (top_level_diversion::copy_file): Supply them.
13348 * troff/node.c (troff_output_file::copy_file): Add x and y
13349 arguments; moveto specified position. Invalidate font_position
13350 array after copying file.
13351 (output_file::copy_file): New function.
13352 (suppressed_output_file::copy_file, ascii_output::copy_file):
13354 * troff/input.c (transparent_file): New function.
13355 (init_input_requests): Bind to "trf".
13356 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
13357 (process_input_stack): Likewise.
13359 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
13361 * troff/node.c (init_node_requests): New number registers .kern
13362 pointing to global_kern_mode, and .lg pointing to
13363 global_ligature_mode.
13365 * troff/node.c (ligature): Don't change it if we get a bad
13368 * troff/input.c (do_define_string): Don't strip tabs.
13370 * troff/input.c (asciify_macro): Make the string_iterator auto.
13372 * troff/node.c (init_font_requests): Rename to...
13373 (init_node_requests):
13374 * troff/node.h: Change declaration.
13375 * troff/input.c (main): Change call.
13377 * troff/input.c (node::reread, diverted_space_node::reread): New
13379 (process_input_stack): Call reread rather than
13380 get_diverted_space_node.
13381 * troff/node.c (node::get_diverted_space_node,
13382 diverted_space_node::get_diverted_space_node): Removed.
13383 * troff/node.h: Declare reread methods instead of
13384 get_diverted_space_node methods. Make `n' member private.
13385 * troff/input.c: (token::diverted_space): Removed.
13386 * troff/token.h: Removed declaration.
13389 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
13391 * eqn/script.c (script_box::compute_metrics): Don't let
13392 SUP_RAISE_FORMAT become negative.
13394 * tbl/table.c (table::do_row): Entries that don't end in the
13395 this row shouldn't make the row non-blank.
13397 * tbl/table.c (table::make_columns_equal): Only set the width of
13398 columns which are marked as equal.
13400 * tbl/main.c (process_data): Before issuing excess data error,
13401 if last character was a newline unget it; then get it again after
13402 the error. Also include the contents of the entry in the message.
13404 * groff.c: New file.
13405 * Makefile: Build groff from groff.c. Make it possible to use
13406 either groff.sh or groff.c as groff.
13407 * Makefile.bd: Similarily.
13409 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
13411 * groff.sh: Don't delay expansion of $@ in assignment to files.
13412 Remove occurrences of \".
13414 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
13416 * all Makefiles: Simplify and rearrange.
13418 * Makefile: Handle fmod like malloc.
13419 * lib/Makefile: Similarily.
13420 * lib/fmod.c: Remove #ifdef NEED_FMOD.
13422 * Makefile: Rename OPTIMISE to OPTIMIZE.
13424 * groff.sh: Remove assignment to PATH.
13425 * Makefile: Remove SHPATH variable.
13426 * Makefile.bd: Similarily.
13428 * groff.sh: Add -V option to print the pipeline instead of
13431 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
13433 * lib/font.c: Split off file searching into ...
13434 * lib/fontfile.c: New file.
13436 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
13438 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
13440 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
13441 Also change misleading comment.
13442 (table::do_vspan): Change similarily misleading comment.
13443 * tbl/main.c (process_data): A format row with an explicit `s'
13444 uses up a data line, even if all the other columns are `_' or `='.
13446 * troff/input.c (token::description): Fix description of
13447 TOKEN_DUMMY and TOKEN_EMPTY.
13449 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
13451 * groff.sh: Fix description of -Z in help message.
13453 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
13455 * pic/object.c (object_spec::make_object): Allow negative and zero
13457 * pic/pic.y: Give linethick default value of -1.0.
13458 * pic/troff.c (troff_output::troff_output): Initialize
13459 last_line_thickness to BAD_THICKNESS.
13460 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
13461 (troff_output::line_thickness): Canonicalize negative thicknesses
13462 to RELATIVE_THICKNESS.
13463 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
13464 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
13466 (tex_output::start_picture): Set pen_size to -2.0.
13468 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
13469 0, then use 0 linewidth.
13470 (ps_printer::ps_printer): Initialize line_thickness to -1.
13472 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
13474 * ps/devps/symbolchars: Remove `or'.
13475 * ps/tmac.ps: Implement \(or with .char.
13477 * ps/devps/symbolchars: Move most characters into textmap.
13478 * ps/devps/textmap: Add names for troff bracket characters. Remove
13481 * ps/devps/TSymbol.ps: Removed.
13482 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
13483 * ps/tmac.ps: Do with .char what TSymbol did.
13484 * ps/devps/download: Remove TSymbol.
13486 * ps/devps/T: Removed.
13487 * ps/devps/Troff.ps: Removed.
13488 * ps/devps/Troff.afm: Removed.
13489 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
13490 * ps/devps/download: Remove Troff.
13491 * ps/devps/FontMakefile: Remove T target.
13492 * ps/devps/DESC-A4: Remove T from font list.
13493 * ps/devps/DESC-letter: Likewise.
13495 * troff/input.c (macro_to_node): Rename to ...
13496 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
13497 character's definition while processing it.
13498 * troff/node.c (node::add_char, make_node): Change calls to
13499 macro_to_node accordingly.
13501 * troff/input.c (token::next): Translate \_ to \(ul.
13503 * tty/devascii/R.proto: Add `|'.
13504 * tty/devlatin1/R.proto: Likewise.
13506 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
13508 * man: Put the version number in all the man pages.
13510 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
13512 * Makefile.bd: New file.
13513 * README.bd: New file.
13515 * VERSION: New file.
13516 * lib/version.c: Removed.
13517 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
13520 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
13521 environment variable.
13523 * all Makefiles: Split install target into install.bin for
13524 binaries, and install.nobin for everything else.
13525 * Makefile: Add bindist target.
13527 * man/afmtodit.man: New file.
13528 * man/Makefile: Add afmtodit.n to MAN1PAGES.
13529 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
13531 * ps/Makefile: Pass BINDIR to make install in devps.
13533 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
13534 the space character.
13536 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
13538 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
13540 * ps/ps.c: Redo font downloading.
13541 * ps/devps/download: New file.
13542 * ps/devps/Makefile: Add download to DEVICEFILES.
13543 * ps/devps/afmtodit: Remove -d option.
13544 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
13545 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
13546 * ps/devps/zapfdr.ps: Likewise.
13547 * ps/devps/TSymbol.ps: Likewise.
13549 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
13551 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
13553 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
13555 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
13556 then strip the first line if it starts with %.
13557 * Makefile: Add a comment about this.
13559 * man/tfmtodit.man: New file.
13560 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
13561 * dvi/Makefile: Install tfmtodit in BINDIR.
13563 * dvi/tfmtodit.c (usage): Mention -v option.
13565 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
13567 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
13568 * troff/node.c (troff_output_file::transparent_char): Don't call
13571 * eqn: Add check_tabs method to most box classes.
13572 * eqn/box.c (box::top_level): Call check_tabs.
13574 * eqn/script.c (script_box::output): Use \Z.
13575 * eqn/limit.c (limit_box::output): Use \Z.
13577 * eqn/box.c (box::top_level): Use itoa.
13579 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
13581 * dvi/tmac.dvi: Add font translations for CR, C, TT.
13582 * dvi/devdvi/Makefile: Don't make links to CW.
13584 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
13586 * xditview/tmac.X: Likewise.
13588 * troff/node.c: Add font translation feature.
13589 (get_font_translation): New function.
13590 (symbol_fontno): Translate the font name.
13591 (mount_font_no_translate): Rename to mount_font to this.
13592 (mount_font): New function.
13593 (font_family::make_definite): Call mount_font_no_translate instead
13595 (mount_style): Translate the font name.
13596 (font_translate): New function.
13597 (init_font_requests): Bind "ftr" to font_translate.
13599 * ps/devps/prologue (SN): New procedure that rounds a position to
13600 the nearest (pixel + (.25,.25)).
13601 (DL): Use SN to round endpoints.
13603 * lib/version.c: Changed version to 0.5.
13605 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
13607 * Makefile: Move definition of PAGE to the very beginning, so that
13608 people are less likely to miss it.
13610 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
13612 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
13614 * troff/env.c (environment::choose_breakpoint): Make `can't find
13615 breakpoint' error a warning of type WARN_BREAK. Change message to
13616 `can't break line'.
13617 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
13619 * troff/input.c: Add WARN_BREAK to warning_table. Include
13620 WARN_BREAK in DEFAULT_WARNING_MASK.
13622 * tty/tmac.tty: Add definition of \(+-.
13624 * groff.sh: Remove `--' option to set command.
13626 * dvi/devdvi/texsy.map: Remove duplicate md entry.
13628 * ps/devps/eqnchar: Better definition of cdot using md.
13629 * dvi/devdvi/eqnchar: Likewise.
13630 * xditview/devX100/eqnchar: Likewise.
13631 * xditview/devX75/eqnchar: Likewise.
13632 * eqn/lex.c: Add definition of cdot.
13634 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
13636 * troff/input.c (get_optional_char): New function.
13637 * troff/input.c (set_page_character): Use get_optional_char(),
13638 rather than has_arg() and tok.get_char(1).
13639 * troff/env.c (tab_character, leader_character, hyphen_char,
13640 field_characters): Likewise.
13641 (margin_character): Likewise. Also always delete the
13642 margin_character_node.
13644 * troff/input.c (token::get_char): Use token::description.
13646 * troff/input.c (has_arg): Don't skip over tab and \}.
13647 * troff/number.c (start_number): Give a warning if the number
13648 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
13650 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
13652 * troff/input.c (empty_name_warning, non_empty_name_warning): New
13654 (get_name, get_long_name): Use these. Rename `warn' argument to
13657 * troff/node.c (get_fontno): Test that the symbol is not null.
13659 * troff/input.c (token::description): New function.
13660 * troff/number.c (parse_term): Use token::description in `numeric
13661 expression expected' message.
13662 * troff/groff.h: Add WARN_MISSING.
13663 * troff/number.c (start_number): New function.
13664 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
13665 get_incr_number): Use start_number().
13666 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
13668 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
13669 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
13671 * troff/input.c (token::get_char): Use WARN_MISSING.
13672 * troff/input.c (token::delimiter): Use token::description.
13673 * troff/env.c (environment_switch): Back out Aug 3 change.
13674 * troff/input.c (has_arg): Skip over \}s and tabs but give a
13676 * troff/token.h (token::tab): New function.
13677 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
13678 * troff/reg.c (alter_format): Likewise.
13679 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
13681 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
13683 * troff (most files): Redo warnings. Divide warnings into various
13684 categories; warning() has an additional first argument indicating
13685 the category it falls into.
13686 * troff/input.c (main): -w now takes an argument. New option -W.
13687 (enable_warning, disable_warning): New functions.
13689 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
13690 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
13692 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
13694 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
13695 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
13696 * xditview/devX75/eqnchar: Likewise.
13697 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13699 * eqn/other.c: When bar or over applies to a single character
13700 don't produce an overline_box or an underline_box. Instead produce
13701 an accent_box or an underaccent_box, with the accent a line
13702 whose width is accent_width. New classes underaccent_box,
13703 overline_char_box and underline_char_box.
13704 * eqn/box.h: Move overline_box, underline_box, accent_box class
13705 declarations into eqn/other.c. Add declarations of
13706 make_underline_box, make_overline_box, make_accent_box.
13707 * eqn/eqn.y: Call make_overline_box, make_underline_box
13708 make_accent_box instead of constructors.
13709 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13711 * eqn/other.c: Add accent_box::~accent_box.
13712 * eqn/box.h: Declare it.
13714 * groff.sh: With -Tps, use eqn -D.
13716 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13718 (underline_box::output): Similarily.
13719 (accent_box::output): Use \Z.
13721 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13724 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
13726 * troff/div.c (top_level_diversion::transparent_output(unsigned
13727 char)): Use asciify.
13728 * troff/input.c (asciify): Don't make it static.
13729 * troff/token.h (asciify): Declare it.
13731 * troff/input.c (get_name, get_long_name, token::get_char,
13732 token::delimiter): Add an extra default argument which says
13733 whether a warning should be printed.
13734 * troff: Pass a non-zero argument to one of these rather than
13735 printing a warning directly.
13737 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
13739 * troff: Consistently use symbol::is_null.
13741 * troff/dictionary.h: Move some inline functions into
13744 * troff/request.h: Move inline functions into input.c.
13745 (request_or_macro::invoke): Make it pure.
13747 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13748 * troff/input.c (init_input_requests): Use class constant_int_reg.
13749 (class compatible_reg): Deleted.
13750 * troff/div.c (init_div_requests): Use class constant_int_reg.
13751 (class last_post_line_extra_space_reg): Deleted.
13753 * troff/env.c (tab_character): Don't change the tab character if
13754 we get an invalid argument.
13755 (hyphen_char): Similarily.
13757 * troff/reg.c (alter_format): Check that nm is not null.
13759 * Makefile, groff.sh: Make it possible to customize the commands
13760 used for printing PostScript and dvi files. Also make it possible
13761 to customize the path used by groff.sh.
13763 * eqn/eqn.y: Make `left' right associative.
13765 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
13767 * pic/pic.h: Added definition of M_SQRT2 for those systems that
13770 * pic/pic.h: Removed definition of INT_MAX.
13772 * troff/node.c (italic_corrected_node::vertical_extent): Omit
13775 * troff/input.c (token::next): Handle \R like \n.
13777 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
13779 * ps/tmac.pc (PSPIC): Simplify.
13781 * troff/env.c (tab_stops::to_string):
13782 * pic/pic.y (object_type_name):
13783 * pic/troff.c (simple_output::line):
13784 * pic/tex.c (tex_output::spline):
13785 * pic/object.c (object_spec::make_object):
13786 * tbl/main.c (process_data): Add cases to switch statements to
13787 avoid cfront warnings. (Some of these are spurious, since the
13788 switch already has a default case.)
13790 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
13791 `ps-'. Don't test systat; instead check number of arguments to
13794 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
13796 * macros/tmac.e: Do not decrease the page offset by 0.5i.
13798 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13799 Unlink the file as soon as we have opened it, so that we don't
13800 have to bother with signal handlers.
13801 (handler): Deleted.
13802 (fatal_error_exit): Deleted.
13803 (main): Don't call signal.
13805 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13807 * dvi/devdvi/Makefile: Use the -k option with S and MI.
13809 * pic/pic.y: If there is a label, or an nth construction before
13810 the first `.' in the argument to `with', ignore it and generate a
13812 * pic/lex.c (lex_warning): New function.
13814 * tbl/table.c (table::init_output): In section keep and release
13815 macro, use 0 indent when diverting and the correct indent when
13818 * troff/input.c (interpolate_number_format): Do not interpolate
13819 anything if the number register is not defined.
13821 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13823 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
13825 * ps/devps/prologue (PICTURE): Set components of graphics state to
13826 their default values.
13828 * ps/devps/text.enc: Add trademark
13829 * ps/devps/textmap: Add names for club, spade, heart, diamond,
13830 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13831 * ps/devps/symbolchars: Add names for summation and product.
13833 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13834 suchthat. Add pp. Add upper-case letters.
13836 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13837 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13840 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13841 rA (right angle bracket) to ra. Introduce names for double-headed
13842 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13843 * ps/devps/textmap: Likewise for ps device.
13844 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13845 * tty/devascii/R.proto: Rename lA to la and rA to ra.
13846 * tty/devascii/R.proto: Likewise.
13847 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13849 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13851 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13853 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13856 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
13858 * troff/div.c (when_request): Use symbol::is_null rather than
13859 has_arg to determine whether we have an argument.
13860 (change_trap): Remove the trap if we get an invalid number. Give
13861 an error if we don't get at least the macro name.
13862 (diversion_trap): Remove trap if we get an invalid name or number.
13864 * troff/env.c (environment_switch): Pop if we get an invalid
13865 symbol or numeric expression.
13867 * troff/input.c (do_define_macro): If EOF is encoutered while
13868 defining the macro, do tok.next() before returning.
13870 * troff/token.h (has_arg): Move definition from here, to ...
13871 * troff/input.c (has_arg): ... here
13873 * troff/env.c (space_size): Do nothing if we get an invalid argument.
13874 * troff/input.c (shift): Likewise.
13876 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
13879 * pic/troff.c (troff_output::start_picture): Comment out calls to
13882 * eqn/main.c (do_file): Subtract 1 from current_lineno if
13883 interpret_lf_args succeeds.
13885 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13886 \\. This avoids problems with \$N.
13888 * groff.sh: Pass -C to preprocessors.
13890 * lib/lf.c (interpret_lf_args): Be more flexible.
13892 * tbl/main.c (main): Add -C option.
13893 (table_input::get): Do not recognize TE if followed by character
13894 other than a space or newline unless -C option given.
13895 (process_input_file): Likewise for lf, TS.
13896 (process_data): Likewise for lf in text blocks.
13898 * eqn/main.c (main): Add -C option.
13899 (do_file): Don't recognize EQ, EN or lf if followed by character
13900 other than space or newline unless -C option given.
13901 * eqn/lex.c (file_input::read_line): Similarily.
13902 * eqn/eqn.h: Declare compatible_flag.
13904 * etc/soelim.c (main): Add -C option.
13905 (interpret_lf_args): Use version in libgroff.
13908 * pic/main.c (main): Add -C option, which sets compatible_flag.
13909 (top_input::get), (top_input::peek): If -C option not given,
13910 do not recognize .PS/.PE/.PF/.lf if followed by a character
13911 other than space or newline.
13912 * pic/lex.c (file_input::read_line): Similarily.
13913 * pic/pic.h: Add declaration of compatible_flag.
13915 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
13917 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
13919 * troff/node.c, troff/node.h: Add `asciify' methods to classes
13920 derived from node. New class space_char_hmotion_node.
13921 * troff/input.c (asciify_macro): New function.
13922 * troff/input.c (init_input_requests): New request `asciify' bound
13924 * macros/mm.diff: New file.
13925 * Makefile: In install.mm target use `patch' to apply
13928 * troff/input.c (macro::print_size): Just print the size in bytes.
13930 * troff/div.c (return_request): Correct the argument
13933 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
13935 * troff/node.h (class composite_node): Add sz member.
13936 * troff/node.c (composite_node::size): Return sz.
13937 * troff/input.c (macro_to_node): Use the initial size in the
13938 environment as the size of the composite_node.
13940 * troff/node.c (node::zero_width_tprint): Provide a reasonable
13943 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
13945 * troff/div.c (change_trap): If we get a bad number expression,
13948 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
13950 * lib/matherr.c (matherr): Define this only if math.h defines
13953 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
13955 * troff/div.c (macro_diversion::distance_to_next_trap): If there
13956 no diversion trap return vunits(INT_MAX - vresolution).
13958 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
13960 * troff/input.c (do_zero_width): New implementation that doesn't
13961 use a temporary environment. Use instead:
13962 (token::add_to_node_list): New function.
13963 * troff/env.c (environment::get_prev_char_height),
13964 (environment::get_prev_char_height),
13965 (environment::get_prev_char_skew): New functions.
13966 (environment::get_prev_char): New function.
13967 (environment::get_prev_char_width): Change to use get_prev_char.
13968 (init_env_request): Implement new registers .cht, .cdp, .csk.
13969 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
13970 \Z being processed in a separate environment.
13972 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
13974 * tbl/table.c: Removed TABLE_BOTTOM_REG.
13976 * tbl/table.c (table::init_output): In the section release macro,
13977 give a warning message if the section won't fit on one page.
13979 * tbl/table.c (table::do_top): Emit table keep only if table is
13981 (table::do_bottom): Likewise for table release.
13982 (table::table), (table::add_vertical_rule): Remove reference to
13984 * tbl/table.h: Remove keep member.
13986 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
13987 SECTION_RELEASE_MACRO, if there's not enough space before the next
13988 trap to output the diversion, call T# ourselves, set
13989 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
13990 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
13991 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
13992 vertical position and return to it before turning traps on again.
13994 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
13996 * troff/node.c, troff/node.h: In classes derived from node,
13997 replace prev_char_width method by last_char_node method.
13998 * troff/env.c (environment::get_prev_char_width): Use
13999 node::last_char_node rather than node::get_prev_char_width.
14001 * Makefile: Added comment about -fno-inline on 68030-based
14004 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
14005 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
14006 expressions using sizeof to int.
14007 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
14009 * macros/tmac.e (TS): Don't move @f back past the current
14012 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
14014 * ps/ps.c (main): Buffer stderr.
14015 * dvi/dvi.c (main): Likewise.
14016 * tty/tty.c (main): Likewise.
14018 * ps/ps.c (ps_printer::do_import): Improve error handling.
14020 * troff/input.c (abort_request): Use asciify.
14022 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
14023 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
14024 type of first argument int rather than char. This works around a
14025 bug on the 68030 based Apollo using g++ 1.37.1.
14027 * tbl/table.h (class table): Add `keep' member.
14028 * tbl/table.c (table::table): Initialize `keep'.
14029 (table::add_vertical_rule): Set `keep' to 1.
14030 (table::do_top): Only emit table keep macro is `keep' is non-zero.
14031 (table::do_bottom): Likewise for table release macro.
14032 (table::do_row): Emit section keep macro even if the row is 0.
14034 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
14036 * macros/tmac.e (@C): Preserve the font family across the change
14039 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
14041 * lib/font.c: Initialize font::hor and font::vert to 1.
14042 (font::load_desc): Check the values of font::hor and font::vert.
14044 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
14045 be included in a C compilation.
14046 (iftoa): Use INT_DIGITS. Include lib.h.
14048 (as_string): Likewise.
14049 * tbl/table.c: Removed definition of INT_DIGITS.
14050 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
14051 * troff/input.c (input_input_requests): Likewise.
14052 * ps/ps.c (make_encoding_name): Likewise.
14053 (ps_printer::set_style): Likewise.
14054 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
14056 * tty/devascii/R.proto: Map fm onto '.
14057 * tty/devlatin1/R.proto: Likewise.
14059 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
14061 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
14062 argument to \w is at a different input level.
14064 * tbl/table.c (table::init_output): Define a new macro
14065 REPEATED_VPT_MACRO, like vpt but if in a diversion also
14066 transparently outputs itself.
14067 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
14069 (table::do_row): Likewise.
14071 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
14072 TRANSPARENT_STRING_NAME.
14074 * tbl/table.c (table::init_output): In the table release macro
14075 print an error message and don't produce any output if after
14076 issuing the need request the table still will not fit. Also
14077 remove the diversion after bringing it back.
14079 * tbl/table.c (table::init_output): Define a new macro
14080 REPEATED_MARK_MACRO, like mk but if in a diversion also
14081 transparently outputs itself.
14082 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
14083 is necessary because .TH might not call .T#.
14084 (table::do_top): Likewise TOP_REG.
14085 (table::define_bottom_macro): If TOP_REG is no longer valid, use
14086 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
14087 table header might contain just the two top rules.
14089 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
14091 * troff/div.c: Implement new request `ptr' to print all traps.
14093 * troff/env.c (init_env_requests): Implement `.tabs' reg with
14094 init_string_env_reg.
14095 * troff/env.c (class tab_reg): Deleted.
14097 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
14099 * troff/div.c: New number register .pn returns the number of the
14100 next page as set by the pn request.
14102 * macros/tmac.an: Redid headers and footers. Number each manual
14103 entry starting from 1 unless \nC is > 0, like Sun. Added an
14104 optional 5th argument to .TH which specifies the manual name and
14105 appears in the center of the header. Understand the X, P and D
14106 registers like Sun.
14108 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
14110 * troff/env.c (init_env_requests): New number register `.lt' to
14111 return the title length.
14113 * troff/node.h (class transparent_dummy_node): New class.
14114 * troff/node.c (class transparent_dummy_node): Provide member
14116 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
14119 * troff/input.c (token::next): New escape sequence \).
14120 * troff/input.c (get_copy): Recognize \) in copy mode.
14122 * troff/input.c (input_stack::clear): New function.
14123 * troff/input.c (exit_request): Use input_stack::clear.
14125 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
14126 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
14128 * troff/env.c: Move set_page_character to input.c. Move
14129 page_character to input.c also.
14130 * troff/env.c (title): Split off the reading of the parts of the
14131 title into read_title_parts.
14132 * troff/input.c (read_title_parts): New function. Check the
14133 input_level when testing whether a token matches the delimiter.
14135 * troff/input.c (exit_request): New function.
14136 * troff/input.c (init_input_requests): Bind ex request to
14137 exit_request rather than exit_groff.
14139 * troff/input.c (exit_groff): Call tok.next() before
14140 process_input_stack().
14142 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
14144 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
14145 * troff/env.h: ditto.
14146 * troff/input.c: ditto.
14148 * troff/env.c (environment::is_empty): Test pending_lines.
14150 * troff/env.c (environment::have_pending_lines): Removed.
14152 * troff/input.c: Add request to flush pending lines from the
14155 * troff/env.c, troff/env.h: Add automatic widow control feature.
14157 * troff/input.c (exit_groff): Do process_input_stack() after
14158 do_break() but before setting exit_flag to 2.
14160 * troff/input.c: Remove FLUSH_PENDING_LINES and
14161 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
14162 environment after END_TRAP token seen, but only if there aren't
14163 any more traps still unfinished.
14164 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
14166 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
14168 * troff/env.c: Rename the `retain_size' member of class
14169 pending_output_line to `no_fill'.
14171 * troff/env.c (title): When the line is output, make the
14172 retain_size argument !fill.
14174 * troff/node.h: Add `hyphenated' member to struct breakpoint.
14175 * troff/node.c (space_node::get_breakpoints),
14176 (dbreak_node::get_breakpoints): Fill this in.
14177 * troff/env.c: Allow specification of maximum number of
14178 consecutive hyphenated lines.
14180 * troff/env.c (environment::is_empty): Add test for !current_tab.
14182 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
14184 * troff/env.c (environment::hyphenate_line): Don't completely give
14185 up if the word is not to be hyphenated; continue so that breaks
14186 can be made at break_char_node's.
14188 * lib/lib.h: Only define INT_MAX if it's not already defined;
14189 undef INT_MIN if it's already defined.
14191 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
14193 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
14194 This works around a bug in AT&T C++ 2.0 used with an ANSI C
14197 * macros/tmac.an (an-header): Set no-space mode.
14199 * macros/tmac.an (TH): Start a new page if necessary.
14201 * Started using ChangeLog at version 0.4.
14204 version-control: never