typos
[s-roff.git] / ChangeLog
blob4e57f66c7479ecf4b8e668f78803f9a15dbfa21d
1 2007-09-19  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
4         warning.
6         * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
7         Remove compiler warning.
9         * src/preproc/refer/label.y: Remove compiler warning.
11         * src/preproc/pic/pic.y: Remove doubled token entries.
13 2007-09-19  Gaius Mulley  <gaius@glam.ac.uk>
15         * doc/groff.texinfo: Document new .O register and add cross
16         reference entries.
18         * NEWS: Updated.
20         * src/devices/grohtml/grohtml.man: Document new -V and -y options.
22         * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
23         (html_table:: emit_colspan, html_table::emit_td): New methods.
24         (html_table::emit_col):  Use html_table::emit_td.
25         (html_table::emit_table_header): Use html_table::emit_colspan if
26         dialect xhtml is specified.
27         (html_table::finish_row): Updated.
29         * src/devices/grohtml/html-table.h (html_table): Declare
30         emit_colspan, emit_td.
32         * src/devices/grohtml/html-text.cpp: Modified tags to comply with
33         xhtml if this dialect was requested.
35         * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
36         (html_text): Add new variable `dialect'.
38         * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
39         compliant.
40         (valid_flag, groff_sig, dialect): New global variables. 
41         (html_printer::handle_valid_flag, html_printer::do_math,
42         html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
43         html_printer::do_math, html_printer::handle_valid_flag): New
44         methods.
45         (html_printer::emit_line, html_printer::emit_raw,
46         html_printer::do_check_center, html_printer::write_title,
47         write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
48         html_printer::begin_page): Altered to be XHTML compliant.
49         (html_printer::write_header): Updated.
50         (html_printer::troff_tag): Call do_math.
51         (html_printer::insert_split_file, html_printer::do_file_components,
52         html_printer::write_navigation): Create XHTML file components if
53         necessary and also produces a groff signature if requested.
54         (~html_printer): Call writeHeadMetaStyle at appropriate places
55         depending upon html_dialect.
56         (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
57         (main): Added options -x, -V, and -y.
58         (usage): Updated.
60         * src/preproc/eqn/box.cpp: Create a distinction between
61         the MathML device and the XHTML device.
62         (do_text): Issue a newline at the end of the equation if XHTML was
63         specified.
64         (box::top_level): Prefix the output of an equation by the .MATHML
65         macro.
66         (output_string): Suppress \n if XHTML was specified.
68         * src/preproc/eqn/main.cpp (xhtml): New global flag.
69         (inline_equation): Skip leading spaces after inline equation for
70         XHTML device.
71         (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
73         * src/preproc/eqn/eqn.h (xhtml): New external flag.
75         * src/preproc/eqn/text.cpp (entity_table): Fix typo.
77         * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
78         (dialect, eqn_flag): New global variables.
79         (html_system): Improve debugging support.
80         (alterDeviceTo): Test for -Txhtml when altering device to the image
81         device and reset to -Txhtml.
82         (addZ): Renamed to...
83         (addArg): This.
84         Introducea a general parameter.
85         (print_args): New debugging function.
86         (char_buffer::run_output_filter): Use print_args and addArg rather
87         than addZ.
88         (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
89         line parameter as an argument to the html generation of text when
90         xhtml is needed.  Include -e on the command line if mathml is
91         required.
92         (scanArguments): Allow -e, -V, -y and -x options.
93         -V, -y are handled by the back end.  -e sets `eqn_flag'.
94         -x determines HTML dialect.
96         * src/roff/groff/groff.cpp (possible_command): New method
97         `clear_name'.
98         (main):  Set eflag if -e is present on command line.
99         Set is_xhtml if -Txhtml is present.
100         Pass `-x x' to the HTML pre and post processors.
101         Pass `-e' to the HTML pre processor if required.
102         Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
104         * src/roff/troff/input.cpp (init_input_requests): Introduce new
105         number register `\n[.O]'.
107         * tmac/s.tmac: (LP): Use .nop for semantic sugar.
108         (cov*ab-init) reformat.
109         (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
110         (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
111         <cite></cite> for the html device rather than generate images for
112         footnotes.
114         * tmac/troffrc-end: Define EQN-HTML-IMAGE,
115         EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
116         EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
117         EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
119         * tmac/www.tmac: (HTML<?p>): New macro.
120         (MATH<?p>): New macro.
121         (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
122         (www-emit-ltag): New macro.
123         (www-push-li): Updated.
124         (ULS): Ensure that tags are balanced in order by use of
125         www-emit-ltag.
126         (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
127         order.
128         (OLS, OLE, DLS, DLE): Ditto.
129         <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
130         respectively.
131         (www-li-ul, www-li-ol, www-li-dl): Updated.
132         (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
133         EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
134         MATHML): New macros.
136 2007-09-17  Werner LEMBERG  <wl@gnu.org>
138         * man/groff_font.man: Document `unicode' keyword.
139         * doc/groff.texinfo (DESC File Format): Synchronize with
140         groff_font.man.
142 2007-09-15  Werner LEMBERG  <wl@nu.org>
144         * man/groff.man: Document `\_'.
145         * doc/groff.texinfo: Ditto.
146         Remove references to `\@' which isn't a valid escape sequence in
147         groff.
150         * tmac/unicode.tmac: Add ` and '.
151         * tmac/html.tmac: Load unicode.tmac.
153 2007-09-14  Werner LEMBERG  <wl@gnu.org>
155         * tmac/unicode.tmac: Make `-' a pure input character by mapping it
156         to `hy'.
158         * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
160 2007-09-11  Werner LEMBERG  <wl@gnu.org>
162         * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
163         allocation.
165         * src/preproc/tbl/table.cpp (table::allocate): Initialize
166         `blockflag' array.
168 2007-09-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
170         * README.MinGW: Add warnings about use of MSYS-RXVT, and about
171         defective GnuWin32 versions of netpbm/libpng.
173 2007-07-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
175         * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
176         possible recursion.
178 2007-07-11  Werner LEMBERG  <wl@gnu.org>
180         * gendef.sh: Add shebang.
182 2007-07-05  Werner LEMBERG  <wl@gnu.org>
184         * tmac/papersize.tmac: Fix dimensions of executive paper format. 
185         Reported by John Rupley <rupley@u.arizona.edu>.
187 2007-07-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
189         * tmac/s.tmac (cov*first-page-init): Emit error message if not in
190         top-level environment.
192 2007-06-12  Werner LEMBERG  <wl@gnu.org>
194         * src/devices/xditview/TODO, NEWS: Updated.
195         * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
196         Handle `GXditview-color'.
197         * src/devices/xditview/gxditview.man: Updated.
199         * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
200         * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
201         from `gnulib' git repository.
203         * configure.ac: Updated.
204         * configure: Regenerated (using autoconf 2.61).
206         * config.guess, config.sub: Updated from `config' CVS repository.
207         * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
208         repository.
210 2007-06-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
212         * src/devices/xditview/GXditview.ad: Split off color definitions
213         into...
214         * src/devices/xditview/GXditview-color.ad: This new file.
216 2007-06-08  Fabrice Ménard  <menard.fabrice@wanadoo.fr>.
218         * tmac/fr.tmac: Handle chapter system for `me'.
220 2007-06-05  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
222         * src/devices/xditview/xditview.c (main): Add support for
223         accelerators.
225         * src/devices/xditview/GXditview.ad: Updated.
226         Make widget more colourful.
228 2007-05-30  Werner LEMBERG <wl@gnu.org>
230         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
231         Recommend `tbl' instead of `-column' lists for more complicated
232         cases.
234 2007-05-21  Werner LEMBERG  <wl@gnu.org>
236         * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
237         correctly.
239 2007-04-10  Werner LEMBERG  <wl@gnu.org>
241         In pic, make rounded boxes work with colors.  Reported by Urs Eggli
242         <Urs.Eggli@zuerich.ch>.
244         * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
245         (output): Add color parameter to `rounded_box' member function.
247         * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
249         * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
250         to `out->rounded_box'.
252 2007-04-09  Michail Vidiassov  <master@iaas.msu.ru>
254         * font/devps/generate/textmap: Add Greek letters and some more.
256         * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
257         `Omega', and `mu' to the ones from aglfn.txt.
259 2007-04-08  Keith Marshall  <keith.d.marshall@ntlworld.com>
261         * tmac/s.tmac (SN): Define unconditionally.
262         (SN-STYLE): New string; define.
264         * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
266 2007-03-22  Werner LEMBERG  <wl@gnu.org>
268         * tmac/pspic.tmac: Fix harmless numeric overflow warning.  Reported
269         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
271 2007-03-20  Werner LEMBERG  <wl@gnu.org>
273         * tmac/trace.tmac (rn): Added.
274         (nr, ds, ds1, as, as1, substring): Restore escape character while
275         executing the macro.
276         (nr): Remove dead code.
278         * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
279         definitions to make them traceable.
281 2007-03-19  Werner LEMBERG  <wl@gnu.org>
283         * src/roff/troff/input.cpp (get_copy): Add third argument to control
284         whether \E shall be expanded.
285         (get_char_for_escape_name): Allow \E.
287 2007-03-15  Werner LEMBERG  <wl@gnu.org>
289         * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
290         par*define-font-macro, \[hooko]): Use \E to make it traceable.
292         (ref*field): Add argument to control the space between previous and
293         current argument.
294         Update all callers.
295         (ref*add-N): Fix handling of opening parenthesis.  Problem reported
296         by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
298 2007-03-14  Werner LEMBERG  <wl@gnu.org>
300         * tmac/trace.tmac (als): Added.
301         (de, de1, am, am1): Make traced macros aliased with .als work.
303 2007-02-25  Werner LEMBERG  <wl@gnu.org>
305         * src/devices/xditview/TODO: Add some more items.
307         * Makefile.comm (.man.n): Add @APPRESDIR@.
308         Sort entries.
310         * src/devices/xditview/gxditview.man: Document GXditview resource
311         file.
312         Other documentation enhancements based on a patch from Jörg.
314 2007-02-25  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
315             Joerg van den Hoff <j.van_den_hoff@fzd.de>
317         * src/devices/xditview/GXditview.ad: Make all keys work regardless
318         of the current mouse position.
320 2007-02-20  Werner LEMBERG  <wl@gnu.org>
322         * tmac/groff_man.man: Revised to improve visual appearance.
323         Reduce use of future tense.
325         * tmac/groff_trace.man: Revosed to improve visual appearance.
327 2007-02-19  Eric S. Raymond  <esr@snark.thyrsus.com>
329         Make groff.man viewer-portable.
331         * tmac/groff.man: Eliminate use of .eo/.ec.
332         (.REQ): Surround args 2 through N with quotes.  This will enable us
333         not to rely on the shift request, which is nonportable.
334         (ExecFF): Remove.  The code is simpler without it.
336 2007-02-18  Eric S. Raymond  <esr@snark.thyrsus.com>
338         * tmac/groff_www.man: Viewer-portability fixes.
340 2007-02-16  Eric S. Raymond  <esr@snark.thyrsus.com>
342         * man/groff.man: Remove some unneeded code and a no-longer-used
343         inclusion of the www macros.
345 2007-02-12  Werner LEMBERG  <wl@gnu.org>
347         * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
348         AVAILABLE_REG.
349         (table::compute_widths): Simplify.
351 2007-02-11  Werner LEMBERG  <wl@gnu.org>
353         * src/preproc/tbl/table.h: Don't include `stdbool.h'.
354         (table): Replace `bool' type with `char' for orthogonality.
355         Update all users.
357         * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
358         AVAILABLE_REG and COLCOUNT_REG.
359         (table::table): Fix order call of initializers.
360         (table::~table): Deallocate `blockflag'.
362 2007-02-09  Eric S. Raymond  <esr@snark.thyrsus.com>
364         A try at the new rule for block column allocation is now enabled by
365         the new `experimental' global option: The horizontal space up to the
366         right margin which is not used by columns without text blocks is
367         evenly distributed to the columns with text blocks.
369         It doesn't work right as yet; there appears to be some error in the
370         computation of `3avail', the available line length.  The purpose of
371         this patch is (a) to make experimenting with other formulas easy,
372         and (b) leave the infrastructure for flag `experimental' in place
373         for future experiments.  Do not document any behavior associated
374         with this flag!
376         * src/preproc/tbl/table.h: Include `stdbool.h'.
377         (table): Make `flags' public.
378         Add `count_block_columns' function.
379         Add `blockflag' array.
380         Add `EXPERIMENTAL' enumeration value.
382         * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
383         macros.
384         (table_entry): New member `parent' so that class and subclass
385         members can set a parent field.  Update all users.
386         (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
387         (block_entry::do_width): Set the parent's `blockflag'.
388         (table::allocate): Handle `blockflag'.
389         (table::count_block_columns): New function.
390         (compute_span_width): Adjust AVAILABLE_REG.
391         (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
393         * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
394         option.
396 2007-02-08  Zhao, Yu (William)  <yzhao2@alcatel-lucent.com>
398         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
399         line thickness.
401 2007-02-08  Werner LEMBERG  <wl@gnu.org>
403         * man/groff_out.man (offset): Make it work reliably.
405 2007-02-07  Eric S. Raymond  <esr@snark.thyrsus.com>
407         * man/groff_out.man: Simplify some font changes so \fP is less
408         likely to do something surprising.
409         
410         * man/groff_out.man: We can simplify the command macros still
411         further if we stop trying to hide structural requests inside them. 
412         Also, fix some instances of \} at start of line without a dot, and
413         make some font changes explicit in strings.
414         
415         * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
416         .cp.
417         
418         * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
419         calls and fix macros to do without them.  File should now be
420         viewer-portable.
421         
422         * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
423         micromotions that produce the same visual result and can be lifted
424         to XML-DocBook.
425         
426         * man/groff_out.man: Third step: Reduce Da-comand, fix a
427         call-sequence bug in the original.
428         
429         * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
430         move font-change escapes to portable form.
432         * man/groff_out.man: First step in macro simplification; eliminate
433         list1..n, simplify .offset and .index_offset so they no longer
434         require groff-specific features or eqn (instead, use troff
435         micromotions for subscripting).
437 2007-02-06  Eric S. Raymond  <esr@snark.thyrsus.com>
439         * src/preproc/eqn/eqn.man: Minor corrections.
441         * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
442         longer takes a second argument that is pasted to the end of the
443         generated text.  Instead, the end macro takes an argument that does
444         the same thing.
446         * man/ditroff.man, man/groff_diff.man, man/groff.man,
447         man/groff_out.man, man/groff_tmac.man, man/roff.man,
448         src/roff/groff/groff.man, src/roff/grog/grog.man,
449         tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
451         * src/roff/troff/troff.man: .SY and .YS are canned macros now,
452         so we can use them here.
453         
454 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
456         * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
457         By popular demand, make ... set three lower dots again
458         and introduce a new predefined macro 'cdots' to set
459         three centered dots.
461 2007-02-05  Werner LEMBERG  <wl@gnu.org>
463         * src/preproc/eqn/eqn.man: Revised.
465         * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
466         `const'.
467         (spacing_type): Fix typo.
468         (special_to_entity): Use `const'.
469         Remove unused variable.
470         * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
472 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
474         * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
475         which is a shame as the effect was cute.
477 2007-02-04  Eric S. Raymond  <esr@snark.thyrsus.com>
479         * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
480         rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
481         possible, remove preamble declarations and macros that are no
482         longer needed.  Conversion checked using the protocol described in
483         tmac/TESTING-HINTS.
485 2007-02-03  Werner LEMBERG  <wl@gnu.org>
487         * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
488         vertical space.
490 2007-02-03  Eric S. Raymond  <esr@snark.thyrsus.com>
492         * tmac/groff_man.man: Documented the extension macros, and 
493         added portability advice.
495         * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
498         Add support for MathML output to eqn.  
500         The strategy used is very simple and relies on the fact that the box
501         models of eqn and Presentation MathML differ in only trivial ways. 
502         It leaves the grammar and existing internal object structures
503         unchanged.  A new global, `output_format', is defined as an
504         enumerated type with values {troff, mathml}.  Most of the functions
505         and methods that emit actual output acquire a top-level conditional,
506         dispatching on this global, which has one arm for troff mode and one
507         for MathML mode.  In most cases the MathML arm is drastically
508         simpler.
510         (This strategy could be easily generalized to support other output
511         formats.  TeX is a possibility that leaps to mind.)
513         The only even moderately tricky changes are in the lexer.  Some of
514         the predefined macros used constructs like `up', `down', `fwd',
515         `back', and `vcenter' that have no equivalents in MathML.  I
516         attacked this problem in these ways:
518         1. I eliminated three uses of `back' to compose characters in favor
519            of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
520            that did not exist when these macros were written.  (This will be
521            a quality improvement for troff users.)
523         2. I eliminated one use of `vcenter' by using \\(md.  (Likewise...)
525         3. I then split the table of pre-definitions in three; one large
526            common table and two small troff-specific and MathML-specific
527            tables.  Use of troff-only operations (up, down, back, fwd,
528            vcenter) is now confined to the former.  The latter now uses
529            `size big' and drops out the explicit positioning operations,
530            counting on MathML processors to do them.
532         POTENTIAL TROUBLE SPOTS:
534         Here are notes for reviewers on places I'm not 100% sure I've done
535         the right thing:
537         * In the process of preparing the troff table, I translated three
538           definitions (dot_def, dotdot_def, and utilde def) that previously
539           used explicit \v escapes to use `up' and `down' instead.  I
540           modeled the new definitions on the way `vec' and `dyad' work, but
541           it's possible I got something subtle wrong.
543         * I'm not certain the MathML implementation of font_box::output() is
544           right, because I don't quite get what the switcheroo between
545           `current_roman_font' and `old_roman_font' is supposed to
546           accomplish.  It does seem to generare good MathML, though.
548         Finally, I made one purely cosmetic change in `text.cpp'; I replaced
549         with an enum some magic numbers for spacing types that I thought
550         were too ugly to live.
552         REMAINING ISSUES:
554         The entirety of eqn is translated when `-TMathML' is specified, 
555         with the following exceptions...
557         Limitations that cannot be fixed include non-support for special,
558         up/down/fwd/back, and vcenter.
560         Limitations that might be fixable include non-support for mark and
561         lineup.  I will investigate further, but if these can be implemented
562         at all it's going to be in a very complicated and nasty way.
564         The way character boxes are output means that each digit of a
565         multi-digit number gets its own <mn></mn> tag pair in the MathHTML. 
566         While this is not technically wrong for Presentation MathML, it is
567         ugly and inefficient.  Fixing this will require implementing a
568         little state machine in the `text.cpp' output method.
570         * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, 
571         src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, 
572         src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
573         src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, 
574         src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, 
575         src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
576         src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
577         src/preproc/eqn/eqn.man: MathML output mode.
579         * NEWS: Document it.
581 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
583         * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
584         and for cross-viewer portability.  Conversion checked 
585         using the protocol described in tmac/TESTING-HINTS.
587 2007-02-02  Werner LEMBERG  <wl@gnu.org>
589         * tmac/an-ext.tmac (ME): Don't use `\:'.
591         * src/roff/grog/grog.man: Further refinements and normalizations.
593 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
595         * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
596         cross-viewer portability.  Conversion checked using the protocol
597         described in tmac/TESTING-HINTS.
599 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
601         * tmac/TESTING-HINTS: Added.
603 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
605         Enable the support for Bell archaisms on .SC, so the `-r bell'
606         switch is no longer needed to format old AT&T papers like
607         the EQN user guide.
609         * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
611         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
613 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
615         Add some Bell labs extensions to the -ms macros.
617         * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
619         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
621 2007-01-30  Werner LEMBERG  <wl@gnu.org>
623         * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
624         (\n[mH]): New register (set if grohtml is used).
625         (\n[SY]): Rename to \n[mS].
626         (\n[a]): Rename to \n[mA].
627         (\n[i]): Rename to \n[mI].
628         (mU): New auxiliary input trap macro.
629         (UR, UE): Replace stub with real definition.
630         (URL): Remove.
631         (MT, ME): New macros.
632         (MTO): Remove.
633         (EX, EE): Don't insert vertical space.
634         Use a register to store (and restore) the current font.
636         * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
637         on patches from Eric Raymond.
638         Fix URL addresses.
640 2007-01-22  Gaius Mulley  <gaius@glam.ac.uk>
642         * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
644 2007-01-22  Werner LEMBERG  <wl@gnu.org>
646         * tmac/an-ext.tmac: Protect against being sourced twice.
647         (URL, EE): Use always two backslashes.
648         (MTO): New macro.
650 2007-01-16  Werner LEMBERG  <wl@gnu.org>
652         * tmac/an-ext.tmac: Remove code for grodvi.
653         (SY): Fix typos.
654         Don't insert empty line.
655         (URL, TQ): Fix typos.
657 2007-01-14  Werner LEMBERG  <wl@gnu.org>
659         * tmac/an-ext.tmac: New file, containing extension macros
660         for -man.  See discussion on the groff mailing list for
661         background information.
662         * tmac/an-old.tmac: Load an-ext.tmac.
663         Decorate .ds and as with comment escapes where appropriate.
664         * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
666 2007-01-05  Werner LEMBERG  <wl@gnu.org>
668         * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
670 2007-01-04  Gaius Mulley  <gaius@glam.ac.uk>
672         Make -me macros ready for grohtml.
674         * tmac/e.tmac: Load devtag.tmac.
675         (need_eo_h, need_eo_tl, need_tl): New registers.
676         (check_need_title, (x-html, )x-html, xp-html): New macros.
677         (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
678         b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
679         (bp): Rename to @b only if output device is not html.
681 2007-01-01  Werner LEMBERG  <wl@gnu.org>
683         * man/groff_font.man: Document empty lines.
685         * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
686         the very beginning of the output.
687         [!$opt_x]: Fix typo.
689         * font/devps/*: Regenerate font definition files.
691 2007-01-01  Werner LEMBERG  <wl@gnu.org>
693         * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
695         * font/devps/*: Regenerate font definition files.
697 2006-12-31  Werner LEMBERG  <wl@gnu.org>
699         * Makefile.in (oldfontdir): New variable.
700         (MDEFINES): Add $(oldfontdir).
701         (uninstall_dirs): Remove `current' link.
702         Remove $(oldfontdir).
704         * Makefile.comm (oldfontsubdir): New variable.
705         (install_dev): Install files collected in $(OLDDEVFILES) into
706         $(oldfontsubdir).
707         (uninstall_dev): Remove data in $(oldfontsubdir).
708         (.man.n): Handle @OLDFONTDIR@.
710         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
711         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
712         src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
713         Document GROFF_FONT_PATH.
715         * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
716         old font description files.
718         * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
719         variables.
721         * font/devps/old/*: New directory, holding the previous version
722         of the 35 Adobe core font description files.
724         * font/devps/*: Regenerated the 35 Adobe core fonts, using the
725         Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
727         * NEWS: Document font update.
729 2006-12-31  Werner LEMBERG  <wl@gnu.org>
731         * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
733         * Makefile.comm (fonts): New (empty) target.
734         * Makefile.in (TARGETS): Add `fonts'.
736         * MANIFEST: Add `chem'.
738         * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
739         can't be chained.
741 2006-12-26  Werner LEMBERG  <wl@gnu.org>
743         * src/preproc/grn/hdb.cpp: Include gprint.h later.  From NetBSD.
745 2006-12-19  Werner LEMBERG  <wl@gnu.org>
747         Add support for German.  For activation, simply use -mde or -mden
748         (for traditional and new orthgraphy, respectively) as the last
749         macro package.
751         * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
752         tmac/hyphenex.det: New files, partly taken from CTAN.
753         * LICENSES: Updated list of hyphenation patterns.
754         * man/groff_tmac.man: Mention de.tmac and den.tmac.
755         * NEWS: Updated.
757 2006-12-11  Werner LEMBERG  <wl@gnu.org>
759         Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
760         hosts).
762         * src/preproc/pic/lex.cpp (ARG1): Redefine.  Update all users.
763         (MAX_ARG): New macro.  Use it everywhere to replace hard-coded
764         limit of 9 arguments.
765         (process_body): Handle argument numbers with more than a single
766         digit.
767         (interpolate_macro_with_args): Protect against exceeding number of
768         arguments.
770         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
772 2006-12-10  Werner LEMBERG  <wl@gnu.org>
774         * Makefile.in (site.exp, docheck): Commented out.  Not working
775         currently.
776         (check): Just emit dummy message.
778 2006-12-08  Werner LEMBERG  <wl@gnu.org>
780         During installation, create soft link from <version> to `current' in
781         <datadir>/groff.
783         * Makefile.comm (install): Renamed to...
784         (do_install): This.
785         (prefix_must_exist): Removed.  Code moved to Makefile.in.
787         * Makefile.in (TARGETS): Remove `install'.
789         (install): New target which first creates the directory given by
790         --prefix, then calling `make' to do the installation, and finishing
791         with the creation of the soft link.
793 2006-11-21  Werner LEMBERG  <wl@gnu.org>
795         * doc/Makefile.sub (uninstall_sub): Fix names for info files.
797 2006-11-18  Werner LEMBERG  <wl@gnu.org>
799         * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
800         information from Tom Van Vleck <thvv@multicians.org>.
802 2006-11-16  Werner LEMBERG  <wl@gnu.org>
804         * tmac/62bit.tmac: New macro package.
805         * tmac/Makefile.sub (NORMALFILES): Add it.
806         * NEWS: Document it.
808         * tmac/trace.tmac: Protect against being loaded again.
809         (nr): Always show result.
811         * doc/groff.texinfo (Input Encodings): Document latin-5.
813         * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
815 2006-11-13  Werner LEMBERG  <wl@gnu.org>
817         * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
818         on negative trap positions.
820 2006-11-10  Werner LEMBERG  <wl@gnu.org>
822         * Makefile.comm (.man.n): Handle @DATASUBDIR@.
824 2006-11-09  Werner LEMBERG  <wl@gnu.org>
826         * INSTALL: Move information about external installation from
827         INSTALL.gen into this file.
828         Updated.
830         * INSTALL.gen: Update to new version (from texinfo CVS).
832 2006-11-09  Bernd Warken
834         * INSTALL.gen: Extend the file by information on `external
835         installation'.  Reorder the installation instruction as `normal
836         installation'. 
838 2006-11-08  Werner LEMBERG  <wl@gnu.org>
840         * doc/Makefile.sub (install_data): Take care of proper paths while
841         installing info files.  Bug reported by Bernd Warken.
843 2006-11-06  Bernd Warken
845         * src/roff/grog/grog.pl: Rewrite.
846         - Call by `#! /usr/bin/env perl'.  That isn't replaced.
847         - Rename usage() to version().
848         - Use warnings.
849         - For `use strict', start all global variables with an upper case
850         character.  Use `my' for all variables.  Use several new variables.
851         - Add option `-h'.
852         - Add copyright to GPL and Emacs comment.
853         - Handle several `-m*' options.
854         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
855         - Allow options after file names.
856         - Allow only one `-' parameter (standard input).
857         - Add option abbreviations.
858         - Expand the usage information.
859         - Add `chem'.
860         - Add single quote "'" as additional first character and allow
861         arbitrary space after the first character.
863         * src/roff/grog/grog.sh: Rewrite.
864         - Remove option `-e' of `sed'.
865         - Allow file names with space characters.
866         - Add option `-h'.
867         - Add copyright to GPL.
868         - Handle several `-m*' options.
869         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
870         - Allow options after file names.
871         - Allow only one `-' parameter (standard input).
872         - Add option abbreviations.
873         - Expand the usage information.
874         - Add `chem'.
875         - Add single quote "'" as additional first character and allow
876         arbitrary space after the first character.
878         * src/roff/grog/Makefile.sub:
879         - Add copyright to GPL.
880         - Remove `grog:'.  Move `grog.old:' to `grog:' in order to have a
881         fair chance to choose between the shell version and the Perl
882         version of `grog'.  This is now again comparable to grog in groff
883         version 1.10.
885         * src/roff/grog/grog.man: Rewrite.
886         - Move the license to GPL.
887         - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
888         - Take over some setup and macros from `groffer'.
889         - Add information on options.
891 2006-10-28  Werner LEMBERG  <wl@gnu.org>
893         * tmac/trace.tmac: Improve tracing of `.nr'.
894         Trace `.substring' also.
896         * NEWS: Updated.
898 2006-10-28  Bernd Warken
900         * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
901         of groff development site, fix fonts.
903         * News: Add information on `chem' and `groffer'.
905 2006-10-26  Bernd Warken
907         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
909 2006-10-26  Werner LEMBERG  <wl@gnu.org>
911         Add `\%^' escape to handle the parameters to a macro as a string
912         argument.
914         * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
916         * src/roff/troff/input.cpp (input_iterator, input_stack,
917         macro_iterator): Add `space_follows_arg' member function.
918         (macro_iterator::add_arg): Add parameter to set the `space_follows'
919         flag.
920         (arg_list): Add member `space_follows'.
921         Update constructor and all callers.
922         (decode_args): Store discarded double quotes.
923         (interpolate_args): Handle DOUBLE_QUOTE.
924         Add `\%^' escape.
925         (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
927         * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
929         * docs/groff.texinfo (Parameters), man/groff.man,
930         man/groff_diff.man, NEWS: Document it.
932 2006-10-24  Bernd Warken
934         * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
936 2006-10-24  Werner LEMBERG  <wl@gnu.org>
938         * tmac/groff_trace.man: Mention problem with `\\\\'.
940 2006-10-23  Werner LEMBERG  <wl@gnu.org>
942         * doc/groff.texinfo (Expressions): Improve documentation of `!'.
944         * tmac/trace.tmac (return): Don't call `substring'.
946 2006-09-10  Werner LEMBERG  <wl@gnu.org>
948         * src/roff/troff/input.cpp (read_size): Revert previous change
949         w.r.t. `\s-[-...]'.
951         * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
953 2006-09-09  Werner LEMBERG  <wl@gnu.org>
955         * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
956         behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
957         point size to 1).  Reported by Gunnar Ritter.
958         Also catch `\s-[-...]' and friends (causing an error).
960 2006-09-06  Werner LEMBERG  <wl@gnu.org>
962         * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
963         space only if there is no previous space.  This fixes a bug which
964         caused unwanted filling of the last line in a paragraph.  Thanks to
965         Gunnar Ritter for an analysis.
967 2006-09-03  Werner LEMBERG  <wl@gnu.org>
969         * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
970         Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
972 2006-09-01  Nick Stoughton  <nick@msbit.com>
973             Werner LEMBERG  <wl@gnu.org>
975         Add a request `pev' to print environment information (similar to
976         `pnr' and `ptr' to print number registers and traps).
978         * src/roff/troff/env.h (environment): Add member function print_env.
980         * src/roff/troff/env.cpp: (environment::print_env): New function to
981         print a given environment state.
982         (print_env): New global function to iterate through the
983         environments, printing each one.
984         (init_env_requests): Register `pev'.
986         * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
987         NEWS: Document `pev' request.
989 2006-09-01  Bernd Warken
991         * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
992         `-I' to `dir'.
994 2006-09-01  Werner LEMBERG  <wl@gnu.org>
996         * src/preproc/pic/main.cpp (usage): Add missing options.
998 2006-08-25  Werner LEMBERG  <wl@gnu.org>
1000         * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1001         in file names.
1003 2006-08-19  Werner LEMBERG  <wl@gnu.org>
1005         * configure: Regenerated.
1007 2006-08-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1009         * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1010         logic; it previously caused an `expr' syntax error, if no version of
1011         `makinfo' was present.  Also, remove dependency on `makeinfo' in VPATH
1012         builds, if an up to date `groff.info' is present in either `builddir'
1013         or in `srcdir'.
1015 2006-08-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1017         * font/devps/prologue.ps: Add BPhook.
1019         * src/devices/grops/grops.man: Document BPHook.
1020         Reorder some sections for better readability.
1022 2006-08-12  Werner LEMBERG  <wl@gnu.org>
1024         * src/include/lib.h (getlocale): New macro.
1025         (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1026         suggested by Bruno.
1028         * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1030 2006-08-11  Werner LEMBERG  <wl@gnu.org>
1032         Add new flag to .cflags to enable hyphenation without looking at
1033         hcode values.
1035         * src/roff/troff/charinfo.h (charinfo): New enumeration value
1036         `IGNORE_HCODES'.
1037         New member function `ignore_hcodes'.
1039         * src/roff/troff/node.cpp (break_char_node::add_self,
1040         node::add_char): Updated.
1042         * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1044 2006-08-09  Werner LEMBERG  <wl@gnu.org>
1046         Support composite Unicode characters again.  Reported by Colin.
1048         * font/devhtml/R.proto: Renamed to...
1049         * font/devhtml/R.in: This.
1051         * font/devutf8/R.proto: Renamed to...
1052         * font/devutf8/R.in: This.
1053         Add `charset' line.
1055         * font/make-Rproto: New script.
1056         * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1058 2006-07-26  Werner LEMBERG  <wl@gnu.org>
1060         * README: Fix description of CVS access.  Reported by Joachim.
1062 2006-07-11  Werner LEMBERG  <wl@gnu.org>
1064         Add a request `.fzoom' and a number register `.zoom' to magnify
1065         fonts.
1067         * src/include/font.h (font): Add member variable `zoom'.
1068         Add member functions `set_zoom' and `get_zoom'.
1069         Remove `static' attribute from `scale' member function.
1071         * src/libs/libgroff/font.cpp (font::font): Updated.
1072         (scale_round): New version with three parameters to handle zoom
1073         factor.
1074         (font::scale, font::get_width): Handle zoom factor.
1075         (font::set_zoom, font::get_zoom): New functions.
1076         (font::load): Handle `zoom' while computing `space_width'.
1078         * src/roff/troff/env.h: Declare `env_get_zoom'.
1079         (environment): Add member function `get_zoom'.
1081         * src/roff/troff/env.cpp (environment::get_zoom): New function.
1082         (init_env_requests): Initialize `.zoom' register.
1084         * src/roff/troff/node.cpp (font_info): New member functions
1085         `set_zoom' and `get_zoom'.
1086         (tfont): New member function `get_zoom'.
1087         (env_get_zoom): New function.
1088         (troff_output_file::set_font): Handle zoom factor.
1089         (font_zoom_request): New function.
1090         (init_node_requests): Initialize `fzoom' request.
1092         * docs/groff.texinfo (Changing Fonts), man/groff.man,
1093         man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1094         register.
1096         * src/roff/troff/TODO: Updated.
1098 2006-07-10  Werner LEMBERG  <wl@gnu.org>
1100         * doc/groff.texinfo (Drawing Requests): Improve documentation of
1101         \D'P ...'.
1103 2006-07-02  Werner LEMBERG  <wl@gnu.org>
1105         * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1107 2006-07-01  Werner LEMBERG  <wl@gnu.org>
1109         * tmac/pspic.tmac: Make .PSPIC work for all devices.
1110         Print image file name for devices which don't support PS image
1111         inclusion.
1112         Handle multiple inclusions.
1113         Add lots of comments.
1115         * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1116         pspic.tmac.
1118         * tmac/troffrc: Load pspic.tmac.
1120         * man/groff_tmac.man: Update .PSPIC documentation.
1122         * NEWS: Updated.
1124 2006-06-29  Werner LEMBERG  <wl@gnu.org>
1126         * src/roff/troff/input.cpp (interpolate_macro):
1127         s/probably/possibly/, as suggested by Keith.
1129 2006-06-28  Werner LEMBERG  <wl@gnu.org>
1131         Add support for \D'p...' to grotty.
1133         * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1134         its code to...
1135         (tty_printer::line): This function.
1136         (tty_printer::draw): Rewritten; just call either draw_line or
1137         draw_polygon.
1138         (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1140         * src/devices/grotty/grotty.man, NEWS: Document it.
1142 2006-06-27  Werner LEMBERG  <wl@gnu.org>
1144         * src/preproc/refer/command.h (have_bibliography): New variable
1145         declaration.
1147         * src/preproc/refer/command.cpp (bibliography_command): Set
1148         `have_bibliography'.
1150         * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1151         (output_references): Emit warning only if `have_bibliography' is
1152         set.
1154 2006-06-15  Michail Vidiassov  <master@iaas.msu.ru>
1156         * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1157         * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1158         and zapfdr.afm.
1160 2006-06-15  Werner LEMBERG  <wl@gnu.org>
1162         * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1163         macro (as suggested by Tadziu Hoffmann).
1165 2006-06-12  Werner LEMBERG  <wl@gnu.org>
1167         * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1168         macro (as suggested by Tadziu Hoffmann).
1170 2006-06-05  Werner LEMBERG  <wl@gnu.org>
1172         * tmac/strip.sed: Strip `\#' also.
1174         * doc/groff.texinfo (Operators in Conditionals): Document usage of
1175         \? for string comparison.
1177 2006-06-04  Werner LEMBERG  <wl@gnu.org>
1179         * doc/groff.texinfo: Add more index entries for copy-in mode.
1180         (Changing Fonts) <.ft>: Document that a font definition file must
1181         not be called `DESC'.
1183 2006-05-31  Werner LEMBERG  <wl@gnu.org>
1185         * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1186         here.
1188         * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1189         (PROCESSEDEXAMPLEFILES): Here.
1191 2006-05-30  Werner LEMBERG  <wl@gnu.org>
1193         * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1194         `DESC'.
1195         Reduce number of false positives for `.if F ...' conditionals.
1196         Improve warning messages.
1198 2006-05-29  Werner LEMBERG  <wl@gnu.org>
1200         * tmac/Makefile.sub: Add copyright notice.
1201         (NORMALFILES): Add man.tmac and ms.tmac.
1202         (SPECIALFILES): Remove man.tmac and ms.tmac.
1203         (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1204         (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1205         specially.
1206         (stamp-sed): Don't handle man.tmac and ms.tmac.
1207         Remove obsolete components in sed's regexp.
1209         * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1211         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1213 2006-05-28  Werner LEMBERG  <wl@gnu.org>
1215         * doc/groff.texinfo (History): Correct death circumstances of Joe
1216         Ossanna.
1218 2006-05-27  Werner LEMBERG  <wl@gnu.org>
1220         * tmac/an-old.tmac (an-do-tag): Simplify.
1222 2006-05-26  Werner LEMBERG  <wl@gnu.org>
1224         * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1225         (an-header, an-p-footer): Use named environment.
1227         * src/roff/troff/env.cpp (environment::copy): Copy margin character
1228         node.
1230 2006-05-21  Werner LEMBERG  <wl@gnu.org>
1232         * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1233         omissions.
1235 2006-05-11  Keith Marshall  <keith.d.marshall@ntlworld.com>
1237         * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1239 2006-05-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
1241         * src/roff/groff/groff.man: Update copyright notice.
1242         Improved wording to describe effect of `-Z' option.
1244 2006-05-06  Werner LEMBERG  <wl@gnu.org>
1246         * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1247         Normalize handling of `"' in arguments.
1248         (PIMG): Remove debug message.
1249         Simplify code.
1251 2006-05-05  Werner LEMBERG  <wl@gnu.org>
1253         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1254         swallow character immediately after `\[...]'.
1255         Simplify code.
1257 2006-05-02  Gaius Mulley  <gaius@glam.ac.uk>
1259         * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1261 2006-05-02  Larry Kollar  <kollar@alltel.net>
1263         * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1264         option is missing.
1266 2006-04-30  Michail Vidiassov  <master@iaas.msu.ru>
1268         * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1269         information as a comment in output.
1270         * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1272 2006-04-26  Werner LEMBERG  <wl@gnu.org>
1274         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1275         Handle current_paragraph only if it is non-NULL.
1277         * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1278         <'F'>): Use `get_extended_arg' to behave as documented.  Reported by
1279         Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1282         Surround the (pseudo) file name for the .pso request with `<' and
1283         `>'.
1285         * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1286         second parameter to `really_put_filename' and `put_filename'.
1287         (troff_output_file::really_put_filename): Emit `<' and `>' around
1288         filename if second argument is set.
1289         * src/roff/troff/node.h: Updated.
1291         * src/roff/troff/input.cpp (file_iterator::file_iterator,
1292         file_iterator::set_location): Update to changes in node.cpp.
1294 2006-04-25  Tetsurou Okazaki  <okazaki@FreeBSD.org>
1296         * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1297         preprocessor expression (I18N -> HAVE_ICONV).
1298         (main): Fix handling of option `-h'.
1299         Fix conditional preprocessor expression.
1301 2006-04-04  Werner LEMBERG  <wl@gnu.org>
1303         Implement new number register `.br' which is set to 1 if a macro has
1304         been called as .foo and to 0 if called as 'bar.  This is useful for
1305         -mtrace so that requests can be reliably traced too.
1307         * src/roff/troff/input.cpp (input_iterator): Add virtual function
1308         `get_break_flag'.
1309         (macro_iterator): Add `with_break' member and `get_break_flag'
1310         function.
1311         Update constructors.
1312         (input_stack): Add function `get_break_flag'.
1313         (break_flag_reg): New number register class.
1314         (input_init_requests): Register `.br'.
1316         * src/roff/troff/TODO: Updated.
1318         * tmac/trace.tmac: s/!!sp/!!!sp/.
1319         Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1321         * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1322         NEWS: Document it.
1324 2006-03-29  Werner LEMBERG  <wl@gnu.org>
1326         * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1327         messages where appropriate.
1329 2006-03-28  Werner LEMBERG  <wl@gnu.org>
1331         * configure.ac: Call AC_PROG_EGREP.
1332         * configure: Regenerated.
1334         * Makefile.in (EGREP): New variable.
1335         (MDEFINES): Add $(EGREP).
1337         * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1338         (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1339         Use @EGREP@.
1341         * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1343 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1345         Add two requests `.device' and `.devicem' which are equivalent to
1346         `\X' and `\Y', respectively.
1348         * src/roff/troff/input.cpp (device_request, device_macro_request):
1349         New functions.
1350         (init_input_requests): Register them.
1352         * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1353         man/groff.man, NEWS: Document them.
1355 2006-03-27  Gaius Mulley  <gaius@glam.ac.uk>
1357         * src/roff/troff/input.cpp (encode_char): Emit special characters
1358         for -Thtml as `\[...]'.
1359         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1361         * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1363 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1365         * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1366         files.
1368 2006-03-26  Werner LEMBERG  <wl@gnu.org>
1370         * doc/groff.texinfo (Writing Macros): More documentation on
1371         end-of-macro symbol of `.de'.
1372         (Diversions): Minor addition to `.di' description.
1374         * src/devices/grops/grops.man: Some clarifications regarding
1375         insertion of PostScript snippets.
1377 2006-03-25  Michail Vidiassov  <master@iaas.msu.ru>
1379         Add rules to generate `symbolsl.afm'.
1381         * font/devps/generate/zapfdr.sed,
1382         font/devps/generate/symbolsl.awk: New files.
1384         * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1385         variables.
1386         (SS, clean): Updated.
1387         (freeeuro.afm): Use $(srcdir).
1388         (symbolsl.afm): New rule.
1389         (zapfdr.afm): Use zapfdr.sed.
1391 2006-03-22  Dwight Aplevich  <aplevich@uwaterloo.ca>
1393         * src/preproc/pic/pic.y (expr <INT>): Fix code.
1395 2006-03-22  Jörgen Grahn <jgrahn@algonet.se>
1397         * tmac/sv.tmac: Add missing translations and activate support for
1398         other macro packages.
1400 2006-03-21  Francis GUDIN  <fgudin@nerim.net>
1402         * tmac/doc-syms (Dx): New macro to identify DragonFly.
1403         (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1404         doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1405         strings.
1406         (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1407         doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1408         doc-operating-system-DragonFly-*): New operating system strings.
1410         * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1412 2006-03-21  Werner LEMBERG  <wl@gnu.org>
1414         * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1415         both DWB pic and dpic, make
1417           right;
1418           line then down;
1420         equal to
1422           right;
1423           line right then down;
1425         instead of
1427           right;
1428           line 0 then down;
1430         * doc/pic.ms: Document this.
1432 2006-03-20  Werner LEMBERG  <wl@gnu.org>
1434         * doc/pic.ms: With permission of Eric Raymond, put it under the
1435         GPL.
1437         * NEWS: Updated.
1439 2006-03-19  Werner LEMBERG  <wl@gnu.org>
1441         * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1443         * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1444         attribute in combination with `with'.  Bug reported by Jennifer
1445         Sayers <jenjen@mail.usyd.edu.au>.
1447 2006-03-19  Miklos Somogyi  <msom@netspace.net.au>
1449         * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1450         `.sp'.
1452 2006-03-18  Werner LEMBERG  <wl@gnu.org>
1454         * LICENSE: Renamed to...
1455         * LICENSES: This.  Collect all licensing information in this file.
1456         * tmac/README, src/libs/snprintf/README: Removed.
1458         * src/devices/grops/grops.man: Add section how to install fonts.
1460         * src/utils/xtotroff/xtotroff.c: Add GPL.
1462 2006-03-17  Werner LEMBERG  <wl@gnu.org>
1464         * Makefile.comm (.y.cpp): Fix #line arguments in output.
1466 2006-03-13  Werner LEMBERG  <wl@gnu.org>
1468         * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1470         * tmac/doc-common (Os): Add more Darwin versions.
1471         * tmac/groff_mdoc.man: Document them.
1473         * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1474         works with \N'...' also.
1475         * man/groff_diff.man: Ditto.  Remove use of future tense where
1476         possible.
1478 2006-03-12  Michail Vidiassov  <master@iaas.msu.ru>
1480         * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1481         font/devps/zapfdr.ps: Add `%%EndComments' line.
1483 2006-03-10  Larry Kollar  <kollar@alltel.net>
1485         * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1487 2006-03-10  Werner LEMBERG  <wl@gnu.org>
1489         * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1490         ps_printer::do_mdef): Overlong lines now cause a warning message,
1491         not an error.
1493 2006-03-09  Werner LEMBERG  <wl@gnu.org>
1495         * font/devps/generate/make-zapfdr: New script for generating
1496         `zapfdr.ps'.
1498 2006-03-08  Werner LEMBERG  <wl@gnu.org>
1500         * doc/groff.css (pre): Fix `background-color' value.
1502 2006-03-04  Larry Kollar  <kollar@alltel.net>
1504         * tmac/groff_ms.man: Document PT, HD, and BT.
1506 2006-03-04  Werner LEMBERG  <wl@gnu.org>
1508         * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1509         for single-letter glyph names.
1511 2006-03-02  Werner LEMBERG  <wl@gnu.org>
1513         * tmac/sv.tmac: New file; currently holding only the Swedish strings
1514         for -mm.
1515         * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1516         from CTAN.
1517         * tmac/README: Updated.
1519 2006-02-27  Werner LEMBERG  <wl@gnu.org>
1521         * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1522         * tmac/fr.tmac: Add French translations.
1524         * tmac/composite.tmac: Add entry for `:'.
1526 2006-02-26  Werner LEMBERG  <wl@gnu.org>
1528         * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1529         (CLEANADD): Use it.
1530         (install_html, uninstall_sub): Updated.
1532 2006-02-26  Bruno Haible  <bruno@clisp.org>
1534         Introduce Unicode fonts.
1536         * font/devhtml/DESC.proto: Mark as unicode.
1537         * font/devhtml/R.proto: Remove all charset entries that are already
1538         in glyphuni.cpp.
1539         * font/devutf8/DESC.proto: Mark as unicode.
1540         * font/devutf8/R.proto: Remove all charset entries.
1541         * src/include/font.h (font): New static field `is_unicode'.
1542         Change order of fields.
1543         * src/libs/libgroff/font.cpp: Include unicode.h.
1544         (font::font): Update for changed order of fields.
1545         (font::contains, font::get_width, font::get_height, font::get_depth,
1546         font::get_italic_correction, font::get_left_italic_correction,
1547         font::get_subscript_correction, font::get_character_type,
1548         font::get_code, font::get_special_device_encoding): Handle both the
1549         explicitly enumerated glyphs and use general code for Unicode fonts.
1550         (font::load): Make the charset section optional when the font is
1551         declared unicode.
1552         (font::load_desc): Recognize the `unicode' attribute.
1553         * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1555 2006-02-26  Claudio Fontana  <claudio@gnu.org>
1557         * Makefile.in: Add comment about DESTDIR.
1559         * Makefile.sub: Add DESTDIR to install and uninstall targets
1560         to support staged installations.
1561         * Makefile.comm: Likewise.
1562         * doc/Makefile.sub: Likewise.
1563         * contrib/eqn2graph/Makefile.sub: Likewise.
1564         * contrib/grap2graph/Makefile.sub: Likewise.
1565         * contrib/pic2graph/Makefile.sub: Likewise.
1566         * src/devices/xditview/Makefile.sub: Likewise.
1567         * src/preproc/eqn/Makefile.sub: Likewise.
1568         * src/roff/grog/Makefile.sub: Likewise.
1569         * src/roff/nroff/Makefile.sub: Likewise.
1570         * src/utils/afmtodit/Makefile.sub: Likewise.
1571         * src/utils/indxbib/Makefile.sub: Likewise.
1572         * tmac/Makefile.sub: Likewise.
1574 2006-02-24  Werner LEMBERG  <wl@gnu.org>
1576         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1577         for \-.
1578         Remove commented out entries for \' and \` (there are no such glyph
1579         names).
1581         * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1582         commented out entries for \' and \`.
1585         * */*: s/legal/valid/ where appropriate.
1587 2006-06-23  Werner LEMBERG  <wl@gnu.org>
1589         * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
1590         and \` entries.
1592 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1594         Remove all remaining traces from the `shc' glyph.
1596         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1597         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1598         entry for `shc'.
1600         * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
1601         entry with unnamed glyph.
1603         * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
1605         * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
1606         specially.
1608 2006-02-22  Bruno Haible  <bruno@clisp.org>
1610         Concretize the `glyph' datatype.
1612         * src/include/font.h (glyph): Remove class.
1613         (glyph): Renamed from struct `glyphinfo'.
1614         (glyph_to_index): New inline function.
1615         (glyph_to_name): Make extern, not inline.
1616         (glyph_to_number): Update.
1617         (font): Use `glyph *' instead of `glyph'.
1619         * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
1620         `glyph'.  Make `name' field public.
1621         (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
1622         instead of `glyph'.
1623         (glyph_to_name): Renamed from `glyph::glyph_name'.
1625         * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
1626         Use `glyph *' instead of `glyph'.
1628         * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
1629         `glyph *' instead of `glyph'.
1630         (glyph_to_name): Renamed from `glyph::glyph_name'.
1632         * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
1633         and `glyph_to_index' instead of `glyph::glyph_index'.
1635         * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
1636         * src/libs/libdriver/printer.cpp: Likewise.
1637         * src/devices/grodvi/dvi.cpp: Likewise.
1638         * src/devices/grohtml/post-html.cpp: Likewise.
1639         * src/devices/grolbp/lbp.cpp: Likewise.
1640         * src/devices/grolj4/lj4.cpp: Likewise.
1641         * src/devices/grops/ps.cpp: Likewise.
1642         * src/devices/grotty/tty.cpp: Likewise.
1644 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1646         * font/devdvi/generate/tc.map: Add `sr' glyph.
1647         * font/devdvi/*TC: Regenerated.
1649         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1650         for `sqrt'.
1652 2006-02-21  Werner LEMBERG  <wl@gnu.org>
1654         * man/groff_char.man: Explain `***' marker.
1656 2006-02-17  Bruno Haible  <bruno@clisp.org>
1658         * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
1659         methods and fields from *_index to *_glyph.
1660         (character_indexer::named_char_glyph): Test for `charNNN' name
1661         here...
1662         (name_to_glyph): ... not here.
1664 2006-02-17  Bruno Haible  <bruno@clisp.org>
1666         * src/include/font.h (name_to_glyph): Renamed from
1667         font::name_to_index.
1668         (number_to_glyph): Renamed from font::number_to_index.
1669         (glyph_to_name): Renamed from font::index_to_name.
1670         (glyph_to_number): Renamed from font::index_to_number.
1671         * src/libs/libgroff/nametoindex.cpp: Likewise.
1672         * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
1673         charinfo::get_index.
1675         * src/roff/troff/input.cpp: All callers changed.
1676         * src/roff/troff/node.cpp: Likewise.
1677         * src/libs/libgroff/font.cpp: Likewise.
1678         * src/devices/grops/ps.cpp: Likewise.
1679         * src/devices/grohtml/post-html.cpp: Likewise.
1680         * src/libs/libdriver/printer.cpp: Likewise.
1682 2006-02-17  Werner LEMBERG  <wl@gnu.org>
1684         * src/include/ptable.h, src/include/itable.h
1685         (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
1686         of external symbol `next_ptable_size' (used by both header files).
1688 2006-02-15  Bruno Haible  <bruno@clisp.org>
1690         * src/include/font.h (glyphinfo): New class.
1691         (glyph): Change internal representation.
1692         Change constructor signature.
1693         New method glyph::glyph_number().
1694         (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
1695         glyph::operator==, glyph::operator!=): Update.
1696         (font::index_to_name, font::index_to_number): New functions.
1698         * src/include/itable.h: New file, based on src/include/ptable.h.
1700         * src/libs/libgroff/nametoindex.cpp: Include itable.h.
1701         (class charinfo): New class.
1702         (class character_indexer): Change table result type from `int' to
1703         `class charinfo'.
1704         Add table with integer key.
1705         (character_indexer::character_indexer): Update.
1706         (character_indexer::ascii_char_index): Update.
1707         (character_indexer::numbered_char_index): Use NULL as name, not a
1708         string starting with a space.
1709         (character_indexer::named_char_index): Update.
1710         (font::number_to_index, font::name_to_index): Remove no-op cast.
1711         (glyph::glyph_name): New method.
1712         * src/roff/troff/charinfo.h (class charinfo): Inherit from class
1713         glyphinfo.
1714         (NUMBERED): Remove flag bit.
1715         (charinfo::numbered, charinfo::get_index): Update.
1717         * src/roff/troff/input.cpp (charinfo::charinfo): Update.
1718         (charinfo::set_number, charinfo::get_number): Update.
1719         (glyph::glyph_name): New method.
1721 2006-02-15  Werner LEMBERG  <wl@gnu.org>
1723         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
1724         entries for `>>', `<<', `*f', and `+f'.  Reported by Bruno.
1726 2006-02-13  Werner LEMBERG  <wl@gnu.org>
1728         * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
1729         dvips.
1731 2006-02-11  Werner LEMBERG  <wl@gnu.org>
1733         * src/include/font.h: s/glyph_t/glyph/.
1734         Update all callers.
1736         * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
1737         s/output_character_t/output_character/.
1739 2006-02-11  Bruno Haible  <bruno@clisp.org>
1741         New accessor method glyph_t::glyph_name().
1743         * src/include/ptable.h (declare_ptable): Add a return value to the
1744         `define' method, and declare a `lookupassoc' method.
1745         (implement_ptable): Return the stored key in `define'.  Implement
1746         lookupassoc.
1747         * src/include/font.h (glyph_t): Add `name' field.  Add an argument
1748         to the constructor.
1749         (glyph_t::glyph_name): New method.
1751         * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
1752         return type of methods and field member type to glyph_t.
1753         (character_indexer::character_indexer): Update.
1754         (character_indexer::ascii_char_index): Allocate a name for the
1755         glyph.
1756         Return a glyph_t with name.
1757         (character_indexer::numbered_char_index): Return a glyph_t without a
1758         name.
1759         (character_indexer::named_char_index): Return a glyph_t with a name.
1760         (font::number_to_index, font::name_to_index): Update.
1762         * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
1763         the glyph's name.
1765 2006-02-11  Bruno Haible  <bruno@clisp.org>
1767         * src/devices/grotty/tty.cpp (output_character_t): New type.
1768         (tty_printer::make_bold, tty_printer::add_char,
1769         tty_printer::put_char): Change argument type to output_character_t.
1770         (crossings): Change element type to output_character_t.
1772 2006-02-11  Bruno Haible  <bruno@clisp.org>
1774         Make the glyph data type abstract.
1776         * src/include/font.h (glyph_t): New class.
1777         (name_to_index, number_to_index): Change return type to glyph_t.
1778         (font::contains, font::get_width, font::get_height, font::get_depth,
1779         font::get_character_type, font::get_kern, font::get_skew,
1780         font::get_italic_correction, font::get_left_italic_correction,
1781         font::get_subscript_correction, font::get_code,
1782         font::get_special_device_encoding, font::add_entry,
1783         font::copy_entry, font::add_kern, font::hash_kern): Change argument
1784         type to glyph_t.
1786         * src/libs/libgroff/font.cpp (font_kern_list): Change members
1787         type and constructor argument types to glyph_t.
1788         (font::contains, font::get_width, font::get_height, font::get_depth,
1789         font::get_character_type, font::get_kern, font::get_skew,
1790         font::get_italic_correction, font::get_left_italic_correction,
1791         font::get_subscript_correction, font::get_code,
1792         font::get_special_device_encoding, font::add_entry,
1793         font::copy_entry, font::add_kern, font::hash_kern): Change argument
1794         type to glyph_t.
1795         (font::load): Use glyph_t variables.
1797         * src/libs/libgroff/nametoindex.cpp (name_to_index,
1798         number_to_index): Change return type to glyph_t.
1800         * src/roff/troff/charinfo.h (charinfo::index): Change type to
1801         glyph_t.
1802         (charinfo::get_index): Change return type to glyph_t.
1804         * src/roff/troff/env.cpp: Include font.h.
1806         * src/roff/troff/node.cpp: Include font.h before charinfo.h.
1808         * src/roff/troff/input.cpp: Include font.h before charinfo.h.
1809         (charinfo::charinfo): Update.
1810         (name_to_index, number_to_index): Change return type to glyph_t.
1812         * src/include/printer.h (printer::set_char_and_width): Change return
1813         type to glyph_t.
1815         * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
1816         Change return type to glyph_t.
1818         * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
1819         argument type to glyph_t.
1821         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
1822         (html_printer::space_glyph): Renamed from space_char_index.
1823         (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
1824         html_printer::overstrike, html_printer::set_char): Change argument
1825         type to glyph_t.
1826         (html_printer::set_char_and_width): Change return type to glyph_t.
1828         * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
1829         argument type to glyph_t.
1831         * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
1832         argument type to glyph_t.
1834         * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
1835         space_char_index.
1836         (ps_printer::set_subencoding, ps_printer::set_char): Change argument
1837         type to glyph_t.
1839         * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
1840         argument type to glyph_t.
1842 2006-02-11  Bruno Haible  <bruno@clisp.org>
1844         * src/roff/troff/input.cpp (font::name_to_index): Never return a
1845         negative value.
1847         * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
1848         font::name_to_index.
1850 2006-02-10  Werner LEMBERG  <wl@gnu.org>
1852         * doc/groff.texinfo (Assigning Formats): Number registers are always
1853         interpolated.
1854         Apply some rephrasing, contributed by Michael Burt.
1856 2006-02-07  Werner LEMBERG  <wl@gnu.org>
1858         * tmac/fr.tmac <ms>: Set `HY' register.
1860 2006-02-07  Werner LEMBERG  <wl@gnu.org>
1862         Add framework for simple adaptation of the main macro packages (mm,
1863         me, ms, mom) to different locales.  In particular, add support for
1864         French.  For activation, simply use `-mfr' as the last macro
1865         package.  This feature has been contributed by Fabrice Ménard
1866         <menard.fabrice@wanadoo.fr>.
1868         * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
1869         New files.
1870         * tmac/README: Mention hyphen.fr.
1871         * man/groff_tmac.man: Mention fr.tmac.
1872         * NEWS: Updated.
1874 2006-01-27  Werner LEMBERG  <wl@gnu.org>
1876         * man/groff_font.man: Updated documentation of `entity_name' field.
1877         Avoid future tense.
1879 2006-01-27  Bruno Haible  <bruno@clisp.org>
1881         * font/devhtml/R.proto: Remove the entity names from the font's
1882         special_encoding_encoding column.
1883         * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
1884         handling the entity names here.
1885         (get_html_translation): Use it.  Change return type to `const
1886         char *'.
1887         (page::add_and_encode): Update, removing a useless cast.
1889 2006-01-26  Werner LEMBERG  <wl@gnu.org>
1891         This change is based on a patch by Bruno Haible <bruno@clisp.org>.
1893         * src/include/device.h: Add comments.
1894         * src/include/font.h: Add comments.
1895         * src/include/unicode.h: Likewise.
1896         * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
1898 2006-01-26  Keith Marshall  <keith.d.marshall@ntlworld.com>
1900         Suppress `.st' request emission by `grn'.
1902         * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
1903         (conv): Use it.
1905 2006-01-22  Werner LEMBERG  <wl@gnu.org>
1907         * install-sh: New version; taken from texinfo CVS.
1909 2006-01-21  Werner LEMBERG  <wl@gnu.org>
1911         * src/preproc/preconv/preconv.cpp (main): Set program_name.  Bug
1912         reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
1914 2006-01-19  Bruno Haible  <bruno@clisp.org>
1916         Let `make -k install' install more files.
1918         * Makefile.in (MAKE_K_FLAG): New variable.  Use it everywhere where
1919         $(MAKE) and $(MDEFINES) are used.
1920         (CPROGDIRS): Remove $(XPROGDIRS).  Treat $(XPROGDIRS) like
1921         $(CPROGDIRS) everywhere.
1922         ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
1923         on $(XPROGDIRS).
1924         ($(OTHERDIRS)): Likewise.
1927         * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
1928         failure test for font::name_to_index -- it can never fail.
1930 2006-01-19  Werner LEMBERG  <wl@gnu.org>
1932         * src/devices/grops/grops.man: Fix section on creating EPS files.
1933         Don't use future time in manual.
1934         Other minor fixes.
1936 2006-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1938         * tmac/www.tmac: New macro LINKSTYLE which allows users to set
1939         various typographical URL attributes for non-HTML devices.
1941         * tmac/groff_www.man: Document LINKSTYLE.
1943 2006-01-11  Werner LEMBERG  <wl@gnu.org>
1945         * configure.ac: Test for getc_unlocked (needed for localcharset).
1946         * configure, src/include/config.hin: Regenerated.
1948         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
1949         ENABLE_RELOCATABLE.
1951         * src/libs/libgroff/relocatable.h: New dummy header file for
1952         localcharset.c.
1954         * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
1955         gnulib version.
1957 2006-01-10  Bruno Haible  <bruno@clisp.org>
1959         Work around unportability of nl_langinfo(CODESET).
1961         * m4/glibc21.m4: New file, from gnulib.
1962         * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
1963         * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
1964         * Makefile.in (HOST, GLIBC21): New variables.
1965         (MDEFINES): Pass them to subdirectories.
1966         * src/include/relocate.h (relocatep): Define with C linkage.
1967         * src/include/localcharset.h: New file, from gnulib.
1968         * src/libs/libgroff/localcharset.c: New file, from gnulib with a
1969         modification for relocate().
1970         * src/libs/libgroff/config.charset: New file, from gnulib.
1971         * src/libs/libgroff/ref-add.sin: New file, from gnulib.
1972         * src/libs/libgroff/ref-del.sin: New file, from gnulib.
1973         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
1974         (OBJS): Add localcharset.o.
1975         (CSRCS): Add localcharset.c.
1976         (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
1977         (charset.alias): New rule.
1978         (PACKAGE): New variable.
1979         (ref-add.sed, ref-del.sed): New rules.
1980         (MKINSTALLDIRS): New variable.
1981         (install_data): Depend on install_charset_data.
1982         (install_charset_data): New rule for creating or updating
1983         charset.alias.
1984         (uninstall_sub): Depend on uninstall_charset_data.
1985         (uninstall_charset_data): New rule for uninstalling or updating
1986         charset.alias.
1987         * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
1988         of <langinfo.h>.
1989         (main): Initialize default_encoding from locale_charset() instead of
1990         nl_langinfo(CODESET).
1992         * aclocal.m4, configure, src/include/config.hin: Regenerated.
1994 2006-01-10  Werner LEMBERG  <wl@gnu.org>
1996         * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
1997         ICONV_CONST in call to iconv.  Reported by Robert Goulding.
1999 2006-01-07  Werner LEMBERG  <wl@gnu.org>
2001         * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2002         fontforge version.
2003         Bump font version to 001.001.
2005         * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2006         Call fontforge, not pfaedit.
2008         * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2010 2006-01-05  Ruslan Ermilov  <ru@FreeBSD.org>
2012         * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2013         * tmac/groff_mdoc.man: Updated.
2015 2006-01-05  Werner LEMBERG  <wl@gnu.org>
2017         * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2018         (raw_flag): New global variable.
2019         (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2020         Don't pass BOM to `conversion_utf8'.
2021         (usage): Updated.
2022         (main): Handle `-r' command line switch to set `raw_flag'.
2023         (get_BOM): Fix encodings in `BOM_table'.
2025         * src/preproc/preconv/preconv.man: New file.  Not complete yet.
2026         * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2028 2006-01-04  Werner LEMBERG  <wl@gnu.org>
2030         * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2031         Bruno, comment out most encodings to support only a small set of
2032         coding tags, thus reducing potential problems with legacy encodings
2033         and character sets in the future.
2034         Add many XEmacs coding tags (now commented out).
2035         Add `cp1047'.
2036         (check_encoding_tag): Renamed to...
2037         (check_coding_tag): This.
2038         (get_BOM): Return encoding as specified by BOM.
2039         Test for UTF32-LE too.
2040         (do_file): Don't check for coding tag if a BOM has been found.
2042 2006-01-03  Bruno Haible  <bruno@clisp.org>
2044         * m4/groff.m4: Renamed from aclocal.m4.
2045         * m4/codeset.m4: New file, from gnulib.
2046         * m4/iconv.m4: New file, from gnulib.
2047         * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2048         gnulib.
2049         * config.rpath: New file, from gnulib.
2050         * config.guess, config.sub: New files, from gnulib.
2051         * Makefile.sub (M4MACROS): New variable.
2052         (configure): Fix typo.
2053         (aclocal.m4): New rule.
2054         (stamp-h.in): Depend on aclocal.m4.
2055         * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2056         * Makefile.in (LIBICONV): New variable.
2057         (MDEFINES): Pass it to recursive makes.
2058         * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2059         HAVE_ICONV instead of I18N macro.
2060         * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2062         * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2064 2006-01-03  Werner LEMBERG  <wl@gnu.org>
2066         * doc/Makefile.in (webpage.html): Simplify.
2067         * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2068         * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2070 2006-01-01  Werner LEMBERG  <wl@gnu.org>
2072         * tmac/doc-common (Os): Add some Darwin versions.
2073         * tmac/groff_mdoc.man: Document them.
2075 2006-01-01  Bruno Haible  <bruno@clisp.org>
2077         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2078         corrections:
2079           . Don't map ascii to latin-1.
2080           . Don't use IBMxxx encodings but cpxxx for portability.
2081           . Map cp932, cp936, cp949, cp950 to itself.
2082         (emacs2mime): Protect calls to strcasecmp.
2083         (conversion_iconv): Add missing call to iconv_close.
2084         (do_file): Emit error message in case of unsupported encoding.
2086 2005-12-31  Werner LEMBERG  <wl@gnu.org>
2088         Integrate preconv into the groff binary.  Changes based on a patch
2089         from Michail Vidiassov.
2091         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2093         * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2094         (SOELIM_INDEX): Updated.
2095         (help, synopsis): Updated.
2096         (main): Add command line options `-k' and `-K enc' to select
2097         encoding.
2098         Add support for GROFF_ENCODING environment variable.
2100         * src/roff/groff/groff.man: Updated and revised.
2103         Start with autoconf support for preconv.
2105         * configure.ac: Call AC_C_BIGENDIAN.
2106         * configure, src/include/config.hin: Regenerated.
2108 2005-12-30  Werner LEMBERG  <wl@gnu.org>
2110         New preprocessor `preconv' to convert input encodings to something
2111         groff can understand.  Not yet integrated within groff.  Proper
2112         autoconf stuff is missing too.
2114         Tomohiro Kubota has written a first draft of this program, and some
2115         ideas have been reused (while almost no code has been taken
2116         actually).
2118         * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2119         New files.
2121         * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2122         (GROFF_BIN_PATH): Add preconv.
2124 2005-12-12  Werner LEMBERG  <wl@gnu.org>
2126         * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2127         In particular, don't use `\+' since it is a GNU sed extension.
2129         * configure: Regenerated.
2131 2005-12-09  Werner LEMBERG  <wl@gnu.org>
2133         * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. 
2135         * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2136         4.1.0.
2139         * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2140         afmtodit.tables.
2142         * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2143         4.1.0 data.
2145         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2146         %AGL_to_unicode): Removed.  Replace it with a tag.
2148         * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2149         to replace tag with actual file contents.
2151 2005-12-08  Werner LEMBERG  <wl@gnu.org>
2153         The change 2005-06-20 can indeed cause problems, so we follow the
2154         advice by using marks.
2156         * font/devps/prologue.ps (PBEGIN): Use `mark'.
2157         (PEND): Use `cleartomark'.
2159 2005-12-07  Michail Vidiassov  <master@iaas.msu.ru>
2161         * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2162         glyphs which have kern values but aren't handled (glyph variants,
2163         for example).
2165 2005-12-02  Werner LEMBERG  <wl@gnu.org>
2167         * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2168         subfont index.  Reported by Michail Vidiassov <master@iaas.msu.ru>.
2170 2005-11-28  Gaius Mulley  <gaius@glam.ac.uk>
2172         * doc/Makefile.in: Separate rule for webpage.html so that extra
2173         command line options can be passed to grohtml.
2174         * doc/groff.css: Change all margins to 0%.
2175         * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2176         navigation is exploited.  Also update webpage to contain new
2177         sections on licenses, mailing lists, cvs/ftp access, groff
2178         dependencies, and bug reports.
2179         * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2180         * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2181         
2182 2005-11-25  Gaius Mulley  <gaius@glam.ac.uk>
2184         * src/devices/grohtml/post-html.cpp
2185         (html_printer::do_file_components): Add fputs calls to emit the
2186         head contents and shut down the head tag whenever a new file
2187         component is generated.
2189 2005-11-22  Gaius Mulley  <gaius@glam.ac.uk>
2191         * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2192         call to flush_text to flush any outstanding html tags on the
2193         paragraph stack.
2195 2005-11-18  Werner LEMBERG  <wl@gnu.org>
2197         * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2198         Announce makeinfo version.
2199         * configure: Regenerated.
2201 2005-11-18  Mike Frysinger <vapier@gentoo.org>
2203         * Makefile.in: Declare proper dependencies between make targets.
2205         * doc/Makefile.in: Rename groff info page to `groff.info'.
2206         * doc/Makefile.sub: Likewise.
2207         * doc/groff.texinfo: Likewise.
2209 2005-11-17  Peter O'Gorman  <mlists@thewrittenword.com>
2211         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2212         definition of __GETOPT_PREFIX to the beginning of file to ensure
2213         that it is defined even on platforms where getopt.h is already
2214         included by other header files.
2216 2005-11-10  Gaius Mulley  <gaius@glam.ac.uk>
2218         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2219         Reset font to NULL to ensure that a font block is recreated during
2220         the next paragraph.
2222 2005-11-04  Werner LEMBERG  <wl@gnu.org>
2224         * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2225         * configure: Regenerated.
2227 2005-10-27  Werner LEMBERG  <wl@gnu.org>
2229         * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2230         makeinfo 4.8 or newer is available.
2231         * configure.ac: Call GROFF_MAKEINFO.
2232         * configure: Regenerated.
2234         * Makefile.in (MAKEINFO): Use autoconf variable.
2235         (MDEFINES): Add MAKEINFO.
2237         * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2238         * doc/Makefile.sub (MAKEINFO): Remove.
2240 2005-10-26  Werner LEMBERG  <wl@gnu.org>
2242         * REVISION: Set to 3.
2244 2005-10-17  Werner LEMBERG  <wl@gnu.org>
2246         Mention $MANPAGER variable used with some `man' systems.
2248         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2250 2005-09-13  Werner LEMBERG  <wl@gnu.org>
2252         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2254 2005-09-04  Werner LEMBERG  <wl@gnu.org>
2256 Version 1.19.2 released
2257 =======================
2259         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2261         * doc/webpage.ms: Updated.
2263         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2265 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
2267         * tmac/groff_ms.man: Document `PO' better.
2269 2005-09-03  Werner LEMBERG  <wl@gnu.org>
2271         * NEWS: Document grotty changes.
2273 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2275         Backward compatibility support for `man' program.
2277         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2278         assignment, prior `.ll' request and then package defaults, in this
2279         specified order of decreasing priority.
2281         * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2282         altered `LL' register initialization priorities.
2284 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
2286         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2287         section should look like.
2289 2005-08-29  Werner LEMBERG  <wl@gnu.org>
2291         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2292         be abbreviated.
2294 2005-08-27  Bernd Warken
2296         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2297         fixes.
2299 2005-08-11  Bernd Warken
2301         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2303 2005-08-09  Bernd Warken
2305         * tmac/www.tmac (URL, MTO): Use bold series if color support is
2306         deactivated.
2308 2005-08-02  Bernd Warken
2310         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2311         as argument to $(INSTALL_INFO).  The latter isn't portable.
2312         Remove $(HTMLEXAMPLEFILES) too.
2314         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2315         $(datadir)/doc too.
2316         Suppress warning messages and return always true.
2318         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2320 2005-07-02  Bernd Warken
2322         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2323         * man/groff_out.man: More markup and minor improvements.
2324         * src/roff/groff/groff.man: Minor improvements.
2326 2005-06-28  Werner LEMBERG  <wl@gnu.org>
2328         * ChangeLog: Split off older entries into...
2329         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2330         files.
2332 2005-06-26  Bernd Warken
2334         * src/devices/xditview/gxditview.man: More minor fixes.
2336 2005-06-24  Werner LEMBERG  <wl@gnu.org>
2338         * src/preproc/pic/troff.cpp (troff_output::set_fill,
2339         troff_output::set_color, troff_output::reset_color): Use .bcolor and
2340         .fcolor instead of \m and \M, respectively.
2342 2005-06-23  Bernd Warken
2344         * src/devices/xditview/gxditview.man: More minor fixes.
2345         * README: Formatting issues.
2346         Mention some problems with Debian.
2348 2005-06-23  Bernd Warken
2350         * src/devices/xditview/gxditview.man: Revised and improved.
2352 2005-06-22  Werner LEMBERG  <wl@gnu.org>
2354         Another round in fixing getopt problems.  Hopefully the last one!
2355         This time we use the getopt stuff from gnulib and define a prefix
2356         unconditionally so that there are no collisions with any other
2357         getopt implementations.  This is a slight waste of space in case
2358         we already use a GNU getopt implementation, but on
2359         the other hand it really simplifies life.
2361         * src/include/getopt.h: Use gnulib version.
2363         * src/include/getopt_int.h: Use gnulib version.
2365         * src/include/groff-getopt.h: Removed.  Obsolete now.
2367         * src/include/lib.h: Regarding getopt, don't handle any platform
2368         specially; just include getopt.h.
2369         (__GETOPT_PREFIX): Define (before getopt.h).
2371         * src/include/Makefile.sub (HDRS): Updated.
2373         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2374         gnulib version.
2376         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2377         __GETOPT_PREFIX.
2379         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2380         (__GETOPT_PREFIX): Define (before getopt.h).
2382 2005-06-21  Werner LEMBERG  <wl@gnu.org>
2384         * src/include/lib.h: Provide a fix for Mac OS X to not include
2385         groff-getopt.h.
2387 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
2389         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
2390         `bind' to define a procedure which contains `showpage' means that an
2391         invocation of `showpage' may execute wrongly (the exact effect
2392         depending on the interpreter).  Not usually a problem except under
2393         transformations, such as combining pages.
2394         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
2395         of /PEND means that stack underflow will occur if the stack is
2396         deliberately non-empty before document inclusion.  If included
2397         files are found to be generally badly behaved, we could replace the
2398         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2399         never found this necessary).
2401 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
2403         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2404         earlier to get correct error message.
2406 2005-06-16  Bernd Warken
2407         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2409 2005-06-15  Werner LEMBERG  <wl@gnu.org>
2411         Another try to update getopt files.  This time we add a dummy
2412         gettext.h file to satisfy the dependency.
2414         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2415         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2417         * src/include/getopt_int.h: New file (from GNU libc CVS).
2419         * src/include/gettext.h: Dummy file which just defines a gettext()
2420         macro.
2422         * src/include/groff-getopt.h: Updated.
2424         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2427         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2428         `const' keywords in return value.
2430         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2431         Remove redundant variable `old'.
2432         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2434         * src/preproc/tbl/main.cpp (process_table): Remove redundant
2435         variable `c'.
2438         Fix more friend name injection problems since modern C++ compilers
2439         fail otherwise.  We simply provide (global) declarations for all
2440         functions declared as friends.  This is not really necessary but
2441         doesn't harm.
2443         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2444         peek_char, and get_location.
2446         * src/preproc/refer/ref.h: Provide declarations for
2447         compare_reference, same_reference, same_year, same_date,
2448         same_author_last_name, and same_author_name.
2450         * src/roff/troff/div.h: Provide declarations for do_divert and
2451         page_offset.
2453         * src/roff/troff/env.h: Provide declarations for title_length,
2454         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2455         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2456         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2457         margin_character, no_number, number_lines, leader_character,
2458         tab_character, hyphenate_request, no_hyphenate,
2459         hyphen_line_max_request, hyphenation_space_request,
2460         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2461         line_tabs_request, widow_control_request, and do_divert.
2463         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2465         * src/roff/troff/node.cpp: Provide declarations for class
2466         tfont_spec.
2467         Provide declaration for make_tfont.
2469 2005-05-29  Werner LEMBERG  <wl@gnu.org>
2471         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
2473 2005-05-28  Werner LEMBERG  <wl@gnu.org>
2475         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2476         redundant semicolons.
2478         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2479         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2480         Define `MLIB'.  Some compilers need this for linking with libgroff.
2482 2005-05-27  Werner LEMBERG  <wl@gnu.org>
2484         * MANIFEST, README, doc/webpage.ms: Updated.
2486 2005-05-26  Werner LEMBERG  <wl@gnu.org>
2488         * All affected files: Update postal address of FSF.
2490 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
2491             Bernd Warken
2493         * README: More fixes.
2495         * README.CVS: Removed.  Its contents is now part of the README file.
2497 2005-05-21  Werner LEMBERG  <wl@gnu.org>
2499         * README: Updated.  Based on a patch from Bernd Warken.
2501 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2503         Miscellaneous script portability enhancements.
2505         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2506         generated conftest.sh script, conforming to portability
2507         recommendation in autoconf docs.
2508         * configure: Likewise, for code generated by GROFF_CSH_HACK.
2509         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2510         to portability recommendation in autoconf docs.
2511         * contrib/grap2graph/grap2graph.sh: Likewise.
2512         * contrib/pic2graph/pic2graph.sh: Likewise.
2513         * font/devps/generate/afmname: Likewise.
2514         * src/devices/xditview/ad2c: Likewise.
2515         * src/preproc/eqn/neqn.sh: Likewise.
2516         * src/roff/grog/grog.pl: Likewise.
2517         * src/roff/grog/grog.sh: Likewise.
2518         * src/roff/nroff/nroff.sh: Likewise.
2519         * PROBLEMS: Likewise, in embedded script examples.
2521 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2523         Improve portability of `pdfroff' shell script.
2525         * arch/misc/shdeps.sh: Add space in shebang, conforming to
2526         portability guidelines in `autoconf' docs.
2527         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2528         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
2529         `searchpath' function.
2531 2005-05-14  Werner LEMBERG  <wl@gnu.org>
2533         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2534         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2535         needed for newer ImageMagick versions.
2537 2005-05-07  Werner LEMBERG  <wl@gnu.org>
2539         * src/preproc/refer/refer.man: Many small typographic fixes.
2541 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
2543         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2544         Use `char *' cast for a_delete.
2546 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2548         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2549         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2551 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
2553         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2554         `a_delete' for `const char *'.
2556 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2558         * src/devices/grohtml/post-html.cpp,
2559         src/devices/grohtml/html-table.cpp,
2560         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
2561         Replace malloc/free with new/delete/a_delete.
2563         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
2564         are prohibited with ANSI C++.
2565         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
2566         function has a variable number of arguments).
2568         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
2569         Simplify function and update all callers.
2571 2005-05-02  Werner LEMBERG  <wl@gnu.org>
2573         Undo getopt changes from 2005-04-30.  We don't want a dependency
2574         on gettext.
2576         * src/include/getopt_int.h: Removed.
2578         * src/include/getopt.h, src/include/groff-getopt.h,
2579         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
2580         src/libs/libgroff/getopt1.c: Revert to previous version.
2583         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
2585         * src/include/posix.h (F_OK): Define conditionally.
2587         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
2588         different variable name in second `for' loop to avoid MSVC compiler
2589         problem.
2591 2005-04-30  Werner LEMBERG  <wl@gnu.org>
2593         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
2595         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
2596         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
2597         * configure, src/include/config.hin: Regenerated.
2599         * PROBLEMS: Updated.
2602         Update getopt files.
2604         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2605         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2607         * src/include/getopt_int.h: New file (from GNU libc CVS).
2609         * src/include/groff-getopt.h: Updated.
2611         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
2614         * font/devutf8/NOTES: Updated.
2616 2005-04-28  Werner LEMBERG  <wl@gnu.org>
2618         Bug fix for Win32 relocatable code.  Based on a patch from Keith
2619         Marshall.
2621         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
2622         also.
2624         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
2625         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
2627 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2629         Correct `gnu.eps' handling for build from distribution tarball, with
2630         separate source and build directories.
2632         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
2633         grnexmpl.g, groff.css and gnu.eps from source to build directory;
2634         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
2635         (prepare_examples): Make it depend on examples.stamp.
2636         (CLEANADD): Add examples.stamp.
2638 2005-04-27  Werner LEMBERG  <wl@gnu.org>
2640         Implement the rule
2642           position: `(' position `)'
2644         in pic.
2646         * src/preproc/pic/pic.y (position, position_not_place): Handle
2647         additional parentheses.
2649         * doc/pic.ms: Updated.
2651 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
2653         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
2655 2005-04-18  Werner LEMBERG  <wl@gnu.org>
2657         * src/roff/groff/pipeline.c: Don't include ctype.h.
2659 2005-04-13  Werner LEMBERG  <wl@gnu.org>
2661         * src/roff/nroff/nroff.man: Document option `-M'.
2663 2005-04-13  Bruce Lilly  <blilly@erols.com>
2665         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
2667 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
2668             Werner LEMBERG  <wl@gnu.org>
2670         Add binary relocation support for Windows platforms.
2672         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
2674         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
2676         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
2677         (search_path::search_path, search_path::open_file_cautious): Use
2678         `relocate'.
2680         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2681         src/include/Makefile.sub (HDRS): Updated.
2683 2005-04-01  Werner LEMBERG  <wl@gnu.org>
2685         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
2686         strsave/a_delete.
2688         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
2690         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
2691         lib.h already does it.
2693         * src/libs/libgroff/maxpathname.cpp: New file, defining
2694         path_name_max.
2696         * src/include/lib.h: Add prototype for path_name_max.
2698         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
2700         * src/include/nonposix.h (PATH_EXT): New macro.
2702 2005-03-28  Werner LEMBERG  <wl@gnu.org>
2704         Add support for double- and zero-width characters in grotty.
2706         * src/devices/grotty/tty.cpp (glyph): Add width.
2707         (tty_printer::make_underline, tty_printer::make_bold,
2708         tty_printer::add_character): Add parameter to pass character width.
2709         Update all callers.
2710         (tty_printer::end_page): Increase hpos by actual character width.
2712         * font/devutf8/R.proto: Specify zero width for non-spacing
2713         characters.
2715         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
2717         * Makefile.comm (extraclean): Remove more junk files.
2719 2005-03-25  Werner LEMBERG  <wl@gnu.org>
2721         * configure.ac: Undo change from 2005-03-24.
2722         * configure: Regenerated.
2724 2005-03-24  Werner LEMBERG  <wl@gnu.org>
2726         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
2727         (dist): Search Makefile while descending into $(EXTRADIRS).
2729         * doc/Makefile.in (.PHONY): Add.
2730         (clean): Don't remove *.png and *.eps.
2731         Don't handle *.gif.
2732         (realclean): Remove *.png and *.eps.
2733         (extraclean): Depend on distclean.
2735         * configure.ac: Add copyright.
2736         Handle contrib/pdfmark/Makefile.
2738         * configure: Regenerated.
2740 2005-03-18  Larry Kollar  <kollar@alltel.net>
2742         Add numbered and definition lists to www.tmac.
2744         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
2745         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
2746         auxiliary string registers.
2747         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
2748         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
2749         (www-level): Removed.
2750         (www-level1, www-level2, www-level3): Initialize to empty.
2751         (www-level0, www-level4, www-level5, www-level6, www-level7,
2752         www-level8, www-level9): New string registers.
2753         (www-push-li, www-pop-li): New macros.
2754         (www-push-level, www-pop-level): Renamed to...
2755         (www-push-ul-level, www-pop-ul-level): This.
2756         Updated.
2757         (www-push-ol-level, www-pop-ol-level): New macros.
2758         (ULS, ULE): Updated.
2759         (OLS, OLE, DLS, DLE): New user macros.
2760         (LI): Removed.  It is aliased to one of...
2761         (www-li-ul, www-li-ol, www-li-dl): New macros.
2763         * tmac/groff_www.man: Document new macros.
2765         * NEWS: Updated.
2767 2005-03-18  Werner LEMBERG  <wl@gnu.org>
2769         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
2770         doc-operating-system-NetBSD-2.0.2): New strings.
2772         * tmac/groff_mdoc.man: Updated.
2774 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2776         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
2778 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2780         * src/libs/libgroff/hypot.c: Renamed to...
2781         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
2783         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
2785         * src/include/lib.h: Updated.
2787 2005-03-16  Werner LEMBERG  <wl@gnu.org>
2789         Add workaround for broken hypot() on Interix.
2791         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
2793         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
2794         (CSRCS): Add `hypot.c'.
2796         * src/include/lib.h: Declare `groff_hypot'.
2798         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
2799         Use `groff_hypot'.
2801         * src/preproc/pic/pic.h: Don't declare `hypot'.
2803         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
2805 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
2807         * src/devices/grohtml/post-html.cpp
2808         (html_printer::lookahead_for_tables): End .ce properly to avoid a
2809         segfault.
2811 2005-03-15  Werner LEMBERG  <wl@gnu.org>
2813         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
2815         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
2817         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
2819 2005-03-14  Werner LEMBERG  <wl@gnu.org>
2821         Add Cyrillic support to devutf8 and devhtml.
2823         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
2825         * tmac/unicode.tmac: New file.
2827         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
2829         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
2831         * NEWS: Updated.
2833 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
2835         * src/libs/libdriver/printer.cpp (check_for_output_error): New
2836         function.  It has been introduced to catch peculiar error contexts
2837         on MS-Windows platforms.
2839 2005-02-28  Werner LEMBERG  <wl@gnu.org>
2841         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
2842         null pointer.
2844         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
2846         * configure: Regenerated.
2848         * NEWS: Updated.
2850 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2852         Integrate `pdfmark' into normal groff build system;
2853         install macro `pdfmark' packages, build and install `pdfroff',
2854         and PDF format documentation.
2856         * Makefile.comm: Add PDFDOCDIR.
2858         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
2859         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
2860         (unstall_dirs): Add pdfdocdir.
2862         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
2863         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
2864         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
2865         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
2866         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
2867         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
2868         set ALT_AWK_PROGS.
2869         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
2870         use of GROFF_AWK_PREFS.
2871         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
2872         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
2874         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
2875         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
2876         also by modified GROFF_HTML_PROGRAMS).
2878 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
2880         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
2881         paragraph spacing.
2882         (html_text::done_para): Unset `start_space'.
2883         (html_text::remove_para_align): Call `retrieve_para_space' for the
2884         spacing.
2886         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
2887         `seen_space'.
2888         (html_printer::do_check_center): Emit vertical space if necessary.
2890         * src/roff/troff/env.cpp (environment_switch): Preserve
2891         `seen_space', `seen_eol', and `suppress_next_eol' while switching
2892         environments.
2894         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
2895         `is_special'.
2897 2005-02-20  Werner LEMBERG  <wl@gnu.org>
2899         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
2900         eqn.
2902 2005-02-17  Werner LEMBERG  <wl@gnu.org>
2904         * doc/pic.ms, man/groff.man: Fix typos.
2906         * doc/groff.texinfo: Fix typos.
2907         (\LEmacro): Get proper mathematical spacing.
2909 2005-02-16  Werner LEMBERG  <wl@gnu.org>
2911         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
2912         * configure: Regenerated with autoconf 2.59b.
2914 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
2916         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
2917         html_printer::start_font): Fix handling of preformatted text.
2919 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
2921         These patches modify the indentation implementation to use `<p
2922         style=margin-left: n%>'.  Many thanks to Peter and Larry for
2923         suggesting this solution.  Grohtml only uses tables for `.IP' and
2924         related tags when the first operand has a short width.
2926         Similarly, they modify all vertical space code.  By default, grohtml
2927         sets up a style sheet which uses no vertical space between `table',
2928         `pre', and `p' tags.  It forces spaces when it needs them using
2929         `style="margin-top: 1em"'.
2931         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
2932         (html_table::emit_table_header, html_table::emit_new_row):
2933         Rewritten.
2934         (html_table::set_space): New function.
2935         (html_indent::html_indent): Don't set `is_used'.
2936         (html_indent::begin): Rewritten.
2937         (html_indent::end): Remove code in function.
2939         * src/devices/grohtml/html-table.h: Updated.
2940         (html_table): Make `out' public.
2942         * src/devices/grohtml/html-text.cpp (html_text::html_text):
2943         Initialize `start_space' with FALSE.
2944         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
2945         (html_text::issue_tag): Add argument to handle space style.
2946         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
2947         (html_text::flush_text): Don't set `start_space'.
2948         (html_text::push_para): Don't set `p->really_issued'.
2949         (html_text::do_emittext): Updated.
2950         (html_text::do_para): Add paremeter to handle space.
2951         Update all callers.
2952         (html_text::retrieve_para_space): New function.
2954         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
2955         (tag_definition): Remove `really_issued'.
2956         (html_text): Updated.
2958         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
2959         `current_column' and `row_space'.
2960         Update constructor.
2961         (html_printer::emit_raw, html_printer::write_header,
2962         html_printer::do_indent, html_printer::do_check_center,
2963         html_printer::do_tab_ts): Handle vertical space.
2964         (html_printer:do_tab_te, html_printer::do_end_para): Call
2965         `remove_para_space'.
2966         (html_printer::do_col): Rewritten.
2967         (html_printer::flush_globs): Remove debugging code.
2968         (html_printer::is_line_start): New function.
2969         (html_printer::start_font): Use `is_line_start'.
2970         (html_printer::writeHeadMetaStyle): New function.
2971         (html_printer::do_file_components, html_printer::~html_printer):
2972         Call `writeHeadMetaStyle'.
2974         * tmac/www.tmac (www-handle-percent): New macro.
2975         (MPIMG): Handle percent values for width and height parameters.
2976         (DC): Updated.
2978         * tmac/groff_www.man: Updated.
2980 2005-02-14  Werner LEMBERG  <wl@gnu.org>
2982         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
2983         $psname and $italic_angle.
2984         Immediately restart file input loops if `split' returns an empty
2985         array.
2987 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
2988             Werner LEMBERG  <wl@gnu.org>
2990         Update afmtodit to better support Unicode (Michail).
2991         Update afmtodit to use Perl 5 syntax (Werner).
2993         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
2994         `Getopts::Std'.
2995         Decorate variables with `my' where necessary.
2996         Use `defined' where necessary to avoid warnings.
2997         Don't use `do' for subroutine calls.
2998         Other minor syntax updates.
2999         Check for both `uXXXX[X[X]]' and `uniXXXX'.
3000         Handle glyph variants properly.
3001         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3002         strings.
3004         * src/utils/afmtodit/afmtodit.man: Updated.
3006 2005-02-13  Werner LEMBERG  <wl@gnu.org>
3008         Make groff.texinfo work with texinfo 4.8.
3010         * doc/groff.texinfo (@Var): Use @r and @slanted.
3011         (@defdummy, @Def*): Use @c to avoid empty lines.
3012         (\angles): Replaced with...
3013         (\Langlemacro, \Ranglemacro): New TeX macros.
3014         (@Langlemacro, @Ranglemacro): New variables defined with @set.
3015         (@angles): Use @Langlemacro and @Ranglemacro.
3016         (\LE): Replaced with...
3017         (\LEmacro): New TeX macro.
3018         (@LEmacro): New variable defined with @set.
3019         (@LE): Use @LEmacro.
3020         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3021         variables defined with @set.
3022         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3023         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3024         Update all callers.
3026         Other minor updates.
3028         * doc/texinfo.tex: Update to texinfo version 4.8.
3030         * README.CVS: Updated.
3032 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3034         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3035         and `FAM' registers.
3037 2005-02-05  Werner LEMBERG  <wl@gnu.org>
3039         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3040         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3041         Update BSD license.
3043 2005-02-01  Werner LEMBERG  <wl@gnu.org>
3045         * src/roff/groff/groff.man: Add information about paper size.
3047 2005-01-25  Werner LEMBERG  <wl@gnu.org>
3049         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
3050         NetBSD bin/29114.
3052 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
3054         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
3055         cases.
3056         (Re): Emit a warning if called without `.Rs'.
3057         (doc-finish-reference): Use parameter for decreasing
3058         `doc-reference-count'.
3059         (doc-print-reference): Pass specific count parameters to
3060         `doc-finish-reference'.
3062 2005-01-21  Werner LEMBERG  <wl@gnu.org>
3064         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3065         Reset pointers to zero after deallocation.  This fixes a crash
3066         if a driver is called with multiple input files.  Reported by
3067         Ken Chilton <ken@chiltonfamily.org>.
3069         * src/devices/grops/grops.man: Add more info on DSC.
3071 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
3073         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3074         Remove dead code.
3076 2005-01-17  Werner LEMBERG  <wl@gnu.org>
3078         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3079         against division by zero.
3081 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
3083         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3085 2004-12-19  Werner LEMBERG  <wl@gnu.org>
3087         * install-sh: New version; taken from texinfo CVS.
3089 2004-12-17  Werner LEMBERG  <wl@gnu.org>
3091         * tmac/devtag.tmac: Protect against loading twice.
3092         Protect agains compatibility mode.
3093         * tmac/www.tmac: Protect against loading twice.
3094         Load `devtag.tmac' before switching off compatibility mode.
3095         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3097 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
3099         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3100         * configure: Updated.
3102 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
3104         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3106 2004-12-15  Werner LEMBERG  <wl@gnu.org>
3108         Make `test-groff' work again -- previously, wrong paths have been
3109         used.  Additionally, it can now be called from anywhere.
3111         * test-groff.in: Don't test for groff binary.  This is no longer
3112         necessary since the proper paths are determined by `configure'.
3113         (EXEEXT): Removed.  No longer used.
3114         (srcdir, builddir): Use values provided by the configure script.
3115         (XENVIRONMENT): Updated.
3117         * INSTALL: Updated.
3119 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
3121         Make .tag and .taga work for all devices (but only grohtml actually
3122         handles them).
3124         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3125         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3126         html_printer::handle_assertion): Don't use hard-coded string
3127         lengths.
3128         (html_printer::lookahead_for_table): Reset `tbl' properly if
3129         necessary.
3130         (html_printer::devtag): New function, handling `devtag'.
3131         (html_printer::special): Don't handle `html-tag'.
3133         * src/include/printer.h, src/libs/libdriver/printer.cpp
3134         (printer::devtag): New virtual function.
3136         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3137         `devtag'.
3139         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3140         src/roff/troff/node.cpp: s/html-tag/devtag/.
3142         * src/roff/troff/input.cpp (tag, taga): Always call
3143         curenv->add_node.
3145         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3146         macros instead of HTML-TAG*.
3148         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3150         * tmac/www.tmac: Load devtag.tmac.
3151         Replace HTML-TAG* macros with DEVTAG* macros.
3152         (HTML, HTML-NS): Changed definitions.
3153         (URL): Use HTML-NS.
3154         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3156         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3158 2004-12-10  Werner LEMBERG  <wl@gnu.org>
3160         Import Mike's `gdiffmk' package.
3162         * contrib/gdiffmk/*: New files.
3163         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3164         * NEWS: Updated.
3166 2004-12-08  Werner LEMBERG  <wl@gnu.org>
3168         Import Keith's `pdfmark' package.  Integration is very preliminary.
3170         * contrib/pdfmark/*: New files.
3171         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3172         * NEWS: Updated.
3174 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
3176         Fix a bug with title handling in HTML.
3178         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3179         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3180         length.
3181         (html_printer::handle_tag_within_title): New function.
3182         (html_printer::do_title): Use it.
3184         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3185         (cov*tl-au-print): Emit `.eo.tl' tag.
3187 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
3189         * man/groff_char.man: Minor imrovements.
3191 2004-12-04  Werner LEMBERG  <wl@gnu.org>
3193         * src/preproc/eqn/eqn.man: Revised.
3195 2004-11-25  Werner LEMBERG  <wl@gnu.org>
3197         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3198         groff source files.
3199         Include config.h.
3200         Include limits.h.
3201         Remove X_NOT_STDC_ENV conditional.
3202         (Version_string, program_name): New global variables.
3203         (groff_flag): Removed.
3204         (MapFont): Updated.
3205         (usage): Take a stream as argument.
3206         Use `program_name'.
3207         Update all callers.
3208         (main): Add `long_options' array for `--help' and `--version'.
3209         Make `-g' a dummy option.
3210         Handle `-v' and unknown options.
3211         Remove unused `position' variable.
3213         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3214         (XLIBS): Add LIBGROFF.
3216         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3217         New files.
3219         * src/devices/xditview/Dvi.c (default_font_map): Split into three
3220         parts to avoid compiler warning.
3221         (resources): Don't initialize with `default_font_map'.
3222         (ClassInitialize): Initialize first element of `resources'.
3224         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3225         Removed.
3227         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3228         src/utils/pfbtops/pfbtops.man: Revised, updated.
3230         * configure.ac: Generate src/utils/xtotroff/Makefile.
3231         * configure: Regenerated.
3233 2004-11-24  Werner LEMBERG  <wl@gnu.org>
3235         First fixes to get produce HTML.
3237         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3238         attribute.
3240         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3241         (HR, LI): Use `HTML</p>', not `HTML'.
3243         * doc/webpage.ms: Minor updates.
3245 2004-11-23  Larry Kollar  <kollar@alltel.net>
3247         Add option -S grohtml to determine the file split level.
3249         * src/devices/grohtml/post-html.cpp (split_level): New global
3250         variable.
3251         (html_header::determine_header_level): Use split_level.
3252         (main): Handle `-S' command line option.
3253         Sort options.
3255         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3257         * src/devices/grohtml/grohtml.man: Document it.
3258         Sort options.
3260         * NEWS: Document it.
3262 2004-11-23  Y T  <doarhop@hotmail.com>
3264         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3265         the volume and number refer entries.
3267 2004-11-22  Werner LEMBERG  <wl@gnu.org>
3269         * src/devices/grohtml/html-table.cpp
3270         (html_table::emit_table_header): Don't emit `cols' attribute which
3271         doesn't exist in HTML 4.0 and is thus invalid.
3273         * NEWS: More minor fixes and updates.
3275 2004-11-18  Werner LEMBERG  <wl@gnu.org>
3277         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3278         (HTML</p>): Minor clean-up.
3280         * tmac/groff_www.man: Updated.
3282         * src/devices/grohtml/grohtml.man: Revised and updated.
3284         * NEWS: Updated.
3286 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
3288         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3289         Fix space insertion.
3290         (html_printer::do_links): Fix rules generation around automatic
3291         heading links.
3293         * tmac/www.tmac (LK): Use HTML-TAG-NS.
3294         (HR): Simplify.
3295         No longer emit empty line for non-HTML devices.
3297 2004-11-17  Werner LEMBERG  <wl@gnu.org>
3299         * doc/Makefile.in (prepare_examples, webpage.html): Handle
3300         `groff.css'.
3302         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3303         prepare_examples, webpage.html): Handle `groff.css'.
3305 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3307         * NEWS, README, doc/webpage.ms: Updated.
3309         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3311 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
3313         * src/include/printer.h (printer): Remove virtual function
3314         `round_width'.
3315         Update all source files.
3317         * src/devices/grohtml/post-html.cpp (html_printer): New member
3318         function `round_width'.
3320 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3322         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3323         column key letter suffix.
3325 2004-10-14  Werner LEMBERG  <wl@gnu.org>
3327         * Makefile.in (check): Depend on `site.exp' and `docheck'.
3328         (docheck): Run dejagnu's `runtest' if it exists.
3329         (site.exp): Create dejagnu configuration file.
3331         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3333 2004-10-13  Werner LEMBERG  <wl@gnu.org>
3335         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3336         src/devices/grohtml/post-html.cpp (make_val,
3337         html_printer::handle_state_assertion): Fix compiler warnings.
3339         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3340         (diversion::diversion): Fix order of initializers.
3342         * src/roff/troff/div.h: Don't include `mtsm.h'.
3344         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3345         (environment::environment): Fix order of initializers.
3346         (environment::make_tag, environment::construct_format_state): Fix
3347         compiler warnings.
3349         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3350         (input_iterator::input_iterator, macro::macro): Fix order of
3351         initializers.
3353         * src/roff/troff/mtsm.cpp: Include only necessary header files.
3354         (state_set::add, state_set::val): Fix compiler warnings.
3356         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3357         (bool_value_state, int_value_state, units_value_state,
3358         string_value_state): Remove comma after last element which causes
3359         an error with g++ 3.3.3.
3361         * src/roff/troff/node.cpp: Include `stringclass.h'.
3362         (hline_node::hline_node, vline_node::vline_node,
3363         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3364         warnings.
3365         (zero_width_node::zero_width_node): Fix order of initializers.
3367         * src/roff/troff/node.h: Don't include `mtsm.h'.
3368         (hmotion_node): Fix compiler warnings.
3370         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3372 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3374         * doc/groff.css: New file.
3376         * doc/webpage.ms: Use `groff.css'.
3377         Other small fixes.
3379         * tmac/an-old.tmac (need_eo_h): New number register.
3380         (TH): Emit `.eo.tl' tag after title.
3381         (SH): Set `need_eo_h'.
3382         (an-trap): Handle `need_eo_h'.
3383         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3385         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3386         (TL): Always start diversion.
3387         Updated.
3388         (@AI): Always call `par@reset'.
3389         (@AB): Update code for -Thtml.
3390         (cov*tl-au-print): Handle -Thtml.
3391         (par@reset): Handle `need_eo_tl', `need_eo_h'.
3392         (@IP): Simplified.
3393         (@IT-html): Removed.
3394         (@SH): Set `need_eo_h' for -Thtml.
3395         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3396         Set `need_eo_tl'.
3397         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3398         Set `need_eo_h' for -Thtml.
3399         (@EQ, @EN): Don't handle -Thtml specially.
3400         (par@load-init): Don't handle -Thtml specially.
3402         * tmac/www.tmac (www:paraspace): New macro.
3403         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3404         (HTML</p>, HTML-TAG-NEXT): New macros.
3405         (HnE): Emit tag `.eo.h' instead of break.
3406         (HR): s/HTML-NS/HTML/.
3407         (www-end-nowhere): End diversion only if `www-html' not set.
3408         Emit `.eo.tl' tag.
3409         (ULS, ULE): s|HTML|HTML</p>|.
3410         (LI): Call `www:paraspace'.
3411         (HEAD): New macro.
3413 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
3415         * src/roff/troff/request.h (macro): Make `p' public.
3416         New variable `is_a_diversion'.
3417         New member function `is_diversion'.
3420         * src/devices/grohtml/html.h (simple_output): New member function
3421         `force_nl'.
3423         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3424         computation of `total'.
3425         (tabs::check_init): New function.
3426         (html_table::emit_table_header): Emit style data.
3427         (html_table::insert_column): Improved.
3429         * src/devices/grohtml/html-table.h: Updated.
3431         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3432         Initialize `start_space' with TRUE.
3433         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3434         cases.
3435         (html_text::flush_text): Set `start_space' flag.
3436         (html_text::uses_indent, html_text::remove_para_space,
3437         html_text::get_alignment): New functions.
3438         (html_text::push_para): Updated.
3439         (html_text::do_para): Check for empty argument.
3440         Don't set `space_emitted'.
3441         (html_text::do_space, html_text::emit_space): Updated.
3443         * src/devices/grohtml/html-text.h (tag_definition): New variable
3444         `really_issued'.
3445         (html_text): New member function `uses_indent', `remove_para_space',
3446         `get_alignment'.
3448         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3449         function.
3450         (simple_output:nl): Always emit `\n'.
3452         * src/devices/grohtml/post-html.cpp: Include `string.h'.
3453         (BASE_POINT_SIZE): Removed.
3454         (base_point_size, head_info): New global variables.
3455         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3456         `is_eo_h'.
3457         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3458         tags, respectively.
3459         (page::add_and_encode): Pass additional parameter for tag flag.
3460         (assert_pos): New structure.
3461         (assert_state): New class.
3462         (html_printer): Remove `indentation', `prev_indent'.
3463         Add variables `troff_indent', `device_indent', `temp_indent'.
3464         Add variables `seen_indent', `next_indent', `seen_pageoffset',
3465         `next_pageoffset', `seen_linelenght', `next_linelength',
3466         `seen_center', `next_center', `seen_space', `seen_break', `as'.
3467         Add member functions `do_check_center', `do_space', `do_head',
3468         `get_troff_indent', `restore_troff_indent', `handle_assertion',
3469         `handle_state_assertion', `do_end_para', `set_char_and_width'.
3470         Change argument to `do_fill' to `char *'.
3471         Update constructor.
3472         (html_printer::emit_raw): Call `shutdown_table'.
3473         Use new functions.
3474         (html_printer::do_center): Simplified.
3475         (html_printer::do_title): Improved.
3476         (html_printer::write_header): Emit one more newline.
3477         Use new functions.
3478         (html_printer::do_heading, html_printer::do_indent,
3479         html_printer::do_eol, html_printer::do_tab_ts,
3480         html_printer::do_tab, html_printer::do_tab0,
3481         html_printer::calc_po_in, html_printer::next_horiz_pos,
3482         html_printer::remove_courier_tabs,
3483         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3484         Updated.
3485         (html_printer::do_linelength, html_printer::do_pageoffset,
3486         html_printer::do_indentation, html_printer::do_tempindent,
3487         html_printer::do_tab_te): Simplified.
3488         (html_printer::do_pointsize): Check whether point size is really
3489         associated a `.tl' tag.
3490         (html_printer::do_break): Rewritten.
3491         (html_printer::troff_tag): Improved.
3492         (html_printer::flush_globs): Updated.
3493         (html_printer::lookahead_for_tables): Handle `is_br'.
3494         Use new functions.
3495         (html_printer::set_char): Check `sbuf_style.f'.
3496         (html_printer::write_navigation): Use string comparison.
3497         (html_printer::~html_printer): Emit `head_info'.
3498         (html_printer::special): Rewritten.
3499         (get_str, make_val): New functions.
3500         (main): New option `s' to set the base point size.
3502         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3504 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3506         * src/roff/troff/node.cpp: New extern `debug_state'.
3507         Include `stringclass.h' and `mtsm.h'.
3508         Implement new classes and class members from `node.h'.
3509         (real_output_file): Make `fp' public.
3510         (troff_output_file): New variables `cur_div_level' and `tag_list'.
3511         Update constructors.
3512         (troff_output_file::really_print_line): Check whether we should push
3513         the current troff state and use the state at the start of the
3514         invocation of this diversion.
3515         (troff_output_file::add_to_tag_list): New member function.
3516         (node::add_char): Handle `glyph_comp_np'.
3518         * src/roff/troff/node.h: Include `mtsm.h'.
3519         (node): New variables `state', `push_state', `div_nest_level',
3520         `is_special'.  Update constructors, all descendants.
3521         Pass additional argument to `add_char' member function.
3522         New virtual member functions `is_tag', `debug_node',
3523         `debug_node_list'.  Update all descendants.
3524         (tag_node): New class for handling tags.
3525         (output_file): Add variable `state'.
3527 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
3529         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3530         providing a minimal troff state machine to emit meta tags for the
3531         post-grohtml device driver.
3533         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3534         files.
3536 2004-10-09  Werner LEMBERG  <wl@gnu.org>
3538         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3540 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3542         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3544         * src/roff/troff/div.h: Include `mtsm.h'.
3545         (diversion): New variables `any_chars_added', `needs_push',
3546         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3547         `saved_suppress_next_eol', `modified_tag'.
3548         New virtual member function `is_diversion'.  Update all descendants.
3550         * src/roff/troff/div.cpp (diversion::diversion,
3551         macro_diversion::macro_diversion): Updated.
3552         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3553         `suppress_next_eol'.
3554         (top_level_diversion::space): Handle `curenv->seen_space'.
3555         (page_offset): Update tag handling.
3556         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
3558         * src/roff/troff/env.h (environment): Make `tabs' public.
3559         Remove `ignore_next_eol', `emitted_node'.
3560         Update `output_line', `output'.
3561         New variables `seen_space', `seen_eol', `suppress_next_eol',
3562         `seen_break'.
3563         New member functions `construct_state', `make_tag',
3564         `construct_format_state, `construct_new_line_state,
3565         `dump_troff_state'.
3566         Remove `add_html_tag', `make_html_tag'.
3568         * src/roff/troff/env.cpp: New externs `suppress_push',
3569         `get_diversion_state', `global_diverted_space'.
3570         (pending_output_line): New variable `was_centered'.
3571         Update constructor and all callers.
3572         (pending_output_line::output): Call `curenv->construct_format_state'.
3573         (environment::environment, environment::copy): Updated.
3574         (environment::output): Handle `was_centered'.
3575         (environment::add_char): Handle construct and diversion state.
3576         (environment::add_node): Handle construct state.
3577         (environment::newline): Handle `was_centered'.
3578         (environment::output_line): Updated.
3579         (environment::possibly_break_line): Updated.
3580         Update tag handling.
3581         (environment::add_html_tag): Replaced with...
3582         (environment::make_tag): New function.
3583         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
3584         (environment::dump_troff_state): New debugging function.
3585         (environment::construct_state, environment::construct_format_state,
3586         environment::construct_new_line_state): New functions.
3587         (environment::do_break): Updated.
3588         Handle `global_diverted_space'.
3589         (environment::handle_tag): Update tag handling.
3590         (point_size, fill, do_break_request): Don't call `add_html_tag'.
3591         (no_fill): Don't call `add_html_tag'.
3592         Set `suppress_next_eol'.
3593         (center, right_justify, line_length, indent, temporary_indent,
3594         set_tabs):
3595         Update tag handling.
3597         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
3598         (input_iterator): New variables `is_diversion', `diversion_state'.
3599         Update constructors.
3600         (input_stack): New member functions `get_div_level',
3601         `get_diversion_state', `check_end_diversion'.
3602         New variables `div_level', `diversion_state'.  Initialize them.
3603         (suppress_push, global_diverted_space): New global variables.
3604         (input_stack::finish_get, input_stack::finish_peek,
3605         input_stack::remove_boundary, input_stack::end_file,
3606         input_stack::clear, input_stack::pop_macro): Call
3607         `check_end_diversion'.
3608         (input_stack::push): Handle `div_level' and `diversion_state'.
3609         (get_diversion_state): New function.
3610         (diverted_space_node::reread): Handle `global_diverted_space'.
3611         (macro::macro): Update constructors.
3612         (macro::is_diversion): New function.
3613         (macro::operator=): Set `is_a_diversion'.
3614         (string_iterator): New member function `is_diversion'.
3615         (string_iterator::string_iterator): Update constructors.
3616         (string_iterator::fill): Set `div_nest_level'.
3617         (macro_iterator): New member function `is_diversion'.
3618         (do_if_request): Handle `suppress_push'.
3619         (tag, taga): New functions.
3620         (init_input_requests): Add `tag' and `taga' requests.
3622 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
3624         * src/include/font.h (font): New member function
3625         `get_image_generator'.
3626         New variables `unscaled_charwidths' and `image_generator'.
3628         * src/libs/libgroff/font.cpp (font::get_width): Always return the
3629         character's unscaled width if `font::unscaled_charwidths' is set.
3630         (font::get_image_generator): New function.
3631         (font::load_desc): Check the `unscaled_charwidths' and
3632         `image_generator' keywords.
3634         * src/libs/libgroff/fontfile.cpp: Initialize
3635         `font::unscaled_charwidths' and `font::image_generator'.
3637         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
3639         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
3641         * man/groff_font.man: Document `unscaled_charwidths' and
3642         `image_generator'.
3644         * src/preproc/html/pre-html.cpp: Include `device.h'.
3645         (image_gen): New global variable.
3646         (imageList::createPage): Use `image_gen'.
3647         (main): Use `image_generator' keyword.
3649 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3651         * tmac/html.tmac: Handle \[sqrtex].
3653 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3655         * src/include/printer.h (printer): New virtual method `round_width'.
3657         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
3658         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
3659         src/devices/grotty/tty.cpp (printer::round_width): New function
3660         member.
3662         * src/devices/grohtml/post-html.cpp (printer::round_width): New
3663         function member.
3664         (html_printer::set_numbered_char): Use it.
3666 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
3668         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
3670         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
3672         * configure: Regenerated.
3674         * Makefile.in (GHOSTSCRIPT): New variable.
3675         (MDEFINES): Add GHOSTSCRIPT.
3677 2004-10-03  Werner LEMBERG  <wl@gnu.org>
3679         * INSTALL.gen: Updated (taken from texinfo CVS).
3681 2004-09-28  Werner LEMBERG  <wl@gnu.org>
3683         * NEWS: Updated.
3685 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3687         * tmac/groff_www.man: Revised and updated.
3689 2004-09-26  Werner LEMBERG  <wl@gnu.org>
3691         Fix \$@ and \$* to handle any number of arguments.
3693         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
3694         characters.
3696         * src/roff/troff/input.cpp (input_iterator::internal_level):
3697         Removed.
3698         (input_stack): New member functions `increase_level' and
3699         `decrease_level'.
3700         (input_stack::get_level): Don't use `internal_level'.
3701         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
3702         (end_quote_iterator): Completely removed.
3703         (interpolate_arg): Build string for \$@ and \$* which is then
3704         pushed onto the input stack.
3706 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
3708         * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
3709         Registers): Document changes from 2004-09-19.
3711 2004-09-23  Werner LEMBERG  <wl@gnu.org>
3713         * tmac/an-old.tmac (ne): Using default scaling operator.
3715 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3717         This change implements the following features:
3719         PORPHANS
3720           New numeric register: Defines number of lines following LP, PP,
3721           QP, IP or XP, which must be kept together, before any automatic
3722           page break.  If insufficient space remains on the current page, a
3723           page break is forced before the new paragraph begins.
3725         HORPHANS
3726           New numeric register: Sets number of lines of following paragraph
3727           which must be kept with a heading, defined by NH or SH, before any
3728           automatic page break.  If insufficient space remains on the
3729           current page, a page break is forced before the heading.
3731         GROWPS
3732           (Thanks to Joerg van den Hoff, for this idea).
3734           New numeric register: Sets the first level of heading (set with
3735           NH), which will keep the same point size as body text; e.g. if
3736           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
3737           point size specified by \n[PS], but .NH 2 and .NH 1 will have
3738           progressively larger point sizes, determined by \n[PSINCR] (see
3739           below).
3741         PSINCR
3742           New numeric register: Sets the point size increment for each level
3743           of heading, (set with NH), below the threshold level set by
3744           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
3745           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
3746           and all other levels will remain at 10pt, (because \n[PS] = 10).
3748         SH
3749           Existing macro now accepts a numeric argument, to make heading
3750           size match that of NH with same argument value, when the
3751           GROWPS/PSINCR feature is enabled.
3753         SN-DOT
3754           New string, set by NH macro, replaces the existing (undocumented)
3755           use of SN, to represent the assigned section number.
3757         SN-NO-DOT
3758           New string, set by NH macro, represents the assigned section
3759           number, but omits the terminal period (periods at intermediate
3760           levels are retained).
3762         SN
3763           String set by NH macro, originally undocumented, now implemented
3764           as an alias for SN-DOT (which reproduces original behaviour).
3766         * tmac/s.tmac (PORPHANS): New register.
3767         (par*start): Use it.
3768         (HORPHANS, GROWPS, PSINCR): New registers.
3769         (SH-NO-TAG, @SH): Use them.
3770         (@NH): Improved.
3772 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3774         * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
3775         Document the deletion of `Ds' and `De' macros.
3777 2004-09-10  Werner LEMBERG  <wl@gnu.org>
3779         In tbl, handle \a as an interpreted leader character if in
3780         compatibility mode.
3782         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
3783         LEADER_CHAR): New macros.
3784         (compatible_flag): New declaration.
3786         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
3787         LEADER_3, and LEADER_4 to `state'.
3788         (table_input::get): Handle `\a'.
3790         * src/preproc/tbl/table.cpp (PREFIX): Removed.
3791         (LEADER_REG): New macro.
3792         (table::init_output): Define LEADER_REG string register if in
3793         compatibility mode.
3795         * src/preproc/tbl/tbl.man: Document it.
3797 2004-08-18  Werner LEMBERG  <wl@gnu.org>
3799         * tmac/doc.tmac (An): Fix error message.
3801 2004-08-06  Werner LEMBERG  <wl@gnu.org>
3803         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
3804         file can't be opened.  UNIX tbl has the same behaviour.
3806 2004-08-05  Y T  <doarhop@hotmail.com>
3808         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
3809         (DBRead): If in compatibility mode, take into account the text
3810         when computing figure boundaries.
3812 2004-08-05  Werner LEMBERG  <wl@gnu.org>
3814         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
3815         from Tadziu Hoffmann.
3817 2004-08-03  Werner LEMBERG  <wl@gnu.org>
3819         * doc/meref.me: Document `_M' register.
3821 2004-08-03  Martin Husemann  <martin@duskware.de>
3823         Make hpftodit work correctly on big-endian systems.
3825         * src/utils/hpftodit/hpftodit.cpp (File): New method
3826         `get_uint32(char *)'.
3827         (entry): New member `orig_value'.
3828         (read_tags): Use new method.
3829         (output_font_name, read_and_output_pcltypeface, dump_ascii):
3830         Updated.
3832 2004-08-01  Werner LEMBERG  <wl@gnu.org>
3834         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
3835         are already in X11's `macros.t' file.
3837 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
3839         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
3840         Fix casting bug.
3841         (read_and_output_pcltypeface): Handle strings with length <= 4.
3843 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
3845         * tmac/s.tmac (pg@top): Don't save `PO' register.
3846         (pg*end-col, pg*end-page): Directly use `PO' register.
3848 2004-07-27  Werner LEMBERG  <wl@gnu.org>
3850         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
3852         * src/preproc/refer/refer.cpp (output_references): Check for
3853         empty hash table.
3854         * src/preproc/refer/refer.man: Improve documentation of
3855         `bibliography' command.
3857 2004-07-26  Werner LEMBERG  <wl@gnu.org>
3859         Add requests `fcolor' and `gcolor'.
3861         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
3862         New functions.
3863         (init_env_requests): Add `fcolor' and `gcolor'.
3865         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
3867         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
3868         (Colors): Document new requests.
3870 2004-07-24  Werner LEMBERG  <wl@gnu.org>
3872         Add support for fractional point sizes in ms macros.  A value for
3873         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
3874         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
3876         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
3877         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
3879         * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
3880         Registers), NEWS: Document it.
3882 2004-07-19  Werner LEMBERG  <wl@gnu.org>
3884         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
3885         Update constructor.
3886         (do_for, for_input::get, for_input::peek): Handle negative `by'.
3887         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
3889 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
3891         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
3892         * tmac/groff_mdoc.man: Updated.
3894 2004-07-05  Werner LEMBERG  <wl@gnu.org>
3896         * doc/groff.texinfo (Manipulating Hyphenation): Further improve
3897         documentation of `hcode'.
3899 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
3901         Improve appearance of arrows in pic.
3903         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
3904         arrow head thin.
3905         Use two line segments for drawing non-filled arrow head.
3906         (line_object::print, spline_object::print): Shorten line length to
3907         avoid arrow sticking.
3908         (arc_object::print): Take arrow direction into account.
3910 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3912         * tmac/groff_www.man: Update documentation of .MPIMG.
3914 2004-07-03  Werner LEMBERG  <wl@gnu.org>
3916         * tmac/an-old.tmac (RI): Always start with font `R'.
3917         (RI, IR): Properly end with font `R'.
3919 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3921         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
3922         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
3923         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
3924         Don't pass more than six arguments to .R, .I, .B, etc., for
3925         compatibility with traditional troff macros.
3927 2004-07-02  Werner LEMBERG  <wl@gnu.org>
3929         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
3930         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
3931         Update all users.
3932         (PUSH_COMP_MODE): New internal character constant.
3933         Update all users.
3935         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
3936         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
3937         (token::next, macro::append): Handle PUSH_COMP_MODE.
3938         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
3939         POP_GROFFCOMP after each of the decoded arguments to make them
3940         independent from the compatibility mode status.
3941         (comp_mode): Add `COMP_ENABLE'.
3942         (do_define_string, do_define_macro): Handle COMP_ENABLE.
3943         (define_string, append_string, define_macro, define_indirect_macro,
3944         append_macro, append_indirect_macro): Handle `compatible_flag'.
3945         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
3947         * man/groff_diff.man, doc/groff.texinfo: Updated.
3949 2004-07-01  Werner LEMBERG  <wl@gnu.org>
3951         * doc/groff.texinfo: Improve documentation of `hcode'.
3952         Use @documentencoding and convert document to latin-1; to do that
3953         make latin characters active and assign proper macros (within a
3954         @tex...@end tex environment).
3955         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
3956         * doc/Makefile.sub (groff): Ditto.
3958 2004-06-29  Werner LEMBERG  <wl@gnu.org>
3960         Implement two new conditional operators `F <name>' and `S <name>'
3961         which check whether <name> is a valid font or style, respectively.
3963         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
3964         (text_file::text_file): Updated.
3965         (text_file::error): Don't emit message if `silent' is set.
3966         (font::load_font): Add optional third argument (which is directly
3967         passed to `load'.
3968         (font::load): Add optional second argument to check the header of
3969         a font only, without emitting warning or error messages.
3970         * src/include/font.h (font): Updated.
3972         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
3973         conditionals.
3974         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
3975         fourth argument to check a font without mounting.
3976         (check_font, check_style): New functions.
3977         * src/roff/troff/node.h: Updated.
3979         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3980         Updated.
3982 2004-06-27  Werner LEMBERG  <wl@gnu.org>
3984         Implement new string-valued register `.sty' to return the current
3985         style name.
3987         * env.cpp (environment::get_style_name_string): New function.
3988         (init_env_requests): Add `.sty' register.
3989         * env.h (environment): Updated.
3990         * node.cpp (font_info): Make `get_style_name' a friend.
3991         (get_style_name): New function.
3992         * node.h: Updated.
3994         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3995         Updated.
3997 2004-06-15  Werner LEMBERG  <wl@gnu.org>
3999         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4000         `nospaces' option.
4002 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
4004         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4005         and \n[mo] to avoid dependency on current date.
4007 2004-06-08  Werner LEMBERG  <wl@gnu.org>
4009         * Makefile.sub (install_data): New target.
4011 2004-06-04  Werner LEMBERG  <wl@gnu.org>
4013         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4015 2004-06-03  Werner LEMBERG  <wl@gnu.org>
4017         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4018         order of libraries.
4019         (install_data): Add $(srcdir).
4021         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4022         libraries.
4024 2004-06-02  Werner LEMBERG  <wl@gnu.org>
4026         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4027         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4028         Add test for Xmu library.
4029         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4030         GROFF_APPRESDIR_DEFAULT): New macros.
4032         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4033         and GROFF_APPRESDIR_DEFAULT.
4035         * configure: Regenerated.
4037         * Makefile.in (appresdir): New variable.
4038         (MDEFINES): Add appresdir.
4040         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4041         -Xt.
4042         (install_data, uninstall_sub): New targets to handle GXditview.ad.
4044         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4045         `$(srcdir)/eign', not `eign'.
4047         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4049         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4050         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4051         Protect (g)xditview with `\%' to avoid hyphenation.
4052         Other minor formatting.
4054 2004-06-01  Werner LEMBERG  <wl@gnu.org>
4056         Integrate gxditview into groff's standard directory hierarchy.
4058         * src/xditview/*: Moved to ...
4059         * src/devices/xditview/*: Here.
4060         Moved DviChar.h and XFontName.h to src/include.
4061         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4062         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4063         Moved xtotroff.c to new directory src/utils/xtotroff.
4064         Provide proper Makefile.sub files (reusing the stuff from
4065         Imakefile.in).
4066         DESC renamed to DESC.in.
4067         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4068         Converted everything from K&R to ANSI C.
4069         Decorated with const where appropriate.
4070         Cast string constants with `String' and `char *' where appropriate.
4071         Made it compile with C++ (used as a C compiler).
4072         Removed other minor compiler warnings.
4074         * src/devices/xditview/device.c: Include config.h, string.h, and
4075         defs.h.
4076         Don't declare `exit', `strtok', `strchr', and `getenv'.
4077         (FONTPATH): Remove.
4079         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4080         `XFormatFontName'.
4082         * src/devices/xditview/xditview.c: Include config.h.
4083         Include stdio.h earlier.
4084         Protect declaration of `popen' and `pclose' with
4085         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4086         Replace `caddr_t' with `XtPointer'.
4087         (MakePromptFunc): New typedef.
4088         (DoPrint): Use RETSIGTYPE.
4089         (promptfunction): Change type to MakePromptFunc.
4090         (MakePrompt): Use MakePromptFunc for third argument.
4091         (xmalloc): Removed.
4093         * src/devices/xditview/ad2c: Add casts to `String'.
4095         * src/include/XFontName.h (XFontNameString): Don't use array
4096         notation.
4097         Add prototypes for `XParseFontName', `XFormatFontName',
4098         `XCompareFontName', and `XCopyFontName'.
4100         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4101         `XFontName.h'.
4103         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4104         Don't declare `XParseFontName' and `XFormatFontName'.
4105         (xmalloc): Removed.
4106         (main): Remove `optind' and `optarg'.
4108         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4109         (to select programs which need X).
4110         Make XDEVIDIRS depend on `FORCE'.
4111         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4112         X support).
4113         (MDEFINES): Updated.
4114         (LIBDIRS): Use XLIBDIRS.
4115         (CPROGDIRS): Use XPROGDIRS.
4116         (DEVDIRS): Remove font directories for gxditview.
4117         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4118         (EXTRADIRS): Remove src/xditview.
4120         * Makefile.sub (DISCLEANFILES): Updated.
4122         * Makefile.comm (LIBXUTIL): New variable.
4123         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4124         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4126         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4128         * aclocal.m4 (GROFF_X11): New function.
4130         * configure.ac: Call GROFF_X11.
4131         Don't create src/xditview/Imakefile.
4132         Don't emit notice how to build gxditview.
4134         * configure: Regenerated.
4136         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4138 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
4140         * Makefile.in (CPPFLAGS): Define.
4141         (MDEFINES): Add CPPFLAGS.
4143 2004-05-27  Werner LEMBERG  <wl@gnu.org>
4145         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4147 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
4149         Fix problems with `friend name injections'.
4151         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4152         make_script_box), src/roff/troff/div.h (end_diversions),
4153         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4154         change 2004-04-08.
4156 2004-05-25  Bernd Warken  <bwarken@mayn.de>
4158         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4160 2004-05-25  Werner LEMBERG  <wl@gnu.org>
4162         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4163         src/libs/libgroff/color.cpp: Include lib.h.
4165 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4167         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4168         through Forte 6u1, and for how to get GNU make on Solaris.
4170 2004-05-24  Werner LEMBERG  <wl@gnu.org>
4172         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
4173         by Paul Eggert.
4175 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
4177         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4178         rule.
4180 2004-05-14  Werner LEMBERG  <wl@gnu.org>
4182         * REVISION: Set to 2.
4184         * aclocal.m4 (GROFF_STDINT_H): Removed.
4185         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4187         * configure.ac: Updated.
4188         * configure, src/include/config.hin: Regenerated.
4190         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4191         inttypes.h conditionally.
4193 2004-05-13  Werner LEMBERG  <wl@gnu.org>
4195 Version 1.19.1 released
4196 =======================
4198 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
4200         * src/preproc/refer/label.y (same_author_last_name,
4201         same_author_name): Handle empty sort keys.
4203 2004-05-10  Werner LEMBERG  <wl@gnu.org>
4205         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4206         tmac/TODO: Updated.
4208         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4209         doc-str-Lb-librt): Reset font.
4210         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4211         Provide `doc-str-Lb' to reset font.
4212         * tmac/groff_mdoc.man: Updated.
4214 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
4216         * src/preproc/html/pre-html.cpp (make_message): Make it work for
4217         snprintf versions which don't conform to ANSI C 99 (this is,
4218         counting the string's trailing null byte in the return value).
4220 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
4222         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4223         that all implementations of sprintf handle null pointers correctly.
4225 2004-05-04  Werner LEMBERG  <wl@gnu.org>
4227         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4228         Document `.U' register.
4230         * src/roff/troff/env.cpp (environment::mark_last_line)
4231         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4233 2004-05-04  Larry Kollar  <kollar@alltel.net>
4235         New read-only register `.U'; it returns 1 in safer mode and 0
4236         otherwise.
4238         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4239         register.
4241 2004-05-03  Werner LEMBERG  <wl@gnu.org>
4243         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4245 2004-04-17  Werner LEMBERG  <wl@gnu.org>
4247         * src/include/font.h (font): Use `int' for ch_index.
4248         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4249         font::compact): Updated.
4251         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4252         warnings.
4254         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4255         (hyphen_word): Fix compiler warnings.
4256         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4257         `char'.
4258         Update all callers.
4259         (get_delim_number, get_line_arg): Change second argument type to
4260         `unsigned char'.
4261         (macro_header::copy, token::next, do_define_string,
4262         do_define_character, substring_request, asciify_macro,
4263         unformat_macro, read_size, non_interpreted_node::interpret,
4264         while_request, main: Fix compiler warnings.
4265         (read_color_draw_node): Initialize `col'.
4267         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4268         `start_col' and `end_col' of type `int'.
4269         (vertical_rule): Make `col' of type `int'.
4271         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4272         for EOF.
4274         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4275         New arrays.
4276         (format_serial): Use them to remove dependency on ASCII.
4278         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4279         compiler warning.
4280         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4281         Ditto.
4283         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4284         compiler warnings.
4285         (glyph): Change type of `hpos' to `int'.
4287         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
4288         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4290         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4292         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4294 2004-04-16  Werner LEMBERG  <wl@gnu.org>
4296         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4297         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4298         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4299         `double' instead of `float' everywhere.
4300         * src/preproc/grn/main.cpp: Use `double' instead of `float'
4301         everywhere.
4302         (main): Add return value.
4303         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4304         everywhere.
4305         Update all user functions.
4307         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4308         src/preproc/eqn/box.h, src/preproc/pic/object.h,
4309         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4310         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4311         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4312         src/roff/troff/input.cpp, src/roff/troff/request.h,
4313         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4314         declarations.
4316         * src/utils/indxbib/signal.c: Include stdlib.h.
4318 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4320         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4321         before the first page.
4323 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
4325         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4326         (doc-operating-system-*): Updated.
4327         * tmac/doc-syms (doc-str-St-*): Various small fixes.
4328         (doc-str-Lb-*): Add more library names.
4330 2004-04-10  Art Haas  <ahaas@airmail.net>
4332         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4333         use anonymous type.
4335 2004-04-09  Art Haas  <ahaas@airmail.net>
4337         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4339 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
4341         * arch/misc/shdeps.sh: Generate better comment for sed script.
4343 2004-04-08  Art Haas  <ahaas@airmail.net>
4345         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4346         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4347         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4348         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4349         (polyfill), src/preproc/grn/main.cpp (polyfill),
4350         src/preproc/refer/command.cpp (command_table),
4351         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4352         gcc 3.5 doesn't like).
4354 2004-04-08  Werner LEMBERG  <wl@gnu.org>
4356         Removing many compiler warnings.  groff should now compile with
4357         a C++ compiler used for C files also.  [Simple variable renamings
4358         to avoid shadowing aren't logged in detail.]
4360         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4361         (draw_dvi_printer::draw) ['c']: Enclose in block.
4363         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4364         (page::add_line): Fix typos.
4365         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4367         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4368         Some local variable renamings.
4369         * src/devices/grolbp/lbp.h: Some local variable renamings.
4371         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4372         variable renamings.
4374         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4375         Remove redundant local variable declaration.
4376         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4377         Don't use `caddr_t' but `void *'.
4378         Enclose functions with `extern "C"' for C++.
4380         * src/libs/libdriver/input.cpp (remember_filename,
4381         remember_source_filename): Use cast for string constant.
4383         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4384         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4385         src/libs/libgroff/geometry.cpp: Some local variable renamings.
4386         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4387         style.
4388         Enclose functions with `extern "C"' for C++.
4389         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4390         (needs_quoting): Return `int'.
4391         (quote_arg): Add proper casts to malloc and realloc.
4392         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4393         various MS Windows environments.
4394         (spawnvp_wrapper): Add proper cast to malloc.
4396         * src/preproc/eqn/box.h: Remove redundant declarations of
4397         `make_script_box', `make_mark_box' and `make_lineup_box'.
4398         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4399         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4400         variable renamings.
4402         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4403         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4404         (dx, dy): Renamed functions to...
4405         (deltax, deltay): This.
4406         * src/preproc/grn/main.cpp: Some local variable renamings.
4407         (deffont): Add `const'.
4408         (initpic, conv): Use cast for string constant.
4410         * src/preproc/html/pre-html.cpp: Some local variable renamings.
4411         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4412         (char_buffer::run_output_filter): Second argument is unused.
4413         * src/preproc/html/pushback.cpp: Some local variable renamings.
4415         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4416         * src/preproc/pic/object.cpp: Some local variable renamings.
4418         * src/preproc/refer/label.y (lookup_label): Remove redundant
4419         declaration of local variable.
4421         * src/preproc/soelim.cpp: Remove redundant declaration of
4422         `interpret_lf_args'.
4424         * src/preproc/tbl/main.cpp: Some local variable renamings.
4426         * src/roff/groff/groff.cpp (main): Use cast for string constant.
4427         * src/roff/groff/pipeline.c: Enclose declarations of `error',
4428         `c_fatal', and `i_to_a' with `extern "C"' for C++.
4429         Don't use C++-style comments.
4431         * src/roff/troff/env.h: Remove redundant declaration of `title'.
4432         * src/roff/troff/node.h, src/roff/troff/env.cpp,
4433         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4434         renamings.
4435         * src/roff/troff/div.h: Remove redundant declaration of
4436         `end_diversions'.
4437         * src/roff/troff/troff.h: Remove redundant declaration of
4438         `cleanup_and_exit'
4439         * src/roff/troff/input.cpp: Remove redundant declaration of
4440         `handle_first_page_transition' and `process_input_stack'.
4442         * src/utils/hpftodit.cpp: Some local variable renamings.
4444         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4445         for C++.
4446         Don't define RETSIGTYPE.
4447         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4449         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4450         (error): Use `const' in argument.
4451         (main): Remove redundant declaration of `optind'.
4452         Move declaration of `Version_string' to top-level.
4454         * PROBLEMS: Document difficulties compiling signal.c if a C++
4455         compiler is used for C.
4457 2004-04-07  Werner LEMBERG  <wl@gnu.org>
4459         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4461 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
4463         Make scripts like nroff.sh and neqn.sh portable across various
4464         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4465         non-POSIX path separators.  The idea is to extend those scripts to
4466         decide at run-time (of the script) which path separator to use.
4468         * arch/misc/Makefile.sub: New file.
4469         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4470         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4471         a proper definition of the variable `GROFF_RUNTIME'.
4473         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4474         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4475         (PROGDEPDIRS): New variable.
4476         `FORCE' it.
4477         (PROGDIRS): Add PROGDEPDIRS.
4479         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4480         Don't substitute @SEP@ and @BINDIR@.
4481         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4482         (PATH): Use GROFF_RUNTIME.
4484         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4485         Don't substitute @SEP@ and @BINDIR@.
4486         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4487         (PATH): Use GROFF_RUNTIME.
4489 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4491         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4492         Cygwin which doesn't handle stderr correctly.
4494 2004-03-08  Werner LEMBERG  <wl@gnu.org>
4496         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4497         against empty argument.  Problem reported by <cgd@broadcom.com>.
4499 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4501         * Makefile.in (SEP): Replaced with...
4502         (RT_SEP, SH_SEP): Separators for the target platform's native path
4503         separator and the build environment, respectively.
4504         (fontpath, tmacpath): Use RT_SEP.
4505         (MDEFINES): Updated.
4507         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4508         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4509         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4511 2004-03-05  Werner LEMBERG  <wl@gnu.org>
4513         * font/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
4514         reduce alignment problems with newer printers which use built-in
4515         TrueType fonts (instead of the older Intellifonts).  The ideal
4516         solution is to provide a second set of groff metric files, but this
4517         is extremely time-consuming to produce, given that HP's metric
4518         files are very rudimentary.
4520 2004-03-01  Werner LEMBERG  <wl@gnu.org>
4522         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4523         s/operand/argument/ in error message.
4525 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4527         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4528         is in use.
4530 2004-03-01  Antti Kantee  <pooka@netbsd.org>
4532         * tmac/s.tmac (XE): Fix error message.
4534 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
4536         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4537         New macros.
4539         * src/roff/groff/pipeline.c: Declare strcasecmp.
4540         (run_pipeline) [_WIN32]: Use function name variants which don't
4541         start with `_'.
4542         Fix stream handling.
4544 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
4546         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4547         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4548         for platforms which use the native Win32 runtime libraries.
4549         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4551         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4552         QUOTE_ARG_REALLOC_ERROR): Fix string.
4554         * src/preproc/html/pre-html.cpp: Remove declaration of
4555         `spawnvp_wrapper'.
4556         Don't use __MINGW32__.
4557         s/DEBUG_FILE/DEBUG_FILE_DIR/.
4558         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
4559         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
4560         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
4561         calls to `set_redirection' and `WAIT'.
4562         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
4563         Fix calls to `set_redirection' and `save_and_redirect'.
4564         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
4565         to `set_redirection' and `save_and_redirect'.
4566         (usage): Fix message.
4567         (makeTempFiles, main): Use `DEBUG_FILE'.
4569 2004-02-21  Werner LEMBERG  <wl@gnu.org>
4571         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
4573 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
4575         * src/libs/libgroff/quotearg.c: New file, providing proper argument
4576         quoting for MSVC's spawn* and exec* functions.
4577         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
4578         spawnvp with proper quoting for MSVC.
4580         * src/libs/libgroff/assert.cpp (program_name),
4581         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
4582         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
4584         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
4586         * src/include/error.h (program_name): Declare as `extern "C"'.
4587         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
4589 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
4591         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
4592         spawnvp_wrapper.
4593         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
4595 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
4597         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4598         variable.
4599         (sbasename) [__MSDOS__ || ...]: New function.
4600         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
4601         generic algorithm.
4602         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
4603         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
4604         of XXX.
4605         Use STDOUT_FILENO instead of hardcoded file handle.
4606         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
4608 2004-02-19  Werner LEMBERG  <wl@gnu.org>
4610         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
4611         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
4613 2004-02-18  Werner LEMBERG  <wl@gnu.org>
4615         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
4616         new font and mapping files.
4618 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
4619             Keith Marshall  <keith.d.marshall@ntlworld.com>
4621         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
4622         an input pipe.  This is needed for the MSVC compiler to make troff's
4623         `-o' option work.
4625         * src/roff/troff/div.cpp: Include nonposix.h.
4626         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
4628 2004-02-17  Werner LEMBERG  <wl@gnu.org>
4630         * font/devlj4/generate/special.awk: New script.
4631         * font/devlj4/generate/Makefile (S): Use special.awk.
4632         * font/devlj4/*: Regenerated, including the following new files:
4633         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
4634         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
4635         * NEWS: Document new lj4 fonts and revised hpftodit.
4637 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
4639         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
4641 2004-01-25  Werner LEMBERG  <wl@gnu.org>
4643         * src/libs/libgroff/progname.cpp: Replaced with...
4644         * src/libs/libgroff/progname.c: New file.
4645         * src/libs/libgroff/Makefile.sub: Updated accordingly.
4647 2004-01-17  Werner LEMBERG  <wl@gnu.org>
4649         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
4651 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
4653         * font/devlj4/generate/wingdings.map,
4654         font/devlj4/generate/symbol.map: Include unnamed glyphs.
4655         Use groff glyph names where possible.
4656         * src/devices/grolj4/lj4_font.man: Minor updates.
4658 2004-01-13  Werner LEMBERG  <wl@gnu.org>
4660         * tmac/www.tmac (DC): Handle TTY devices.
4662         * doc/webpage.ms: Document viewCVS from ffii.org.
4663         * NEWS, README: Updated.
4665         * src/roff/groff/groff.man: Mention lj4_font man page.
4667         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
4668         variables.
4669         (FONTS): Add SYMBOL and WINGDINGS.
4670         (SYMBOL, WINGDINGS): New targets.
4672 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
4674         * src/devices/grolj4/lj4_font.man: New man page.
4675         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
4676         * src/devices/grolj4.man: Mention lj4_font man page.
4678         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
4679         * src/utils/hpftodit/hpftodit.man: Document it.
4680         (CW): New macro.
4681         Remove details about fonts (which are now in lj4_font.man).
4683         * font/devlj4/generate/symbol.map,
4684         font/devlj4/generate/wingdings.map: New files.
4686 2004-01-12  Werner LEMBERG  <wl@gnu.org>
4688         * README: Mention ffii's viewcvs access.
4690 2004-01-09  Werner LEMBERG  <wl@gnu.org>
4692         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
4694 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
4696         Revert most of the change from 2004-01-03 to better control used
4697         symbol sets.
4699         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
4700         (text_symbol_sets, special_symbol_sets): New arrays.
4701         (symbol_set_table): New global variable.
4702         (read_symbol_sets): Use search order given in the text_symbol_sets
4703         and special_symbol_sets arrays.  If command line flag -a is not
4704         given, search both arrays.
4705         (output_charset): Require x_height_tag only for command line flag -i.
4707 2004-01-06  Werner LEMBERG  <wl@gnu.org>
4709         Implement string-valued registers \n[.m] and \n[.M] to return the
4710         name of the current drawing and background color, respectively.
4712         * src/roff/troff/symbol.h: Moved to...
4713         * src/include/symbol.h: Here.
4714         Small fixes to make it work outside of the `troff' directory.
4715         * src/roff/troff/symbol.cpp: Moved to...
4716         * src/libs/libgroff/symbol.cpp: Here.
4717         Small fixes to make it work outside of the `troff' directory.
4719         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
4720         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
4721         Updated.
4723         * src/include/color.h: Include symbol.h.
4724         (color): Add new field `nm'.
4725         * src/libs/libgroff/color.cpp (color::color): Updated.
4727         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
4728         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
4729         src/roff/troff/reg.cpp: Don't include symbol.h.
4731         * src/roff/troff/env.cpp: Don't include symbol.h.
4732         (environment::get_glyph_color_string,
4733         environment_get_fill_color_string): New member functions.
4734         (init_env_requests): Handle `.m' and `.M' registers.
4735         * src/roff/troff/input.cpp: Don't include symbol.h.
4736         (default_symbol): Moved to symbol.cpp/symbol.h.
4737         (do_glyph_color, do_fill_color, define_color): Pass symbol name
4738         to color constructor.
4739         * src/roff/troff/env.h: Updated.
4741         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4742         Document new registers.
4744 2004-01-05  Werner LEMBERG  <wl@gnu.org>
4746         * src/roff/troff/node.cpp (space_node::get_breakpoints,
4747         space_node::nbreaks): Protect against zero `next' field.
4749 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
4751         In hpftodit, use the symbol sets offered in the TFM.
4753         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
4754         (symbol_set, text_symbol_sets, special_symbol_sets,
4755         symbol_set_table): Removed.
4756         (get_printcode): Removed.
4757         (read_symbol_sets): Initialize `symbol_set' field with
4758         `NO_SYMBOL_SET'.
4759         Simplify code to just use the `kind' value.
4760         (output_charset): Improve output formatting.
4761         (dump_symbols): Simplified.
4763 2004-01-02  Werner LEMBERG  <wl@gnu.org>
4765         * font/devlj4/generate/text.map: Add more MSL numbers.
4767 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
4769         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
4770         (text_symbol_sets): Add more symbol sets.
4771         (debug_flag): New static variable (moved from `main').
4772         (get_printcode, show_symset): New functions.
4773         (main): Remove `debug_flag'.
4774         (output_charset): Use `show_symset'.
4775         (dump_symbols):  Use `show_symset'.
4776         Print symsets for all glyphs.
4777         (read_map): Actually call `unicode_to_ucode_make' but this time
4778         correctly.
4780 2004-01-01  Werner LEMBERG  <wl@gnu.org>
4782         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
4783         Fix placement of comments.
4785 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
4787         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
4788         option `-d' is given.
4789         (output_charset): Improve warning messages to give more information.
4790         (dump_symbols): Make information more precise.
4791         (usage): Updated.
4792         (read_map): Don't call unicode_to_ucode_name; the glyph names must
4793         appear as-is and shouldn't be decomposed.
4795 2003-12-31  Werner LEMBERG  <wl@gnu.org>
4797         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
4798         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
4799         (FONTS): Add TrueType font families Arial and Times New Roman.
4800         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
4801         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
4802         `fl'.
4804 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
4806         * test-groff.in (SEP): Quote value.
4807         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
4808         `tem' to `char*' to avoid deallocation of a pointer to a constant
4809         object which some compilers don't like.
4811 2003-12-31  Werner LEMBERG  <wl@gnu.org>
4813         * font/devlj4/generate (text.map, special.map): Rewritten to work
4814         with the new hpftodit version.
4816 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
4818         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
4819         set and 8bit character code for all glyphs also.
4821 2003-12-30  Werner LEMBERG  <wl@gnu.org>
4823         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
4825 2003-12-29  Werner LEMBERG  <wl@gnu.org>
4827         More fixes for MSVC compiler.
4829         * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
4831         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
4832         STDERR_FILENO) [_MSC_VER]: Define conditionally.
4833         (getpid) [_MSC_VER]: Remove.
4834         Include direct.h and process.h conditionally.
4836         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
4837         parentheses for a_delete.
4839         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
4841         * test-groff: Replaced with...
4842         * test-groff.in: This new template to handle path separator
4843         properly.
4845         * configure.ac: Check for direct.h and process.h.
4846         Generate test-groff script.
4847         * configure, src/include/config.hin: Regenerated.
4849 2003-12-28  Werner LEMBERG  <wl@gnu.org>
4851         Add integral extension glyph.
4852         Add new option `-x' to afmtodit to suppress use of built-in AGL.
4854         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
4856         * font/devps/generate/textmap: Provide entry for `integralex' to
4857         override (old) PUA value of the AGL.
4858         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
4859         * font/devps/*: Regenerated.
4861         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
4862         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
4864 2003-12-27  Werner LEMBERG  <wl@gnu.org>
4866         Add forgotten `coproduct' symbol (already available for DVI).
4868         * font/devhtml/R.proto, font/devps/generate/textmap,
4869         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
4870         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
4871         U+2210 (\[coproduct]).
4873 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
4875         hpftodit has been extended to handle TrueType metric files and
4876         more glyphs.  See hpftodit.man for more details.
4878         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
4879         ctype.h, and unicode.h.
4880         s/msl/charcode/ everywhere since we now handle Unicode values also.
4881         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
4882         Use it where appropriate.
4883         (MULTIPLIER): Replaced with...
4884         (multiplier): New global static variable.
4885         (scale): Updated.
4886         (tag_type): Add more TFM tags.
4887         (tag_name): New array.
4888         (ENUM_TYPE, FLOAT_TYPE): Removed.
4889         (BYTE_TYPE): New value assigned.
4890         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
4891         (text_symbol_sets, special_symbol_sets): Extended to cover more
4892         sets.
4893         (check_type): Add return value.
4894         (check_units): Add parameters to get ppi and upem values.
4895         Handle TrueType TFM data.
4896         (output_font_name): New function.
4897         (output_charset): Add parameter to handle TFM type.
4898         Handle TrueType TFMs also.
4899         (em_fract): New macro.
4900         (dump_tags): Be much more verbose and handle more tags.
4901         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
4902         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
4903         functions.
4904         (read_map): Add parameter to handle TFM type.
4905         Handle both MSL and Unicode mappings.
4906         (main): Add two new command line options `-a' and `-q'.
4907         Updated to make use of new functions.
4908         (usage): Updated.
4910         * src/utils/hpftodit/hpuni.cpp: New file.
4912         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
4913         Updated.
4915 2003-12-25  Werner LEMBERG  <wl@gnu.org>
4917         * src/include/nonposix.h (read) [_MSC_VER]: Define.
4919 2003-12-24  Werner LEMBERG  <wl@gnu.org>
4921         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
4922         by Michail Vidiassov <master@iaas.msu.ru>.
4924 2003-12-20  Werner LEMBERG  <wl@gnu.org>
4926         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
4927         and u0049_0307.
4928         Add missing latin-2 glyphs.
4929         * font/devutf8/R.proto: Add missing latin-2 glyphs.
4931         * tmac/troffrc: Load `composite.tmac' earlier.
4933         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
4934         u00{53,73}_0327, and u0049_0307.
4935         * tmac/X.tmac: Add u00{47,67}_0306.
4936         * tmac/tty-char.tmac: Use composite glyph names for readability.
4938         * NEWS: Updated.
4940         * src/include/unicode.h: Remove `extern' keywords.
4942 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
4944         * tmac/latin5.tmac: New file.
4946 2003-12-19  Werner LEMBERG  <wl@gnu.org>
4948         Add some glyphs needed for Turkish.
4950         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
4951         and u0049_0307.
4953         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
4954         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
4955         u00{53,73}_0327, and u0049_0307.
4957 2003-12-18  Werner LEMBERG  <wl@gnu.org>
4959         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
4960         from 2001-10-04.
4961         Remove trailing zeros.
4963 2003-12-17  Werner LEMBERG  <wl@gnu.org>
4965         Make \? transparent to end-of-sentence recognition.
4967         * src/roff/troff/input.cc (non_interpreted_node): Add
4968         `ends_sentence' member function.
4970 2003-12-16  Werner LEMBERG  <wl@gnu.org>
4972         * doc/groff.texinfo: Document `dt' request correctly.
4973         Other minor typographical improvements.
4975 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
4977         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
4979 2003-12-10  Richard Stallman  <rms@gnu.org>
4981         * LICENSE: Better wording.
4983 2003-12-09  Werner LEMBERG  <wl@gnu.org>
4985         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
4986         * configure, NEWS: Updated.
4988 2003-12-08  Werner LEMBERG  <wl@gnu.org>
4990         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
4992 2003-12-07  Bernd Warken  <bwarken@mayn.de>
4994         * LICENSE: Updated.
4996 2003-12-07  Werner LEMBERG  <wl@gnu.org>
4998         * INSTALL: Improved.
5000 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
5002         Use path separator character of target platform for compiled-in
5003         default paths.
5005         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5006         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5007         * configure: Regenerated.
5008         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5010 2003-12-05  Werner LEMBERG  <wl@gnu.org>
5012         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5013         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5015 2003-12-04  Bernd Warken  <bwarken@mayn.de>
5017         * LICENSE: New file.
5019 2003-12-03  Werner LEMBERG  <wl@gnu.org>
5021         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5022         ligatures present in AFM files since groff currently only
5023         understands some standard ligatures and nothing else.
5025 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
5027         * src/roff/groff/groff.cpp (main): Don't run the spooler if
5028         option -v is given.
5030         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5031         messages.
5032         Close stdout copy.
5033         Don't use Unix wait flags.
5035 2003-12-02  Werner LEMBERG  <wl@gnu.org>
5037         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5038         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5039         src/roff/troff/uniuni.cpp: Moved to...
5040         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5041         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5042         src/libs/libgroff/uniuni.cpp: Here.
5044         * src/include/Makefile.sub.old (HDRS),
5045         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5046         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5048 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
5050         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5051         `DEBUG_FILE'.
5052         Updated all users.
5054 2003-12-01  Werner LEMBERG  <wl@gnu.org>
5056         * groff.texinfo: Document special behaviour of `.vs 0'.
5057         Improve documentation of `cflags' request.
5058         * NEWS: Updated.
5060 2003-11-29  Werner LEMBERG  <wl@gnu.org>
5062         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5063         * font/devlj4/CORONET: Regenerated.
5065 2003-11-24  Werner LEMBERG  <wl@gnu.org>
5067         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5068         if processing hyphenation patterns in traditional mode.
5069         Improve error messages.
5071 2003-11-20  Werner LEMBERG  <wl@gnu.org>
5073         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5074         troff_output_file::put_char): Fix type of local variable `c'.
5076 2003-11-19  Werner LEMBERG  <wl@gnu.org>
5078         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
5079         declarations.
5080         (i_to_a): Removed.  libgroff already provides this function.
5081         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5083 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
5085         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5086         HAVE_DECL_SYS_LIST.
5088 2003-11-17  Werner LEMBERG  <wl@gnu.org>
5090         * COPYING: Use correct version.
5092 2003-11-11  Werner LEMBERG  <wl@gnu.org>
5094         LynxOS 4.0.0 doesn't declare vfprintf.
5096         * configure.ac: Check for vfprintf.
5097         * configure: Regenerated.
5098         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5099         * src/include/config.hin: Regenerated.
5101 2003-11-10  Werner LEMBERG  <wl@gnu.org>
5103         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5105         * configure.ac: Check for vsnprintf.
5106         * configure: Regenerated.
5107         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5108         `HAVE_VSNPRINTF'.
5109         * src/include/config.hin: Regenerated.
5111 2003-11-09  Werner LEMBERG  <wl@gnu.org>
5113         * aclocal.m4: Updated syntax to autoconf 2.59.
5114         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5115         Don't check for gsos2.
5116         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
5117         working abs_top_srcdir and abs_top_builddir.
5119         * configure.ac: Updated syntax to autoconf 2.59.
5120         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5121         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5122         * configure: Regenerated.
5124         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5125         s/@groff_top_builddir@/@abs_top_builddir@/.
5127         * src/roff/groff/pipeline.c (xstrsignal):
5128         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5130 2003-11-07  Werner LEMBERG  <wl@gnu.org>
5132         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5133         make start angle smaller than end angle to circumvent a bug in tpic
5134         handling of some versions of dvipdfm (and dvipdfmx).
5136 2003-10-30  Werner LEMBERG  <wl@gnu.org>
5138         * src/devices/grops/grops.man: Improve section on creating EPS.
5140 2003-10-29  Werner LEMBERG  <wl@gnu.org>
5142         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5143         -P-pletter).
5145 2003-10-28  Werner LEMBERG  <wl@gnu.org>
5147         * doc/groff.texinfo: Fix documentation of `.if'.
5149 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
5151         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5152         the form `uniXXXX' also.
5154 2003-10-27  Werner LEMBERG  <wl@gnu.org>
5156         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5157         contrib/pic2graph/pic2graph.sh: Implement secure management of
5158         temporary files.
5159         Pass `-P-pletter' to groff to avoid data outside of the converted
5160         area -- some versions of `convert' (for example 5.3.8) don't check
5161         the bounding box of the image but always use a fixed image size
5162         (letter paper format).
5163         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5164         contrib/pic2graph/pic2graph.man: Updated.
5166         * src/roff/groff/groff.man: Document $TMP and $TEMP.
5168 2003-10-26  Werner LEMBERG  <wl@gnu.org>
5170         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5171         troff_output::simple_ellipse, troff_output::simple_arc,
5172         troff_output::simple_line, troff_output::simple_spline,
5173         troff_output::simple_polygon): Insert a space before arguments.
5174         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5175         latter doesn't produce a node, so the following `.sp -1' would do
5176         the wrong thing.
5177         Don't emit `.sp -1' after \M.  This also doesn't produce a token
5178         (and we don't have to care about compatibility mode).
5179         (troff_output::set_color, troff_output::reset_color): Don't emit
5180         `.sp -1' after \M and \m.
5182         * src/roff/troff/input.cpp (old_have_input): New global variable.
5183         (input_stack::get): Handle `old_have_input'.
5184         (process_input_stack) <token::TOKEN_NEWLINE>: Call
5185         `trapping_blank_line' depending on `old_have_input', not
5186         `have_input'.
5188 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
5190         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5191         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5192         default directory names for temporary files.
5193         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5195         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5196         [__MSDOS__] (run_pipeline): Honour environment variables.
5197         Don't use `tmpnam' but `tempnam' to work around messy
5198         implementation.
5200         * README.MinGW: New file.
5202 2003-10-16  Werner LEMBERG  <wl@gnu.org>
5204         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5205         `(*t)->next' without testing validity of `*t'.
5206         (usage): Make it more readable.
5208 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
5210         Make html device run under both MS-DOS and Win32.
5212         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5213         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5214         spawn or fork+exec has to be used, and whether parent must sleep
5215         until the child process terminates.  Used in
5216         `char_buffer::run_output_filter'.
5217         (copyofstdoutfd): Removed.
5218         (char_buffer): Replace `write_file_html' and `write_file_troff'
5219         member functions with `emit_troff_output' and `run_output_filter'.
5220         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5221         macros.
5222         (replaceFd): Replaced with...
5223         (set_redirection): New auxiliary function.
5224         (waitForChild): Replaced with...
5225         (save_and_redirect): New auxiliary function for.
5227         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5228         functions.
5230 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
5232         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5233         (GROFF_LIBC): New function.
5234         * configure.ac: Call GROFF_LIBC.
5235         Check for `kill'.
5236         * configure: Regenerated.
5238         * src/include/lib.h: Handle __MINGW32__.
5239         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5240         Add macro for `pipe'.
5241         Define P_tmpdir.
5243         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5244         correctly.
5246         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5247         Implement.
5249 2003-10-12  Werner LEMBERG  <wl@gnu.org>
5251         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5252         src/roff/troff/input.cc (usage): Updated.
5254         * NEWS, doc/groff.texinfo: Updated.
5256 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
5258         * src/libs/libgroff/searchpath.cpp
5259         (search_path::open_file_cautious): New function which also handles
5260         `-' as stdin and stdout depending on the access mode.
5261         * src/include/searchpath.h (search_path): Updated.
5263         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5264         * src/devices/grops/ps.h: Include `searchpath.h'.
5265         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5266         Open resource file with `include_search_path.open_file_cautious'.
5267         * src/devices/grops/grops.man: Document new `-I' switch.
5269         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5270         (main), src/devices/grolj4/lj4.cpp (main),
5271         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5273         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5274         Replaced with...
5275         (include_search_path): New global variable.
5276         (include_path_append): Removed.
5277         (main): Use `include_search_path.command_line_dir' to handle `-I'.
5278         (do_file): Simplify, using new
5279         `include_search_path.open_file_cautious'.
5281         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5282         parameter.
5283         (main): Pass arguments to `-I' to both troff and devices.
5284         Improve handling of `-V'.
5285         * src/roff/groff/groff.man: Document changes to -I and -V.
5287         * src/roff/troff/input.cpp (include_search_path): New global
5288         variable.
5289         (next_file, source, ps_bbox_request, transparent_file,
5290         process_input_file): Use new
5291         `include_search_path.open_file_cautious'.
5292         (main) Handle `-I' switch.
5293         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5294         Use new `include_search_path.open_file_cautious'.
5295         * src/roff/troff/node.h: New extern symbol `include_search_path'.
5296         * src/roff/troff/troff.man: Document new `-I' switch.
5298 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
5300         Support multiple calls of .Lb in LIBRARY section.
5302         * tmac/doc-common (doc-in-library-section): New register.
5303         (doc-section-library): New string.
5304         (Sh): Set `doc-in-library-section'.
5305         (Rd): Updated.
5306         * tmac/doc-syms (Lb): Insert breaks before and after arguments
5307         if in LIBRARY section.
5308         * tmac/doc.tmac (doc-save-global-vars): Updated.
5309         * NEWS, tmac/groff_mdoc.man: Updated.
5311 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
5313         * tmac/doc-common (doc-default-operating-system): New variable.
5314         (Os): Use it.
5316 2003-09-08  Werner LEMBERG  <wl@gnu.org>
5318         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5320 2003-08-31  Werner LEMBERG  <wl@gnu.org>
5322         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5323         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5324         $(DEVFILES) are not empty.
5325         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5327 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
5329         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
5330         insert SORT_SEP.  With certain combinations of sort specifications,
5331         refer sorted entries in the wrong order.  In particular, entries
5332         with a missing field should be be sorted before all entries that
5333         have that field, before refer looks to the next field.
5335 2003-08-23  Werner LEMBERG  <wl@gnu.org>
5337         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5338         g++ linker is used.  Reported by Mark J. Reed
5339         <mark.reed@turner.com>.
5341 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5343         Add key character `x' to tbl which makes tbl call a user-defined
5344         macro on a table cell.
5346         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5347         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5348         `set_modifier' after printing the compatibility request.
5349         (set_modifier): Print call to `m->macro' if not empty.
5350         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5351         `macro'.
5352         (process_format): Implement cases `x' and `X'.
5353         * src/preproc/tbl/tbl.man, NEWS: Updated.
5355 2003-08-15  Werner LEMBERG  <wl@gnu.org>
5357         * doc/groff.texinfo: Minor fixes.
5359 2003-08-09  Werner LEMBERG  <wl@gnu.org>
5361         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5363 2003-08-07  Werner LEMBERG  <wl@gnu.org>
5365         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5366         argument list to nothing if there is no file to match.  Use `ls' as
5367         a protection, similar to autoconf.
5369         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5370         empty argument lists.
5372         * doc/groff.texinfo: Improve documentation how vertical spacing
5373         and line breaks interact.
5374         Other minor fixes.
5376         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5378 2003-08-03  Werner LEMBERG  <wl@gnu.org>
5380         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5381         EPS (using eps2eps or similar programs to compute the bounding box).
5383 2003-07-24  Werner LEMBERG  <wl@gnu.org>
5385         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5386         * doc/texinfo.tex: Updated from texinfo 4.6.
5387         * README.CVS: From now on we need texinfo 4.6.
5389 2003-07-23  Werner LEMBERG  <wl@gnu.org>
5391         Add requests `dei1' and `ami1' for completeness.
5393         * src/roff/troff/input.cc (calling_mode): Remove
5394         CALLING_DISABLE_COMP.
5395         (comp_mode): New enumeration.
5396         (do_define_string, define_string, define_nocomp_string,
5397         append_string, append_nocomp_string): Updated.
5398         (do_define_macro): Add third parameter.
5399         (define_macro, define_nocomp_macro, define_indirect_macro,
5400         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5401         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5402         functions.
5403         (ignore): Updated.
5404         (init_input_requests): Add `dei1' and `ami1'.
5406         * tmac/trace.tmac: Handle de1 and am1.
5407         (de): Improve tracing message.
5408         (am): Add missing `do'.
5409         (return): Use de1.
5411         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5412         Document new requests.
5414 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5416         Add option -G to .MPIMG to insert a gap between text and the image.
5418         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5419         www-finish-left-ll): Updated.
5420         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5421         (MPIMG): Make option -L and -R optional.
5422         Implement option -G.
5424 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
5426         * src/devices/grohtml/post-html.cpp
5427         (html_printer::do_file_components): Don't use `stdout' as lvalue
5428         since it can be a macro.
5430 2003-07-22  Werner LEMBERG  <wl@gnu.org>
5432         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5433         the corresponding test in aclocal.m4.
5435 2003-07-21  Werner LEMBERG  <wl@gnu.org>
5437         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5438         names but RGB values directly.  Otherwise pnmtopng depends on
5439         an external file `rgb.txt' which maps colour names to values.
5441 2003-07-20  Werner LEMBERG  <wl@gnu.org>
5443         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5444         * configure, src/include/config.hin: Regenerated.
5446         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5448 2003-07-19  Werner LEMBERG  <wl@gnu.org>
5450         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5452 2003-07-18  Werner LEMBERG  <wl@gnu.org>
5454         * *.man: Switch to non-compatibility mode temporarily if GNU
5455         syntax extensions are used in the particular man page.
5457         * PROBLEMS: Add solutions for SGR problems.
5459 2003-07-17  Werner LEMBERG  <wl@gnu.org>
5461         Don't ignore grotty's command line options if \X'tty: sgr ...' is
5462         used to change the drawing scheme.
5464         * src/devives/grotty/tty.cpp (bold_flag_option,
5465         underline_flag_option, italic_flag_option, reverse_flag_option,
5466         bold_underline_mode_option): New global variables.
5467         (update_options): New function.
5468         (tty_printer::special): Call update_options.
5469         (main): Don't set xxx_flag but xxx_flag_option, then call
5470         update_options.
5472 2003-07-14  Werner LEMBERG  <wl@gnu.org>
5474         Make grotty emit proper Unicode box drawing characters for -Tutf8.
5476         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5477         values.
5478         (hline_char, vline_char): New global variables.
5479         (tty_printer::tty_printer): Initialize them.
5480         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5481         horizontal and vertical lines.
5482         (crossings): New global array.
5483         (tty_printer::end_page): Use it to determine the proper crossing
5484         character for -Tutf8.
5486 2003-07-12  Werner LEMBERG  <wl@gnu.org>
5488         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5489         (HTMLDOCFILES): Revert to `pic.html'.
5490         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5492 2003-07-11  Werner LEMBERG  <wl@gnu.org>
5494         * doc/pic.ms: Improve documentation of absolute coordinates.
5495         Document absolute positioning of pictures.
5497         * NEWS: Add new pic capability.
5499 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
5501         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5502         Rewritten.
5504 2003-07-07  Werner LEMBERG  <wl@gnu.org>
5506         Implement support for dashed and dotted ellipses in pic.  Based on
5507         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5509         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5510         common_output::dashed_ellipse, common_output::dotted_ellipse): New
5511         functions.  Ellipse arcs are approximated with circle arcs.
5512         * src/preproc/pic/common.h (common_output): Updated.
5513         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5514         functions.
5515         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5517         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5519 2003-07-06  Werner LEMBERG  <wl@gnu.org>
5521         Make grotty work on platforms which have unsigned char as the
5522         default for char.  Based on a patch by Thomas Klausner
5523         <wiz@netbsd.org>.
5525         * src/devices/grotty/tty.cpp (schar): New typedef.
5526         Updated calls to declare_ptable and implement_ptable.
5527         (glyph): Use schar for back_color_idx and fore_color_idx.
5528         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5529         (tty_printer::tty_color, tty_printer::tty_printer,
5530         tty_printer::color_to_idx, tty_printer::put_color): Updated.
5532 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5534         * src/roff/nroff/nroff.sh: Add option -d for completeness.
5535         * src/roff/nroff/nroff.man: Updated.
5537 2003-07-05  Werner LEMBERG  <wl@gnu.org>
5539         * NEWS, tmac/groff_www.man: Updated.
5540         * doc/Makefile.sub: Updated.
5542 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
5544         Implement support for multiple HTML output files.
5546         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5547         -j command line option.
5549         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5550         global variables.
5551         (file): New fields `new_output_file', `require_links',
5552         `output_file_name'.
5553         (file::file): Updated.
5554         (files::set_file_name, files::set_links_required,
5555         files::are_links_required, files::is_new_output_file,
5556         files::file_name, files::next_file_name): New functions.
5557         (header_desc): New fields `no_of_level_one_headings',
5558         `header_filename'.
5559         (header_desc::header_desc): Updated.
5560         (header_desc::write_headings): Handle multiple files.
5561         (html_printer::write_header): Save file name in which header occurs.
5562         (html_printer::determine_header_level): Possibly split files on
5563         level one headings.
5564         (html_printer::do_links, html_printer::troff_tag): Updated.
5565         (html_printer::insert_split_file, html_printer::do_job_name,
5566         html_printer::emit_link, html_printer::write_navigation,
5567         html_printer::do_file_components): New functions.
5568         (html_printer::~html_printer): Handle multiple files.
5569         (main): Handle command line option `-j'.
5571         * src/devices/grohtml/grohtml.man: Updated.
5573         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
5574         which splits file.
5576         * tmac/www.tmac (JOBNAME): New macro.
5577         * tmac/s.tmac (SH-NO-TAG): New macro.
5578         (@SH): Call SH-NO-TAG.
5579         (@NH): Updated.
5581 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5583         * tmac/groff_mdoc.man: Improve documentation of punctuation
5584         characters.
5586 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
5588         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
5590 2003-07-03  Werner LEMBERG  <wl@gnu.org>
5592         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
5594 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
5596         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
5597         after `/*' and `*/'.
5598         Fix spacing.
5599         (Fn, Fo): Reduce indentation in synopsis.
5601         * tmac/doc-common (doc-check-depth): New macro.
5602         (doc-end-macro, Sh, Ss): Use it.
5603         (Cd): Fix behaviour in synopsis.
5604         (In): Make it parsed and callable.
5605         If not in the synopsis, represent the C header file enclosed in
5606         angle brackets.
5607         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
5608         Use minus, not hyphen.
5610         * tmac/groff_mdoc.man: Updated.
5612 2003-07-01  Werner LEMBERG  <wl@gnu.org>
5614         Integrated grap2graph, contributed by Eric S. Raymond.
5616         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
5617         New files.
5618         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
5619         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
5621 2003-07-01  Colin Watson  <cjwatson@debian.org>
5623         * src/xditview/*.c: Add prototypes, fix return types, add includes.
5624         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
5626 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
5628         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
5630 2003-06-31  Werner LEMBERG  <wl@gnu.org>
5632         * doc/Makefile.sub (CLEANADD): Remove all files created by
5633         running `make groff.{pdf,dvi}'.
5635         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
5636         src/xditview also.
5638 2003-06-30  Werner LEMBERG  <wl@gnu.org>
5640         * Makefile.in (SHELL): Define as @SHELL@.
5641         (mkinstalldirs): Use $(SHELL).
5642         (MDEFINES): Add $(SHELL).
5643         * Makefile.comm (SHELL): Removed.
5645 2003-06-29  Werner LEMBERG  <wl@gnu.org>
5647         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
5648         The X11 documentation files use them.
5649         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
5651 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
5653         * tmac/e.tmac (@C): Handle .ad also.
5655 2003-06-12  Werner LEMBERG  <wl@gnu.org>
5657         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
5659         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
5660         Assign `n' even here.  It is possible to construct a node
5661         immediately following an escape character:
5663           .di xx
5664           \?\\\?a
5665           .br
5666           .di
5667           .xx
5669 2003-06-10  Werner LEMBERG  <wl@gnu.org>
5671         * README.WIN32: Removed.
5672         * MANIFEST: Updated.
5674 2003-06-07  Werner LEMBERG  <wl@gnu.org>
5676         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
5678 2003-06-05  Werner LEMBERG  <wl@gnu.org>
5680         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
5681         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
5683 2003-06-03  Werner LEMBERG  <wl@gnu.org>
5685         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
5686         is done by the calling function.
5688 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
5690         * tmac/X.tmac: Fix definition of `em'.
5692 2003-05-22  Werner LEMBERG  <wl@gnu.org>
5694         * src/roff/troff/input.cc (return_macro_request): Fix detection of
5695         argument.
5697 2003-05-18  Werner LEMBERG  <wl@gnu.org>
5699         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
5700         to make items work which consist only of a tag.
5702 2003-05-17  Werner LEMBERG  <wl@gnu.org>
5704         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
5705         aren't stretched in a tag (this can fail with unformatted boxes).
5706         Instead, insert a break and go back one line.
5708 2003-05-16  Werner LEMBERG  <wl@gnu.org>
5710         * src/roff/troff/input.cc (return_macro_request): If called with
5711         argument pop macro twice.  We need this to trace `return'.
5713         * tmac/trace.tmac: Handle `return'.
5714         Fix typos.
5716         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5717         Document.
5719 2003-05-15  Larry Kollar  <kollar@alltel.net>
5721         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
5722         registers `FPS', `FVS', and `FPD'.
5724 2003-05-15  Werner LEMBERG  <wl@gnu.org>
5726         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
5727         correctly.
5729 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
5731         * tmac/groff_mdoc.man: Slight improvements.
5733 2003-05-03  Werner LEMBERG  <wl@gnu.org>
5735         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
5736         `doc-header-space' after header line if register `cR' is set.
5738 2003-05-02  Werner LEMBERG  <wl@gnu.org>
5740         * TODO: Updated.
5742 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
5744         * tmac/doc-common (Nd): Use \[em].
5746 2003-05-01  Werner LEMBERG  <wl@gnu.org>
5748         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
5749         doc-footer-space): Initialize to 0.5i.
5750         (doc-setup-page-layout): Don't set doc-header-space and
5751         doc-footer-space.
5753 2003-04-30  Werner LEMBERG  <wl@gnu.org>
5755         * REVISION: Set to 1.
5757         * doc/pic.ms: Document possible problems with `figname'.
5759 2003-04-29  Werner LEMBERG  <wl@gnu.org>
5761 Version 1.19 released
5762 =====================
5764         * VERSION: Set to 1.19.
5765         * REVISION: Set to 0.
5766         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
5768         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5769         Define charset as `US-ASCII' in html output.
5771         * tmac/www.tmac (ULE): Add missing scaling indicator.
5773         * win32-diffs: Removed.
5775 2003-04-28  Werner LEMBERG  <wl@gnu.org>
5777         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
5778         `.da' and `.boxa'.
5779         Document how to insert discardable whitespace with `.ss'.
5781 2003-04-27  Werner LEMBERG  <wl@gnu.org>
5783         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
5784         work with plain TeX also.
5786         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
5788 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
5790         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5791         Use a loose DTD.
5793 2003-04-24  Werner LEMBERG  <wl@gnu.org>
5795         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
5796         vbox with positive height and zero depth if in TeX mode.
5798         * NEWS: Document glyph name changes for grodvi and grolj4.
5800 2003-04-23  Werner LEMBERG  <wl@gnu.org>
5802         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
5803         * doc/pic.ms: Fixed.
5805 2003-04-21  Werner LEMBERG  <wl@gnu.org>
5807         HP-UX 10.20 has `snprintf' but it isn't declared.
5809         * configure.ac: Add declaration test for snprintf.
5810         * configure: Regenerated.
5811         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
5812         * src/include/config.hin: Regenerated.
5814 2003-04-19  Werner LEMBERG  <wl@gnu.org>
5816         Add keyword `figname' to pic, specifying the name of the picture
5817         box in TeX mode.  Based on a patch from William J Poser
5818         <wjposer@unagi.cis.upenn.edu>.
5820         * src/preproc/pic/pic.y: New token `FIGNAME'.
5821         (macro_name): New rule of type <str>.
5822         (placeless_element): Handle `FIGNAME'.
5823         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
5824         * src/preproc/pic/main.cpp (graphname): New global variable.
5825         (do_picture): Initialize `graphname'.
5826         * src/preproc/pic/pic.h: Updated.
5827         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
5828         `graphname'.
5829         Simplify TeX code.
5830         (tex_output::text): Beautify output.
5831         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
5832         `shaded' and `outlined' unconditionally.
5833         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
5834         Minor improvements.
5836         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
5837         greater is necessary.
5839 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
5841         Add option -r to soelim to avoid emission of `.lf' lines.
5842         Add option -t to produces TeX comment lines instead of `.lf' lines.
5844         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
5845         and `tex_flag'.
5846         (usage): Updated.
5847         (main): Handle `-r' and `-t'.
5848         (set_location): Handle `raw_flag' and `tex_flag'.
5849         * src/preproc/soelim/soelim.man, NEWS: Updated.
5851 2003-04-17  Werner LEMBERG  <wl@gnu.org>
5853         * tmac/hyphenex.sh: Replaced with...
5854         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
5855         nightmares.
5857         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
5858         if --quiet is used for the configure script.
5859         * configure: Regenerated.
5861 2003-04-16  Werner LEMBERG  <wl@gnu.org>
5863         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
5864         Add `const' to second argument.
5865         (html_printer::add_table_end): Add `const' to argument.
5866         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
5867         `const' to arguments.
5868         * src/devices/grohtml/html-text.h: Updated.
5870         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
5871         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
5872         argument.
5874         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
5875         cast for integer constant.
5877         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
5878         (writeNbytes): Add `const' to first argument.
5879         (writeString): Add `const' to argument.
5880         (char_buffer::can_see): Add `const' to third argument.
5881         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
5882         `const' to argument.
5883         * src/preproc/html/pushback.h: Updated.
5885         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
5886         (include_path_append): Add `const' to argument.
5887         (do_file): Updated.
5889         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
5890         for `value'.
5891         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
5892         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
5893         for `value'.
5894         (unicode_decompose_init::unicode_decompose_init): Updated.
5895         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
5896         for `value'.
5897         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
5898         * src/roff/troff/input.cc (process_startup_file): Add `const' to
5899         argument.
5901         * tmac/hyphenex.sh: Make script more portable by using a here
5902         document.
5904 2003-04-15  Werner LEMBERG  <wl@gnu.org>
5906         Renamed all `*.cc' files to `*.cpp'.
5907         Updated all configuration files, makefiles, and documentation.
5909 2003-04-14  Werner LEMBERG  <wl@gnu.org>
5911         * tmac/hyphenex.sh: Slight improvements.
5913 2003-04-13  Werner LEMBERG  <wl@gnu.org>
5915         * font/devascii/R.proto, font/devcp1037/R.proto,
5916         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
5917         character slots with unnamed glyphs.
5919         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
5920         (an-first): New global variable.
5921         (an-header): Emit vertical space between multiple man pages.
5923 2003-04-11  Werner LEMBERG  <wl@gnu.org>
5925         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
5926         values.
5928 2003-04-10  Werner LEMBERG  <wl@gnu.org>
5930         * PROBLEMS: Revised.
5932 2003-04-10  Bernd Warken  <bwarken@mayn.de>
5934         * doc/webpage.ms: Improved.
5936 2003-04-09  Werner LEMBERG  <wl@gnu.org>
5938         Add register \n[.height] which returns the value of \H.
5939         Add register \n[.slant] which returns the value of \S.
5941         * src/roff/troff/env.cc (init_env_requests): Implement.
5942         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5943         Document.
5945 2003-04-08  Werner LEMBERG  <wl@gnu.org>
5947         * tmac/html.tmac: Move some of the data into html-end.tmac.
5948         Remove most of the character translations for eqn since html fonts
5949         now cover those characters.
5950         Load www.tmac.
5951         * tmac/html-end.tmac: New file.
5952         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
5953         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
5954         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
5956 2003-04-07  Werner LEMBERG  <wl@gnu.org>
5958         * man/groff_out.man: Document negative values of `N' if -Thtml is
5959         used.
5961 2003-04-06  Werner LEMBERG  <wl@gnu.org>
5963         * Makefile.comm (depend.temp): Check location of YTABC.
5965 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5967         * doc/Makefile.in (TROFFBIN): New variable for troff
5968         binary path.
5969         (GROFFBIN): New variable for groff binary path.
5970         (groff_bin_path): Rename to GROFF_BIN_PATH.
5971         (TROFF): Use TROFFBIN.
5972         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
5973         * doc/Makefile.sub (GROFFBIN): New variable for groff
5974         binary path.
5975         (groff_bin_path): Rename to GROFF_BIN_PATH.
5976         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
5978         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
5979         with INSTALL_SCRIPT.
5980         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
5981         * Makefile.dev (all): Depend on DEVSCRIPTS.
5982         (install_dev): Likewise.
5983         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
5984         scripts.
5985         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
5986         (DEVGENSCRIPTS): New variable to hold generated scripts.
5988 2003-04-05  Werner LEMBERG  <wl@gnu.org>
5990         * src/libs/libdriver/input.cc (IntArray::operator[],
5991         IntArray::get_data): Remove meaningless `const' in return value.
5993         * README.CVS: New file.
5995 2003-04-04  Werner LEMBERG  <wl@gnu.org>
5997         Check for stdint.h in C++, not in C.
5999         * aclocal.m4 (GROFF_STDINT_H): New function,
6000         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6001         AC_CHECK_HEADERS.
6002         * configure, src/include/config.hin: Regenerated.
6003         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6006         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
6007         with a negative value, representing the width of the unbreakable
6008         space (only for -Thtml).  grohtml then converts this back to
6009         &nbsp; and uses the value of N as its width.
6011         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6012         unbreakable_space_node::tprint): Emit `N-<width>'.
6013         * src/include/printer.h (printer::set_numbered_char): Make it
6014         virtual.
6015         Make members `font_table' and `nfonts' protected instead of private.
6016         * src/devices/grohtml/post-html.cc
6017         (html_printer::set_numbered_char): New member function.
6020         * src/libs/libgroff/maxfilename.cc:
6021         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6023         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6024         emit word marker.
6026 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
6028         * man/roff.man: Small fixes.
6030 2003-04-03  Werner LEMBERG  <wl@gnu.org>
6032         Make groff independent from locale's numeric settings.
6034         * configure.ac: Check for `setlocale'.
6035         * configure, src/include/config.hin: Regenerated.
6037         * src/include/lib.h: Handle HAVE_SETLOCALE.
6039         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6040         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6041         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6044         * doc/groff.texinfo: Change dir category to `Typesetting'.
6045         (Man font macros): Mention that there is no space between arguments
6046         of .BI and friends.
6048         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6049         (*printer::change_color, *printer::change_fill_color): Add missing
6050         `const'.
6052 2003-04-02  Werner LEMBERG  <wl@gnu.org>
6054         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6055         html_table::is_gap): Compute table widths after converting border
6056         positions to avoid rounding errors.
6058 2003-04-01  Werner LEMBERG  <wl@gnu.org>
6060         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6061         `space_emitted' properly.
6063 2003-03-31  Werner LEMBERG  <wl@gnu.org>
6065         * src/devices/grohtml/html-table.cc: Fix column width calculation.
6066         (html_table::set_linelength): Don't add 1.
6067         (html_table::add_indent): Don't subtract 1.
6069         * tmac/html.tmac: Set default page offset to zero.
6071 2003-03-30  Werner LEMBERG  <wl@gnu.org>
6073         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
6075         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6076         unbreakable_space_node::tprint): New functions.
6077         (troff_output_file): Make space_char_hmotion_mode::tprint and
6078         unbreakable_space_node::tprint to friends.
6079         * src/roff/troff/node.h: Updated.
6081         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
6082         in the HTML standard).
6084 2003-03-29  Werner LEMBERG  <wl@gnu.org>
6086         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6087         Otherwise, the following code
6089           .di xxx
6090           .ps 10
6091           a
6092           .br
6093           .di
6094           x\*[xxx]
6096         produces `x a' instead of `xa'.  This is a temporary fix, disabling
6097         font changes in diversions for -Thtml.
6099         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6100         `HTML-TAG'.
6101         (an-do-tag-html): Merge with ...
6102         (an-do-tag): This macro.
6103         Change code slightly to circumvent grohtml bug.
6104         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6106         * src/devices/grohtml/html-table.cc (html_table::emit_col,
6107         html_table::is_gap): Round `width' properly.
6109         * tmac/html.tmac: Provide some default layout parameters for
6110         grohtml.
6112         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6113         command.
6115 2003-03-28  Werner LEMBERG  <wl@gnu.org>
6117         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6119 2003-03-27  Werner LEMBERG  <wl@gnu.org>
6121         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6122         defined.
6124 2003-03-20  Werner LEMBERG  <wl@gnu.org>
6126         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6127         `.vs'.
6128         * doc/groff.texinfo: Updated.
6130 2003-03-19  Werner LEMBERG  <wl@gnu.org>
6132         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6133         TOKEN_END_TRAP>: Reset `have_input'.
6135 2003-03-18  Werner LEMBERG  <wl@gnu.org>
6137         * src/roff/groff/groff.man: Mention groff_trace man page.
6139 2003-03-16  Werner LEMBERG  <wl@gnu.org>
6141         * Makefile.in (LIBEXT): New variable to indicate the file extension
6142         of library files.  Computed heuristically from $(OBJEXT).
6143         (MDEFINES): Add $(LIBEXT).
6144         * Makefile.lib, Makefile.comm: Use it.
6146         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
6147         overlong lines into smaller chunks.
6148         (get_binary): New function.
6149         (main): Use them.
6150         * src/utils/pfbtops/pfbtops.man: Updated.
6152 2003-03-15  Colin Watson  <cjwatson@debian.org>
6154         * src/roff/groff/groff.man: Minor syntax fix.
6156 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
6158         * src/devices/grops/ps.cc (ps_printer::media_set,
6159         ps_printer::~ps_printer): Handle zero paper width and length.
6161 2003-03-13  Werner LEMBERG  <wl@gnu.org>
6163         Add options -p and -l to grodvi.
6165         * src/devices/grodvi/dvi.cc: Include paper.h.
6166         (landscape_flag, user_paper_length, user_paper_width): New global
6167         variables.
6168         (dvi_printer::begin_page): Emit `papersize' special.
6169         Set color after initialization of `cur_h' and `cur_v'.
6170         (main): Add options `-l' and `-p'.
6171         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6172         * src/devices/grodvi/grodvi.man, NEWS: Updated.
6174         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6176 2003-03-12  Werner LEMBERG  <wl@gnu.org>
6178         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6179         * man/groff_tmac.man: This man page.
6180         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6181         deprecated.
6183         * tmac/X.tmac: Don't load pspic.tmac.
6185 2003-03-11  Werner LEMBERG  <wl@gnu.org>
6187         Make variable `pr' local to libdriver/input.cc.  Based on a patch
6188         by Bernd Warken <bwarken@mayn.de>.
6190         * src/include/driver.h (pr): Removed.
6192         * src/libs/libdriver/input.cc (pr): New global variable.
6193         (do_file): Deallocate `pr'.
6194         * src/libs/libdriver/printer.cc (pr): Removed.
6196         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6197         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6198         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6199         (main): Don't delete `pr'.
6201 2003-03-10  Werner LEMBERG  <wl@gnu.org>
6203         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6204         * tmac/papersize.tmac: New file.
6205         * tmac/troffrc: Include `papersize.tmac'.
6206         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6207         * tmac/an-old.tmac: Set LT to LL by default.
6209         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6210         doc/groff.texinfo: Updated.
6212         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6213         bug which caused all odd iso papers to have wrong dimensions.
6215         * src/devices/grops/ps.cc (user_paper_width): New global variable.
6216         (main) <'p'>: Set `user_paper_width' also.
6217         (ps_printer::media_width, ps_printer::media_height): Use values
6218         given with option `-p'.
6220 2003-03-09  Werner LEMBERG  <wl@gnu.org>
6222         * src/include/nonposix.h: Provide default for SET_BINARY.
6224         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6225         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6226         unconditionally.
6228         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6229         (main): Treat \r\n as \n.
6231 2003-03-08  Werner LEMBERG  <wl@gnu.org>
6233         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6234         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6236 2003-03-07  Werner LEMBERG  <wl@gnu.org>
6238         Added support to access more than 256 glyphs in Type 1 fonts.
6240         * src/devices/grops/ps.cc (subencoding): New structure.
6241         (style): Add `sub' field.
6242         Updated all users.
6243         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6244         Add `set_subencoding', `get_subfont' and `encode_subfont' member
6245         functions.
6246         Updated all users.
6247         (ps_printer::set_char): Use `set_subencoding'.
6248         (make_subencoding_name): New function.
6249         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6250         (ps_printer::~ps_printer): Emit subencoding definitions.
6252         * src/devices/grops/psrm.cc (valid_input_table): New array to
6253         properly support EBCDIC.
6254         (white_space): Add `\f'.
6255         (ps_get_line): Change first argument to be of type `string &'.
6256         Updated all callers.
6257         This allows to get lines of arbitrary length.
6258         Use `valid_input_table'.
6259         Remove warning about non-conforming PS line length.  This seems
6260         not to be of great importance -- for example, dvips don't emit
6261         a warning either.
6262         (PS_LINE_MAX): Removed.
6263         (matches_comment): Change first argument to be of type `string &'.
6265         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6267         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6268         %AGL_to_unicode, %default_ligatures): New hash tables.
6269         Read all map entries.
6270         Add unencoded characters.
6271         Check for default ligatures if there are no `L' entries.
6272         Print all kern entries.
6273         Print all characters in charset.
6274         * src/utils/afmtodit/afmtodit.man: Updated.
6276         * font/devps/*: Regerated all fonts.
6278         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6279         of characters, just use `.trin'.  Otherwise the mapping depends
6280         on the font encoding.
6281         * tmac/ps.tmac: Add `fi' and `fl'.
6282         Improve `Fi' and `Fl'.
6283         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6284         * tmac/Xps.tmac: Fix `em'.
6286         * NEWS: Updated.
6288 2003-03-04  Werner LEMBERG  <wl@gnu.org>
6290         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6291         `have_input'.
6293 2003-03-03  Werner LEMBERG  <wl@gnu.org>
6295         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6297         * font/devps/generate/textmap: Remove entry `similarequal'.
6298         * font/devps/symbolmap: Updated.
6300 2003-03-02  Werner LEMBERG  <wl@gnu.org>
6302         * src/libs/libgroff/font.cc (font::load): Fix error message for
6303         bad character type.
6305         * src/devices/grops/grops.man: Improve documentation of the -b
6306         flag.
6308         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6309         `ascii' and `cp1047'.
6311 2003-03-01  Werner LEMBERG  <wl@gnu.org>
6313         Document composite glyphs and the `composite' request.
6315         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6317 2003-02-28  Werner LEMBERG  <wl@gnu.org>
6319         * font/devdvi/generate/ec.map: Add some more Unicode entities.
6320         * font/devdvi/*EC: Updated.
6322         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6323         * tmac/latin1 (latin1-tr): Undo any previous mapping.
6324         * tmac/troffrc: Load `composite.tmac'.
6325         * tmac/Makefile.sub (NORMALFILES): Updated.
6327         * doc/groff.texinfo (Input Encodings): New section.
6328         * NEWS: Updated.
6330 2003-02-27  Werner LEMBERG  <wl@gnu.org>
6332         * doc/texinfo.tex: New version 2003-02-11.06.
6334         * tmac/doc-common (Dt): Don't emit warning for unknown section.
6335         * tmac/groff_mdoc.man: Fix description of `Dt'.
6337 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
6339         * font/devps/prologue.ps: Fix for included Postscript that does
6340         a setpagedevice -- which is now safely ignored.
6342         * NEWS: Updated.
6344         * src/devices/grops/ps.cc: Now sets the page size in the generated
6345         document.  This is done in two ways: Via a %%-comment for gv and
6346         the like, and via a PageSize and setpagedevice for programs that
6347         understands Postscript proper, like ps2pdf.
6349         * src/devices/grops/ps.h: New broken-flag to avoid page size
6350         definition, if required.
6352         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6354         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6355         Not really necessary due to the fix in prologue.ps, but cleaner:
6356         Such information does not belong in an .eps file.
6358         * doc/Makefile.sub: See doc/Makefile.in.
6360 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
6362         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6363         instead of P1 since the latter is broken in some versions of netpbm.
6364         * configure: Updated.
6366 2003-02-26  Larry Kollar  <kollar@alltel.net>
6368         Make man pages more customizable.
6370         * tmac/an-old.tmac (FT): New register holding footer distance from
6371         bottom.
6372         (HF): New string holding the default heading font.
6373         (TH): Handle registers `IN' and `SN' set on the command line.
6374         Use `FT'.
6375         (PT, BT): New strings to customize header and footer lines.
6376         (an-header, an-footer): Use them.
6377         (SH, SS): Use `HF'.
6378         * tmac/groff_man.man: Document changes.
6380         * doc/groff.texinfo: Document man changes.
6381         Document Ultrix extensions of man.
6383 2003-02-26  Werner LEMBERG  <wl@gnu.org>
6385         * src/roff/troff/input.cc (do_width, do_if_request): Reset
6386         `have_input' after changing back to old environment.
6388         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6389         function up to be defined before first call.  This is necessary to
6390         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6392         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6393         the default font directory also.  Based on a patch from James
6394         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6395         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6396         * src/utils/afmtodit/afmtodit.man: Document it.
6398         * NEWS: Updated.
6400         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6402 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
6404         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6405         (GROFF_PNMTOPS_NOSETPAGE): New macro.
6406         * configure.ac: Use it.
6407         * configure: Regenerated.
6408         * Makefile.in: Updated.
6410         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6411         (CLEANADD): Add www.tmac-sed.
6412         (pnmtops_nosetpage): Define default.
6413         (install_data): Handle www.tmac-sed and substitute
6414         @PNMTOPS_NOSETPAGE@.
6415         (stamp-sed): Add www.tmac.
6416         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6417         It now breaks URLs at suitable places.
6418         (www:substring_ok): New register set by...
6419         (www:@test_substring): New macro.
6420         (www:error): New alias to www-error.
6421         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6422         New macros.
6423         (URL): Use www:url_breaks.
6424         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6425         (CDS, CDE): New macros.
6427 2003-02-25  Werner LEMBERG  <wl@gnu.org>
6429         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6430         buffer overflow.
6432 2003-02-24  Werner LEMBERG  <wl@gnu.org>
6434         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6435         can be negative also.
6437         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6438         `int16'.
6439         (read_char_table): Avoid negative ascenders.
6440         (output_charset): Add cast.
6441         * font/devlj4/*: Regenerated.
6443         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6444         possible.
6446         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6447         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6448         of `<>'.
6449         * font/devdvi/*: Regenerated.
6451         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
6452         normal width, while the previously used characters (U+2329 and
6453         U+232A) are classified as wide due to canonical equivalence with the
6454         CJK punctuation characters U+3008 and U+3009.
6456         * font/devutf8/R.proto: Updated.
6457         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6459         * man/groff_char.man: Simplify handling of table traps by
6460         introducing `start block' and `end block' macros.
6461         (Ns, Ne, 2s, 2e, Ds, De): New macros.
6462         (DL): Make it work with Unix troff also.
6463         Fix code values of `la' and `ra'.
6465         * tmac/dvi.tmac: Define `<>' for CW and CWI.
6467 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
6469         * src/devices/grohtml/post-html.cc (element_list::~element_list):
6470         New destructor, fixing a major memory leak.
6472 2003-02-22  Werner LEMBERG  <wl@gnu.org>
6474         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6475         to be in conformance with Unicode 3.0 and newer.
6477         * font/devlj4/generate/text.map: Add `Eu'.
6478         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6479         * font/devlj4/S: Regenerated.
6481         * man/groff_char.man: Completely rewritten.
6483         * doc/groff.texinfo: Fix description of request and macro arguments.
6485 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
6487         Valgrind fixes.
6489         * src/devices/grohtml/html-table.cc (html_table::~html_table):
6490         Deallocate `columns' list.
6491         * src/devices/grohtml/post-html.cc (char_block::~char_block):
6492         New destructor.
6493         (text_glob::text_glob_html, text_glob::text_glob_special,
6494         text_glob::text_glob_line, text_glob::text_glob_auto_image,
6495         text_glob::text_glob_tag): Avoid memory leaks.
6496         (text_glob::remember_table): Free memory before reassigning.
6498 2003-02-19  Werner LEMBERG  <wl@gnu.org>
6500         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6501         alias `hbar'), the Planck constant over two pi.
6503         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6504         `+e' for position 34.
6505         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6506         `u2662' and `u2661'.
6507         * font/devdvi/{MI,S}: Regenerated.
6508         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6509         * font/devlbp/*: Add `hbar' alias.
6510         * font/devlj4/generate/special.map: Ditto.
6511         * font/devlj4/S: Regenerated.
6512         * font/devps/generate/symbolchars: Add `+e'.
6513         * font/devps/generate/textmap: Fix PS name for `-h'.
6514         Add `hbar' alias.
6515         * font/devps/symbolmap: Regenerated.
6517         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6519         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6520         `-h', `hbar'.
6521         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6522         `-h'.
6524         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6525         `hbar'.
6526         * tmac/tty-char.tmac: Add `+e'.
6528 2003-02-17  Werner LEMBERG  <wl@gnu.org>
6530         Another round trying to really fix problems with `have_input'.
6532         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6533         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6535         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6536         handling if both foreground and background colors are default.
6538         * doc/groff.texinfo (Debugging): Document .lf differences to
6539         AT&T troff.
6541 2003-02-16  Werner LEMBERG  <wl@gnu.org>
6543         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6544         null-bytes in created string.
6546         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6547         alias_macro, lookup_request): Improve warning messages.
6549         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6550         not `strdup'.
6551         Free `last_image_filename'.
6553         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6554         `buffer'.
6555         (imageList::createPage, imageList::createImage): Use `free', not
6556         `a_delete'.
6557         (imageItem::~imageItem): Free `imageName'.
6558         (addRegDef): Use `strsave', not `strdup'.
6559         (get_resolution): Free `pathp'.
6561 2003-02-15  Werner LEMBERG  <wl@gnu.org>
6563         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
6564         to `dummy'.
6566 2003-02-14  Werner LEMBERG  <wl@gnu.org>
6568         Add memory management for colors to deallocate unnamed colors
6569         properly.
6571         * src/include/color.h (color): New members `free_list' and `next'.
6572         New member functions `new' and `delete'.
6573         Add destructor.
6574         * src/libs/libgroff/color.cc: Implement it.
6576         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
6577         for array size of new operator.
6579         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
6580         redundant comparison.
6582         * src/roff/troff/input.cc (word_space_node::reread,
6583         hmotion_node::reread): Avoid warning about unused parameter.
6584         (reset_output_registers): Remove redundant parameter.
6585         (define_color): Undo change 2003-02-12.
6587         * src/roff/troff/reg.h: Updated.
6589         * src/roff/troff/node.cc (troff_output_file::really_print_line,
6590         output_file::put_filename, real_output_file::really_put_filename,
6591         ascii_output_file::really_print_line,
6592         break_char_node::get_hyphen_list): Avoid warning about unused
6593         parameter.
6594         (suppress_node::tprint): Updated.
6596         * configure.ac: Check declaration for rand() and srand().
6597         * configure: Regenerated.
6599         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
6600         conditionally.
6601         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
6602         and srand().
6604         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
6605         to avoid compiler warnings.
6607         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
6608         unused.
6610         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
6611         is unused.
6612         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
6613         (unused) parameter.
6614         Updated all callers.
6616         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
6617         is unused.
6618         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
6619         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
6621         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
6622         Parameter is unused.
6623         (html_printer::add_table_end): Define parameter conditionally.
6624         * src/devices/grohtml/output.cc (simple_output::special): Parameter
6625         is unused.
6627         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
6628         (lbp_printer::set_char): Last parameter is unused.
6630         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
6632 2003-02-13  Werner LEMBERG  <wl@gnu.org>
6634         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
6635         Make \D'f ...' move horizontally again for backwards compatibility.
6636         Replace it with \D'Fg ...' where appropriate to avoid dependency
6637         on horizontal resolution.
6639         * src/roff/troff/input.cc (do_get_long_name): New function.
6640         (get_long_name): Call it.
6642         (read_draw_node): Handle `\D'Fx ...' by calling ...
6643         (read_color_draw_node): New function.
6645         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
6646         `end'.
6647         Pass it to `do_get_long_name' which is used instead of
6648         `get_long_name'.
6650         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
6651         unnecessary value guard.
6652         (parse_D_command) <'f'>: Add horizontal shift.
6654         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
6655         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6656         (FILL_MAX): Removed.
6658         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6659         Updated.
6661 2003-02-12  Werner LEMBERG  <wl@gnu.org>
6663         * src/roff/troff/input.cc (do_name_test, do_expr_test,
6664         do_zero_width): Push `\n' if closing delimiter is missing.
6666         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
6667         <'F'>: Make \F non-transparent at the beginning of line.
6668         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
6669         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
6670         `have_input'.
6672         (define_color): Free color in case of reassignment.
6674         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
6675         @DefescListEnd): Use @Var, not @var.
6676         Fix all calls.
6678         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
6680         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
6681         `shaded' and `outlined' arrays.
6682         (object_spec::object_spec): Initialize `shaded' and `outlined'.
6683         (graphic_object::set_fill_color, graphic_object::set_outline_color):
6684         Use strsave.
6685         (closed_object::set_fill_color): Ditto.
6686         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
6687         instead of strdup.
6688         (troff_output::reset_color): Use a_delete instead of free.
6689         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
6691 2003-02-11  Werner LEMBERG  <wl@gnu.org>
6693         * doc/groff.texinfo: Improve documentation of `ad'.
6694         Document that \D'f...' is dependent on the horizontal resolution.
6695         * man/groff_diff.man: Improve documentation of \D'f...'.
6697         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
6698         compensating \h'...' for \D'f ...' since the latter no longer moves
6699         current position.
6700         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6702 2003-02-10  Werner LEMBERG  <wl@gnu.org>
6704         Improve error messages for `x F' (and `F') commands.
6706         * src/include/error.h: Add declaration for
6707         `current_source_filename'.
6708         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
6709         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
6710         parameter for source file string.
6711         Updated all callers.
6713         * src/libs/libdriver/input.cc: Add `current_source_filename'.
6714         (remember_source_filename): New function.
6715         (parse_x_command <'F'>, do_file <'F'>): Use it.
6717 2003-02-09  Werner LEMBERG  <wl@gnu.org>
6719         Make grotty not emit warnings about unknown colors more than
6720         necessary.
6722         * src/devices/grotty/tty.cc: Include `ptable.h'.
6723         (TTY_MAX_COLORS): Removed.
6724         (DEFAULT_COLOR_IDX): Defined to -1.
6725         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
6726         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
6727         Change `tty_colors' to be a ptable.
6728         First arg of `put_color' is now `char'.
6729         New functions `make_rgb_string' and `tty_color'.
6730         (tty_printer::tty_printer): Use `tty_color'.
6731         (tty_printer::color_to_idx): Return value is now `char'.
6732         Use `tty_color'.
6734         * src/include/color.h (color): Add `print_color' member function.
6735         * src/libs/libgroff/color.cc (color::print_color): Implement it.
6737 2003-02-08  Werner LEMBERG  <wl@gnu.org>
6739         Valgrind fixes.
6741         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
6742         encoding file.
6744         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
6745         assume that value has been allocated with `new[]', thus use
6746         `a_delete' for deallocation.
6748         * src/libs/libdriver/input.cc (get_integer_arg,
6749         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
6750         where appropriate.
6752         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
6753         * src/libs/libgroff/nametoindex.cc
6754         (character_indexer::named_char_index): Use `new <type>[1]'.
6756         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
6757         <type>[1]'.
6758         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
6759         (split_text): Use `a_delete'.
6761         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
6762         <type>[1]'.
6764         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
6765         harmless memory leak.
6766         (hyphen_trie::read_patterns_file): Initialize `buf'.
6767         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
6768         Initialize `current_fill_color'and `current_glyph_color'.
6769         * src/roff/troff/glyphuni.cc
6770         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
6771         * src/roff/troff/uniuni.cc
6772         (unicode_decompose_init::unicode_decompose_init): Ditto.
6773         * src/roff/troff/uniglyph.cc
6774         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
6776 2003-01-26  Werner LEMBERG  <wl@gnu.org>
6778         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
6779         `access' before calling `unlink'.
6780         (do_file): Handle __EMX__.
6782         * src/include/nonposix.h: Handle __EMX__.
6784         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
6785         (fontpath,tmacpath): Use it.
6786         (MDEFINES): Add it.
6787         Sorted alphabetically.
6789         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
6790         @SEP@.
6791         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
6792         @SEP@.
6794 2003-01-27  Werner LEMBERG  <wl@gnu.org>
6796         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
6797         New files, copied from gnulib.
6798         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
6799         * configure.ac: Updated.
6800         * configure: Regenerated.
6802         * src/include/config.hin: Regenerated.
6803         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
6804         Don't define `strcasecmp' as `strcmp'.
6805         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
6806         Dont define `strncasecmp' as `strncmp'.
6808         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
6809         Removed.
6811 2003-01-26  Werner LEMBERG  <wl@gnu.org>
6813         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
6814         s/unline/unlink/.
6816 2003-01-25  Werner LEMBERG  <wl@gnu.org>
6818         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
6820 2003-01-24  Werner LEMBERG  <wl@gnu.org>
6822         Add US-english hyphenation exceptions (converted from Barbara
6823         Beeton's hyphenation exception log reports which appear irregularly
6824         in TUGBoat).
6826         * tmac/hyphen.us: Updated to latest version.
6827         * tmac/README: Updated.
6828         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
6829         * tmac/troffrc: Load `hyphenex.us'.
6830         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
6831         * doc/groff.texinfo: Updated.
6833 2003-01-23  Werner LEMBERG  <wl@gnu.org>
6835         Improve hyphenation slightly.  This is a first step in redesigning
6836         the hyphenation algorithm to make it more flexible (e.g. allowing
6837         kerns and ligatures between the hyphenation character and the
6838         following character -- while not used normally in English, other
6839         languages like German would benefit).
6841         * src/roff/troff/env.cc (environment::hyphenate_line): Use
6842         assertion instead of if-clause.
6843         Let `get_hyphen_list' return the number of involved characters in
6844         the hyphenation pattern instead of computing it directly (which
6845         often yields too small values).
6846         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
6847         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
6848         parameter.
6850 2003-01-22  Werner LEMBERG  <wl@gnu.org>
6852         Fixing a bug which caused groff to hang if the hyphenation exception
6853         dictionary tried to grow.
6855         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
6856         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
6857         pointer to dictionary.
6859 2003-01-20  Werner LEMBERG  <wl@gnu.org>
6861         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
6862         negative left italic correction.
6863         * src/utils/afmtodit/afmtodit.man: Document it.
6865         * font/devps/generate/Makefile (RFLAG): Add `-m'.
6866         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
6867         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
6869         * NEWS: Updated.
6871 2003-01-16  Werner LEMBERG  <wl@gnu.org>
6873         * NEWS: Updated.
6875 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
6877         * src/preproc/refer/refer.man: Mention REFER environment variable.
6879 2003-01-05  Werner LEMBERG  <wl@gnu.org>
6881         Similar to \[is], the square root glyph (\[sr]) and the square root
6882         extension glyph (\[radicalex]) are now text symbols.  The new
6883         mathematical versions are called \[sqrt] and \[sqrtex],
6884         respectively.
6886         * font/devX*/S: Regenerated.
6887         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
6888         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
6889         * font/devdvi/EX, font/devdvi/S: Regenerated.
6890         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
6891         * font/devlj4/generate/special.map: Add `sqrt'.
6892         * font/devlj4/S: Regenerated.
6893         * font/devps/generate/textmap: Add `sqrt'.
6894         * font/devps/S, font/devps/symbolmap: Regenerated.
6896         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
6897         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
6898         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
6899         overlap horizontally.
6901         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
6902         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
6903         Fix `radicalex'.
6905         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
6906         and `sqrtex' are overlapping glyphs.
6908 2003-01-04  Werner LEMBERG  <wl@gnu.org>
6910         * font/devdvi/generate/texsy.map: Add `is'.
6911         * font/devps/symbolmap: Regenerated.
6912         * font/devdvi/*TC, MI, S: Regenerated.
6914         * tmac/dvi.tmac: Remove `is'.
6916 2003-01-03  Werner LEMBERG  <wl@gnu.org>
6918         `is' is now a text symbol (only relevant for dvi).  The math variant
6919         can be accessed with `integral'.
6921         * font/devX*/S: Regenerated.
6922         * font/devdvi/generate/texex.map: Remove `is'.
6923         * font/devdvi/EX: Updated.
6924         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
6925         * font/devlj4/generate/special.map: Ditto.
6926         * font/devlj4/S: Regenerated.
6927         * font/devps/generate/textmap: Add `integral'.
6928         * font/devps/S: Regenerated.
6930         * tmac/dvi.tmac: Define `is'.
6932         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
6934         * src/preproc/tbl/main.cc (process_format): Fix error message.
6936 2003-01-02  Werner LEMBERG  <wl@gnu.org>
6938         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
6939         * font/devps/textmap: Fix entries for `ne' and `nc'.
6940         * font/devps/symbolmap: Regenerated.
6942         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
6943         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
6944         `38', `58', `78', `-+', `|=', `nc', `ne'.
6946         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
6947         Use `schar' for `aq'.
6948         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
6949         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
6950         * tmac/tty.tmac: Add `ne'.
6952         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
6953         for fallback glyphs.
6955 2002-12-29  Werner LEMBERG  <wl@gnu.org>
6957         Add glyph `|='.
6959         * font/devX*/*: Regenerated.
6960         * font/devdvi/generate/ec.map: Remove `eq'.
6961         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
6962         Assign `|=' to position 39.
6963         * font/devdvi/*EC, S: Regenerated.
6964         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
6965         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
6966         Assign `|=' to position 549.
6967         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
6968         `equalmath'.
6969         Add `uni2243' for `|='.
6971         * tmac/ec.tmac: Add `eq'.
6972         * tmac/dvi.tmac: Add `=~'.
6973         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
6974         `|='.
6976 2002-12-21  Werner LEMBERG  <wl@gnu.org>
6978         * font/devdvi/generate/tc.map: Remove `**'.
6979         * font/devdvi/*TC: Regenerated.
6980         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
6981         `78', `<<', `>>'.
6982         * font/devutf8/NOTES: Updated.
6984         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
6985         Don't give default parameter to `set_macro'.
6986         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
6987         instead of `set_macro'.
6988         (charinfo::setx_macro): Implement it.
6989         (charinfo::set_macro): Don't change `mode'.
6991         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
6992         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
6993         * tmac/dvi.tmac: Define `!=' with `.schar'.
6995 2002-12-20  Werner LEMBERG  <wl@gnu.org>
6997         * font/devX*/S: Regenerated.
6998         * font/devdvi/generate/ec.map: Remove `pl'.
6999         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7000         * font/devdvi/*{TC,EC}: Regenerated.
7001         * font/devhtml/R.proto: Add `-+'.
7002         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7003         * font/devlbp/*: Remove `or'.
7004         * font/devlj4/generate/special.map: Remove `or'.
7005         * font/devlj4/S: Regenerated.
7006         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7007         `seveneighths', `threeeighths'.
7008         Remove `plusmath'.
7009         Replace `minusplus' with `uni2213'.
7010         * font/devps/symbolmap: Regenerated.
7011         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7012         Add `-+'.
7014         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7015         function.
7016         * src/roff/troff/node.cc (troff_output_file::put_char_width):
7017         Call glyph_color and fill_color even if tcommand_flag isn't set.
7018         (make_node, node::add_char): Check not ci->is_fallback but
7019         ci->is_normal.
7021         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7022         * tmac/ec.tmac: Add .rchar entry for `f/'.
7023         Don't remove `12', `14', `34'.
7024         Define `pl' to be always roman.
7025         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7026         Define `18', `38', `58', `78'.
7027         * tmac/tty.tmac: Add `-+'.
7028         * tmac/dvi.tmac: Define `f/'.
7029         (dvi-frac): Use `f/'.
7030         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7031         Define `18', `38', `58', `78'.
7033 2002-12-15  Colin Watson  <cjwatson@debian.org>
7035         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7037 2002-12-10  Werner LEMBERG  <wl@gnu.org>
7039         Add glyph `tno', a textual variant of `no'.
7041         * font/devX*/*: Regenerated.
7042         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7043         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7044         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7045         * font/devdvi/*: Regenerated.
7046         * font/devlbp/*: Add `tno'.
7047         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7048         * font/devlj4/*: Regenerated.
7049         * font/devps/generate/textmap: Replace `no' with `tno'.
7050         * font/devps/generate/symbolchars: Add `no'.
7051         * font/devps/*: Regenerated.
7053         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7055         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7056         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7058         * NEWS: Updated.
7060         * tmac/dvi.tmac: Replace most `\\' with `\E'.
7061         Add definition for `sd'.
7062         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7064         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7066 2002-12-08  Werner LEMBERG  <wl@gnu.org>
7068         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7069         mode to avoid rounding errors.
7070         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7072         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7073         src/roff/troff/troff.man: Improve documentation of -T.
7075 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
7077         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7078         (run_pipeline) [_WIN32]: Provide working function without `fork'.
7080 2002-12-06  Werner LEMBERG  <wl@gnu.org>
7082         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7083         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7084         Scaling Euro.sansserif glyphs down to have the same height as
7085         digits.
7086         Removed unnecessary points; added some extrema.
7088         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7089         Regenerated.
7091 2002-12-04  Werner LEMBERG  <wl@gnu.org>
7093         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7094         and `Euro.symbol.bold.slanted'.
7095         Improve some glyph offsets and widths.
7096         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7097         Regenerated.
7098         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7099         typo.
7100         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7101         direcory.
7103         * tmac/europs.tmac: Updated to new glyph indices.
7104         Use Euro.symbol for font familiy `A'.
7106         * doc/groff.texinfo: Minor improvements.
7108 2002-12-02  Werner LEMBERG  <wl@gnu.org>
7110         * font/devdvi/generate.tc.map: s/%O/%0/.
7111         * font/devdvi/*TC: Regenerated.
7113         * src/roff/troff/div.cc (init_div_requests): Sorted.
7115         * tmac/dvi.tmac: Remove `Ye'.
7116         * tmac/ec.tmac: Remove `Ye'.
7117         Add .rchar entry for `de'.
7119         * man/groff.man, man/groff_diff.man: Document register `.pe'.
7120         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7121         * NEWS: Updated.
7123 2002-11-30  Werner LEMBERG  <wl@gnu.org>
7125         Add PS font for various Euro glyphs.
7127         * font/devps/generate/freeeuro.sfd: New master font file for
7128         pfaedit.
7129         * font/devps/generate/sfdtopfa.pe: New conversion script for
7130         pfaedit.
7131         * font/devps/generate/Makefile (FONTS): Add `EURO'.
7132         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7133         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7134         `freeeuro.sfd'.
7135         * font/devps/EURO: Generated from `freeeuro.afm'.
7136         * font/devps/download: Add `freeuro.pfa'.
7137         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7138         `freeeuro.pfa'.
7140         * tmac/europs.tmac: New file.
7141         * tmac/ps.tmac: Include `europs.tmac'.
7142         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7144 2002-11-29  Werner LEMBERG  <wl@gnu.org>
7146         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7147         * font/devdvi/S: Regenerated.
7148         * font/devhtml/R.proto: Fix `CR' and `ci'.
7149         Add `OK'.
7150         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7151         Remove `bs'.
7152         * font/devps/symbolmap: Regenerated.
7153         * font/devutf8/R.proto: Fix `CR' and `ci'.
7154         Add `OK'.
7155         * font/devutf8/NOTES: Updated.
7157         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7158         `ci'.
7159         Add `OK'.
7160         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7162         * tmac/dvi.tmac: Add `lh' and `rh'.
7163         * tmac/Xps.tmac: Fix `lh' and `rh'.
7164         * tmac/X.tmac: Add `OK'.
7165         * tmac/lj4.tmac: Ditto.
7167 2002-11-24  Werner LEMBERG  <wl@gnu.org>
7169         * font/devX*/S: Regenerated.
7170         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7171         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7172         * font/devdvi/generate/texsy.map: Remove `or' glyph.
7173         * font/devdvi/S: Regenerated.
7174         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7175         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7176         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7177         `bracketleftbt', `bracketrighttp', `bracketrightex',
7178         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7179         `braceex', `braceleftex', `bracerightex', `bracerighttp',
7180         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7181         `rb', and `bv'.
7182         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7183         * font/devutf8/NOTES: Updated.
7184         * font/devlj4/generate/special.map: Add glyph `braceex'.
7185         * font/devlj4/S: Regenerated.
7187         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7189 2002-11-14  Werner LEMBERG  <wl@gnu.org>
7191         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7192         and `vA'.
7193         Fix code for `an'.
7194         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7196         * doc/texinfo.tex: New version from texinfo 4.3.
7197         * doc/groff.texinfo: Updated for texinfo 4.3.
7198         Use @tie{} where appropriate.
7199         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7200         * font/devdvi/generate/tc.map: Remove `rn'.
7201         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7202         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7203         Fix code for `an'.
7204         * font/devX100/*, font/devX100-12/*, font/devX75/*,
7205         font/devX75-12/*: Regenerated.
7207         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7208         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7209         Improve definition of `an'.
7210         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7211         `ru'.
7212         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7213         * tmac/X.tmac: Add definition for `or'.
7214         * tmac/Xps.tmac: Undo change 2002-11-05.
7215         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7217 2002-11-11  Werner LEMBERG  <wl@gnu.org>
7219         * src/roff/troff/node.cc (troff_output_file::put_char): Always
7220         call flush_tbuf.
7222 2002-11-10  Werner LEMBERG  <wl@gnu.org>
7224         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
7225         defines a glyph which is searched after the check for fonts declared
7226         with `.special' (and before the check for all mounted special
7227         fonts).  `fschar' defines a glyph for a particular font which is
7228         searched after the check for fonts declared with `.fspecial' (and
7229         before the check for fonts declared with `.special').  `rfschar'
7230         removes glyphs defined with `fschar'.
7232         * src/roff/troff/token.h (char_mode): New enum.
7233         Declare do_define_character.
7234         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7235         `mode'.
7236         (charinfo::is_fallback): Updated.
7237         (charinfo::is_special): New method.
7238         * src/roff/troff/input.cc (do_define_character): Add and use
7239         optional second parameter used as a prefix for font-specific glyph
7240         names.
7241         (define_character, define_fallback_character): Updated.
7242         (define_special_character): New function.
7243         (init_input_requests): Add `schar'.
7244         (charinfo::charinfo, charinfo::set_macro): Updated.
7245         * src/roff/troff/node.cc: Include `stringclass.h'.
7246         (make_glyph_node): Handle special glyphs defined with `.schar' and
7247         `.fschar'.
7248         (define_font_special_character, remove_font_special_character): New
7249         functions.
7250         (init_node_requests): Sorted.
7251         Add `fschar' and `rfschar'.
7252         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7253         Document new requests.
7255         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7256         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7258 2002-11-08  Werner LEMBERG  <wl@gnu.org>
7260         Added new font `SC' (cmtex10) to devdvi.
7262         * devdvi/generate/Makefile (FONTS): Add `SC'.
7263         (SC): New rule.
7264         * devdvi/generate/textex.map: New map file for cmtex.
7265         * devdvi/SC: New.
7266         * devdvi/Makefile.sub (DEVFILES): Updated.
7267         * tmac/dvi.tmac: Add fspecial entries for SC.
7268         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
7269         found before `S' since the font position of `SC' is lower due to the
7270         gaps in DESC's `font' line.
7271         * tmac/ec.tmac: Add a `special' call.
7272         * NEWS: Updated.
7274         * font/devhtml/R.proto: Remove double entry for `ti'.
7275         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7276         * tmac/tty-char.tmac: Remove entry for `bq'.
7277         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7278         * tmac/ec.tmac: Don't remove `aq' glyph.
7279         * tmac/X.tmac: Fix entry for `em'.
7280         Add entries for `fo' and `fc'.
7281         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7283         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7284         documentation of `special' and `fspecial' requests.
7286 2002-11-05  Werner LEMBERG  <wl@gnu.org>
7288         * font/devascii/R.proto, font/devcp1047/R.proto,
7289         font/devlatin1/R.proto: Remove entry for `.i'.
7290         * font/devdvi/generate/textt.map: Add entry for `ad'.
7291         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7292         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7293         We need this for getting kerning values to compose `/l' and `/L'.
7294         * font/devdvi: Regenerated font definition files for CM fonts.
7295         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7296         * font/devutf8/R.proto: Ditto.
7297         Remove double entry for `ti'.
7299         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7300         for (groff) ligatures, `la', and `ra'.
7301         Add "'C", "'c", `IJ', and `ij'.
7302         Remove double entry for `ti'.
7303         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7304         double entries.
7305         Add "'C", "'c", `IJ', and `ij'.
7306         Fix entries for (groff) ligatures, `la', and `ra'.
7308         * tmac/ps.tmac (ps-achar): New macro.
7309         Define "'c" and "'C".
7310         * tmac/tty.tmac: Add entry for `.i'.
7311         * tmac/X.tmac (X-achar): New macro.
7312         Define "'c", "'C", and `:Y'.
7313         Add entries for `IJ' and `ij'.
7314         * tmac/Xps.tmac (Xps-achar): New macro.
7315         Define "'c" and "'C".
7316         Add entries for `IJ' and `ij'.
7317         * tmac/lbp.tmac (lbp-achar): New macro.
7318         Add fallback characters for all groff ligatures and many other
7319         glyphs.
7320         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7321         Add entries for `/l' and `/L'.
7322         Define "'c" and "'C".
7323         Add entries for `IJ' and `ij'.
7325 2002-11-02  Larry Kollar  <kollar@alltel.net>
7327         * PROBLEMS: Document how to solve Mac OS X compilation problems.
7329 2002-11-02  Werner LEMBERG  <wl@gnu.org>
7331         Adding support for composite glyphs: \[xxx yyy ...] and the
7332         `composite' request.
7334         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7335         to Unicode-based glyph names.
7336         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7337         glyph names to groff glyph names.
7338         * src/roff/troff/uniuni.cc: New file for canonically decomposing
7339         Unicode-based glyph names.
7340         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7341         for handling Unicode glyph names.
7342         * src/roff/troff/input.cc: Include unicode.h.
7343         (composite_glyph_name): New function.
7344         (token::next) <'['>: Handle Unicode glyph names and composite
7345         glyphs.
7346         (composite_dictionary): New dictionary for the `composite' request.
7347         (composite_request): Implement `composite' request.
7348         (init_input_requests): Add `composite'.
7349         Alphabetically sorted.
7350         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7351         commented out).
7352         (init_env_requests): Alphabetically sorted.
7353         Removed `tas' and `tar' (already commented out).
7354         * src/roff/troff/Makefile.sub: Updated.
7356 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
7358         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7359         of options.
7361 2002-10-29  Werner LEMBERG  <wl@gnu.org>
7363         Fix computation of .trunc register.  Additionally, its value (and
7364         the value of the .ne register) is now always set before entering the
7365         trap.
7367         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7368         `needed_space' before calling `space'.
7369         (top_level_diversion::space): Remove special code for 'sp before the
7370         first page.
7371         Call `begin_page' with the discarded space as a parameter.
7372         (top_level_diversion::begin_page): Add optional parameter to set
7373         `truncated_space'.
7374         * src/roff/troff/div.h: Updated.
7376         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7377         \n[.ne].
7379         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7380         (LP): Remove superfluous call to `br'.
7381         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7382         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7384 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7386         * tmac/doc-ditroff: Remove useless switch/variable -rC.
7387         (doc-setup-header): Don't set page register `%'.
7388         * tmac/doc-nroff: Remove variable `C'.
7389         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7390         (doc-setup-header): Don't set page register `%'.
7391         Don't call `bp'.
7392         * tmac/doc-common (doc-header): Call `ns'.
7393         (doc-paragraph): Protect .sp with .br so that it survives traps
7394         possibly set by the user.
7395         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7397         * tmac/doc*: Replace ' with . for consistency if no effect.
7399 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7401         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7402         so that it survives traps possibly set by the user.
7404         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7405         (troff_output_file::set_font): Call flush_tbuf if necessary.
7406         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7407         flush_tbuf and do_motion only if necessary.
7408         (troff_output_file::start_special,
7409         troff_output_file::put_char_width, troff_output_file::put_char,
7410         troff_output_file::draw): Updated.
7411         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7412         vmotion_node::tprint): Undo change 2002-10-23.
7414 2002-10-25  Werner LEMBERG  <wl@gnu.org>
7416         * tmac/www.tmac (DC): Fix case of overlapping images.
7418 2002-10-23  Werner LEMBERG  <wl@gnu.org>
7420         * src/roff/troff/node.cc (troff_output_file::fill_color,
7421         troff_output_file::glyph_color): Set current color before testing
7422         color_flag.
7423         (troff_output_file::put_char_width, troff_output_file::put_char,
7424         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7425         before glyph_color.
7426         (troff_output_file::file_color, troff_output_file::glyph_color):
7427         Call do_motion.
7428         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7429         vmotion_node::tprint): Move first, then call fill_color.
7431 2002-10-20  Werner LEMBERG  <wl@gnu.org>
7433         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7434         possible to use multiple main macro packages.
7436 2002-10-19  Werner LEMBERG  <wl@gnu.org>
7438         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7439         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7440         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7441         is set.
7442         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7443         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7445 2002-10-16  Werner LEMBERG  <wl@gnu.org>
7447         * NEWS, doc/webpage.ms: Updated.
7449 2002-10-14  Werner LEMBERG  <wl@gnu.org>
7451         * src/roff/troff/node.cc (troff_output_file::put_char_width,
7452         troff_output_file::put_char, troff_output_file::fill_color,
7453         troff_output_file::glyph_color): Handle case where color pointer
7454         is null.
7456 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
7458         Add the new -r option to grotty.  It is similar to the -i option
7459         except it tells grotty(1) to use the `reverse video' attribute to
7460         render italic fonts.
7462         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7463         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7464         (tty_printer::make_underline, tty_printer::put_color,
7465         tty_printer::end_page): Use it.
7466         (main): Add -r switch.
7467         (usage): Updated.
7468         * src/devices/grotty/grotty.man: Document it.
7470 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
7472         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7473         cast to `unsigned char' to properly read patterns with 8bit
7474         characters.
7476 2002-10-08  Werner LEMBERG  <wl@gnu.org>
7478         * REVISION: Increased to 2.
7480 Copyright 2002, 2003, 2004, 2005, 2006, 2007
7481   Free Software Foundation, Inc.
7483 Copying and distribution of this file, with or without modification,
7484 are permitted in any medium without royalty provided the copyright
7485 notice and this notice are preserved.
7487 Local Variables:
7488 version-control: never
7489 coding: latin-1
7490 End: