* tmac/trace.tmac (als): Added.
[s-roff.git] / ChangeLog
blob80d537d6738427c3af6236e4c80d34629de3e7e2
1 2007-03-14  Werner LEMBERG  <wl@gnu.org>
3         * tmac/trace.tmac (als): Added.
4         (de, de1, am, am1): Make traced macros aliased with .als work.
6 2007-02-25  Werner LEMBERG  <wl@gnu.org>
8         * src/devices/xditview/TODO: Add some more items.
10         * Makefile.comm (.man.n): Add @APPRESDIR@.
11         Sort entries.
13         * src/devices/xditview/gxditview.man: Document GXditview resource
14         file.
15         Other documentation enhancements based on a patch from Jörg.
17 2007-02-25  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
18             Joerg van den Hoff <j.van_den_hoff@fzd.de>
20         * src/devices/xditview/GXditview.ad: Make all keys work regardless
21         of the current mouse position.
23 2007-02-20  Werner LEMBERG  <wl@gnu.org>
25         * tmac/groff_man.man: Revised to improve visual appearance.
26         Reduce use of future tense.
28         * tmac/groff_trace.man: Revosed to improve visual appearance.
30 2007-02-19  Eric S. Raymond  <esr@snark.thyrsus.com>
32         Make groff.man viewer-portable.
34         * tmac/groff.man: Eliminate use of .eo/.ec.
35         (.REQ): Surround args 2 through N with quotes.  This will enable us
36         not to rely on the shift request, which is nonportable.
37         (ExecFF): Remove.  The code is simpler without it.
39 2007-02-18  Eric S. Raymond  <esr@snark.thyrsus.com>
41         * tmac/groff_www.man: Viewer-portability fixes.
43 2007-02-16  Eric S. Raymond  <esr@snark.thyrsus.com>
45         * man/groff.man: Remove some unneeded code and a no-longer-used
46         inclusion of the www macros.
48 2007-02-15  Eric S. Raymond  <esr@snark.thyrsus.com>
50         * contrib/groffer/perl/groffer.man, contrib/groffer/perl/groffer.man:
51         Fix non-portable `if' expressions.
53 2007-02-13  Eric S. Raymond  <esr@snark.thyrsus.com>
55         Use an-ext.tmac macros in groffer.man.
57         * contrib/groffer/perl/groffer.man,
58         contrib/groffer/perl/groffer.man: Replace ShellCommand with .EX/.EE
59         pairs.
60         Don't use .TP for examples, as some viewers won't handle a display
61         macro as a tag line.  Use .SY/.OP/.YS rather than elaborate custom
62         macros.
64 2007-02-12  Werner LEMBERG  <wl@gnu.org>
66         * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
67         AVAILABLE_REG.
68         (table::compute_widths): Simplify.
70 2007-02-11  Werner LEMBERG  <wl@gnu.org>
72         * src/preproc/tbl/table.h: Don't include `stdbool.h'.
73         (table): Replace `bool' type with `char' for orthogonality.
74         Update all users.
76         * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
77         AVAILABLE_REG and COLCOUNT_REG.
78         (table::table): Fix order call of initializers.
79         (table::~table): Deallocate `blockflag'.
81 2007-02-09  Eric S. Raymond  <esr@snark.thyrsus.com>
83         A try at the new rule for block column allocation is now enabled by
84         the new `experimental' global option: The horizontal space up to the
85         right margin which is not used by columns without text blocks is
86         evenly distributed to the columns with text blocks.
88         It doesn't work right as yet; there appears to be some error in the
89         computation of `3avail', the available line length.  The purpose of
90         this patch is (a) to make experimenting with other formulas easy,
91         and (b) leave the infrastructure for flag `experimental' in place
92         for future experiments.  Do not document any behavior associated
93         with this flag!
95         * src/preproc/tbl/table.h: Include `stdbool.h'.
96         (table): Make `flags' public.
97         Add `count_block_columns' function.
98         Add `blockflag' array.
99         Add `EXPERIMENTAL' enumeration value.
101         * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
102         macros.
103         (table_entry): New member `parent' so that class and subclass
104         members can set a parent field.  Update all users.
105         (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
106         (block_entry::do_width): Set the parent's `blockflag'.
107         (table::allocate): Handle `blockflag'.
108         (table::count_block_columns): New function.
109         (compute_span_width): Adjust AVAILABLE_REG.
110         (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
112         * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
113         option.
115 2007-02-08  Zhao, Yu (William)  <yzhao2@alcatel-lucent.com>
117         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
118         line thickness.
120 2007-02-08  Werner LEMBERG  <wl@gnu.org>
122         * man/groff_out.man (offset): Make it work reliably.
124 2007-02-07  Eric S. Raymond  <esr@snark.thyrsus.com>
126         * man/groff_out.man: Simplify some font changes so \fP is less
127         likely to do something surprising.
128         
129         * man/groff_out.man: We can simplify the command macros still
130         further if we stop trying to hide structural requests inside them. 
131         Also, fix some instances of \} at start of line without a dot, and
132         make some font changes explicit in strings.
133         
134         * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
135         .cp.
136         
137         * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
138         calls and fix macros to do without them.  File should now be
139         viewer-portable.
140         
141         * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
142         micromotions that produce the same visual result and can be lifted
143         to XML-DocBook.
144         
145         * man/groff_out.man: Third step: Reduce Da-comand, fix a
146         call-sequence bug in the original.
147         
148         * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
149         move font-change escapes to portable form.
151         * man/groff_out.man: First step in macro simplification; eliminate
152         list1..n, simplify .offset and .index_offset so they no longer
153         require groff-specific features or eqn (instead, use troff
154         micromotions for subscripting).
156 2007-02-06  Eric S. Raymond  <esr@snark.thyrsus.com>
158         * src/preproc/eqn/eqn.man: Minor corrections.
160         * chem.man, pdfroff.man, ditroff.man, groff_diff.man, groff.man,
161         groff_out.man, groff_tmac.man, roff.man, groff.man, grog.man,
162         an-ext.tmac, groff_man.man, groff_man.n, groff_trace.man: Change
163         .UR/.UE and .MT/.ME so the start macro no longer takes a second
164         argument that is pasted to the end of the generated text.  Instead,
165         the end macro takes an argument that does the same thing.
167 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
169         * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
170         By popular demand, make ... set three lower dots again
171         and introduce a new predefined macro 'cdots' to set
172         three centered dots.
174 2007-02-05  Werner LEMBERG  <wl@gnu.org>
176         * src/preproc/eqn/eqn.man: Revised.
178         * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
179         `const'.
180         (spacing_type): Fix typo.
181         (special_to_entity): Use `const'.
182         Remove unused variable.
183         * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
185 2007-02-05  Eric S. Raymond  <esr@snark.thyrsus.com>
187         * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
188         which is a shame as the effect was cute.
190 2007-02-04  Eric S. Raymond  <esr@snark.thyrsus.com>
192         * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
193         rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
194         possible, remove preamble declarations and macros that are no
195         longer needed.  Conversion checked using the protocol described in
196         tmac/TESTING-HINTS.
198 2007-02-03  Werner LEMBERG  <wl@gnu.org>
200         * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
201         vertical space.
203 2007-02-03  Eric S. Raymond  <esr@snark.thyrsus.com>
205         * tmac/groff_man.man: Documented the extension macros, and 
206         added portability advice.
208         * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
211         Add support for MathML output to eqn.  
213         The strategy used is very simple and relies on the fact that the box
214         models of eqn and Presentation MathML differ in only trivial ways. 
215         It leaves the grammar and existing internal object structures
216         unchanged.  A new global, `output_format', is defined as an
217         enumerated type with values {troff, mathml}.  Most of the functions
218         and methods that emit actual output acquire a top-level conditional,
219         dispatching on this global, which has one arm for troff mode and one
220         for MathML mode.  In most cases the MathML arm is drastically
221         simpler.
223         (This strategy could be easily generalized to support other output
224         formats.  TeX is a possibility that leaps to mind.)
226         The only even moderately tricky changes are in the lexer.  Some of
227         the predefined macros used constructs like `up', `down', `fwd',
228         `back', and `vcenter' that have no equivalents in MathML.  I
229         attacked this problem in these ways:
231         1. I eliminated three uses of `back' to compose characters in favor
232            of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
233            that did not exist when these macros were written.  (This will be
234            a quality improvement for troff users.)
236         2. I eliminated one use of `vcenter' by using \\(md.  (Likewise...)
238         3. I then split the table of pre-definitions in three; one large
239            common table and two small troff-specific and MathML-specific
240            tables.  Use of troff-only operations (up, down, back, fwd,
241            vcenter) is now confined to the former.  The latter now uses
242            `size big' and drops out the explicit positioning operations,
243            counting on MathML processors to do them.
245         POTENTIAL TROUBLE SPOTS:
247         Here are notes for reviewers on places I'm not 100% sure I've done
248         the right thing:
250         * In the process of preparing the troff table, I translated three
251           definitions (dot_def, dotdot_def, and utilde def) that previously
252           used explicit \v escapes to use `up' and `down' instead.  I
253           modeled the new definitions on the way `vec' and `dyad' work, but
254           it's possible I got something subtle wrong.
256         * I'm not certain the MathML implementation of font_box::output() is
257           right, because I don't quite get what the switcheroo between
258           `current_roman_font' and `old_roman_font' is supposed to
259           accomplish.  It does seem to generare good MathML, though.
261         Finally, I made one purely cosmetic change in `text.cpp'; I replaced
262         with an enum some magic numbers for spacing types that I thought
263         were too ugly to live.
265         REMAINING ISSUES:
267         The entirety of eqn is translated when `-TMathML' is specified, 
268         with the following exceptions...
270         Limitations that cannot be fixed include non-support for special,
271         up/down/fwd/back, and vcenter.
273         Limitations that might be fixable include non-support for mark and
274         lineup.  I will investigate further, but if these can be implemented
275         at all it's going to be in a very complicated and nasty way.
277         The way character boxes are output means that each digit of a
278         multi-digit number gets its own <mn></mn> tag pair in the MathHTML. 
279         While this is not technically wrong for Presentation MathML, it is
280         ugly and inefficient.  Fixing this will require implementing a
281         little state machine in the `text.cpp' output method.
283         * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, 
284         src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, 
285         src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
286         src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, 
287         src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, 
288         src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
289         src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
290         src/preproc/eqn/eqn.man: MathML output mode.
292         * NEWS: Document it.
294 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
296         * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
297         and for cross-viewer portability.  Conversion checked 
298         using the protocol described in tmac/TESTING-HINTS.
300 2007-02-02  Werner LEMBERG  <wl@gnu.org>
302         * tmac/an-ext.tmac (ME): Don't use `\:'.
304         * contrib/chem/chem.man, contrib/groffer/roff2.man,
305         src/roff/grog/grog.man: Further refinements and normalizations.
307 2007-02-02  Eric S. Raymond  <esr@snark.thyrsus.com>
309         * contrib/groffer/roff2.man, contrib/chem/chem.man, 
310         src/roff/grog/grog.man: Converted to use .SY/.OP/.YS
311         and for cross-viewer portability.  Conversion checked 
312         using the protocol described in tmac/TESTING-HINTS.
314 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
316         * tmac/TESTING-HINTS: Added.
318 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
320         Enable the support for Bell archaisms on .SC, so the `-r bell'
321         switch is no longer needed to format old AT&T papers like
322         the EQN user guide.
324         * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
326         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
328 2007-02-01  Eric S. Raymond  <esr@thyrsus.com>
330         Add some Bell labs extensions to the -ms macros.
332         * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
334         * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
336 2007-01-30  Werner LEMBERG  <wl@gnu.org>
338         * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
339         (\n[mH]): New register (set if grohtml is used).
340         (\n[SY]): Rename to \n[mS].
341         (\n[a]): Rename to \n[mA].
342         (\n[i]): Rename to \n[mI].
343         (mU): New auxiliary input trap macro.
344         (UR, UE): Replace stub with real definition.
345         (URL): Remove.
346         (MT, ME): New macros.
347         (MTO): Remove.
348         (EX, EE): Don't insert vertical space.
349         Use a register to store (and restore) the current font.
351         * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
352         on patches from Eric Raymond.
353         Fix URL addresses.
354         * contrib/pdfmark/pdfroff.man: Updated.
356 2007-01-22  Gaius Mulley  <gaius@glam.ac.uk>
358         * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
360 2007-01-22  Werner LEMBERG  <wl@gnu.org>
362         * tmac/an-ext.tmac: Protect against being sourced twice.
363         (URL, EE): Use always two backslashes.
364         (MTO): New macro.
366 2007-01-21  Werner LEMBERG  <wl@gnu.org>
368         * contrib/pdfmark/pdfroff.man: Revised, based on a patch from Eric
369         Raymond.  It now uses the new macros from an-ext.tmac.  This is the
370         first of a series of man patches which Eric has contributed.
372 2007-01-16  Werner LEMBERG  <wl@gnu.org>
374         * tmac/an-ext.tmac: Remove code for grodvi.
375         (SY): Fix typos.
376         Don't insert empty line.
377         (URL, TQ): Fix typos.
379 2007-01-14  Werner LEMBERG  <wl@gnu.org>
381         * tmac/an-ext.tmac: New file, containing extension macros
382         for -man.  See discussion on the groff mailing list for
383         background information.
384         * tmac/an-old.tmac: Load an-ext.tmac.
385         Decorate .ds and as with comment escapes where appropriate.
386         * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
388 2007-01-05  Werner LEMBERG  <wl@gnu.org>
390         * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
392 2007-01-04  Gaius Mulley  <gaius@glam.ac.uk>
394         Make -me macros ready for grohtml.
396         * tmac/e.tmac: Load devtag.tmac.
397         (need_eo_h, need_eo_tl, need_tl): New registers.
398         (check_need_title, (x-html, )x-html, xp-html): New macros.
399         (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
400         b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
401         (bp): Rename to @b only if output device is not html.
403 2007-01-01  Werner LEMBERG  <wl@gnu.org>
405         * man/groff_font.man: Document empty lines.
407         * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
408         the very beginning of the output.
409         [!$opt_x]: Fix typo.
411         * font/devps/*: Regenerate font definition files.
413 2007-01-01  Werner LEMBERG  <wl@gnu.org>
415         * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
417         * font/devps/*: Regenerate font definition files.
419 2006-12-31  Werner LEMBERG  <wl@gnu.org>
421         * Makefile.in (oldfontdir): New variable.
422         (MDEFINES): Add $(oldfontdir).
423         (uninstall_dirs): Remove `current' link.
424         Remove $(oldfontdir).
426         * Makefile.comm (oldfontsubdir): New variable.
427         (install_dev): Install files collected in $(OLDDEVFILES) into
428         $(oldfontsubdir).
429         (uninstall_dev): Remove data in $(oldfontsubdir).
430         (.man.n): Handle @OLDFONTDIR@.
432         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
433         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
434         src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
435         Document GROFF_FONT_PATH.
437         * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
438         old font description files.
440         * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
441         variables.
443         * font/devps/old/*: New directory, holding the previous version
444         of the 35 Adobe core font description files.
446         * font/devps/*: Regenerated the 35 Adobe core fonts, using the
447         Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
449         * NEWS: Document font update.
451 2006-12-31  Werner LEMBERG  <wl@gnu.org>
453         * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
455         * Makefile.comm (fonts): New (empty) target.
456         * Makefile.in (TARGETS): Add `fonts'.
458         * MANIFEST: Add `chem'.
460         * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
461         can't be chained.
463 2006-12-26  Werner LEMBERG  <wl@gnu.org>
465         * src/preproc/grn/hdb.cpp: Include gprint.h later.  From NetBSD.
467 2006-12-19  Werner LEMBERG  <wl@gnu.org>
469         Add support for German.  For activation, simply use -mde or -mden
470         (for traditional and new orthgraphy, respectively) as the last
471         macro package.
473         * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
474         tmac/hyphenex.det: New files, partly taken from CTAN.
475         * LICENSES: Updated list of hyphenation patterns.
476         * man/groff_tmac.man: Mention de.tmac and den.tmac.
477         * NEWS: Updated.
479 2006-12-11  Werner LEMBERG  <wl@gnu.org>
481         Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
482         hosts).
484         * src/preproc/pic/lex.cpp (ARG1): Redefine.  Update all users.
485         (MAX_ARG): New macro.  Use it everywhere to replace hard-coded
486         limit of 9 arguments.
487         (process_body): Handle argument numbers with more than a single
488         digit.
489         (interpolate_macro_with_args): Protect against exceeding number of
490         arguments.
492         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
494 2006-12-10  Werner LEMBERG  <wl@gnu.org>
496         * Makefile.in (site.exp, docheck): Commented out.  Not working
497         currently.
498         (check): Just emit dummy message.
500 2006-12-08  Werner LEMBERG  <wl@gnu.org>
502         During installation, create soft link from <version> to `current' in
503         <datadir>/groff.
505         * Makefile.comm (install): Renamed to...
506         (do_install): This.
507         (prefix_must_exist): Removed.  Code moved to Makefile.in.
509         * Makefile.in (TARGETS): Remove `install'.
511         (install): New target which first creates the directory given by
512         --prefix, then calling `make' to do the installation, and finishing
513         with the creation of the soft link.
515 2006-11-21  Werner LEMBERG  <wl@gnu.org>
517         * doc/Makefile.sub (uninstall_sub): Fix names for info files.
519 2006-11-18  Werner LEMBERG  <wl@gnu.org>
521         * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
522         information from Tom Van Vleck <thvv@multicians.org>.
524 2006-11-16  Werner LEMBERG  <wl@gnu.org>
526         * tmac/62bit.tmac: New macro package.
527         * tmac/Makefile.sub (NORMALFILES): Add it.
528         * NEWS: Document it.
530         * tmac/trace.tmac: Protect against being loaded again.
531         (nr): Always show result.
533         * doc/groff.texinfo (Input Encodings): Document latin-5.
535         * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
537 2006-11-13  Werner LEMBERG  <wl@gnu.org>
539         * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
540         on negative trap positions.
542 2006-11-10  Werner LEMBERG  <wl@gnu.org>
544         * Makefile.comm (.man.n): Handle @DATASUBDIR@.
546 2006-11-09  Werner LEMBERG  <wl@gnu.org>
548         * INSTALL: Move information about external installation from
549         INSTALL.gen into this file.
550         Updated.
552         * INSTALL.gen: Update to new version (from texinfo CVS).
554 2006-11-09  Bernd Warken
556         * INSTALL.gen: Extend the file by information on `external
557         installation'.  Reorder the installation instruction as `normal
558         installation'. 
560 2006-11-08  Werner LEMBERG  <wl@gnu.org>
562         * doc/Makefile.sub (install_data): Take care of proper paths while
563         installing info files.  Bug reported by Bernd Warken.
565 2006-11-06  Bernd Warken
567         * src/roff/grog/grog.pl: Rewrite.
568         - Call by `#! /usr/bin/env perl'.  That isn't replaced.
569         - Rename usage() to version().
570         - Use warnings.
571         - For `use strict', start all global variables with an upper case
572         character.  Use `my' for all variables.  Use several new variables.
573         - Add option `-h'.
574         - Add copyright to GPL and Emacs comment.
575         - Handle several `-m*' options.
576         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
577         - Allow options after file names.
578         - Allow only one `-' parameter (standard input).
579         - Add option abbreviations.
580         - Expand the usage information.
581         - Add `chem'.
582         - Add single quote "'" as additional first character and allow
583         arbitrary space after the first character.
585         * src/roff/grog/grog.sh: Rewrite.
586         - Remove option `-e' of `sed'.
587         - Allow file names with space characters.
588         - Add option `-h'.
589         - Add copyright to GPL.
590         - Handle several `-m*' options.
591         - Fix handling of `-ms' and `-mm'.  Add .TL and .NH.
592         - Allow options after file names.
593         - Allow only one `-' parameter (standard input).
594         - Add option abbreviations.
595         - Expand the usage information.
596         - Add `chem'.
597         - Add single quote "'" as additional first character and allow
598         arbitrary space after the first character.
600         * src/roff/grog/Makefile.sub:
601         - Add copyright to GPL.
602         - Remove `grog:'.  Move `grog.old:' to `grog:' in order to have a
603         fair chance to choose between the shell version and the Perl
604         version of `grog'.  This is now again comparable to grog in groff
605         version 1.10.
607         * src/roff/grog/grog.man: Rewrite.
608         - Move the license to GPL.
609         - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
610         - Take over some setup and macros from `groffer'.
611         - Add information on options.
613 2006-10-28  Werner LEMBERG  <wl@gnu.org>
615         * tmac/trace.tmac: Improve tracing of `.nr'.
616         Trace `.substring' also.
618         * NEWS: Updated.
620 2006-10-28  Bernd Warken
622         * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
623         of groff development site, fix fonts.
625         * News: Add information on `chem' and `groffer'.
627 2006-10-26  Bernd Warken
629         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
631 2006-10-26  Werner LEMBERG  <wl@gnu.org>
633         Add `\%^' escape to handle the parameters to a macro as a string
634         argument.
636         * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
638         * src/roff/troff/input.cpp (input_iterator, input_stack,
639         macro_iterator): Add `space_follows_arg' member function.
640         (macro_iterator::add_arg): Add parameter to set the `space_follows'
641         flag.
642         (arg_list): Add member `space_follows'.
643         Update constructor and all callers.
644         (decode_args): Store discarded double quotes.
645         (interpolate_args): Handle DOUBLE_QUOTE.
646         Add `\%^' escape.
647         (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
649         * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
651         * docs/groff.texinfo (Parameters), man/groff.man,
652         man/groff_diff.man, NEWS: Document it.
654 2006-10-24  Bernd Warken
656         * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
658 2006-10-24  Werner LEMBERG  <wl@gnu.org>
660         * tmac/groff_trace.man: Mention problem with `\\\\'.
662 2006-10-23  Werner LEMBERG  <wl@gnu.org>
664         * doc/groff.texinfo (Expressions): Improve documentation of `!'.
666         * tmac/trace.tmac (return): Don't call `substring'.
668 2006-09-10  Werner LEMBERG  <wl@gnu.org>
670         * src/roff/troff/input.cpp (read_size): Revert previous change
671         w.r.t. `\s-[-...]'.
673         * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
675 2006-09-09  Werner LEMBERG  <wl@gnu.org>
677         * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
678         behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
679         point size to 1).  Reported by Gunnar Ritter.
680         Also catch `\s-[-...]' and friends (causing an error).
682 2006-09-06  Werner LEMBERG  <wl@gnu.org>
684         * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
685         space only if there is no previous space.  This fixes a bug which
686         caused unwanted filling of the last line in a paragraph.  Thanks to
687         Gunnar Ritter for an analysis.
689 2006-09-03  Werner LEMBERG  <wl@gnu.org>
691         * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
692         Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
694 2006-09-01  Nick Stoughton  <nick@msbit.com>
695             Werner LEMBERG  <wl@gnu.org>
697         Add a request `pev' to print environment information (similar to
698         `pnr' and `ptr' to print number registers and traps).
700         * src/roff/troff/env.h (environment): Add member function print_env.
702         * src/roff/troff/env.cpp: (environment::print_env): New function to
703         print a given environment state.
704         (print_env): New global function to iterate through the
705         environments, printing each one.
706         (init_env_requests): Register `pev'.
708         * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
709         NEWS: Document `pev' request.
711 2006-09-01  Bernd Warken
713         * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
714         `-I' to `dir'.
716 2006-09-01  Werner LEMBERG  <wl@gnu.org>
718         * src/preproc/pic/main.cpp (usage): Add missing options.
720 2006-08-25  Werner LEMBERG  <wl@gnu.org>
722         * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
723         in file names.
725 2006-08-19  Werner LEMBERG  <wl@gnu.org>
727         * configure: Regenerated.
729 2006-08-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
731         * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
732         logic; it previously caused an `expr' syntax error, if no version of
733         `makinfo' was present.  Also, remove dependency on `makeinfo' in VPATH
734         builds, if an up to date `groff.info' is present in either `builddir'
735         or in `srcdir'.
737 2006-08-12  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
739         * font/devps/prologue.ps: Add BPhook.
741         * src/devices/grops/grops.man: Document BPHook.
742         Reorder some sections for better readability.
744 2006-08-12  Werner LEMBERG  <wl@gnu.org>
746         * src/include/lib.h (getlocale): New macro.
747         (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
748         suggested by Bruno.
750         * src/preproc/preconv/preconv.cpp (main): Use getlocale.
752 2006-08-11  Werner LEMBERG  <wl@gnu.org>
754         Add new flag to .cflags to enable hyphenation without looking at
755         hcode values.
757         * src/roff/troff/charinfo.h (charinfo): New enumeration value
758         `IGNORE_HCODES'.
759         New member function `ignore_hcodes'.
761         * src/roff/troff/node.cpp (break_char_node::add_self,
762         node::add_char): Updated.
764         * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
766 2006-08-09  Werner LEMBERG  <wl@gnu.org>
768         Support composite Unicode characters again.  Reported by Colin.
770         * font/devhtml/R.proto: Renamed to...
771         * font/devhtml/R.in: This.
773         * font/devutf8/R.proto: Renamed to...
774         * font/devutf8/R.in: This.
775         Add `charset' line.
777         * font/make-Rproto: New script.
778         * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
780 2006-07-26  Werner LEMBERG  <wl@gnu.org>
782         * README: Fix description of CVS access.  Reported by Joachim.
784 2006-07-11  Werner LEMBERG  <wl@gnu.org>
786         Add a request `.fzoom' and a number register `.zoom' to magnify
787         fonts.
789         * src/include/font.h (font): Add member variable `zoom'.
790         Add member functions `set_zoom' and `get_zoom'.
791         Remove `static' attribute from `scale' member function.
793         * src/libs/libgroff/font.cpp (font::font): Updated.
794         (scale_round): New version with three parameters to handle zoom
795         factor.
796         (font::scale, font::get_width): Handle zoom factor.
797         (font::set_zoom, font::get_zoom): New functions.
798         (font::load): Handle `zoom' while computing `space_width'.
800         * src/roff/troff/env.h: Declare `env_get_zoom'.
801         (environment): Add member function `get_zoom'.
803         * src/roff/troff/env.cpp (environment::get_zoom): New function.
804         (init_env_requests): Initialize `.zoom' register.
806         * src/roff/troff/node.cpp (font_info): New member functions
807         `set_zoom' and `get_zoom'.
808         (tfont): New member function `get_zoom'.
809         (env_get_zoom): New function.
810         (troff_output_file::set_font): Handle zoom factor.
811         (font_zoom_request): New function.
812         (init_node_requests): Initialize `fzoom' request.
814         * docs/groff.texinfo (Changing Fonts), man/groff.man,
815         man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
816         register.
818         * src/roff/troff/TODO: Updated.
820 2006-07-10  Werner LEMBERG  <wl@gnu.org>
822         * doc/groff.texinfo (Drawing Requests): Improve documentation of
823         \D'P ...'.
825 2006-07-02  Werner LEMBERG  <wl@gnu.org>
827         * man/groff_tmac.man: Document usage of .PSPIC within diversions.
829 2006-07-01  Werner LEMBERG  <wl@gnu.org>
831         * tmac/pspic.tmac: Make .PSPIC work for all devices.
832         Print image file name for devices which don't support PS image
833         inclusion.
834         Handle multiple inclusions.
835         Add lots of comments.
837         * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
838         pspic.tmac.
840         * tmac/troffrc: Load pspic.tmac.
842         * man/groff_tmac.man: Update .PSPIC documentation.
844         * NEWS: Updated.
846 2006-06-29  Werner LEMBERG  <wl@gnu.org>
848         * src/roff/troff/input.cpp (interpolate_macro):
849         s/probably/possibly/, as suggested by Keith.
851 2006-06-28  Werner LEMBERG  <wl@gnu.org>
853         Add support for \D'p...' to grotty.
855         * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
856         its code to...
857         (tty_printer::line): This function.
858         (tty_printer::draw): Rewritten; just call either draw_line or
859         draw_polygon.
860         (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
862         * src/devices/grotty/grotty.man, NEWS: Document it.
864 2006-06-27  Werner LEMBERG  <wl@gnu.org>
866         * src/preproc/refer/command.h (have_bibliography): New variable
867         declaration.
869         * src/preproc/refer/command.cpp (bibliography_command): Set
870         `have_bibliography'.
872         * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
873         (output_references): Emit warning only if `have_bibliography' is
874         set.
876 2006-06-15  Michail Vidiassov  <master@iaas.msu.ru>
878         * fonts/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
879         * fonts/devps/generate/Makefile (clean): Don't remove symbolsl.afm
880         and zapfdr.afm.
882 2006-06-15  Werner LEMBERG  <wl@gnu.org>
884         * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
885         macro (as suggested by Tadziu Hoffmann).
887 2006-06-12  Werner LEMBERG  <wl@gnu.org>
889         * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
890         macro (as suggested by Tadziu Hoffmann).
892 2006-06-05  Werner LEMBERG  <wl@gnu.org>
894         * tmac/strip.sed: Strip `\#' also.
896         * doc/groff.texinfo (Operators in Conditionals): Document usage of
897         \? for string comparison.
899 2006-06-04  Werner LEMBERG  <wl@gnu.org>
901         * doc/groff.texinfo: Add more index entries for copy-in mode.
902         (Changing Fonts) <.ft>: Document that a font definition file must
903         not be called `DESC'.
905 2006-05-31  Werner LEMBERG  <wl@gnu.org>
907         * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
908         here.
910         * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
911         (PROCESSEDEXAMPLEFILES): Here.
913 2006-05-30  Werner LEMBERG  <wl@gnu.org>
915         * src/libs/libgroff/font.cpp (font::load): Reject fonts called
916         `DESC'.
917         Reduce number of false positives for `.if F ...' conditionals.
918         Improve warning messages.
920 2006-05-29  Werner LEMBERG  <wl@gnu.org>
922         * tmac/Makefile.sub: Add copyright notice.
923         (NORMALFILES): Add man.tmac and ms.tmac.
924         (SPECIALFILES): Remove man.tmac and ms.tmac.
925         (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
926         (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
927         specially.
928         (stamp-sed): Don't handle man.tmac and ms.tmac.
929         Remove obsolete components in sed's regexp.
931         * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
933         * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
935 2006-05-28  Werner LEMBERG  <wl@gnu.org>
937         * doc/groff.texinfo (History): Correct death circumstances of Joe
938         Ossanna.
940 2006-05-27  Werner LEMBERG  <wl@gnu.org>
942         * tmac/an-old.tmac (an-do-tag): Simplify.
944 2006-05-26  Werner LEMBERG  <wl@gnu.org>
946         * tmac/an-old.tmac (an-do-tag): Make margin characters work.
947         (an-header, an-p-footer): Use named environment.
949         * src/roff/troff/env.cpp (environment::copy): Copy margin character
950         node.
952 2006-05-21  Werner LEMBERG  <wl@gnu.org>
954         * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
955         omissions.
957 2006-05-11  Keith Marshall  <keith.d.marshall@ntlworld.com>
959         * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
961 2006-05-10  Keith Marshall  <keith.d.marshall@ntlworld.com>
963         * src/roff/groff/groff.man: Update copyright notice.
964         Improved wording to describe effect of `-Z' option.
966 2006-05-06  Werner LEMBERG  <wl@gnu.org>
968         * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
969         Normalize handling of `"' in arguments.
970         (PIMG): Remove debug message.
971         Simplify code.
973 2006-05-05  Werner LEMBERG  <wl@gnu.org>
975         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
976         swallow character immediately after `\[...]'.
977         Simplify code.
979 2006-05-02  Gaius Mulley  <gaius@glam.ac.uk>
981         * tmac/www.tmac (PIMG): Fix the HTML device specific components.
983 2006-05-02  Larry Kollar  <kollar@alltel.net>
985         * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
986         option is missing.
988 2006-04-30  Michail Vidiassov  <master@iaas.msu.ru>
990         * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
991         information as a comment in output.
992         * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
994 2006-04-26  Werner LEMBERG  <wl@gnu.org>
996         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
997         Handle current_paragraph only if it is non-NULL.
999         * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1000         <'F'>): Use `get_extended_arg' to behave as documented.  Reported by
1001         Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1004         Surround the (pseudo) file name for the .pso request with `<' and
1005         `>'.
1007         * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1008         second parameter to `really_put_filename' and `put_filename'.
1009         (troff_output_file::really_put_filename): Emit `<' and `>' around
1010         filename if second argument is set.
1011         * src/roff/troff/node.h: Updated.
1013         * src/roff/troff/input.cpp (file_iterator::file_iterator,
1014         file_iterator::set_location): Update to changes in node.cpp.
1016 2006-04-25  Tetsurou Okazaki  <okazaki@FreeBSD.org>
1018         * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1019         preprocessor expression (I18N -> HAVE_ICONV).
1020         (main): Fix handling of option `-h'.
1021         Fix conditional preprocessor expression.
1023 2006-04-04  Werner LEMBERG  <wl@gnu.org>
1025         Implement new number register `.br' which is set to 1 if a macro has
1026         been called as .foo and to 0 if called as 'bar.  This is useful for
1027         -mtrace so that requests can be reliably traced too.
1029         * src/roff/troff/input.cpp (input_iterator): Add virtual function
1030         `get_break_flag'.
1031         (macro_iterator): Add `with_break' member and `get_break_flag'
1032         function.
1033         Update constructors.
1034         (input_stack): Add function `get_break_flag'.
1035         (break_flag_reg): New number register class.
1036         (input_init_requests): Register `.br'.
1038         * src/roff/troff/TODO: Updated.
1040         * tmac/trace.tmac: s/!!sp/!!!sp/.
1041         Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1043         * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1044         NEWS: Document it.
1046 2006-03-29  Werner LEMBERG  <wl@gnu.org>
1048         * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1049         messages where appropriate.
1051 2006-03-28  Werner LEMBERG  <wl@gnu.org>
1053         * configure.ac: Call AC_PROG_EGREP.
1054         * configure: Regenerated.
1056         * Makefile.in (EGREP): New variable.
1057         (MDEFINES): Add $(EGREP).
1059         * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1060         (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1061         Use @EGREP@.
1063         * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1065 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1067         Add two requests `.device' and `.devicem' which are equivalent to
1068         `\X' and `\Y', respectively.
1070         * src/roff/troff/input.cpp (device_request, device_macro_request):
1071         New functions.
1072         (init_input_requests): Register them.
1074         * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1075         man/groff.man, NEWS: Document them.
1077 2006-03-27  Gaius Mulley  <gaius@glam.ac.uk>
1079         * src/roff/troff/input.cpp (encode_char): Emit special characters
1080         for -Thtml as `\[...]'.
1081         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1083         * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1085 2006-03-27  Werner LEMBERG  <wl@gnu.org>
1087         * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1088         files.
1090 2006-03-26  Werner LEMBERG  <wl@gnu.org>
1092         * doc/groff.texinfo (Writing Macros): More documentation on
1093         end-of-macro symbol of `.de'.
1094         (Diversions): Minor addition to `.di' description.
1096         * src/devices/grops/grops.man: Some clarifications regarding
1097         insertion of PostScript snippets.
1099 2006-03-25  Michail Vidiassov  <master@iaas.msu.ru>
1101         Add rules to generate `symbolsl.afm'.
1103         * fonts/devps/generate/zapfdr.sed,
1104         fonts/devps/generate/symbolsl.awk: New files.
1106         * fonts/devps/generate/Makefile (symbolfont, PRINTAFM): New
1107         variables.
1108         (SS, clean): Updated.
1109         (freeeuro.afm): Use $(srcdir).
1110         (symbolsl.afm): New rule.
1111         (zapfdr.afm): Use zapfdr.sed.
1113 2006-03-22  Dwight Aplevich  <aplevich@uwaterloo.ca>
1115         * src/preproc/pic/pic.y (expr <INT>): Fix code.
1117 2006-03-22  Jörgen Grahn <jgrahn@algonet.se>
1119         * tmac/sv.tmac: Add missing translations and activate support for
1120         other macro packages.
1122 2006-03-21  Francis GUDIN  <fgudin@nerim.net>
1124         * tmac/doc-syms (Dx): New macro to identify DragonFly.
1125         (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1126         doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1127         strings.
1128         (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1129         doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1130         doc-operating-system-DragonFly-*): New operating system strings.
1132         * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1134 2006-03-21  Werner LEMBERG  <wl@gnu.org>
1136         * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1137         both DWB pic and dpic, make
1139           right;
1140           line then down;
1142         equal to
1144           right;
1145           line right then down;
1147         instead of
1149           right;
1150           line 0 then down;
1152         * doc/pic.ms: Document this.
1154 2006-03-20  Werner LEMBERG  <wl@gnu.org>
1156         * doc/pic.ms: With permission of Eric Raymond, put it under the
1157         GPL.
1159         * NEWS: Updated.
1161 2006-03-19  Werner LEMBERG  <wl@gnu.org>
1163         * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1165         * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1166         attribute in combination with `with'.  Bug reported by Jennifer
1167         Sayers <jenjen@mail.usyd.edu.au>.
1169 2006-03-19  Miklos Somogyi  <msom@netspace.net.au>
1171         * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1172         `.sp'.
1174 2006-03-18  Werner LEMBERG  <wl@gnu.org>
1176         * LICENSE: Renamed to...
1177         * LICENSES: This.  Collect all licensing information in this file.
1178         * tmac/README, src/libs/snprintf/README: Removed.
1180         * src/devices/grops/grops.man: Add section how to install fonts.
1182         * src/utils/xtotroff/xtotroff.c: Add GPL.
1184 2006-03-17  Werner LEMBERG  <wl@gnu.org>
1186         * Makefile.comm (.y.cpp): Fix #line arguments in output.
1188 2006-03-13  Werner LEMBERG  <wl@gnu.org>
1190         * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1192         * tmac/doc-common (Os): Add more Darwin versions.
1193         * tmac/groff_mdoc.man: Document them.
1195         * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1196         works with \N'...' also.
1197         * man/groff_diff.man: Ditto.  Remove use of future tense where
1198         possible.
1200 2006-03-12  Michail Vidiassov  <master@iaas.msu.ru>
1202         * fonts/devps/generate/make-zapfdr, fonts/devps/symbolsl.ps,
1203         fonts/devps/zapfdr.ps: Add `%%EndComments' line.
1205 2006-03-10  Larry Kollar  <kollar@alltel.net>
1207         * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1209 2006-03-10  Werner LEMBERG  <wl@gnu.org>
1211         * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1212         ps_printer::do_mdef): Overlong lines now cause a warning message,
1213         not an error.
1215 2006-03-09  Werner LEMBERG  <wl@gnu.org>
1217         * font/devps/generate/make-zapfdr: New script for generating
1218         `zapfdr.ps'.
1220 2006-03-08  Werner LEMBERG  <wl@gnu.org>
1222         * doc/groff.css (pre): Fix `background-color' value.
1224 2006-03-04  Larry Kollar  <kollar@alltel.net>
1226         * tmac/groff_ms.man: Document PT, HD, and BT.
1228 2006-03-04  Werner LEMBERG  <wl@gnu.org>
1230         * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1231         for single-letter glyph names.
1233 2006-03-02  Werner LEMBERG  <wl@gnu.org>
1235         * tmac/sv.tmac: New file; currently holding only the Swedish strings
1236         for -mm.
1237         * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1238         from CTAN.
1239         * tmac/README: Updated.
1241 2006-02-27  Werner LEMBERG  <wl@gnu.org>
1243         * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1244         * tmac/fr.tmac: Add French translations.
1246         * tmac/composite.tmac: Add entry for `:'.
1248 2006-02-26  Werner LEMBERG  <wl@gnu.org>
1250         * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1251         (CLEANADD): Use it.
1252         (install_html, uninstall_sub): Updated.
1254 2006-02-26  Bruno Haible  <bruno@clisp.org>
1256         Introduce Unicode fonts.
1258         * font/devhtml/DESC.proto: Mark as unicode.
1259         * font/devhtml/R.proto: Remove all charset entries that are already
1260         in glyphuni.cpp.
1261         * font/devutf8/DESC.proto: Mark as unicode.
1262         * font/devutf8/R.proto: Remove all charset entries.
1263         * src/include/font.h (font): New static field `is_unicode'.
1264         Change order of fields.
1265         * src/libs/libgroff/font.cpp: Include unicode.h.
1266         (font::font): Update for changed order of fields.
1267         (font::contains, font::get_width, font::get_height, font::get_depth,
1268         font::get_italic_correction, font::get_left_italic_correction,
1269         font::get_subscript_correction, font::get_character_type,
1270         font::get_code, font::get_special_device_encoding): Handle both the
1271         explicitly enumerated glyphs and use general code for Unicode fonts.
1272         (font::load): Make the charset section optional when the font is
1273         declared unicode.
1274         (font::load_desc): Recognize the `unicode' attribute.
1275         * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1277 2006-02-26  Claudio Fontana  <claudio@gnu.org>
1279         * Makefile.in: Add comment about DESTDIR.
1281         * Makefile.sub: Add DESTDIR to install and uninstall targets
1282         to support staged installations.
1283         * Makefile.comm: Likewise.
1284         * doc/Makefile.sub: Likewise.
1285         * contrib/eqn2graph/Makefile.sub: Likewise.
1286         * contrib/gdiffmk/Makefile.sub: Likewise.
1287         * contrib/grap2graph/Makefile.sub: Likewise.
1288         * contrib/pic2graph/Makefile.sub: Likewise.
1289         * src/devices/xditview/Makefile.sub: Likewise.
1290         * src/preproc/eqn/Makefile.sub: Likewise.
1291         * src/roff/grog/Makefile.sub: Likewise.
1292         * src/roff/nroff/Makefile.sub: Likewise.
1293         * src/utils/afmtodit/Makefile.sub: Likewise.
1294         * src/utils/indxbib/Makefile.sub: Likewise.
1295         * tmac/Makefile.sub: Likewise.
1297 2006-02-24  Werner LEMBERG  <wl@gnu.org>
1299         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1300         for \-.
1301         Remove commented out entries for \' and \` (there are no such glyph
1302         names).
1304         * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1305         commented out entries for \' and \`.
1308         * */*: s/legal/valid/ where appropriate.
1310 2006-06-23  Werner LEMBERG  <wl@gnu.org>
1312         * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
1313         and \` entries.
1315 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1317         Remove all remaining traces from the `shc' glyph.
1319         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1320         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1321         entry for `shc'.
1323         * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
1324         entry with unnamed glyph.
1326         * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
1328         * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
1329         specially.
1331 2006-02-22  Bruno Haible  <bruno@clisp.org>
1333         Concretize the `glyph' datatype.
1335         * src/include/font.h (glyph): Remove class.
1336         (glyph): Renamed from struct `glyphinfo'.
1337         (glyph_to_index): New inline function.
1338         (glyph_to_name): Make extern, not inline.
1339         (glyph_to_number): Update.
1340         (font): Use `glyph *' instead of `glyph'.
1342         * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
1343         `glyph'.  Make `name' field public.
1344         (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
1345         instead of `glyph'.
1346         (glyph_to_name): Renamed from `glyph::glyph_name'.
1348         * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
1349         Use `glyph *' instead of `glyph'.
1351         * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
1352         `glyph *' instead of `glyph'.
1353         (glyph_to_name): Renamed from `glyph::glyph_name'.
1355         * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
1356         and `glyph_to_index' instead of `glyph::glyph_index'.
1358         * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
1359         * src/libs/libdriver/printer.cpp: Likewise.
1360         * src/devices/grodvi/dvi.cpp: Likewise.
1361         * src/devices/grohtml/post-html.cpp: Likewise.
1362         * src/devices/grolbp/lbp.cpp: Likewise.
1363         * src/devices/grolj4/lj4.cpp: Likewise.
1364         * src/devices/grops/ps.cpp: Likewise.
1365         * src/devices/grotty/tty.cpp: Likewise.
1367 2006-02-22  Werner LEMBERG  <wl@gnu.org>
1369         * font/devdvi/generate/tc.map: Add `sr' glyph.
1370         * font/devdvi/*TC: Regenerated.
1372         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1373         for `sqrt'.
1375 2006-02-21  Werner LEMBERG  <wl@gnu.org>
1377         * man/groff_char.man: Explain `***' marker.
1379 2006-02-17  Bruno Haible  <bruno@clisp.org>
1381         * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
1382         methods and fields from *_index to *_glyph.
1383         (character_indexer::named_char_glyph): Test for `charNNN' name
1384         here...
1385         (name_to_glyph): ... not here.
1387 2006-02-17  Bruno Haible  <bruno@clisp.org>
1389         * src/include/font.h (name_to_glyph): Renamed from
1390         font::name_to_index.
1391         (number_to_glyph): Renamed from font::number_to_index.
1392         (glyph_to_name): Renamed from font::index_to_name.
1393         (glyph_to_number): Renamed from font::index_to_number.
1394         * src/libs/libgroff/nametoindex.cpp: Likewise.
1395         * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
1396         charinfo::get_index.
1398         * src/roff/troff/input.cpp: All callers changed.
1399         * src/roff/troff/node.cpp: Likewise.
1400         * src/libs/libgroff/font.cpp: Likewise.
1401         * src/devices/grops/ps.cpp: Likewise.
1402         * src/devices/grohtml/post-html.cpp: Likewise.
1403         * src/libs/libdriver/printer.cpp: Likewise.
1405 2006-02-17  Werner LEMBERG  <wl@gnu.org>
1407         * src/include/ptable.h, src/include/itable.h
1408         (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
1409         of external symbol `next_ptable_size' (used by both header files).
1411 2006-02-15  Bruno Haible  <bruno@clisp.org>
1413         * src/include/font.h (glyphinfo): New class.
1414         (glyph): Change internal representation.
1415         Change constructor signature.
1416         New method glyph::glyph_number().
1417         (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
1418         glyph::operator==, glyph::operator!=): Update.
1419         (font::index_to_name, font::index_to_number): New functions.
1421         * src/include/itable.h: New file, based on src/include/ptable.h.
1423         * src/libs/libgroff/nametoindex.cpp: Include itable.h.
1424         (class charinfo): New class.
1425         (class character_indexer): Change table result type from `int' to
1426         `class charinfo'.
1427         Add table with integer key.
1428         (character_indexer::character_indexer): Update.
1429         (character_indexer::ascii_char_index): Update.
1430         (character_indexer::numbered_char_index): Use NULL as name, not a
1431         string starting with a space.
1432         (character_indexer::named_char_index): Update.
1433         (font::number_to_index, font::name_to_index): Remove no-op cast.
1434         (glyph::glyph_name): New method.
1435         * src/roff/troff/charinfo.h (class charinfo): Inherit from class
1436         glyphinfo.
1437         (NUMBERED): Remove flag bit.
1438         (charinfo::numbered, charinfo::get_index): Update.
1440         * src/roff/troff/input.cpp (charinfo::charinfo): Update.
1441         (charinfo::set_number, charinfo::get_number): Update.
1442         (glyph::glyph_name): New method.
1444 2006-02-15  Werner LEMBERG  <wl@gnu.org>
1446         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
1447         entries for `>>', `<<', `*f', and `+f'.  Reported by Bruno.
1449 2006-02-13  Werner LEMBERG  <wl@gnu.org>
1451         * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
1452         dvips.
1454 2006-02-11  Werner LEMBERG  <wl@gnu.org>
1456         * src/include/font.h: s/glyph_t/glyph/.
1457         Update all callers.
1459         * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
1460         s/output_character_t/output_character/.
1462 2006-02-11  Bruno Haible  <bruno@clisp.org>
1464         New accessor method glyph_t::glyph_name().
1466         * src/include/ptable.h (declare_ptable): Add a return value to the
1467         `define' method, and declare a `lookupassoc' method.
1468         (implement_ptable): Return the stored key in `define'.  Implement
1469         lookupassoc.
1470         * src/include/font.h (glyph_t): Add `name' field.  Add an argument
1471         to the constructor.
1472         (glyph_t::glyph_name): New method.
1474         * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
1475         return type of methods and field member type to glyph_t.
1476         (character_indexer::character_indexer): Update.
1477         (character_indexer::ascii_char_index): Allocate a name for the
1478         glyph.
1479         Return a glyph_t with name.
1480         (character_indexer::numbered_char_index): Return a glyph_t without a
1481         name.
1482         (character_indexer::named_char_index): Return a glyph_t with a name.
1483         (font::number_to_index, font::name_to_index): Update.
1485         * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
1486         the glyph's name.
1488 2006-02-11  Bruno Haible  <bruno@clisp.org>
1490         * src/devices/grotty/tty.cpp (output_character_t): New type.
1491         (tty_printer::make_bold, tty_printer::add_char,
1492         tty_printer::put_char): Change argument type to output_character_t.
1493         (crossings): Change element type to output_character_t.
1495 2006-02-11  Bruno Haible  <bruno@clisp.org>
1497         Make the glyph data type abstract.
1499         * src/include/font.h (glyph_t): New class.
1500         (name_to_index, number_to_index): Change return type to glyph_t.
1501         (font::contains, font::get_width, font::get_height, font::get_depth,
1502         font::get_character_type, font::get_kern, font::get_skew,
1503         font::get_italic_correction, font::get_left_italic_correction,
1504         font::get_subscript_correction, font::get_code,
1505         font::get_special_device_encoding, font::add_entry,
1506         font::copy_entry, font::add_kern, font::hash_kern): Change argument
1507         type to glyph_t.
1509         * src/libs/libgroff/font.cpp (font_kern_list): Change members
1510         type and constructor argument types to glyph_t.
1511         (font::contains, font::get_width, font::get_height, font::get_depth,
1512         font::get_character_type, font::get_kern, font::get_skew,
1513         font::get_italic_correction, font::get_left_italic_correction,
1514         font::get_subscript_correction, font::get_code,
1515         font::get_special_device_encoding, font::add_entry,
1516         font::copy_entry, font::add_kern, font::hash_kern): Change argument
1517         type to glyph_t.
1518         (font::load): Use glyph_t variables.
1520         * src/libs/libgroff/nametoindex.cpp (name_to_index,
1521         number_to_index): Change return type to glyph_t.
1523         * src/roff/troff/charinfo.h (charinfo::index): Change type to
1524         glyph_t.
1525         (charinfo::get_index): Change return type to glyph_t.
1527         * src/roff/troff/env.cpp: Include font.h.
1529         * src/roff/troff/node.cpp: Include font.h before charinfo.h.
1531         * src/roff/troff/input.cpp: Include font.h before charinfo.h.
1532         (charinfo::charinfo): Update.
1533         (name_to_index, number_to_index): Change return type to glyph_t.
1535         * src/include/printer.h (printer::set_char_and_width): Change return
1536         type to glyph_t.
1538         * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
1539         Change return type to glyph_t.
1541         * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
1542         argument type to glyph_t.
1544         * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
1545         (html_printer::space_glyph): Renamed from space_char_index.
1546         (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
1547         html_printer::overstrike, html_printer::set_char): Change argument
1548         type to glyph_t.
1549         (html_printer::set_char_and_width): Change return type to glyph_t.
1551         * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
1552         argument type to glyph_t.
1554         * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
1555         argument type to glyph_t.
1557         * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
1558         space_char_index.
1559         (ps_printer::set_subencoding, ps_printer::set_char): Change argument
1560         type to glyph_t.
1562         * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
1563         argument type to glyph_t.
1565 2006-02-11  Bruno Haible  <bruno@clisp.org>
1567         * src/roff/troff/input.cpp (font::name_to_index): Never return a
1568         negative value.
1570         * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
1571         font::name_to_index.
1573 2006-02-10  Werner LEMBERG  <wl@gnu.org>
1575         * doc/groff.texinfo (Assigning Formats): Number registers are always
1576         interpolated.
1577         Apply some rephrasing, contributed by Michael Burt.
1579 2006-02-07  Werner LEMBERG  <wl@gnu.org>
1581         * tmac/fr.tmac <ms>: Set `HY' register.
1583 2006-02-07  Werner LEMBERG  <wl@gnu.org>
1585         Add framework for simple adaptation of the main macro packages (mm,
1586         me, ms, mom) to different locales.  In particular, add support for
1587         French.  For activation, simply use `-mfr' as the last macro
1588         package.  This feature has been contributed by Fabrice Ménard
1589         <menard.fabrice@wanadoo.fr>.
1591         * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
1592         New files.
1593         * tmac/README: Mention hyphen.fr.
1594         * man/groff_tmac.man: Mention fr.tmac.
1595         * NEWS: Updated.
1597 2006-01-27  Werner LEMBERG  <wl@gnu.org>
1599         * man/groff_font.man: Updated documentation of `entity_name' field.
1600         Avoid future tense.
1602 2006-01-27  Bruno Haible  <bruno@clisp.org>
1604         * font/devhtml/R.proto: Remove the entity names from the font's
1605         special_encoding_encoding column.
1606         * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
1607         handling the entity names here.
1608         (get_html_translation): Use it.  Change return type to `const
1609         char *'.
1610         (page::add_and_encode): Update, removing a useless cast.
1612 2006-01-26  Werner LEMBERG  <wl@gnu.org>
1614         This change is based on a patch by Bruno Haible <bruno@clisp.org>.
1616         * src/include/device.h: Add comments.
1617         * src/include/font.h: Add comments.
1618         * src/include/unicode.h: Likewise.
1619         * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
1621 2006-01-26  Keith Marshall  <keith.d.marshall@ntlworld.com>
1623         Suppress `.st' request emission by `grn'.
1625         * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
1626         (conv): Use it.
1628 2006-01-22  Werner LEMBERG  <wl@gnu.org>
1630         * install-sh: New version; taken from texinfo CVS.
1632 2006-01-21  Werner LEMBERG  <wl@gnu.org>
1634         * src/preproc/preconv/preconv.cpp (main): Set program_name.  Bug
1635         reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
1637 2006-01-19  Bruno Haible  <bruno@clisp.org>
1639         Let `make -k install' install more files.
1641         * Makefile.in (MAKE_K_FLAG): New variable.  Use it everywhere where
1642         $(MAKE) and $(MDEFINES) are used.
1643         (CPROGDIRS): Remove $(XPROGDIRS).  Treat $(XPROGDIRS) like
1644         $(CPROGDIRS) everywhere.
1645         ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
1646         on $(XPROGDIRS).
1647         ($(OTHERDIRS)): Likewise.
1650         * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
1651         failure test for font::name_to_index -- it can never fail.
1653 2006-01-19  Werner LEMBERG  <wl@gnu.org>
1655         * src/devices/grops/grops.man: Fix section on creating EPS files.
1656         Don't use future time in manual.
1657         Other minor fixes.
1659 2006-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1661         * tmac/www.tmac: New macro LINKSTYLE which allows users to set
1662         various typographical URL attributes for non-HTML devices.
1664         * tmac/groff_www.man: Document LINKSTYLE.
1666 2006-01-11  Werner LEMBERG  <wl@gnu.org>
1668         * configure.ac: Test for getc_unlocked (needed for localcharset).
1669         * configure, src/include/config.hin: Regenerated.
1671         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
1672         ENABLE_RELOCATABLE.
1674         * src/libs/libgroff/relocatable.h: New dummy header file for
1675         localcharset.c.
1677         * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
1678         gnulib version.
1680 2006-01-10  Bruno Haible  <bruno@clisp.org>
1682         Work around unportability of nl_langinfo(CODESET).
1684         * m4/glibc21.m4: New file, from gnulib.
1685         * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
1686         * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
1687         * Makefile.in (HOST, GLIBC21): New variables.
1688         (MDEFINES): Pass them to subdirectories.
1689         * src/include/relocate.h (relocatep): Define with C linkage.
1690         * src/include/localcharset.h: New file, from gnulib.
1691         * src/libs/libgroff/localcharset.c: New file, from gnulib with a
1692         modification for relocate().
1693         * src/libs/libgroff/config.charset: New file, from gnulib.
1694         * src/libs/libgroff/ref-add.sin: New file, from gnulib.
1695         * src/libs/libgroff/ref-del.sin: New file, from gnulib.
1696         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
1697         (OBJS): Add localcharset.o.
1698         (CSRCS): Add localcharset.c.
1699         (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
1700         (charset.alias): New rule.
1701         (PACKAGE): New variable.
1702         (ref-add.sed, ref-del.sed): New rules.
1703         (MKINSTALLDIRS): New variable.
1704         (install_data): Depend on install_charset_data.
1705         (install_charset_data): New rule for creating or updating
1706         charset.alias.
1707         (uninstall_sub): Depend on uninstall_charset_data.
1708         (uninstall_charset_data): New rule for uninstalling or updating
1709         charset.alias.
1710         * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
1711         of <langinfo.h>.
1712         (main): Initialize default_encoding from locale_charset() instead of
1713         nl_langinfo(CODESET).
1715         * aclocal.m4, configure, src/include/config.hin: Regenerated.
1717 2006-01-10  Werner LEMBERG  <wl@gnu.org>
1719         * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
1720         ICONV_CONST in call to iconv.  Reported by Robert Goulding.
1722 2006-01-07  Werner LEMBERG  <wl@gnu.org>
1724         * fonts/devps/generate/freeeuro.sfd: Run auto-hinter with recent
1725         fontforge version.
1726         Bump font version to 001.001.
1728         * fonts/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
1729         Call fontforge, not pfaedit.
1731         * fonts/devps/freeeuro.afm, fonts/devps/freeeuro.pfa: Regenerated.
1733 2006-01-05  Ruslan Ermilov  <ru@FreeBSD.org>
1735         * tmac/doc-common: Add new FreeBSD and NetBSD versions.
1736         * tmac/groff_mdoc.man: Updated.
1738 2006-01-05  Werner LEMBERG  <wl@gnu.org>
1740         * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
1741         (raw_flag): New global variable.
1742         (do_file): Use .lf to set file name (if `raw_flag' isn't set).
1743         Don't pass BOM to `conversion_utf8'.
1744         (usage): Updated.
1745         (main): Handle `-r' command line switch to set `raw_flag'.
1746         (get_BOM): Fix encodings in `BOM_table'.
1748         * src/preproc/preconv/preconv.man: New file.  Not complete yet.
1749         * src/preproc/proconv/Makefile.sub (MAN1): New variable.
1751 2006-01-04  Werner LEMBERG  <wl@gnu.org>
1753         * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
1754         Bruno, comment out most encodings to support only a small set of
1755         coding tags, thus reducing potential problems with legacy encodings
1756         and character sets in the future.
1757         Add many XEmacs coding tags (now commented out).
1758         Add `cp1047'.
1759         (check_encoding_tag): Renamed to...
1760         (check_coding_tag): This.
1761         (get_BOM): Return encoding as specified by BOM.
1762         Test for UTF32-LE too.
1763         (do_file): Don't check for coding tag if a BOM has been found.
1765 2006-01-03  Bruno Haible  <bruno@clisp.org>
1767         * m4/groff.m4: Renamed from aclocal.m4.
1768         * m4/codeset.m4: New file, from gnulib.
1769         * m4/iconv.m4: New file, from gnulib.
1770         * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
1771         gnulib.
1772         * config.rpath: New file, from gnulib.
1773         * config.guess, config.sub: New files, from gnulib.
1774         * Makefile.sub (M4MACROS): New variable.
1775         (configure): Fix typo.
1776         (aclocal.m4): New rule.
1777         (stamp-h.in): Depend on aclocal.m4.
1778         * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
1779         * Makefile.in (LIBICONV): New variable.
1780         (MDEFINES): Pass it to recursive makes.
1781         * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
1782         HAVE_ICONV instead of I18N macro.
1783         * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
1785         * aclocal.m4, configure, src/include/config.hin: (Re)generated.
1787 2006-01-03  Werner LEMBERG  <wl@gnu.org>
1789         * doc/Makefile.in (webpage.html): Simplify.
1790         * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
1791         * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
1793 2006-01-01  Werner LEMBERG  <wl@gnu.org>
1795         * tmac/doc-common (Os): Add some Darwin versions.
1796         * tmac/groff_mdoc.man: Document them.
1798 2006-01-01  Bruno Haible  <bruno@clisp.org>
1800         * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
1801         corrections:
1802           . Don't map ascii to latin-1.
1803           . Don't use IBMxxx encodings but cpxxx for portability.
1804           . Map cp932, cp936, cp949, cp950 to itself.
1805         (emacs2mime): Protect calls to strcasecmp.
1806         (conversion_iconv): Add missing call to iconv_close.
1807         (do_file): Emit error message in case of unsupported encoding.
1809 2005-12-31  Werner LEMBERG  <wl@gnu.org>
1811         Integrate preconv into the groff binary.  Changes based on a patch
1812         from Michail Vidiassov.
1814         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
1816         * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
1817         (SOELIM_INDEX): Updated.
1818         (help, synopsis): Updated.
1819         (main): Add command line options `-k' and `-K enc' to select
1820         encoding.
1821         Add support for GROFF_ENCODING environment variable.
1823         * src/roff/groff/groff.man: Updated and revised.
1826         Start with autoconf support for preconv.
1828         * configure.ac: Call AC_C_BIGENDIAN.
1829         * configure, src/include/config.hin: Regenerated.
1831 2005-12-30  Werner LEMBERG  <wl@gnu.org>
1833         New preprocessor `preconv' to convert input encodings to something
1834         groff can understand.  Not yet integrated within groff.  Proper
1835         autoconf stuff is missing too.
1837         Tomohiro Kubota has written a first draft of this program, and some
1838         ideas have been reused (while almost no code has been taken
1839         actually).
1841         * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
1842         New files.
1844         * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
1845         (GROFF_BIN_PATH): Add preconv.
1847 2005-12-12  Werner LEMBERG  <wl@gnu.org>
1849         * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
1850         In particular, don't use `\+' since it is a GNU sed extension.
1852         * configure: Regenerated.
1854 2005-12-09  Werner LEMBERG  <wl@gnu.org>
1856         * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. 
1858         * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
1859         4.1.0.
1862         * src/utils/afmtodit/make-afmtodit-tables: New script to generate
1863         afmtodit.tables.
1865         * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
1866         4.1.0 data.
1868         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1869         %AGL_to_unicode): Removed.  Replace it with a tag.
1871         * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
1872         to replace tag with actual file contents.
1874 2005-12-08  Werner LEMBERG  <wl@gnu.org>
1876         The change 2005-06-20 can indeed cause problems, so we follow the
1877         advice by using marks.
1879         * font/devps/prologue.ps (PBEGIN): Use `mark'.
1880         (PEND): Use `cleartomark'.
1882 2005-12-07  Michail Vidiassov  <master@iaas.msu.ru>
1884         * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
1885         glyphs which have kern values but aren't handled (glyph variants,
1886         for example).
1888 2005-12-02  Werner LEMBERG  <wl@gnu.org>
1890         * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
1891         subfont index.  Reported by Michail Vidiassov <master@iaas.msu.ru>.
1893 2005-11-28  Gaius Mulley  <gaius@glam.ac.uk>
1895         * doc/Makefile.in: Separate rule for webpage.html so that extra
1896         command line options can be passed to grohtml.
1897         * doc/groff.css: Change all margins to 0%.
1898         * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
1899         navigation is exploited.  Also update webpage to contain new
1900         sections on licenses, mailing lists, cvs/ftp access, groff
1901         dependencies, and bug reports.
1902         * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
1903         * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
1904         
1905 2005-11-25  Gaius Mulley  <gaius@glam.ac.uk>
1907         * src/devices/grohtml/post-html.cpp
1908         (html_printer::do_file_components): Add fputs calls to emit the
1909         head contents and shut down the head tag whenever a new file
1910         component is generated.
1912 2005-11-22  Gaius Mulley  <gaius@glam.ac.uk>
1914         * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
1915         call to flush_text to flush any outstanding html tags on the
1916         paragraph stack.
1918 2005-11-18  Werner LEMBERG  <wl@gnu.org>
1920         * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
1921         Announce makeinfo version.
1922         * configure: Regenerated.
1924 2005-11-18  Mike Frysinger <vapier@gentoo.org>
1926         * Makefile.in: Declare proper dependencies between make targets.
1928         * doc/Makefile.in: Rename groff info page to `groff.info'.
1929         * doc/Makefile.sub: Likewise.
1930         * doc/groff.texinfo: Likewise.
1932 2005-11-17  Peter O'Gorman  <mlists@thewrittenword.com>
1934         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
1935         definition of __GETOPT_PREFIX to the beginning of file to ensure
1936         that it is defined even on platforms where getopt.h is already
1937         included by other header files.
1939 2005-11-10  Gaius Mulley  <gaius@glam.ac.uk>
1941         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
1942         Reset font to NULL to ensure that a font block is recreated during
1943         the next paragraph.
1945 2005-11-04  Werner LEMBERG  <wl@gnu.org>
1947         * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
1948         * configure: Regenerated.
1950 2005-10-27  Werner LEMBERG  <wl@gnu.org>
1952         * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
1953         makeinfo 4.8 or newer is available.
1954         * configure.ac: Call GROFF_MAKEINFO.
1955         * configure: Regenerated.
1957         * Makefile.in (MAKEINFO): Use autoconf variable.
1958         (MDEFINES): Add MAKEINFO.
1960         * doc/Makefile.in (MAKEINFO): Use autoconf variable.
1961         * doc/Makefile.sub (MAKEINFO): Remove.
1963 2005-10-26  Werner LEMBERG  <wl@gnu.org>
1965         * REVISION: Set to 3.
1967 2005-10-17  Werner LEMBERG  <wl@gnu.org>
1969         Mention $MANPAGER variable used with some `man' systems.
1971         * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
1973 2005-09-13  Werner LEMBERG  <wl@gnu.org>
1975         * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
1977 2005-09-04  Werner LEMBERG  <wl@gnu.org>
1979 Version 1.19.2 released
1980 =======================
1982         * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
1984         * doc/webpage.ms: Updated.
1986         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1988 2005-09-04  Jörgen Grahn <jgrahn@algonet.se>
1990         * tmac/groff_ms.man: Document `PO' better.
1992 2005-09-03  Werner LEMBERG  <wl@gnu.org>
1994         * NEWS: Document grotty changes.
1996 2005-09-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1998         Backward compatibility support for `man' program.
2000         * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2001         assignment, prior `.ll' request and then package defaults, in this
2002         specified order of decreasing priority.
2004         * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2005         altered `LL' register initialization priorities.
2007 2005-08-29  Gary W. Swearingen  <garys@opusnet.com>
2009         * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2010         section should look like.
2012 2005-08-29  Werner LEMBERG  <wl@gnu.org>
2014         * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2015         be abbreviated.
2017 2005-08-27  Bernd Warken
2019         * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2020         fixes.
2022 2005-08-11  Bernd Warken
2024         * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2026 2005-08-09  Bernd Warken
2028         * tmac/www.tmac (URL, MTO): Use bold series if color support is
2029         deactivated.
2031 2005-08-02  Bernd Warken
2033         * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2034         as argument to $(INSTALL_INFO).  The latter isn't portable.
2035         Remove $(HTMLEXAMPLEFILES) too.
2037         * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2038         $(datadir)/doc too.
2039         Suppress warning messages and return always true.
2041         * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2043 2005-07-02  Bernd Warken
2045         * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2046         * man/groff_out.man: More markup and minor improvements.
2047         * src/roff/groff/groff.man: Minor improvements.
2049 2005-06-28  Werner LEMBERG  <wl@gnu.org>
2051         * ChangeLog: Split off older entries into...
2052         * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2053         files.
2055 2005-06-26  Bernd Warken
2057         * src/devices/xditview/gxditview.man: More minor fixes.
2059 2005-06-24  Werner LEMBERG  <wl@gnu.org>
2061         * src/preproc/pic/troff.cpp (troff_output::set_fill,
2062         troff_output::set_color, troff_output::reset_color): Use .bcolor and
2063         .fcolor instead of \m and \M, respectively.
2065 2005-06-23  Bernd Warken
2067         * src/devices/xditview/gxditview.man: More minor fixes.
2068         * README: Formatting issues.
2069         Mention some problems with Debian.
2071 2005-06-23  Bernd Warken
2073         * src/devices/xditview/gxditview.man: Revised and improved.
2075 2005-06-22  Werner LEMBERG  <wl@gnu.org>
2077         Another round in fixing getopt problems.  Hopefully the last one!
2078         This time we use the getopt stuff from gnulib and define a prefix
2079         unconditionally so that there are no collisions with any other
2080         getopt implementations.  This is a slight waste of space in case
2081         we already use a GNU getopt implementation, but on
2082         the other hand it really simplifies life.
2084         * src/include/getopt.h: Use gnulib version.
2086         * src/include/getopt_int.h: Use gnulib version.
2088         * src/include/groff-getopt.h: Removed.  Obsolete now.
2090         * src/include/lib.h: Regarding getopt, don't handle any platform
2091         specially; just include getopt.h.
2092         (__GETOPT_PREFIX): Define (before getopt.h).
2094         * src/include/Makefile.sub (HDRS): Updated.
2096         * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2097         gnulib version.
2099         * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2100         __GETOPT_PREFIX.
2102         * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2103         (__GETOPT_PREFIX): Define (before getopt.h).
2105 2005-06-21  Werner LEMBERG  <wl@gnu.org>
2107         * src/include/lib.h: Provide a fix for Mac OS X to not include
2108         groff-getopt.h.
2110 2005-06-20  Denis M. Wilson  <dmw@oxytropis.plus.com>
2112         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
2113         `bind' to define a procedure which contains `showpage' means that an
2114         invocation of `showpage' may execute wrongly (the exact effect
2115         depending on the interpreter).  Not usually a problem except under
2116         transformations, such as combining pages.
2117         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
2118         of /PEND means that stack underflow will occur if the stack is
2119         deliberately non-empty before document inclusion.  If included
2120         files are found to be generally badly behaved, we could replace the
2121         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2122         never found this necessary).
2124 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
2126         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2127         earlier to get correct error message.
2129 2005-06-16  Bernd Warken
2130         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2132 2005-06-15  Werner LEMBERG  <wl@gnu.org>
2134         Another try to update getopt files.  This time we add a dummy
2135         gettext.h file to satisfy the dependency.
2137         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2138         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2140         * src/include/getopt_int.h: New file (from GNU libc CVS).
2142         * src/include/gettext.h: Dummy file which just defines a gettext()
2143         macro.
2145         * src/include/groff-getopt.h: Updated.
2147         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2150         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2151         `const' keywords in return value.
2153         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2154         Remove redundant variable `old'.
2155         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2157         * src/preproc/tbl/main.cpp (process_table): Remove redundant
2158         variable `c'.
2161         Fix more friend name injection problems since modern C++ compilers
2162         fail otherwise.  We simply provide (global) declarations for all
2163         functions declared as friends.  This is not really necessary but
2164         doesn't harm.
2166         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2167         peek_char, and get_location.
2169         * src/preproc/refer/ref.h: Provide declarations for
2170         compare_reference, same_reference, same_year, same_date,
2171         same_author_last_name, and same_author_name.
2173         * src/roff/troff/div.h: Provide declarations for do_divert and
2174         page_offset.
2176         * src/roff/troff/env.h: Provide declarations for title_length,
2177         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2178         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2179         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2180         margin_character, no_number, number_lines, leader_character,
2181         tab_character, hyphenate_request, no_hyphenate,
2182         hyphen_line_max_request, hyphenation_space_request,
2183         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2184         line_tabs_request, widow_control_request, and do_divert.
2186         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2188         * src/roff/troff/node.cpp: Provide declarations for class
2189         tfont_spec.
2190         Provide declaration for make_tfont.
2192 2005-05-29  Werner LEMBERG  <wl@gnu.org>
2194         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
2196 2005-05-28  Werner LEMBERG  <wl@gnu.org>
2198         * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
2199         `--style'.
2201         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2202         redundant semicolons.
2204         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2205         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2206         Define `MLIB'.  Some compilers need this for linking with libgroff.
2208 2005-05-27  Werner LEMBERG  <wl@gnu.org>
2210         * MANIFEST, README, doc/webpage.ms: Updated.
2212 2005-05-26  Werner LEMBERG  <wl@gnu.org>
2214         * All affected files: Update postal address of FSF.
2216 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
2217             Bernd Warken
2219         * README: More fixes.
2221         * README.CVS: Removed.  Its contents is now part of the README file.
2223 2005-05-21  Werner LEMBERG  <wl@gnu.org>
2225         * README: Updated.  Based on a patch from Bernd Warken.
2227 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2229         Miscellaneous script portability enhancements.
2231         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2232         generated conftest.sh script, conforming to portability
2233         recommendation in autoconf docs.
2234         * configure: Likewise, for code generated by GROFF_CSH_HACK.
2235         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2236         to portability recommendation in autoconf docs.
2237         * contrib/gdiffmk/gdiffmk.sh: Likewise.
2238         * contrib/gdiffmk/tests/runtests.in: Likewise.
2239         * contrib/grap2graph/grap2graph.sh: Likewise.
2240         * contrib/groffer/groffer.sh: Likewise.
2241         * contrib/mm/mmroff.pl: Likewise.
2242         * contrib/mom/momdoc/appendices.html: Likewise.
2243         * contrib/pic2graph/pic2graph.sh: Likewise.
2244         * font/devps/generate/afmname: Likewise.
2245         * src/devices/xditview/ad2c: Likewise.
2246         * src/preproc/eqn/neqn.sh: Likewise.
2247         * src/roff/grog/grog.pl: Likewise.
2248         * src/roff/grog/grog.sh: Likewise.
2249         * src/roff/nroff/nroff.sh: Likewise.
2250         * PROBLEMS: Likewise, in embedded script examples.
2252 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2254         Improve portability of `pdfroff' shell script.
2256         * arch/misc/shdeps.sh: Add space in shebang, conforming to
2257         portability guidelines in `autoconf' docs.
2258         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2259         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
2260         `searchpath' function.
2262 2005-05-14  Werner LEMBERG  <wl@gnu.org>
2264         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2265         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2266         needed for newer ImageMagick versions.
2268 2005-05-07  Werner LEMBERG  <wl@gnu.org>
2270         * src/preproc/refer/refer.man: Many small typographic fixes.
2272 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
2274         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2275         Use `char *' cast for a_delete.
2277 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2279         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2280         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2282 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
2284         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2285         `a_delete' for `const char *'.
2287 2005-05-03  Werner LEMBERG  <wl@gnu.org>
2289         * src/devices/grohtml/post-html.cpp,
2290         src/devices/grohtml/html-table.cpp,
2291         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
2292         Replace malloc/free with new/delete/a_delete.
2294         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
2295         are prohibited with ANSI C++.
2296         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
2297         function has a variable number of arguments).
2299         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
2300         Simplify function and update all callers.
2302 2005-05-02  Werner LEMBERG  <wl@gnu.org>
2304         Undo getopt changes from 2005-04-30.  We don't want a dependency
2305         on gettext.
2307         * src/include/getopt_int.h: Removed.
2309         * src/include/getopt.h, src/include/groff-getopt.h,
2310         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
2311         src/libs/libgroff/getopt1.c: Revert to previous version.
2314         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
2316         * src/include/posix.h (F_OK): Define conditionally.
2318         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
2319         different variable name in second `for' loop to avoid MSVC compiler
2320         problem.
2322 2005-04-30  Werner LEMBERG  <wl@gnu.org>
2324         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
2326         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
2327         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
2328         * configure, src/include/config.hin: Regenerated.
2330         * PROBLEMS: Updated.
2333         Update getopt files.
2335         * src/include/getopt.h, src/libs/libgroff/getopt.c,
2336         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2338         * src/include/getopt_int.h: New file (from GNU libc CVS).
2340         * src/include/groff-getopt.h: Updated.
2342         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
2345         * font/devutf8/NOTES: Updated.
2347 2005-04-28  Werner LEMBERG  <wl@gnu.org>
2349         Bug fix for Win32 relocatable code.  Based on a patch from Keith
2350         Marshall.
2352         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
2353         also.
2355         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
2356         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
2358 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2360         Correct `gnu.eps' handling for build from distribution tarball, with
2361         separate source and build directories.
2363         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
2364         grnexmpl.g, groff.css and gnu.eps from source to build directory;
2365         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
2366         (prepare_examples): Make it depend on examples.stamp.
2367         (CLEANADD): Add examples.stamp.
2369 2005-04-27  Werner LEMBERG  <wl@gnu.org>
2371         Implement the rule
2373           position: `(' position `)'
2375         in pic.
2377         * src/preproc/pic/pic.y (position, position_not_place): Handle
2378         additional parentheses.
2380         * doc/pic.ms: Updated.
2382 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
2384         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
2386 2005-04-18  Werner LEMBERG  <wl@gnu.org>
2388         * src/roff/groff/pipeline.c: Don't include ctype.h.
2390 2005-04-13  Werner LEMBERG  <wl@gnu.org>
2392         * src/roff/nroff/nroff.man: Document option `-M'.
2394 2005-04-13  Bruce Lilly  <blilly@erols.com>
2396         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
2398 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
2399             Werner LEMBERG  <wl@gnu.org>
2401         Add binary relocation support for Windows platforms.
2403         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
2405         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
2407         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
2408         (search_path::search_path, search_path::open_file_cautious): Use
2409         `relocate'.
2411         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2412         src/include/Makefile.sub (HDRS): Updated.
2414 2005-04-01  Werner LEMBERG  <wl@gnu.org>
2416         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
2417         strsave/a_delete.
2419         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
2421         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
2422         lib.h already does it.
2424         * src/libs/libgroff/maxpathname.cpp: New file, defining
2425         path_name_max.
2427         * src/include/lib.h: Add prototype for path_name_max.
2429         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
2431         * src/include/nonposix.h (PATH_EXT): New macro.
2433 2005-03-28  Werner LEMBERG  <wl@gnu.org>
2435         Add support for double- and zero-width characters in grotty.
2437         * src/devices/grotty/tty.cpp (glyph): Add width.
2438         (tty_printer::make_underline, tty_printer::make_bold,
2439         tty_printer::add_character): Add parameter to pass character width.
2440         Update all callers.
2441         (tty_printer::end_page): Increase hpos by actual character width.
2443         * font/devutf8/R.proto: Specify zero width for non-spacing
2444         characters.
2446         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
2448         * Makefile.comm (extraclean): Remove more junk files.
2450 2005-03-25  Werner LEMBERG  <wl@gnu.org>
2452         * configure.ac: Undo change from 2005-03-24.
2453         * configure: Regenerated.
2455 2005-03-24  Werner LEMBERG  <wl@gnu.org>
2457         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
2458         (dist): Search Makefile while descending into $(EXTRADIRS).
2460         * doc/Makefile.in (.PHONY): Add.
2461         (clean): Don't remove *.png and *.eps.
2462         Don't handle *.gif.
2463         (realclean): Remove *.png and *.eps.
2464         (extraclean): Depend on distclean.
2466         * configure.ac: Add copyright.
2467         Handle contrib/pdfmark/Makefile.
2469         * configure: Regenerated.
2471 2005-03-18  Larry Kollar  <kollar@alltel.net>
2473         Add numbered and definition lists to www.tmac.
2475         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
2476         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
2477         auxiliary string registers.
2478         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
2479         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
2480         (www-level): Removed.
2481         (www-level1, www-level2, www-level3): Initialize to empty.
2482         (www-level0, www-level4, www-level5, www-level6, www-level7,
2483         www-level8, www-level9): New string registers.
2484         (www-push-li, www-pop-li): New macros.
2485         (www-push-level, www-pop-level): Renamed to...
2486         (www-push-ul-level, www-pop-ul-level): This.
2487         Updated.
2488         (www-push-ol-level, www-pop-ol-level): New macros.
2489         (ULS, ULE): Updated.
2490         (OLS, OLE, DLS, DLE): New user macros.
2491         (LI): Removed.  It is aliased to one of...
2492         (www-li-ul, www-li-ol, www-li-dl): New macros.
2494         * tmac/groff_www.man: Document new macros.
2496         * NEWS: Updated.
2498 2005-03-18  Werner LEMBERG  <wl@gnu.org>
2500         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
2501         doc-operating-system-NetBSD-2.0.2): New strings.
2503         * tmac/groff_mdoc.man: Updated.
2505 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2507         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
2509 2005-03-17  Werner LEMBERG  <wl@gnu.org>
2511         * src/libs/libgroff/hypot.c: Renamed to...
2512         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
2514         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
2516         * src/include/lib.h: Updated.
2518 2005-03-16  Werner LEMBERG  <wl@gnu.org>
2520         Add workaround for broken hypot() on Interix.
2522         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
2524         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
2525         (CSRCS): Add `hypot.c'.
2527         * src/include/lib.h: Declare `groff_hypot'.
2529         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
2530         Use `groff_hypot'.
2532         * src/preproc/pic/pic.h: Don't declare `hypot'.
2534         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
2536 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
2538         * src/devices/grohtml/post-html.cpp
2539         (html_printer::lookahead_for_tables): End .ce properly to avoid a
2540         segfault.
2542 2005-03-15  Werner LEMBERG  <wl@gnu.org>
2544         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
2546         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
2548         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
2550 2005-03-14  Werner LEMBERG  <wl@gnu.org>
2552         Add Cyrillic support to devutf8 and devhtml.
2554         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
2556         * tmac/unicode.tmac: New file.
2558         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
2560         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
2562         * NEWS: Updated.
2564 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
2566         * src/libs/libdriver/printer.cpp (check_for_output_error): New
2567         function.  It has been introduced to catch peculiar error contexts
2568         on MS-Windows platforms.
2570 2005-02-28  Werner LEMBERG  <wl@gnu.org>
2572         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
2573         null pointer.
2575         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
2577         * configure: Regenerated.
2579         * NEWS: Updated.
2581 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
2583         Integrate `pdfmark' into normal groff build system;
2584         install macro `pdfmark' packages, build and install `pdfroff',
2585         and PDF format documentation.
2587         * Makefile.comm: Add PDFDOCDIR.
2589         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
2590         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
2591         (unstall_dirs): Add pdfdocdir.
2593         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
2594         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
2595         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
2596         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
2597         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
2598         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
2599         set ALT_AWK_PROGS.
2600         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
2601         use of GROFF_AWK_PREFS.
2602         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
2603         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
2605         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
2606         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
2607         also by modified GROFF_HTML_PROGRAMS).
2609 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
2611         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
2612         paragraph spacing.
2613         (html_text::done_para): Unset `start_space'.
2614         (html_text::remove_para_align): Call `retrieve_para_space' for the
2615         spacing.
2617         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
2618         `seen_space'.
2619         (html_printer::do_check_center): Emit vertical space if necessary.
2621         * src/roff/troff/env.cpp (environment_switch): Preserve
2622         `seen_space', `seen_eol', and `suppress_next_eol' while switching
2623         environments.
2625         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
2626         `is_special'.
2628 2005-02-20  Werner LEMBERG  <wl@gnu.org>
2630         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
2631         eqn.
2633 2005-02-17  Werner LEMBERG  <wl@gnu.org>
2635         * doc/pic.ms, man/groff.man: Fix typos.
2637         * doc/groff.texinfo: Fix typos.
2638         (\LEmacro): Get proper mathematical spacing.
2640 2005-02-16  Werner LEMBERG  <wl@gnu.org>
2642         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
2643         * configure: Regenerated with autoconf 2.59b.
2645 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
2647         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
2648         html_printer::start_font): Fix handling of preformatted text.
2650 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
2652         These patches modify the indentation implementation to use `<p
2653         style=margin-left: n%>'.  Many thanks to Peter and Larry for
2654         suggesting this solution.  Grohtml only uses tables for `.IP' and
2655         related tags when the first operand has a short width.
2657         Similarly, they modify all vertical space code.  By default, grohtml
2658         sets up a style sheet which uses no vertical space between `table',
2659         `pre', and `p' tags.  It forces spaces when it needs them using
2660         `style="margin-top: 1em"'.
2662         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
2663         (html_table::emit_table_header, html_table::emit_new_row):
2664         Rewritten.
2665         (html_table::set_space): New function.
2666         (html_indent::html_indent): Don't set `is_used'.
2667         (html_indent::begin): Rewritten.
2668         (html_indent::end): Remove code in function.
2670         * src/devices/grohtml/html-table.h: Updated.
2671         (html_table): Make `out' public.
2673         * src/devices/grohtml/html-text.cpp (html_text::html_text):
2674         Initialize `start_space' with FALSE.
2675         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
2676         (html_text::issue_tag): Add argument to handle space style.
2677         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
2678         (html_text::flush_text): Don't set `start_space'.
2679         (html_text::push_para): Don't set `p->really_issued'.
2680         (html_text::do_emittext): Updated.
2681         (html_text::do_para): Add paremeter to handle space.
2682         Update all callers.
2683         (html_text::retrieve_para_space): New function.
2685         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
2686         (tag_definition): Remove `really_issued'.
2687         (html_text): Updated.
2689         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
2690         `current_column' and `row_space'.
2691         Update constructor.
2692         (html_printer::emit_raw, html_printer::write_header,
2693         html_printer::do_indent, html_printer::do_check_center,
2694         html_printer::do_tab_ts): Handle vertical space.
2695         (html_printer:do_tab_te, html_printer::do_end_para): Call
2696         `remove_para_space'.
2697         (html_printer::do_col): Rewritten.
2698         (html_printer::flush_globs): Remove debugging code.
2699         (html_printer::is_line_start): New function.
2700         (html_printer::start_font): Use `is_line_start'.
2701         (html_printer::writeHeadMetaStyle): New function.
2702         (html_printer::do_file_components, html_printer::~html_printer):
2703         Call `writeHeadMetaStyle'.
2705         * tmac/www.tmac (www-handle-percent): New macro.
2706         (MPIMG): Handle percent values for width and height parameters.
2707         (DC): Updated.
2709         * tmac/groff_www.man: Updated.
2711 2005-02-14  Werner LEMBERG  <wl@gnu.org>
2713         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
2714         $psname and $italic_angle.
2715         Immediately restart file input loops if `split' returns an empty
2716         array.
2718 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
2719             Werner LEMBERG  <wl@gnu.org>
2721         Update afmtodit to better support Unicode (Michail).
2722         Update afmtodit to use Perl 5 syntax (Werner).
2724         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
2725         `Getopts::Std'.
2726         Decorate variables with `my' where necessary.
2727         Use `defined' where necessary to avoid warnings.
2728         Don't use `do' for subroutine calls.
2729         Other minor syntax updates.
2730         Check for both `uXXXX[X[X]]' and `uniXXXX'.
2731         Handle glyph variants properly.
2732         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
2733         strings.
2735         * src/utils/afmtodit/afmtodit.man: Updated.
2737 2005-02-13  Werner LEMBERG  <wl@gnu.org>
2739         Make groff.texinfo work with texinfo 4.8.
2741         * doc/groff.texinfo (@Var): Use @r and @slanted.
2742         (@defdummy, @Def*): Use @c to avoid empty lines.
2743         (\angles): Replaced with...
2744         (\Langlemacro, \Ranglemacro): New TeX macros.
2745         (@Langlemacro, @Ranglemacro): New variables defined with @set.
2746         (@angles): Use @Langlemacro and @Ranglemacro.
2747         (\LE): Replaced with...
2748         (\LEmacro): New TeX macro.
2749         (@LEmacro): New variable defined with @set.
2750         (@LE): Use @LEmacro.
2751         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
2752         variables defined with @set.
2753         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
2754         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
2755         Update all callers.
2757         Other minor updates.
2759         * doc/texinfo.tex: Update to texinfo version 4.8.
2761         * README.CVS: Updated.
2763 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
2765         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
2766         and `FAM' registers.
2768 2005-02-05  Werner LEMBERG  <wl@gnu.org>
2770         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
2771         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
2772         Update BSD license.
2774 2005-02-01  Werner LEMBERG  <wl@gnu.org>
2776         * src/roff/groff/groff.man: Add information about paper size.
2778 2005-01-25  Werner LEMBERG  <wl@gnu.org>
2780         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
2781         NetBSD bin/29114.
2783 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
2785         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
2786         cases.
2787         (Re): Emit a warning if called without `.Rs'.
2788         (doc-finish-reference): Use parameter for decreasing
2789         `doc-reference-count'.
2790         (doc-print-reference): Pass specific count parameters to
2791         `doc-finish-reference'.
2793 2005-01-21  Werner LEMBERG  <wl@gnu.org>
2795         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
2796         Reset pointers to zero after deallocation.  This fixes a crash
2797         if a driver is called with multiple input files.  Reported by
2798         Ken Chilton <ken@chiltonfamily.org>.
2800         * src/devices/grops/grops.man: Add more info on DSC.
2802 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
2804         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
2805         Remove dead code.
2807 2005-01-17  Werner LEMBERG  <wl@gnu.org>
2809         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
2810         against division by zero.
2812 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
2814         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
2816 2004-12-19  Werner LEMBERG  <wl@gnu.org>
2818         * install-sh: New version; taken from texinfo CVS.
2820 2004-12-17  Werner LEMBERG  <wl@gnu.org>
2822         * tmac/devtag.tmac: Protect against loading twice.
2823         Protect agains compatibility mode.
2824         * tmac/www.tmac: Protect against loading twice.
2825         Load `devtag.tmac' before switching off compatibility mode.
2826         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
2828 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
2830         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
2831         * configure: Updated.
2833 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
2835         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
2837 2004-12-15  Werner LEMBERG  <wl@gnu.org>
2839         Make `test-groff' work again -- previously, wrong paths have been
2840         used.  Additionally, it can now be called from anywhere.
2842         * test-groff.in: Don't test for groff binary.  This is no longer
2843         necessary since the proper paths are determined by `configure'.
2844         (EXEEXT): Removed.  No longer used.
2845         (srcdir, builddir): Use values provided by the configure script.
2846         (XENVIRONMENT): Updated.
2848         * INSTALL: Updated.
2850 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
2852         Make .tag and .taga work for all devices (but only grohtml actually
2853         handles them).
2855         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
2856         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
2857         html_printer::handle_assertion): Don't use hard-coded string
2858         lengths.
2859         (html_printer::lookahead_for_table): Reset `tbl' properly if
2860         necessary.
2861         (html_printer::devtag): New function, handling `devtag'.
2862         (html_printer::special): Don't handle `html-tag'.
2864         * src/include/printer.h, src/libs/libdriver/printer.cpp
2865         (printer::devtag): New virtual function.
2867         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
2868         `devtag'.
2870         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
2871         src/roff/troff/node.cpp: s/html-tag/devtag/.
2873         * src/roff/troff/input.cpp (tag, taga): Always call
2874         curenv->add_node.
2876         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
2877         macros instead of HTML-TAG*.
2879         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
2881         * tmac/www.tmac: Load devtag.tmac.
2882         Replace HTML-TAG* macros with DEVTAG* macros.
2883         (HTML, HTML-NS): Changed definitions.
2884         (URL): Use HTML-NS.
2885         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
2887         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
2889 2004-12-10  Werner LEMBERG  <wl@gnu.org>
2891         Import Mike's `gdiffmk' package.
2893         * contrib/gdiffmk/*: New files.
2894         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
2895         * NEWS: Updated.
2897 2004-12-08  Werner LEMBERG  <wl@gnu.org>
2899         Import Keith's `pdfmark' package.  Integration is very preliminary.
2901         * contrib/pdfmark/*: New files.
2902         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
2903         * NEWS: Updated.
2905 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
2907         Fix a bug with title handling in HTML.
2909         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
2910         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
2911         length.
2912         (html_printer::handle_tag_within_title): New function.
2913         (html_printer::do_title): Use it.
2915         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
2916         (cov*tl-au-print): Emit `.eo.tl' tag.
2918 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
2920         * man/groff_char.man: Minor imrovements.
2922 2004-12-04  Werner LEMBERG  <wl@gnu.org>
2924         * src/preproc/eqn/eqn.man: Revised.
2926 2004-11-25  Werner LEMBERG  <wl@gnu.org>
2928         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
2929         groff source files.
2930         Include config.h.
2931         Include limits.h.
2932         Remove X_NOT_STDC_ENV conditional.
2933         (Version_string, program_name): New global variables.
2934         (groff_flag): Removed.
2935         (MapFont): Updated.
2936         (usage): Take a stream as argument.
2937         Use `program_name'.
2938         Update all callers.
2939         (main): Add `long_options' array for `--help' and `--version'.
2940         Make `-g' a dummy option.
2941         Handle `-v' and unknown options.
2942         Remove unused `position' variable.
2944         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
2945         (XLIBS): Add LIBGROFF.
2947         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
2948         New files.
2950         * src/devices/xditview/Dvi.c (default_font_map): Split into three
2951         parts to avoid compiler warning.
2952         (resources): Don't initialize with `default_font_map'.
2953         (ClassInitialize): Initialize first element of `resources'.
2955         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
2956         Removed.
2958         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
2959         src/utils/pfbtops/pfbtops.man: Revised, updated.
2961         * configure.ac: Generate src/utils/xtotroff/Makefile.
2962         * configure: Regenerated.
2964 2004-11-24  Werner LEMBERG  <wl@gnu.org>
2966         First fixes to get produce HTML.
2968         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
2969         attribute.
2971         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
2972         (HR, LI): Use `HTML</p>', not `HTML'.
2974         * doc/webpage.ms: Minor updates.
2976 2004-11-23  Larry Kollar  <kollar@alltel.net>
2978         Add option -S grohtml to determine the file split level.
2980         * src/devices/grohtml/post-html.cpp (split_level): New global
2981         variable.
2982         (html_header::determine_header_level): Use split_level.
2983         (main): Handle `-S' command line option.
2984         Sort options.
2986         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
2988         * src/devices/grohtml/grohtml.man: Document it.
2989         Sort options.
2991         * NEWS: Document it.
2993 2004-11-23  Y T  <doarhop@hotmail.com>
2995         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
2996         the volume and number refer entries.
2998 2004-11-22  Werner LEMBERG  <wl@gnu.org>
3000         * src/devices/grohtml/html-table.cpp
3001         (html_table::emit_table_header): Don't emit `cols' attribute which
3002         doesn't exist in HTML 4.0 and is thus invalid.
3004         * NEWS: More minor fixes and updates.
3006 2004-11-18  Werner LEMBERG  <wl@gnu.org>
3008         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3009         (HTML</p>): Minor clean-up.
3011         * tmac/groff_www.man: Updated.
3013         * src/devices/grohtml/grohtml.man: Revised and updated.
3015         * NEWS: Updated.
3017 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
3019         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3020         Fix space insertion.
3021         (html_printer::do_links): Fix rules generation around automatic
3022         heading links.
3024         * tmac/www.tmac (LK): Use HTML-TAG-NS.
3025         (HR): Simplify.
3026         No longer emit empty line for non-HTML devices.
3028 2004-11-17  Werner LEMBERG  <wl@gnu.org>
3030         * doc/Makefile.in (prepare_examples, webpage.html): Handle
3031         `groff.css'.
3033         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3034         prepare_examples, webpage.html): Handle `groff.css'.
3036 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3038         * NEWS, README, doc/webpage.ms: Updated.
3040         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3042 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
3044         * src/include/printer.h (printer): Remove virtual function
3045         `round_width'.
3046         Update all source files.
3048         * src/devices/grohtml/post-html.cpp (html_printer): New member
3049         function `round_width'.
3051 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3053         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3054         column key letter suffix.
3056 2004-10-14  Werner LEMBERG  <wl@gnu.org>
3058         * Makefile.in (check): Depend on `site.exp' and `docheck'.
3059         (docheck): Run dejagnu's `runtest' if it exists.
3060         (site.exp): Create dejagnu configuration file.
3062         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3064 2004-10-13  Werner LEMBERG  <wl@gnu.org>
3066         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3067         src/devices/grohtml/post-html.cpp (make_val,
3068         html_printer::handle_state_assertion): Fix compiler warnings.
3070         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3071         (diversion::diversion): Fix order of initializers.
3073         * src/roff/troff/div.h: Don't include `mtsm.h'.
3075         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3076         (environment::environment): Fix order of initializers.
3077         (environment::make_tag, environment::construct_format_state): Fix
3078         compiler warnings.
3080         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3081         (input_iterator::input_iterator, macro::macro): Fix order of
3082         initializers.
3084         * src/roff/troff/mtsm.cpp: Include only necessary header files.
3085         (state_set::add, state_set::val): Fix compiler warnings.
3087         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3088         (bool_value_state, int_value_state, units_value_state,
3089         string_value_state): Remove comma after last element which causes
3090         an error with g++ 3.3.3.
3092         * src/roff/troff/node.cpp: Include `stringclass.h'.
3093         (hline_node::hline_node, vline_node::vline_node,
3094         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3095         warnings.
3096         (zero_width_node::zero_width_node): Fix order of initializers.
3098         * src/roff/troff/node.h: Don't include `mtsm.h'.
3099         (hmotion_node): Fix compiler warnings.
3101         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3103 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3105         * doc/groff.css: New file.
3107         * doc/webpage.ms: Use `groff.css'.
3108         Other small fixes.
3110         * tmac/an-old.tmac (need_eo_h): New number register.
3111         (TH): Emit `.eo.tl' tag after title.
3112         (SH): Set `need_eo_h'.
3113         (an-trap): Handle `need_eo_h'.
3114         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3116         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3117         (TL): Always start diversion.
3118         Updated.
3119         (@AI): Always call `par@reset'.
3120         (@AB): Update code for -Thtml.
3121         (cov*tl-au-print): Handle -Thtml.
3122         (par@reset): Handle `need_eo_tl', `need_eo_h'.
3123         (@IP): Simplified.
3124         (@IT-html): Removed.
3125         (@SH): Set `need_eo_h' for -Thtml.
3126         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3127         Set `need_eo_tl'.
3128         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3129         Set `need_eo_h' for -Thtml.
3130         (@EQ, @EN): Don't handle -Thtml specially.
3131         (par@load-init): Don't handle -Thtml specially.
3133         * tmac/www.tmac (www:paraspace): New macro.
3134         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3135         (HTML</p>, HTML-TAG-NEXT): New macros.
3136         (HnE): Emit tag `.eo.h' instead of break.
3137         (HR): s/HTML-NS/HTML/.
3138         (www-end-nowhere): End diversion only if `www-html' not set.
3139         Emit `.eo.tl' tag.
3140         (ULS, ULE): s|HTML|HTML</p>|.
3141         (LI): Call `www:paraspace'.
3142         (HEAD): New macro.
3144 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
3146         * src/roff/troff/request.h (macro): Make `p' public.
3147         New variable `is_a_diversion'.
3148         New member function `is_diversion'.
3151         * src/devices/grohtml/html.h (simple_output): New member function
3152         `force_nl'.
3154         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3155         computation of `total'.
3156         (tabs::check_init): New function.
3157         (html_table::emit_table_header): Emit style data.
3158         (html_table::insert_column): Improved.
3160         * src/devices/grohtml/html-table.h: Updated.
3162         * src/devices/grohtml/html-text.cpp (html_text::html_text):
3163         Initialize `start_space' with TRUE.
3164         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3165         cases.
3166         (html_text::flush_text): Set `start_space' flag.
3167         (html_text::uses_indent, html_text::remove_para_space,
3168         html_text::get_alignment): New functions.
3169         (html_text::push_para): Updated.
3170         (html_text::do_para): Check for empty argument.
3171         Don't set `space_emitted'.
3172         (html_text::do_space, html_text::emit_space): Updated.
3174         * src/devices/grohtml/html-text.h (tag_definition): New variable
3175         `really_issued'.
3176         (html_text): New member function `uses_indent', `remove_para_space',
3177         `get_alignment'.
3179         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3180         function.
3181         (simple_output:nl): Always emit `\n'.
3183         * src/devices/grohtml/post-html.cpp: Include `string.h'.
3184         (BASE_POINT_SIZE): Removed.
3185         (base_point_size, head_info): New global variables.
3186         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3187         `is_eo_h'.
3188         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3189         tags, respectively.
3190         (page::add_and_encode): Pass additional parameter for tag flag.
3191         (assert_pos): New structure.
3192         (assert_state): New class.
3193         (html_printer): Remove `indentation', `prev_indent'.
3194         Add variables `troff_indent', `device_indent', `temp_indent'.
3195         Add variables `seen_indent', `next_indent', `seen_pageoffset',
3196         `next_pageoffset', `seen_linelenght', `next_linelength',
3197         `seen_center', `next_center', `seen_space', `seen_break', `as'.
3198         Add member functions `do_check_center', `do_space', `do_head',
3199         `get_troff_indent', `restore_troff_indent', `handle_assertion',
3200         `handle_state_assertion', `do_end_para', `set_char_and_width'.
3201         Change argument to `do_fill' to `char *'.
3202         Update constructor.
3203         (html_printer::emit_raw): Call `shutdown_table'.
3204         Use new functions.
3205         (html_printer::do_center): Simplified.
3206         (html_printer::do_title): Improved.
3207         (html_printer::write_header): Emit one more newline.
3208         Use new functions.
3209         (html_printer::do_heading, html_printer::do_indent,
3210         html_printer::do_eol, html_printer::do_tab_ts,
3211         html_printer::do_tab, html_printer::do_tab0,
3212         html_printer::calc_po_in, html_printer::next_horiz_pos,
3213         html_printer::remove_courier_tabs,
3214         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3215         Updated.
3216         (html_printer::do_linelength, html_printer::do_pageoffset,
3217         html_printer::do_indentation, html_printer::do_tempindent,
3218         html_printer::do_tab_te): Simplified.
3219         (html_printer::do_pointsize): Check whether point size is really
3220         associated a `.tl' tag.
3221         (html_printer::do_break): Rewritten.
3222         (html_printer::troff_tag): Improved.
3223         (html_printer::flush_globs): Updated.
3224         (html_printer::lookahead_for_tables): Handle `is_br'.
3225         Use new functions.
3226         (html_printer::set_char): Check `sbuf_style.f'.
3227         (html_printer::write_navigation): Use string comparison.
3228         (html_printer::~html_printer): Emit `head_info'.
3229         (html_printer::special): Rewritten.
3230         (get_str, make_val): New functions.
3231         (main): New option `s' to set the base point size.
3233         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3235 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3237         * src/roff/troff/node.cpp: New extern `debug_state'.
3238         Include `stringclass.h' and `mtsm.h'.
3239         Implement new classes and class members from `node.h'.
3240         (real_output_file): Make `fp' public.
3241         (troff_output_file): New variables `cur_div_level' and `tag_list'.
3242         Update constructors.
3243         (troff_output_file::really_print_line): Check whether we should push
3244         the current troff state and use the state at the start of the
3245         invocation of this diversion.
3246         (troff_output_file::add_to_tag_list): New member function.
3247         (node::add_char): Handle `glyph_comp_np'.
3249         * src/roff/troff/node.h: Include `mtsm.h'.
3250         (node): New variables `state', `push_state', `div_nest_level',
3251         `is_special'.  Update constructors, all descendants.
3252         Pass additional argument to `add_char' member function.
3253         New virtual member functions `is_tag', `debug_node',
3254         `debug_node_list'.  Update all descendants.
3255         (tag_node): New class for handling tags.
3256         (output_file): Add variable `state'.
3258 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
3260         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3261         providing a minimal troff state machine to emit meta tags for the
3262         post-grohtml device driver.
3264         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3265         files.
3267 2004-10-09  Werner LEMBERG  <wl@gnu.org>
3269         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3271 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3273         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3275         * src/roff/troff/div.h: Include `mtsm.h'.
3276         (diversion): New variables `any_chars_added', `needs_push',
3277         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3278         `saved_suppress_next_eol', `modified_tag'.
3279         New virtual member function `is_diversion'.  Update all descendants.
3281         * src/roff/troff/div.cpp (diversion::diversion,
3282         macro_diversion::macro_diversion): Updated.
3283         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3284         `suppress_next_eol'.
3285         (top_level_diversion::space): Handle `curenv->seen_space'.
3286         (page_offset): Update tag handling.
3287         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
3289         * src/roff/troff/env.h (environment): Make `tabs' public.
3290         Remove `ignore_next_eol', `emitted_node'.
3291         Update `output_line', `output'.
3292         New variables `seen_space', `seen_eol', `suppress_next_eol',
3293         `seen_break'.
3294         New member functions `construct_state', `make_tag',
3295         `construct_format_state, `construct_new_line_state,
3296         `dump_troff_state'.
3297         Remove `add_html_tag', `make_html_tag'.
3299         * src/roff/troff/env.cpp: New externs `suppress_push',
3300         `get_diversion_state', `global_diverted_space'.
3301         (pending_output_line): New variable `was_centered'.
3302         Update constructor and all callers.
3303         (pending_output_line::output): Call `curenv->construct_format_state'.
3304         (environment::environment, environment::copy): Updated.
3305         (environment::output): Handle `was_centered'.
3306         (environment::add_char): Handle construct and diversion state.
3307         (environment::add_node): Handle construct state.
3308         (environment::newline): Handle `was_centered'.
3309         (environment::output_line): Updated.
3310         (environment::possibly_break_line): Updated.
3311         Update tag handling.
3312         (environment::add_html_tag): Replaced with...
3313         (environment::make_tag): New function.
3314         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
3315         (environment::dump_troff_state): New debugging function.
3316         (environment::construct_state, environment::construct_format_state,
3317         environment::construct_new_line_state): New functions.
3318         (environment::do_break): Updated.
3319         Handle `global_diverted_space'.
3320         (environment::handle_tag): Update tag handling.
3321         (point_size, fill, do_break_request): Don't call `add_html_tag'.
3322         (no_fill): Don't call `add_html_tag'.
3323         Set `suppress_next_eol'.
3324         (center, right_justify, line_length, indent, temporary_indent,
3325         set_tabs):
3326         Update tag handling.
3328         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
3329         (input_iterator): New variables `is_diversion', `diversion_state'.
3330         Update constructors.
3331         (input_stack): New member functions `get_div_level',
3332         `get_diversion_state', `check_end_diversion'.
3333         New variables `div_level', `diversion_state'.  Initialize them.
3334         (suppress_push, global_diverted_space): New global variables.
3335         (input_stack::finish_get, input_stack::finish_peek,
3336         input_stack::remove_boundary, input_stack::end_file,
3337         input_stack::clear, input_stack::pop_macro): Call
3338         `check_end_diversion'.
3339         (input_stack::push): Handle `div_level' and `diversion_state'.
3340         (get_diversion_state): New function.
3341         (diverted_space_node::reread): Handle `global_diverted_space'.
3342         (macro::macro): Update constructors.
3343         (macro::is_diversion): New function.
3344         (macro::operator=): Set `is_a_diversion'.
3345         (string_iterator): New member function `is_diversion'.
3346         (string_iterator::string_iterator): Update constructors.
3347         (string_iterator::fill): Set `div_nest_level'.
3348         (macro_iterator): New member function `is_diversion'.
3349         (do_if_request): Handle `suppress_push'.
3350         (tag, taga): New functions.
3351         (init_input_requests): Add `tag' and `taga' requests.
3353 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
3355         * src/include/font.h (font): New member function
3356         `get_image_generator'.
3357         New variables `unscaled_charwidths' and `image_generator'.
3359         * src/libs/libgroff/font.cpp (font::get_width): Always return the
3360         character's unscaled width if `font::unscaled_charwidths' is set.
3361         (font::get_image_generator): New function.
3362         (font::load_desc): Check the `unscaled_charwidths' and
3363         `image_generator' keywords.
3365         * src/libs/libgroff/fontfile.cpp: Initialize
3366         `font::unscaled_charwidths' and `font::image_generator'.
3368         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
3370         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
3372         * man/groff_font.man: Document `unscaled_charwidths' and
3373         `image_generator'.
3375         * src/preproc/html/pre-html.cpp: Include `device.h'.
3376         (image_gen): New global variable.
3377         (imageList::createPage): Use `image_gen'.
3378         (main): Use `image_generator' keyword.
3380 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3382         * tmac/html.tmac: Handle \[sqrtex].
3384 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3386         * src/include/printer.h (printer): New virtual method `round_width'.
3388         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
3389         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
3390         src/devices/grotty/tty.cpp (printer::round_width): New function
3391         member.
3393         * src/devices/grohtml/post-html.cpp (printer::round_width): New
3394         function member.
3395         (html_printer::set_numbered_char): Use it.
3397 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
3399         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
3401         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
3403         * configure: Regenerated.
3405         * Makefile.in (GHOSTSCRIPT): New variable.
3406         (MDEFINES): Add GHOSTSCRIPT.
3408 2004-10-03  Werner LEMBERG  <wl@gnu.org>
3410         * INSTALL.gen: Updated (taken from texinfo CVS).
3412 2004-09-28  Werner LEMBERG  <wl@gnu.org>
3414         * NEWS: Updated.
3416 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3418         * tmac/groff_www.man: Revised and updated.
3420 2004-09-26  Werner LEMBERG  <wl@gnu.org>
3422         Fix \$@ and \$* to handle any number of arguments.
3424         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
3425         characters.
3427         * src/roff/troff/input.cpp (input_iterator::internal_level):
3428         Removed.
3429         (input_stack): New member functions `increase_level' and
3430         `decrease_level'.
3431         (input_stack::get_level): Don't use `internal_level'.
3432         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
3433         (end_quote_iterator): Completely removed.
3434         (interpolate_arg): Build string for \$@ and \$* which is then
3435         pushed onto the input stack.
3437 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
3439         * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
3440         Registers): Document changes from 2004-09-19.
3442 2004-09-23  Werner LEMBERG  <wl@gnu.org>
3444         * tmac/an-old.tmac (ne): Using default scaling operator.
3446 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3448         This change implements the following features:
3450         PORPHANS
3451           New numeric register: Defines number of lines following LP, PP,
3452           QP, IP or XP, which must be kept together, before any automatic
3453           page break.  If insufficient space remains on the current page, a
3454           page break is forced before the new paragraph begins.
3456         HORPHANS
3457           New numeric register: Sets number of lines of following paragraph
3458           which must be kept with a heading, defined by NH or SH, before any
3459           automatic page break.  If insufficient space remains on the
3460           current page, a page break is forced before the heading.
3462         GROWPS
3463           (Thanks to Joerg van den Hoff, for this idea).
3465           New numeric register: Sets the first level of heading (set with
3466           NH), which will keep the same point size as body text; e.g. if
3467           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
3468           point size specified by \n[PS], but .NH 2 and .NH 1 will have
3469           progressively larger point sizes, determined by \n[PSINCR] (see
3470           below).
3472         PSINCR
3473           New numeric register: Sets the point size increment for each level
3474           of heading, (set with NH), below the threshold level set by
3475           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
3476           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
3477           and all other levels will remain at 10pt, (because \n[PS] = 10).
3479         SH
3480           Existing macro now accepts a numeric argument, to make heading
3481           size match that of NH with same argument value, when the
3482           GROWPS/PSINCR feature is enabled.
3484         SN-DOT
3485           New string, set by NH macro, replaces the existing (undocumented)
3486           use of SN, to represent the assigned section number.
3488         SN-NO-DOT
3489           New string, set by NH macro, represents the assigned section
3490           number, but omits the terminal period (periods at intermediate
3491           levels are retained).
3493         SN
3494           String set by NH macro, originally undocumented, now implemented
3495           as an alias for SN-DOT (which reproduces original behaviour).
3497         * tmac/s.tmac (PORPHANS): New register.
3498         (par*start): Use it.
3499         (HORPHANS, GROWPS, PSINCR): New registers.
3500         (SH-NO-TAG, @SH): Use them.
3501         (@NH): Improved.
3503 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3505         * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
3506         Document the deletion of `Ds' and `De' macros.
3508 2004-09-10  Werner LEMBERG  <wl@gnu.org>
3510         In tbl, handle \a as an interpreted leader character if in
3511         compatibility mode.
3513         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
3514         LEADER_CHAR): New macros.
3515         (compatible_flag): New declaration.
3517         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
3518         LEADER_3, and LEADER_4 to `state'.
3519         (table_input::get): Handle `\a'.
3521         * src/preproc/tbl/table.cpp (PREFIX): Removed.
3522         (LEADER_REG): New macro.
3523         (table::init_output): Define LEADER_REG string register if in
3524         compatibility mode.
3526         * src/preproc/tbl/tbl.man: Document it.
3528 2004-08-18  Werner LEMBERG  <wl@gnu.org>
3530         * tmac/doc.tmac (An): Fix error message.
3532 2004-08-06  Werner LEMBERG  <wl@gnu.org>
3534         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
3535         file can't be opened.  UNIX tbl has the same behaviour.
3537 2004-08-05  Y T  <doarhop@hotmail.com>
3539         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
3540         (DBRead): If in compatibility mode, take into account the text
3541         when computing figure boundaries.
3543 2004-08-05  Werner LEMBERG  <wl@gnu.org>
3545         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
3546         from Tadziu Hoffmann.
3548 2004-08-03  Werner LEMBERG  <wl@gnu.org>
3550         * doc/meref.me: Document `_M' register.
3552 2004-08-03  Martin Husemann  <martin@duskware.de>
3554         Make hpftodit work correctly on big-endian systems.
3556         * src/utils/hpftodit/hpftodit.cpp (File): New method
3557         `get_uint32(char *)'.
3558         (entry): New member `orig_value'.
3559         (read_tags): Use new method.
3560         (output_font_name, read_and_output_pcltypeface, dump_ascii):
3561         Updated.
3563 2004-08-01  Werner LEMBERG  <wl@gnu.org>
3565         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
3566         are already in X11's `macros.t' file.
3568 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
3570         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
3571         Fix casting bug.
3572         (read_and_output_pcltypeface): Handle strings with length <= 4.
3574 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
3576         * tmac/s.tmac (pg@top): Don't save `PO' register.
3577         (pg*end-col, pg*end-page): Directly use `PO' register.
3579 2004-07-27  Werner LEMBERG  <wl@gnu.org>
3581         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
3583         * src/preproc/refer/refer.cpp (output_references): Check for
3584         empty hash table.
3585         * src/preproc/refer/refer.man: Improve documentation of
3586         `bibliography' command.
3588 2004-07-26  Werner LEMBERG  <wl@gnu.org>
3590         Add requests `fcolor' and `gcolor'.
3592         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
3593         New functions.
3594         (init_env_requests): Add `fcolor' and `gcolor'.
3596         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
3598         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
3599         (Colors): Document new requests.
3601 2004-07-24  Werner LEMBERG  <wl@gnu.org>
3603         Add support for fractional point sizes in ms macros.  A value for
3604         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
3605         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
3607         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
3608         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
3610         * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
3611         Registers), NEWS: Document it.
3613 2004-07-19  Werner LEMBERG  <wl@gnu.org>
3615         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
3616         Update constructor.
3617         (do_for, for_input::get, for_input::peek): Handle negative `by'.
3618         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
3620 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
3622         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
3623         * tmac/groff_mdoc.man: Updated.
3625 2004-07-05  Werner LEMBERG  <wl@gnu.org>
3627         * doc/groff.texinfo (Manipulating Hyphenation): Further improve
3628         documentation of `hcode'.
3630 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
3632         Improve appearance of arrows in pic.
3634         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
3635         arrow head thin.
3636         Use two line segments for drawing non-filled arrow head.
3637         (line_object::print, spline_object::print): Shorten line length to
3638         avoid arrow sticking.
3639         (arc_object::print): Take arrow direction into account.
3641 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3643         * tmac/groff_www.man: Update documentation of .MPIMG.
3645 2004-07-03  Werner LEMBERG  <wl@gnu.org>
3647         * tmac/an-old.tmac (RI): Always start with font `R'.
3648         (RI, IR): Properly end with font `R'.
3650 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3652         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
3653         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
3654         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
3655         Don't pass more than six arguments to .R, .I, .B, etc., for
3656         compatibility with traditional troff macros.
3658 2004-07-02  Werner LEMBERG  <wl@gnu.org>
3660         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
3661         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
3662         Update all users.
3663         (PUSH_COMP_MODE): New internal character constant.
3664         Update all users.
3666         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
3667         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
3668         (token::next, macro::append): Handle PUSH_COMP_MODE.
3669         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
3670         POP_GROFFCOMP after each of the decoded arguments to make them
3671         independent from the compatibility mode status.
3672         (comp_mode): Add `COMP_ENABLE'.
3673         (do_define_string, do_define_macro): Handle COMP_ENABLE.
3674         (define_string, append_string, define_macro, define_indirect_macro,
3675         append_macro, append_indirect_macro): Handle `compatible_flag'.
3676         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
3678         * man/groff_diff.man, doc/groff.texinfo: Updated.
3680 2004-07-01  Werner LEMBERG  <wl@gnu.org>
3682         * doc/groff.texinfo: Improve documentation of `hcode'.
3683         Use @documentencoding and convert document to latin-1; to do that
3684         make latin characters active and assign proper macros (within a
3685         @tex...@end tex environment).
3686         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
3687         * doc/Makefile.sub (groff): Ditto.
3689 2004-06-29  Werner LEMBERG  <wl@gnu.org>
3691         Implement two new conditional operators `F <name>' and `S <name>'
3692         which check whether <name> is a valid font or style, respectively.
3694         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
3695         (text_file::text_file): Updated.
3696         (text_file::error): Don't emit message if `silent' is set.
3697         (font::load_font): Add optional third argument (which is directly
3698         passed to `load'.
3699         (font::load): Add optional second argument to check the header of
3700         a font only, without emitting warning or error messages.
3701         * src/include/font.h (font): Updated.
3703         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
3704         conditionals.
3705         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
3706         fourth argument to check a font without mounting.
3707         (check_font, check_style): New functions.
3708         * src/roff/troff/node.h: Updated.
3710         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3711         Updated.
3713 2004-06-27  Werner LEMBERG  <wl@gnu.org>
3715         Implement new string-valued register `.sty' to return the current
3716         style name.
3718         * env.cpp (environment::get_style_name_string): New function.
3719         (init_env_requests): Add `.sty' register.
3720         * env.h (environment): Updated.
3721         * node.cpp (font_info): Make `get_style_name' a friend.
3722         (get_style_name): New function.
3723         * node.h: Updated.
3725         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3726         Updated.
3728 2004-06-15  Werner LEMBERG  <wl@gnu.org>
3730         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
3731         `nospaces' option.
3733 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
3735         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
3736         and \n[mo] to avoid dependency on current date.
3738 2004-06-08  Werner LEMBERG  <wl@gnu.org>
3740         * Makefile.sub (install_data): New target.
3742 2004-06-04  Werner LEMBERG  <wl@gnu.org>
3744         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
3746 2004-06-03  Werner LEMBERG  <wl@gnu.org>
3748         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
3749         order of libraries.
3750         (install_data): Add $(srcdir).
3752         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
3753         libraries.
3755 2004-06-02  Werner LEMBERG  <wl@gnu.org>
3757         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
3758         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
3759         Add test for Xmu library.
3760         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
3761         GROFF_APPRESDIR_DEFAULT): New macros.
3763         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
3764         and GROFF_APPRESDIR_DEFAULT.
3766         * configure: Regenerated.
3768         * Makefile.in (appresdir): New variable.
3769         (MDEFINES): Add appresdir.
3771         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
3772         -Xt.
3773         (install_data, uninstall_sub): New targets to handle GXditview.ad.
3775         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
3776         `$(srcdir)/eign', not `eign'.
3778         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
3780         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
3781         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
3782         Protect (g)xditview with `\%' to avoid hyphenation.
3783         Other minor formatting.
3785 2004-06-01  Werner LEMBERG  <wl@gnu.org>
3787         Integrate gxditview into groff's standard directory hierarchy.
3789         * src/xditview/*: Moved to ...
3790         * src/devices/xditview/*: Here.
3791         Moved DviChar.h and XFontName.h to src/include.
3792         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
3793         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
3794         Moved xtotroff.c to new directory src/utils/xtotroff.
3795         Provide proper Makefile.sub files (reusing the stuff from
3796         Imakefile.in).
3797         DESC renamed to DESC.in.
3798         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
3799         Converted everything from K&R to ANSI C.
3800         Decorated with const where appropriate.
3801         Cast string constants with `String' and `char *' where appropriate.
3802         Made it compile with C++ (used as a C compiler).
3803         Removed other minor compiler warnings.
3805         * src/devices/xditview/device.c: Include config.h, string.h, and
3806         defs.h.
3807         Don't declare `exit', `strtok', `strchr', and `getenv'.
3808         (FONTPATH): Remove.
3810         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
3811         `XFormatFontName'.
3813         * src/devices/xditview/xditview.c: Include config.h.
3814         Include stdio.h earlier.
3815         Protect declaration of `popen' and `pclose' with
3816         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
3817         Replace `caddr_t' with `XtPointer'.
3818         (MakePromptFunc): New typedef.
3819         (DoPrint): Use RETSIGTYPE.
3820         (promptfunction): Change type to MakePromptFunc.
3821         (MakePrompt): Use MakePromptFunc for third argument.
3822         (xmalloc): Removed.
3824         * src/devices/xditview/ad2c: Add casts to `String'.
3826         * src/include/XFontName.h (XFontNameString): Don't use array
3827         notation.
3828         Add prototypes for `XParseFontName', `XFormatFontName',
3829         `XCompareFontName', and `XCopyFontName'.
3831         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
3832         `XFontName.h'.
3834         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
3835         Don't declare `XParseFontName' and `XFormatFontName'.
3836         (xmalloc): Removed.
3837         (main): Remove `optind' and `optarg'.
3839         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
3840         (to select programs which need X).
3841         Make XDEVIDIRS depend on `FORCE'.
3842         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
3843         X support).
3844         (MDEFINES): Updated.
3845         (LIBDIRS): Use XLIBDIRS.
3846         (CPROGDIRS): Use XPROGDIRS.
3847         (DEVDIRS): Remove font directories for gxditview.
3848         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
3849         (EXTRADIRS): Remove src/xditview.
3851         * Makefile.sub (DISCLEANFILES): Updated.
3853         * Makefile.comm (LIBXUTIL): New variable.
3854         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
3855         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
3857         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
3859         * aclocal.m4 (GROFF_X11): New function.
3861         * configure.ac: Call GROFF_X11.
3862         Don't create src/xditview/Imakefile.
3863         Don't emit notice how to build gxditview.
3865         * configure: Regenerated.
3867         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
3869 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
3871         * Makefile.in (CPPFLAGS): Define.
3872         (MDEFINES): Add CPPFLAGS.
3874 2004-05-27  Werner LEMBERG  <wl@gnu.org>
3876         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
3878 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
3880         Fix problems with `friend name injections'.
3882         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
3883         make_script_box), src/roff/troff/div.h (end_diversions),
3884         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
3885         change 2004-04-08.
3887 2004-05-25  Bernd Warken  <bwarken@mayn.de>
3889         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
3891 2004-05-25  Werner LEMBERG  <wl@gnu.org>
3893         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
3894         src/libs/libgroff/color.cpp: Include lib.h.
3896 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3898         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
3899         through Forte 6u1, and for how to get GNU make on Solaris.
3901 2004-05-24  Werner LEMBERG  <wl@gnu.org>
3903         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
3904         by Paul Eggert.
3906 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
3908         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
3909         rule.
3911 2004-05-14  Werner LEMBERG  <wl@gnu.org>
3913         * REVISION: Set to 2.
3915         * aclocal.m4 (GROFF_STDINT_H): Removed.
3916         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
3918         * configure.ac: Updated.
3919         * configure, src/include/config.hin: Regenerated.
3921         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
3922         inttypes.h conditionally.
3924 2004-05-13  Werner LEMBERG  <wl@gnu.org>
3926 Version 1.19.1 released
3927 =======================
3929 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
3931         * src/preproc/refer/label.y (same_author_last_name,
3932         same_author_name): Handle empty sort keys.
3934 2004-05-10  Werner LEMBERG  <wl@gnu.org>
3936         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
3937         tmac/TODO: Updated.
3939         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
3940         doc-str-Lb-librt): Reset font.
3941         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
3942         Provide `doc-str-Lb' to reset font.
3943         * tmac/groff_mdoc.man: Updated.
3945 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
3947         * src/preproc/html/pre-html.cpp (make_message): Make it work for
3948         snprintf versions which don't conform to ANSI C 99 (this is,
3949         counting the string's trailing null byte in the return value).
3951 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
3953         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
3954         that all implementations of sprintf handle null pointers correctly.
3956 2004-05-04  Werner LEMBERG  <wl@gnu.org>
3958         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3959         Document `.U' register.
3961         * src/roff/troff/env.cpp (environment::mark_last_line)
3962         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
3964 2004-05-04  Larry Kollar  <kollar@alltel.net>
3966         New read-only register `.U'; it returns 1 in safer mode and 0
3967         otherwise.
3969         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
3970         register.
3972 2004-05-03  Werner LEMBERG  <wl@gnu.org>
3974         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
3976 2004-04-17  Werner LEMBERG  <wl@gnu.org>
3978         * src/include/font.h (font): Use `int' for ch_index.
3979         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
3980         font::compact): Updated.
3982         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
3983         warnings.
3985         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
3986         (hyphen_word): Fix compiler warnings.
3987         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
3988         `char'.
3989         Update all callers.
3990         (get_delim_number, get_line_arg): Change second argument type to
3991         `unsigned char'.
3992         (macro_header::copy, token::next, do_define_string,
3993         do_define_character, substring_request, asciify_macro,
3994         unformat_macro, read_size, non_interpreted_node::interpret,
3995         while_request, main: Fix compiler warnings.
3996         (read_color_draw_node): Initialize `col'.
3998         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
3999         `start_col' and `end_col' of type `int'.
4000         (vertical_rule): Make `col' of type `int'.
4002         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4003         for EOF.
4005         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4006         New arrays.
4007         (format_serial): Use them to remove dependency on ASCII.
4009         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4010         compiler warning.
4011         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4012         Ditto.
4014         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4015         compiler warnings.
4016         (glyph): Change type of `hpos' to `int'.
4018         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
4019         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4021         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4023         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4025 2004-04-16  Werner LEMBERG  <wl@gnu.org>
4027         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4028         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4029         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4030         `double' instead of `float' everywhere.
4031         * src/preproc/grn/main.cpp: Use `double' instead of `float'
4032         everywhere.
4033         (main): Add return value.
4034         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4035         everywhere.
4036         Update all user functions.
4038         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4039         src/preproc/eqn/box.h, src/preproc/pic/object.h,
4040         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4041         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4042         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4043         src/roff/troff/input.cpp, src/roff/troff/request.h,
4044         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4045         declarations.
4047         * src/utils/indxbib/signal.c: Include stdlib.h.
4049 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4051         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4052         before the first page.
4054 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
4056         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4057         (doc-operating-system-*): Updated.
4058         * tmac/doc-syms (doc-str-St-*): Various small fixes.
4059         (doc-str-Lb-*): Add more library names.
4061 2004-04-10  Art Haas  <ahaas@airmail.net>
4063         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4064         use anonymous type.
4066 2004-04-09  Art Haas  <ahaas@airmail.net>
4068         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4070 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
4072         * arch/misc/shdeps.sh: Generate better comment for sed script.
4074 2004-04-08  Art Haas  <ahaas@airmail.net>
4076         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4077         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4078         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4079         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4080         (polyfill), src/preproc/grn/main.cpp (polyfill),
4081         src/preproc/refer/command.cpp (command_table),
4082         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4083         gcc 3.5 doesn't like).
4085 2004-04-08  Werner LEMBERG  <wl@gnu.org>
4087         Removing many compiler warnings.  groff should now compile with
4088         a C++ compiler used for C files also.  [Simple variable renamings
4089         to avoid shadowing aren't logged in detail.]
4091         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4092         (draw_dvi_printer::draw) ['c']: Enclose in block.
4094         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4095         (page::add_line): Fix typos.
4096         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4098         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4099         Some local variable renamings.
4100         * src/devices/grolbp/lbp.h: Some local variable renamings.
4102         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4103         variable renamings.
4105         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4106         Remove redundant local variable declaration.
4107         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4108         Don't use `caddr_t' but `void *'.
4109         Enclose functions with `extern "C"' for C++.
4111         * src/libs/libdriver/input.cpp (remember_filename,
4112         remember_source_filename): Use cast for string constant.
4114         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4115         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4116         src/libs/libgroff/geometry.cpp: Some local variable renamings.
4117         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4118         style.
4119         Enclose functions with `extern "C"' for C++.
4120         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4121         (needs_quoting): Return `int'.
4122         (quote_arg): Add proper casts to malloc and realloc.
4123         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4124         various MS Windows environments.
4125         (spawnvp_wrapper): Add proper cast to malloc.
4127         * src/preproc/eqn/box.h: Remove redundant declarations of
4128         `make_script_box', `make_mark_box' and `make_lineup_box'.
4129         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4130         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4131         variable renamings.
4133         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4134         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4135         (dx, dy): Renamed functions to...
4136         (deltax, deltay): This.
4137         * src/preproc/grn/main.cpp: Some local variable renamings.
4138         (deffont): Add `const'.
4139         (initpic, conv): Use cast for string constant.
4141         * src/preproc/html/pre-html.cpp: Some local variable renamings.
4142         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4143         (char_buffer::run_output_filter): Second argument is unused.
4144         * src/preproc/html/pushback.cpp: Some local variable renamings.
4146         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4147         * src/preproc/pic/object.cpp: Some local variable renamings.
4149         * src/preproc/refer/label.y (lookup_label): Remove redundant
4150         declaration of local variable.
4152         * src/preproc/soelim.cpp: Remove redundant declaration of
4153         `interpret_lf_args'.
4155         * src/preproc/tbl/main.cpp: Some local variable renamings.
4157         * src/roff/groff/groff.cpp (main): Use cast for string constant.
4158         * src/roff/groff/pipeline.c: Enclose declarations of `error',
4159         `c_fatal', and `i_to_a' with `extern "C"' for C++.
4160         Don't use C++-style comments.
4162         * src/roff/troff/env.h: Remove redundant declaration of `title'.
4163         * src/roff/troff/node.h, src/roff/troff/env.cpp,
4164         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4165         renamings.
4166         * src/roff/troff/div.h: Remove redundant declaration of
4167         `end_diversions'.
4168         * src/roff/troff/troff.h: Remove redundant declaration of
4169         `cleanup_and_exit'
4170         * src/roff/troff/input.cpp: Remove redundant declaration of
4171         `handle_first_page_transition' and `process_input_stack'.
4173         * src/utils/hpftodit.cpp: Some local variable renamings.
4175         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4176         for C++.
4177         Don't define RETSIGTYPE.
4178         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4180         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4181         (error): Use `const' in argument.
4182         (main): Remove redundant declaration of `optind'.
4183         Move declaration of `Version_string' to top-level.
4185         * PROBLEMS: Document difficulties compiling signal.c if a C++
4186         compiler is used for C.
4188 2004-04-07  Werner LEMBERG  <wl@gnu.org>
4190         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4192 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
4194         Make scripts like nroff.sh and neqn.sh portable across various
4195         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4196         non-POSIX path separators.  The idea is to extend those scripts to
4197         decide at run-time (of the script) which path separator to use.
4199         * arch/misc/Makefile.sub: New file.
4200         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4201         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4202         a proper definition of the variable `GROFF_RUNTIME'.
4204         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4205         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4206         (PROGDEPDIRS): New variable.
4207         `FORCE' it.
4208         (PROGDIRS): Add PROGDEPDIRS.
4210         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4211         Don't substitute @SEP@ and @BINDIR@.
4212         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4213         (PATH): Use GROFF_RUNTIME.
4215         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4216         Don't substitute @SEP@ and @BINDIR@.
4217         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4218         (PATH): Use GROFF_RUNTIME.
4220 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4222         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4223         Cygwin which doesn't handle stderr correctly.
4225 2004-03-08  Werner LEMBERG  <wl@gnu.org>
4227         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4228         against empty argument.  Problem reported by <cgd@broadcom.com>.
4230 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4232         * Makefile.in (SEP): Replaced with...
4233         (RT_SEP, SH_SEP): Separators for the target platform's native path
4234         separator and the build environment, respectively.
4235         (fontpath, tmacpath): Use RT_SEP.
4236         (MDEFINES): Updated.
4238         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4239         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4240         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4241         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4243 2004-03-05  Werner LEMBERG  <wl@gnu.org>
4245         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
4246         reduce alignment problems with newer printers which use built-in
4247         TrueType fonts (instead of the older Intellifonts).  The ideal
4248         solution is to provide a second set of groff metric files, but this
4249         is extremely time-consuming to produce, given that HP's metric
4250         files are very rudimentary.
4252 2004-03-01  Werner LEMBERG  <wl@gnu.org>
4254         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4255         s/operand/argument/ in error message.
4257 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4259         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4260         is in use.
4262 2004-03-01  Antti Kantee  <pooka@netbsd.org>
4264         * tmac/s.tmac (XE): Fix error message.
4266 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
4268         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4269         New macros.
4271         * src/roff/groff/pipeline.c: Declare strcasecmp.
4272         (run_pipeline) [_WIN32]: Use function name variants which don't
4273         start with `_'.
4274         Fix stream handling.
4276 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
4278         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4279         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4280         for platforms which use the native Win32 runtime libraries.
4281         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4283         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4284         QUOTE_ARG_REALLOC_ERROR): Fix string.
4286         * src/preproc/html/pre-html.cpp: Remove declaration of
4287         `spawnvp_wrapper'.
4288         Don't use __MINGW32__.
4289         s/DEBUG_FILE/DEBUG_FILE_DIR/.
4290         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
4291         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
4292         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
4293         calls to `set_redirection' and `WAIT'.
4294         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
4295         Fix calls to `set_redirection' and `save_and_redirect'.
4296         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
4297         to `set_redirection' and `save_and_redirect'.
4298         (usage): Fix message.
4299         (makeTempFiles, main): Use `DEBUG_FILE'.
4301 2004-02-21  Werner LEMBERG  <wl@gnu.org>
4303         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
4305 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
4307         * src/libs/libgroff/quotearg.c: New file, providing proper argument
4308         quoting for MSVC's spawn* and exec* functions.
4309         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
4310         spawnvp with proper quoting for MSVC.
4312         * src/libs/libgroff/assert.cpp (program_name),
4313         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
4314         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
4316         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
4318         * src/include/error.h (program_name): Declare as `extern "C"'.
4319         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
4321 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
4323         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
4324         spawnvp_wrapper.
4325         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
4327 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
4329         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4330         variable.
4331         (sbasename) [__MSDOS__ || ...]: New function.
4332         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
4333         generic algorithm.
4334         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
4335         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
4336         of XXX.
4337         Use STDOUT_FILENO instead of hardcoded file handle.
4338         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
4340 2004-02-19  Werner LEMBERG  <wl@gnu.org>
4342         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
4343         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
4345 2004-02-18  Werner LEMBERG  <wl@gnu.org>
4347         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
4348         new font and mapping files.
4350 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
4351             Keith Marshall  <keith.d.marshall@ntlworld.com>
4353         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
4354         an input pipe.  This is needed for the MSVC compiler to make troff's
4355         `-o' option work.
4357         * src/roff/troff/div.cpp: Include nonposix.h.
4358         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
4360 2004-02-17  Werner LEMBERG  <wl@gnu.org>
4362         * font/devlj4/generate/special.awk: New script.
4363         * font/devlj4/generate/Makefile (S): Use special.awk.
4364         * font/devlj4/*: Regenerated, including the following new files:
4365         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
4366         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
4367         * NEWS: Document new lj4 fonts and revised hpftodit.
4369 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
4371         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
4373 2004-01-25  Werner LEMBERG  <wl@gnu.org>
4375         * src/libs/libgroff/progname.cpp: Replaced with...
4376         * src/libs/libgroff/progname.c: New file.
4377         * src/libs/libgroff/Makefile.sub: Updated accordingly.
4379 2004-01-17  Werner LEMBERG  <wl@gnu.org>
4381         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
4383 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
4385         * font/devlj4/generate/wingdings.map,
4386         font/devlj4/generate/symbol.map: Include unnamed glyphs.
4387         Use groff glyph names where possible.
4388         * src/devices/grolj4/lj4_font.man: Minor updates.
4390 2004-01-13  Werner LEMBERG  <wl@gnu.org>
4392         * tmac/www.tmac (DC): Handle TTY devices.
4394         * doc/webpage.ms: Document viewCVS from ffii.org.
4395         * NEWS, README: Updated.
4397         * src/roff/groff/groff.man: Mention lj4_font man page.
4399         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
4400         variables.
4401         (FONTS): Add SYMBOL and WINGDINGS.
4402         (SYMBOL, WINGDINGS): New targets.
4404 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
4406         * src/devices/grolj4/lj4_font.man: New man page.
4407         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
4408         * src/devices/grolj4.man: Mention lj4_font man page.
4410         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
4411         * src/utils/hpftodit/hpftodit.man: Document it.
4412         (CW): New macro.
4413         Remove details about fonts (which are now in lj4_font.man).
4415         * font/devlj4/generate/symbol.map,
4416         font/devlj4/generate/wingdings.map: New files.
4418 2004-01-12  Werner LEMBERG  <wl@gnu.org>
4420         * README: Mention ffii's viewcvs access.
4422 2004-01-09  Werner LEMBERG  <wl@gnu.org>
4424         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
4426 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
4428         Revert most of the change from 2004-01-03 to better control used
4429         symbol sets.
4431         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
4432         (text_symbol_sets, special_symbol_sets): New arrays.
4433         (symbol_set_table): New global variable.
4434         (read_symbol_sets): Use search order given in the text_symbol_sets
4435         and special_symbol_sets arrays.  If command line flag -a is not
4436         given, search both arrays.
4437         (output_charset): Require x_height_tag only for command line flag -i.
4439 2004-01-06  Werner LEMBERG  <wl@gnu.org>
4441         Implement string-valued registers \n[.m] and \n[.M] to return the
4442         name of the current drawing and background color, respectively.
4444         * src/roff/troff/symbol.h: Moved to...
4445         * src/include/symbol.h: Here.
4446         Small fixes to make it work outside of the `troff' directory.
4447         * src/roff/troff/symbol.cpp: Moved to...
4448         * src/libs/libgroff/symbol.cpp: Here.
4449         Small fixes to make it work outside of the `troff' directory.
4451         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
4452         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
4453         Updated.
4455         * src/include/color.h: Include symbol.h.
4456         (color): Add new field `nm'.
4457         * src/libs/libgroff/color.cpp (color::color): Updated.
4459         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
4460         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
4461         src/roff/troff/reg.cpp: Don't include symbol.h.
4463         * src/roff/troff/env.cpp: Don't include symbol.h.
4464         (environment::get_glyph_color_string,
4465         environment_get_fill_color_string): New member functions.
4466         (init_env_requests): Handle `.m' and `.M' registers.
4467         * src/roff/troff/input.cpp: Don't include symbol.h.
4468         (default_symbol): Moved to symbol.cpp/symbol.h.
4469         (do_glyph_color, do_fill_color, define_color): Pass symbol name
4470         to color constructor.
4471         * src/roff/troff/env.h: Updated.
4473         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4474         Document new registers.
4476 2004-01-05  Werner LEMBERG  <wl@gnu.org>
4478         * src/roff/troff/node.cpp (space_node::get_breakpoints,
4479         space_node::nbreaks): Protect against zero `next' field.
4481 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
4483         In hpftodit, use the symbol sets offered in the TFM.
4485         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
4486         (symbol_set, text_symbol_sets, special_symbol_sets,
4487         symbol_set_table): Removed.
4488         (get_printcode): Removed.
4489         (read_symbol_sets): Initialize `symbol_set' field with
4490         `NO_SYMBOL_SET'.
4491         Simplify code to just use the `kind' value.
4492         (output_charset): Improve output formatting.
4493         (dump_symbols): Simplified.
4495 2004-01-02  Werner LEMBERG  <wl@gnu.org>
4497         * font/devlj4/generate/text.map: Add more MSL numbers.
4499 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
4501         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
4502         (text_symbol_sets): Add more symbol sets.
4503         (debug_flag): New static variable (moved from `main').
4504         (get_printcode, show_symset): New functions.
4505         (main): Remove `debug_flag'.
4506         (output_charset): Use `show_symset'.
4507         (dump_symbols):  Use `show_symset'.
4508         Print symsets for all glyphs.
4509         (read_map): Actually call `unicode_to_ucode_make' but this time
4510         correctly.
4512 2004-01-01  Werner LEMBERG  <wl@gnu.org>
4514         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
4515         Fix placement of comments.
4517 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
4519         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
4520         option `-d' is given.
4521         (output_charset): Improve warning messages to give more information.
4522         (dump_symbols): Make information more precise.
4523         (usage): Updated.
4524         (read_map): Don't call unicode_to_ucode_name; the glyph names must
4525         appear as-is and shouldn't be decomposed.
4527 2003-12-31  Werner LEMBERG  <wl@gnu.org>
4529         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
4530         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
4531         (FONTS): Add TrueType font families Arial and Times New Roman.
4532         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
4533         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
4534         `fl'.
4536 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
4538         * test-groff.in (SEP): Quote value.
4539         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
4540         `tem' to `char*' to avoid deallocation of a pointer to a constant
4541         object which some compilers don't like.
4543 2003-12-31  Werner LEMBERG  <wl@gnu.org>
4545         * font/devlj4/generate (text.map, special.map): Rewritten to work
4546         with the new hpftodit version.
4548 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
4550         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
4551         set and 8bit character code for all glyphs also.
4553 2003-12-30  Werner LEMBERG  <wl@gnu.org>
4555         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
4557 2003-12-29  Werner LEMBERG  <wl@gnu.org>
4559         More fixes for MSVC compiler.
4561         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
4562         $(SEP).
4564         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
4565         STDERR_FILENO) [_MSC_VER]: Define conditionally.
4566         (getpid) [_MSC_VER]: Remove.
4567         Include direct.h and process.h conditionally.
4569         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
4570         parentheses for a_delete.
4572         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
4574         * test-groff: Replaced with...
4575         * test-groff.in: This new template to handle path separator
4576         properly.
4578         * configure.ac: Check for direct.h and process.h.
4579         Generate test-groff script.
4580         * configure, src/include/config.hin: Regenerated.
4582 2003-12-28  Werner LEMBERG  <wl@gnu.org>
4584         Add integral extension glyph.
4585         Add new option `-x' to afmtodit to suppress use of built-in AGL.
4587         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
4589         * font/devps/generate/textmap: Provide entry for `integralex' to
4590         override (old) PUA value of the AGL.
4591         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
4592         * font/devps/*: Regenerated.
4594         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
4595         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
4597 2003-12-27  Werner LEMBERG  <wl@gnu.org>
4599         Add forgotten `coproduct' symbol (already available for DVI).
4601         * font/devhtml/R.proto, font/devps/generate/textmap,
4602         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
4603         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
4604         U+2210 (\[coproduct]).
4606 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
4608         hpftodit has been extended to handle TrueType metric files and
4609         more glyphs.  See hpftodit.man for more details.
4611         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
4612         ctype.h, and unicode.h.
4613         s/msl/charcode/ everywhere since we now handle Unicode values also.
4614         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
4615         Use it where appropriate.
4616         (MULTIPLIER): Replaced with...
4617         (multiplier): New global static variable.
4618         (scale): Updated.
4619         (tag_type): Add more TFM tags.
4620         (tag_name): New array.
4621         (ENUM_TYPE, FLOAT_TYPE): Removed.
4622         (BYTE_TYPE): New value assigned.
4623         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
4624         (text_symbol_sets, special_symbol_sets): Extended to cover more
4625         sets.
4626         (check_type): Add return value.
4627         (check_units): Add parameters to get ppi and upem values.
4628         Handle TrueType TFM data.
4629         (output_font_name): New function.
4630         (output_charset): Add parameter to handle TFM type.
4631         Handle TrueType TFMs also.
4632         (em_fract): New macro.
4633         (dump_tags): Be much more verbose and handle more tags.
4634         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
4635         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
4636         functions.
4637         (read_map): Add parameter to handle TFM type.
4638         Handle both MSL and Unicode mappings.
4639         (main): Add two new command line options `-a' and `-q'.
4640         Updated to make use of new functions.
4641         (usage): Updated.
4643         * src/utils/hpftodit/hpuni.cpp: New file.
4645         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
4646         Updated.
4648 2003-12-25  Werner LEMBERG  <wl@gnu.org>
4650         * src/include/nonposix.h (read) [_MSC_VER]: Define.
4652 2003-12-24  Werner LEMBERG  <wl@gnu.org>
4654         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
4655         by Michail Vidiassov <master@iaas.msu.ru>.
4657 2003-12-20  Werner LEMBERG  <wl@gnu.org>
4659         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
4660         and u0049_0307.
4661         Add missing latin-2 glyphs.
4662         * font/devutf8/R.proto: Add missing latin-2 glyphs.
4664         * tmac/troffrc: Load `composite.tmac' earlier.
4666         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
4667         u00{53,73}_0327, and u0049_0307.
4668         * tmac/X.tmac: Add u00{47,67}_0306.
4669         * tmac/tty-char.tmac: Use composite glyph names for readability.
4671         * NEWS: Updated.
4673         * src/include/unicode.h: Remove `extern' keywords.
4675 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
4677         * tmac/latin5.tmac: New file.
4679 2003-12-19  Werner LEMBERG  <wl@gnu.org>
4681         Add some glyphs needed for Turkish.
4683         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
4684         and u0049_0307.
4686         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
4687         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
4688         u00{53,73}_0327, and u0049_0307.
4690 2003-12-18  Werner LEMBERG  <wl@gnu.org>
4692         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
4693         from 2001-10-04.
4694         Remove trailing zeros.
4696 2003-12-17  Werner LEMBERG  <wl@gnu.org>
4698         Make \? transparent to end-of-sentence recognition.
4700         * src/roff/troff/input.cc (non_interpreted_node): Add
4701         `ends_sentence' member function.
4703 2003-12-16  Werner LEMBERG  <wl@gnu.org>
4705         * doc/groff.texinfo: Document `dt' request correctly.
4706         Other minor typographical improvements.
4708 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
4710         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
4712 2003-12-10  Richard Stallman  <rms@gnu.org>
4714         * LICENSE: Better wording.
4716 2003-12-09  Werner LEMBERG  <wl@gnu.org>
4718         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
4719         * configure, NEWS: Updated.
4721 2003-12-08  Werner LEMBERG  <wl@gnu.org>
4723         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
4725 2003-12-07  Bernd Warken  <bwarken@mayn.de>
4727         * LICENSE: Updated.
4729 2003-12-07  Werner LEMBERG  <wl@gnu.org>
4731         * INSTALL: Improved.
4733 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
4735         Use path separator character of target platform for compiled-in
4736         default paths.
4738         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
4739         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
4740         * configure: Regenerated.
4741         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
4743 2003-12-05  Werner LEMBERG  <wl@gnu.org>
4745         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
4746         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
4748 2003-12-04  Bernd Warken  <bwarken@mayn.de>
4750         * LICENSE: New file.
4752 2003-12-03  Werner LEMBERG  <wl@gnu.org>
4754         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
4755         ligatures present in AFM files since groff currently only
4756         understands some standard ligatures and nothing else.
4758 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
4760         * src/roff/groff/groff.cpp (main): Don't run the spooler if
4761         option -v is given.
4763         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
4764         messages.
4765         Close stdout copy.
4766         Don't use Unix wait flags.
4768 2003-12-02  Werner LEMBERG  <wl@gnu.org>
4770         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
4771         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
4772         src/roff/troff/uniuni.cpp: Moved to...
4773         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
4774         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
4775         src/libs/libgroff/uniuni.cpp: Here.
4777         * src/include/Makefile.sub.old (HDRS),
4778         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
4779         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
4781 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
4783         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
4784         `DEBUG_FILE'.
4785         Updated all users.
4787 2003-12-01  Werner LEMBERG  <wl@gnu.org>
4789         * groff.texinfo: Document special behaviour of `.vs 0'.
4790         Improve documentation of `cflags' request.
4791         * NEWS: Updated.
4793 2003-11-29  Werner LEMBERG  <wl@gnu.org>
4795         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
4796         * font/devlj4/CORONET: Regenerated.
4798 2003-11-24  Werner LEMBERG  <wl@gnu.org>
4800         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
4801         if processing hyphenation patterns in traditional mode.
4802         Improve error messages.
4804 2003-11-20  Werner LEMBERG  <wl@gnu.org>
4806         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
4807         troff_output_file::put_char): Fix type of local variable `c'.
4809 2003-11-19  Werner LEMBERG  <wl@gnu.org>
4811         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
4812         declarations.
4813         (i_to_a): Removed.  libgroff already provides this function.
4814         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
4816 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
4818         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
4819         HAVE_DECL_SYS_LIST.
4821 2003-11-17  Werner LEMBERG  <wl@gnu.org>
4823         * COPYING: Use correct version.
4825 2003-11-11  Werner LEMBERG  <wl@gnu.org>
4827         LynxOS 4.0.0 doesn't declare vfprintf.
4829         * configure.ac: Check for vfprintf.
4830         * configure: Regenerated.
4831         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
4832         * src/include/config.hin: Regenerated.
4834 2003-11-10  Werner LEMBERG  <wl@gnu.org>
4836         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
4838         * configure.ac: Check for vsnprintf.
4839         * configure: Regenerated.
4840         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
4841         `HAVE_VSNPRINTF'.
4842         * src/include/config.hin: Regenerated.
4844 2003-11-09  Werner LEMBERG  <wl@gnu.org>
4846         * aclocal.m4: Updated syntax to autoconf 2.59.
4847         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
4848         Don't check for gsos2.
4849         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
4850         working abs_top_srcdir and abs_top_builddir.
4852         * configure.ac: Updated syntax to autoconf 2.59.
4853         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
4854         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
4855         * configure: Regenerated.
4857         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
4858         s/@groff_top_builddir@/@abs_top_builddir@/.
4860         * src/roff/groff/pipeline.c (xstrsignal):
4861         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
4863 2003-11-07  Werner LEMBERG  <wl@gnu.org>
4865         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
4866         make start angle smaller than end angle to circumvent a bug in tpic
4867         handling of some versions of dvipdfm (and dvipdfmx).
4869 2003-10-30  Werner LEMBERG  <wl@gnu.org>
4871         * src/devices/grops/grops.man: Improve section on creating EPS.
4873 2003-10-29  Werner LEMBERG  <wl@gnu.org>
4875         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
4876         -P-pletter).
4878 2003-10-28  Werner LEMBERG  <wl@gnu.org>
4880         * doc/groff.texinfo: Fix documentation of `.if'.
4882 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
4884         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
4885         the form `uniXXXX' also.
4887 2003-10-27  Werner LEMBERG  <wl@gnu.org>
4889         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
4890         contrib/pic2graph/pic2graph.sh: Implement secure management of
4891         temporary files.
4892         Pass `-P-pletter' to groff to avoid data outside of the converted
4893         area -- some versions of `convert' (for example 5.3.8) don't check
4894         the bounding box of the image but always use a fixed image size
4895         (letter paper format).
4896         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
4897         contrib/pic2graph/pic2graph.man: Updated.
4899         * src/roff/groff/groff.man: Document $TMP and $TEMP.
4901 2003-10-26  Werner LEMBERG  <wl@gnu.org>
4903         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
4904         troff_output::simple_ellipse, troff_output::simple_arc,
4905         troff_output::simple_line, troff_output::simple_spline,
4906         troff_output::simple_polygon): Insert a space before arguments.
4907         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
4908         latter doesn't produce a node, so the following `.sp -1' would do
4909         the wrong thing.
4910         Don't emit `.sp -1' after \M.  This also doesn't produce a token
4911         (and we don't have to care about compatibility mode).
4912         (troff_output::set_color, troff_output::reset_color): Don't emit
4913         `.sp -1' after \M and \m.
4915         * src/roff/troff/input.cpp (old_have_input): New global variable.
4916         (input_stack::get): Handle `old_have_input'.
4917         (process_input_stack) <token::TOKEN_NEWLINE>: Call
4918         `trapping_blank_line' depending on `old_have_input', not
4919         `have_input'.
4921 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
4923         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
4924         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
4925         default directory names for temporary files.
4926         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
4928         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
4929         [__MSDOS__] (run_pipeline): Honour environment variables.
4930         Don't use `tmpnam' but `tempnam' to work around messy
4931         implementation.
4933         * README.MinGW: New file.
4935 2003-10-16  Werner LEMBERG  <wl@gnu.org>
4937         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
4938         `(*t)->next' without testing validity of `*t'.
4939         (usage): Make it more readable.
4941 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
4943         Make html device run under both MS-DOS and Win32.
4945         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
4946         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
4947         spawn or fork+exec has to be used, and whether parent must sleep
4948         until the child process terminates.  Used in
4949         `char_buffer::run_output_filter'.
4950         (copyofstdoutfd): Removed.
4951         (char_buffer): Replace `write_file_html' and `write_file_troff'
4952         member functions with `emit_troff_output' and `run_output_filter'.
4953         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
4954         macros.
4955         (replaceFd): Replaced with...
4956         (set_redirection): New auxiliary function.
4957         (waitForChild): Replaced with...
4958         (save_and_redirect): New auxiliary function for.
4960         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
4961         functions.
4963 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
4965         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
4966         (GROFF_LIBC): New function.
4967         * configure.ac: Call GROFF_LIBC.
4968         Check for `kill'.
4969         * configure: Regenerated.
4971         * src/include/lib.h: Handle __MINGW32__.
4972         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
4973         Add macro for `pipe'.
4974         Define P_tmpdir.
4976         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
4977         correctly.
4979         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
4980         Implement.
4982 2003-10-13  Werner LEMBERG  <wl@gnu.org>
4984         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
4985         <chuq@chuq.com>.
4987         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
4988         directory.
4990 2003-10-12  Werner LEMBERG  <wl@gnu.org>
4992         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
4993         src/roff/troff/input.cc (usage): Updated.
4995         * NEWS, doc/groff.texinfo: Updated.
4997 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
4999         * src/libs/libgroff/searchpath.cpp
5000         (search_path::open_file_cautious): New function which also handles
5001         `-' as stdin and stdout depending on the access mode.
5002         * src/include/searchpath.h (search_path): Updated.
5004         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5005         * src/devices/grops/ps.h: Include `searchpath.h'.
5006         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5007         Open resource file with `include_search_path.open_file_cautious'.
5008         * src/devices/grops/grops.man: Document new `-I' switch.
5010         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5011         (main), src/devices/grolj4/lj4.cpp (main),
5012         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5014         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5015         Replaced with...
5016         (include_search_path): New global variable.
5017         (include_path_append): Removed.
5018         (main): Use `include_search_path.command_line_dir' to handle `-I'.
5019         (do_file): Simplify, using new
5020         `include_search_path.open_file_cautious'.
5022         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5023         parameter.
5024         (main): Pass arguments to `-I' to both troff and devices.
5025         Improve handling of `-V'.
5026         * src/roff/groff/groff.man: Document changes to -I and -V.
5028         * src/roff/troff/input.cpp (include_search_path): New global
5029         variable.
5030         (next_file, source, ps_bbox_request, transparent_file,
5031         process_input_file): Use new
5032         `include_search_path.open_file_cautious'.
5033         (main) Handle `-I' switch.
5034         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5035         Use new `include_search_path.open_file_cautious'.
5036         * src/roff/troff/node.h: New extern symbol `include_search_path'.
5037         * src/roff/troff/troff.man: Document new `-I' switch.
5039 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
5041         Support multiple calls of .Lb in LIBRARY section.
5043         * tmac/doc-common (doc-in-library-section): New register.
5044         (doc-section-library): New string.
5045         (Sh): Set `doc-in-library-section'.
5046         (Rd): Updated.
5047         * tmac/doc-syms (Lb): Insert breaks before and after arguments
5048         if in LIBRARY section.
5049         * tmac/doc.tmac (doc-save-global-vars): Updated.
5050         * NEWS, tmac/groff_mdoc.man: Updated.
5052 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
5054         * tmac/doc-common (doc-default-operating-system): New variable.
5055         (Os): Use it.
5057 2003-09-08  Werner LEMBERG  <wl@gnu.org>
5059         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5061 2003-08-31  Werner LEMBERG  <wl@gnu.org>
5063         * contrib/mom/Makefile.sub: Fix last change to make it really work.
5064         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5065         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5066         $(DEVFILES) are not empty.
5067         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5069 2003-08-26  Chuck Silvers  <chuq@chuq.com>
5071         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
5072         with parallel runs of `make'.
5074 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
5076         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
5077         insert SORT_SEP.  With certain combinations of sort specifications,
5078         refer sorted entries in the wrong order.  In particular, entries
5079         with a missing field should be be sorted before all entries that
5080         have that field, before refer looks to the next field.
5082 2003-08-23  Werner LEMBERG  <wl@gnu.org>
5084         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5085         g++ linker is used.  Reported by Mark J. Reed
5086         <mark.reed@turner.com>.
5088 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5090         Add key character `x' to tbl which makes tbl call a user-defined
5091         macro on a table cell.
5093         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5094         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5095         `set_modifier' after printing the compatibility request.
5096         (set_modifier): Print call to `m->macro' if not empty.
5097         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5098         `macro'.
5099         (process_format): Implement cases `x' and `X'.
5100         * src/preproc/tbl/tbl.man, NEWS: Updated.
5102 2003-08-15  Werner LEMBERG  <wl@gnu.org>
5104         * doc/groff.texinfo: Minor fixes.
5106 2003-08-09  Werner LEMBERG  <wl@gnu.org>
5108         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5110 2003-08-07  Werner LEMBERG  <wl@gnu.org>
5112         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5113         argument list to nothing if there is no file to match.  Use `ls' as
5114         a protection, similar to autoconf.
5116         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5117         empty argument lists.
5119         * doc/groff.texinfo: Improve documentation how vertical spacing
5120         and line breaks interact.
5121         Other minor fixes.
5123         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5125 2003-08-03  Werner LEMBERG  <wl@gnu.org>
5127         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5128         EPS (using eps2eps or similar programs to compute the bounding box).
5130 2003-07-24  Werner LEMBERG  <wl@gnu.org>
5132         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5133         * doc/texinfo.tex: Updated from texinfo 4.6.
5134         * README.CVS: From now on we need texinfo 4.6.
5136 2003-07-23  Werner LEMBERG  <wl@gnu.org>
5138         Add requests `dei1' and `ami1' for completeness.
5140         * src/roff/troff/input.cc (calling_mode): Remove
5141         CALLING_DISABLE_COMP.
5142         (comp_mode): New enumeration.
5143         (do_define_string, define_string, define_nocomp_string,
5144         append_string, append_nocomp_string): Updated.
5145         (do_define_macro): Add third parameter.
5146         (define_macro, define_nocomp_macro, define_indirect_macro,
5147         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5148         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5149         functions.
5150         (ignore): Updated.
5151         (init_input_requests): Add `dei1' and `ami1'.
5153         * tmac/trace.tmac: Handle de1 and am1.
5154         (de): Improve tracing message.
5155         (am): Add missing `do'.
5156         (return): Use de1.
5158         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5159         Document new requests.
5161 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
5163         Add option -G to .MPIMG to insert a gap between text and the image.
5165         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5166         www-finish-left-ll): Updated.
5167         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5168         (MPIMG): Make option -L and -R optional.
5169         Implement option -G.
5171 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
5173         * src/devices/grohtml/post-html.cpp
5174         (html_printer::do_file_components): Don't use `stdout' as lvalue
5175         since it can be a macro.
5177 2003-07-22  Werner LEMBERG  <wl@gnu.org>
5179         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5180         the corresponding test in aclocal.m4.
5182 2003-07-21  Werner LEMBERG  <wl@gnu.org>
5184         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5185         names but RGB values directly.  Otherwise pnmtopng depends on
5186         an external file `rgb.txt' which maps colour names to values.
5188 2003-07-20  Werner LEMBERG  <wl@gnu.org>
5190         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5191         * configure, src/include/config.hin: Regenerated.
5193         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5195 2003-07-19  Werner LEMBERG  <wl@gnu.org>
5197         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5199 2003-07-18  Werner LEMBERG  <wl@gnu.org>
5201         * *.man: Switch to non-compatibility mode temporarily if GNU
5202         syntax extensions are used in the particular man page.
5204         * PROBLEMS: Add solutions for SGR problems.
5206 2003-07-17  Werner LEMBERG  <wl@gnu.org>
5208         Don't ignore grotty's command line options if \X'tty: sgr ...' is
5209         used to change the drawing scheme.
5211         * src/devives/grotty/tty.cpp (bold_flag_option,
5212         underline_flag_option, italic_flag_option, reverse_flag_option,
5213         bold_underline_mode_option): New global variables.
5214         (update_options): New function.
5215         (tty_printer::special): Call update_options.
5216         (main): Don't set xxx_flag but xxx_flag_option, then call
5217         update_options.
5219 2003-07-14  Werner LEMBERG  <wl@gnu.org>
5221         Make grotty emit proper Unicode box drawing characters for -Tutf8.
5223         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5224         values.
5225         (hline_char, vline_char): New global variables.
5226         (tty_printer::tty_printer): Initialize them.
5227         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5228         horizontal and vertical lines.
5229         (crossings): New global array.
5230         (tty_printer::end_page): Use it to determine the proper crossing
5231         character for -Tutf8.
5233 2003-07-12  Werner LEMBERG  <wl@gnu.org>
5235         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5236         (HTMLDOCFILES): Revert to `pic.html'.
5237         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5239 2003-07-11  Werner LEMBERG  <wl@gnu.org>
5241         * doc/pic.ms: Improve documentation of absolute coordinates.
5242         Document absolute positioning of pictures.
5244         * NEWS: Add new pic capability.
5246 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
5248         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5249         Rewritten.
5251 2003-07-07  Werner LEMBERG  <wl@gnu.org>
5253         Implement support for dashed and dotted ellipses in pic.  Based on
5254         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5256         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5257         common_output::dashed_ellipse, common_output::dotted_ellipse): New
5258         functions.  Ellipse arcs are approximated with circle arcs.
5259         * src/preproc/pic/common.h (common_output): Updated.
5260         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5261         functions.
5262         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5264         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5266 2003-07-06  Werner LEMBERG  <wl@gnu.org>
5268         Make grotty work on platforms which have unsigned char as the
5269         default for char.  Based on a patch by Thomas Klausner
5270         <wiz@netbsd.org>.
5272         * src/devices/grotty/tty.cpp (schar): New typedef.
5273         Updated calls to declare_ptable and implement_ptable.
5274         (glyph): Use schar for back_color_idx and fore_color_idx.
5275         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5276         (tty_printer::tty_color, tty_printer::tty_printer,
5277         tty_printer::color_to_idx, tty_printer::put_color): Updated.
5279 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5281         * src/roff/nroff/nroff.sh: Add option -d for completeness.
5282         * src/roff/nroff/nroff.man: Updated.
5284 2003-07-05  Werner LEMBERG  <wl@gnu.org>
5286         * NEWS, tmac/groff_www.man: Updated.
5287         * doc/Makefile.sub: Updated.
5289 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
5291         Implement support for multiple HTML output files.
5293         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5294         -j command line option.
5296         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5297         global variables.
5298         (file): New fields `new_output_file', `require_links',
5299         `output_file_name'.
5300         (file::file): Updated.
5301         (files::set_file_name, files::set_links_required,
5302         files::are_links_required, files::is_new_output_file,
5303         files::file_name, files::next_file_name): New functions.
5304         (header_desc): New fields `no_of_level_one_headings',
5305         `header_filename'.
5306         (header_desc::header_desc): Updated.
5307         (header_desc::write_headings): Handle multiple files.
5308         (html_printer::write_header): Save file name in which header occurs.
5309         (html_printer::determine_header_level): Possibly split files on
5310         level one headings.
5311         (html_printer::do_links, html_printer::troff_tag): Updated.
5312         (html_printer::insert_split_file, html_printer::do_job_name,
5313         html_printer::emit_link, html_printer::write_navigation,
5314         html_printer::do_file_components): New functions.
5315         (html_printer::~html_printer): Handle multiple files.
5316         (main): Handle command line option `-j'.
5318         * src/devices/grohtml/grohtml.man: Updated.
5320         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
5321         which splits file.
5323         * tmac/www.tmac (JOBNAME): New macro.
5324         * tmac/s.tmac (SH-NO-TAG): New macro.
5325         (@SH): Call SH-NO-TAG.
5326         (@NH): Updated.
5328 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5330         * tmac/groff_mdoc.man: Improve documentation of punctuation
5331         characters.
5333 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
5335         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
5337 2003-07-03  Werner LEMBERG  <wl@gnu.org>
5339         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
5341 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
5343         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
5344         after `/*' and `*/'.
5345         Fix spacing.
5346         (Fn, Fo): Reduce indentation in synopsis.
5348         * tmac/doc-common (doc-check-depth): New macro.
5349         (doc-end-macro, Sh, Ss): Use it.
5350         (Cd): Fix behaviour in synopsis.
5351         (In): Make it parsed and callable.
5352         If not in the synopsis, represent the C header file enclosed in
5353         angle brackets.
5354         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
5355         Use minus, not hyphen.
5357         * tmac/groff_mdoc.man: Updated.
5359 2003-07-01  Werner LEMBERG  <wl@gnu.org>
5361         Integrated grap2graph, contributed by Eric S. Raymond.
5363         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
5364         New files.
5365         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
5366         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
5368 2003-07-01  Colin Watson  <cjwatson@debian.org>
5370         * src/xditview/*.c: Add prototypes, fix return types, add includes.
5371         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
5373 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
5375         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
5377 2003-06-31  Werner LEMBERG  <wl@gnu.org>
5379         * doc/Makefile.sub (CLEANADD): Remove all files created by
5380         running `make groff.{pdf,dvi}'.
5382         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
5383         src/xditview also.
5385 2003-06-30  Werner LEMBERG  <wl@gnu.org>
5387         * Makefile.in (SHELL): Define as @SHELL@.
5388         (mkinstalldirs): Use $(SHELL).
5389         (MDEFINES): Add $(SHELL).
5390         * Makefile.comm (SHELL): Removed.
5392 2003-06-29  Werner LEMBERG  <wl@gnu.org>
5394         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
5395         The X11 documentation files use them.
5396         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
5398 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
5400         * tmac/e.tmac (@C): Handle .ad also.
5402 2003-06-12  Werner LEMBERG  <wl@gnu.org>
5404         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
5406         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
5407         Assign `n' even here.  It is possible to construct a node
5408         immediately following an escape character:
5410           .di xx
5411           \?\\\?a
5412           .br
5413           .di
5414           .xx
5416 2003-06-10  Werner LEMBERG  <wl@gnu.org>
5418         * README.WIN32: Removed.
5419         * MANIFEST: Updated.
5421 2003-06-07  Werner LEMBERG  <wl@gnu.org>
5423         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
5425 2003-06-05  Werner LEMBERG  <wl@gnu.org>
5427         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
5428         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
5430 2003-06-03  Werner LEMBERG  <wl@gnu.org>
5432         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
5433         is done by the calling function.
5435 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
5437         * tmac/X.tmac: Fix definition of `em'.
5439 2003-05-22  Werner LEMBERG  <wl@gnu.org>
5441         * src/roff/troff/input.cc (return_macro_request): Fix detection of
5442         argument.
5444 2003-05-18  Werner LEMBERG  <wl@gnu.org>
5446         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
5447         to make items work which consist only of a tag.
5449 2003-05-17  Werner LEMBERG  <wl@gnu.org>
5451         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
5452         aren't stretched in a tag (this can fail with unformatted boxes).
5453         Instead, insert a break and go back one line.
5455 2003-05-16  Werner LEMBERG  <wl@gnu.org>
5457         * src/roff/troff/input.cc (return_macro_request): If called with
5458         argument pop macro twice.  We need this to trace `return'.
5460         * tmac/trace.tmac: Handle `return'.
5461         Fix typos.
5463         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5464         Document.
5466 2003-05-15  Larry Kollar  <kollar@alltel.net>
5468         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
5469         registers `FPS', `FVS', and `FPD'.
5471 2003-05-15  Werner LEMBERG  <wl@gnu.org>
5473         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
5474         correctly.
5476 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
5478         * tmac/groff_mdoc.man: Slight improvements.
5480 2003-05-03  Werner LEMBERG  <wl@gnu.org>
5482         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
5483         `doc-header-space' after header line if register `cR' is set.
5485 2003-05-02  Werner LEMBERG  <wl@gnu.org>
5487         * TODO: Updated.
5489 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
5491         * tmac/doc-common (Nd): Use \[em].
5493 2003-05-01  Werner LEMBERG  <wl@gnu.org>
5495         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
5496         doc-footer-space): Initialize to 0.5i.
5497         (doc-setup-page-layout): Don't set doc-header-space and
5498         doc-footer-space.
5500 2003-04-30  Werner LEMBERG  <wl@gnu.org>
5502         * REVISION: Set to 1.
5504         * doc/pic.ms: Document possible problems with `figname'.
5506 2003-04-29  Werner LEMBERG  <wl@gnu.org>
5508 Version 1.19 released
5509 =====================
5511         * VERSION: Set to 1.19.
5512         * REVISION: Set to 0.
5513         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
5515         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5516         Define charset as `US-ASCII' in html output.
5518         * tmac/www.tmac (ULE): Add missing scaling indicator.
5520         * win32-diffs: Removed.
5522 2003-04-28  Werner LEMBERG  <wl@gnu.org>
5524         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
5525         `.da' and `.boxa'.
5526         Document how to insert discardable whitespace with `.ss'.
5528 2003-04-27  Werner LEMBERG  <wl@gnu.org>
5530         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
5531         work with plain TeX also.
5533         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
5535 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
5537         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5538         Use a loose DTD.
5540 2003-04-24  Werner LEMBERG  <wl@gnu.org>
5542         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
5543         vbox with positive height and zero depth if in TeX mode.
5545         * NEWS: Document glyph name changes for grodvi and grolj4.
5547 2003-04-23  Werner LEMBERG  <wl@gnu.org>
5549         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
5550         * doc/pic.ms: Fixed.
5552 2003-04-21  Werner LEMBERG  <wl@gnu.org>
5554         HP-UX 10.20 has `snprintf' but it isn't declared.
5556         * configure.ac: Add declaration test for snprintf.
5557         * configure: Regenerated.
5558         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
5559         * src/include/config.hin: Regenerated.
5561 2003-04-19  Werner LEMBERG  <wl@gnu.org>
5563         Add keyword `figname' to pic, specifying the name of the picture
5564         box in TeX mode.  Based on a patch from William J Poser
5565         <wjposer@unagi.cis.upenn.edu>.
5567         * src/preproc/pic/pic.y: New token `FIGNAME'.
5568         (macro_name): New rule of type <str>.
5569         (placeless_element): Handle `FIGNAME'.
5570         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
5571         * src/preproc/pic/main.cpp (graphname): New global variable.
5572         (do_picture): Initialize `graphname'.
5573         * src/preproc/pic/pic.h: Updated.
5574         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
5575         `graphname'.
5576         Simplify TeX code.
5577         (tex_output::text): Beautify output.
5578         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
5579         `shaded' and `outlined' unconditionally.
5580         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
5581         Minor improvements.
5583         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
5584         greater is necessary.
5586 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
5588         Add option -r to soelim to avoid emission of `.lf' lines.
5589         Add option -t to produces TeX comment lines instead of `.lf' lines.
5591         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
5592         and `tex_flag'.
5593         (usage): Updated.
5594         (main): Handle `-r' and `-t'.
5595         (set_location): Handle `raw_flag' and `tex_flag'.
5596         * src/preproc/soelim/soelim.man, NEWS: Updated.
5598 2003-04-17  Werner LEMBERG  <wl@gnu.org>
5600         * tmac/hyphenex.sh: Replaced with...
5601         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
5602         nightmares.
5604         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
5605         if --quiet is used for the configure script.
5606         * configure: Regenerated.
5608 2003-04-16  Werner LEMBERG  <wl@gnu.org>
5610         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
5611         Add `const' to second argument.
5612         (html_printer::add_table_end): Add `const' to argument.
5613         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
5614         `const' to arguments.
5615         * src/devices/grohtml/html-text.h: Updated.
5617         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
5618         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
5619         argument.
5621         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
5622         cast for integer constant.
5624         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
5625         (writeNbytes): Add `const' to first argument.
5626         (writeString): Add `const' to argument.
5627         (char_buffer::can_see): Add `const' to third argument.
5628         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
5629         `const' to argument.
5630         * src/preproc/html/pushback.h: Updated.
5632         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
5633         (include_path_append): Add `const' to argument.
5634         (do_file): Updated.
5636         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
5637         for `value'.
5638         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
5639         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
5640         for `value'.
5641         (unicode_decompose_init::unicode_decompose_init): Updated.
5642         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
5643         for `value'.
5644         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
5645         * src/roff/troff/input.cc (process_startup_file): Add `const' to
5646         argument.
5648         * tmac/hyphenex.sh: Make script more portable by using a here
5649         document.
5651 2003-04-15  Werner LEMBERG  <wl@gnu.org>
5653         Renamed all `*.cc' files to `*.cpp'.
5654         Updated all configuration files, makefiles, and documentation.
5656 2003-04-14  Werner LEMBERG  <wl@gnu.org>
5658         * tmac/hyphenex.sh: Slight improvements.
5660 2003-04-13  Werner LEMBERG  <wl@gnu.org>
5662         * font/devascii/R.proto, font/devcp1037/R.proto,
5663         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
5664         character slots with unnamed glyphs.
5666         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
5667         (an-first): New global variable.
5668         (an-header): Emit vertical space between multiple man pages.
5670 2003-04-11  Werner LEMBERG  <wl@gnu.org>
5672         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
5673         values.
5675 2003-04-10  Werner LEMBERG  <wl@gnu.org>
5677         * PROBLEMS: Revised.
5679 2003-04-10  Bernd Warken  <bwarken@mayn.de>
5681         * doc/webpage.ms: Improved.
5683 2003-04-09  Werner LEMBERG  <wl@gnu.org>
5685         Add register \n[.height] which returns the value of \H.
5686         Add register \n[.slant] which returns the value of \S.
5688         * src/roff/troff/env.cc (init_env_requests): Implement.
5689         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5690         Document.
5692 2003-04-08  Werner LEMBERG  <wl@gnu.org>
5694         * tmac/html.tmac: Move some of the data into html-end.tmac.
5695         Remove most of the character translations for eqn since html fonts
5696         now cover those characters.
5697         Load www.tmac.
5698         * tmac/html-end.tmac: New file.
5699         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
5700         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
5701         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
5703 2003-04-07  Werner LEMBERG  <wl@gnu.org>
5705         * man/groff_out.man: Document negative values of `N' if -Thtml is
5706         used.
5708 2003-04-06  Werner LEMBERG  <wl@gnu.org>
5710         * Makefile.comm (depend.temp): Check location of YTABC.
5712 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5714         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
5715         binary path.
5716         (groff_bin_path): Rename to GROFF_BIN_PATH.
5717         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
5718         * doc/Makefile.in (TROFFBIN): New variable for troff
5719         binary path.
5720         (GROFFBIN): New variable for groff binary path.
5721         (groff_bin_path): Rename to GROFF_BIN_PATH.
5722         (TROFF): Use TROFFBIN.
5723         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
5724         * doc/Makefile.sub (GROFFBIN): New variable for groff
5725         binary path.
5726         (groff_bin_path): Rename to GROFF_BIN_PATH.
5727         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
5729         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
5730         with INSTALL_SCRIPT.
5731         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
5732         * Makefile.dev (all): Depend on DEVSCRIPTS.
5733         (install_dev): Likewise.
5734         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
5735         scripts.
5736         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
5737         (DEVGENSCRIPTS): New variable to hold generated scripts.
5739 2003-04-05  Werner LEMBERG  <wl@gnu.org>
5741         * src/libs/libdriver/input.cc (IntArray::operator[],
5742         IntArray::get_data): Remove meaningless `const' in return value.
5744         * README.CVS: New file.
5746 2003-04-04  Werner LEMBERG  <wl@gnu.org>
5748         Check for stdint.h in C++, not in C.
5750         * aclocal.m4 (GROFF_STDINT_H): New function,
5751         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
5752         AC_CHECK_HEADERS.
5753         * configure, src/include/config.hin: Regenerated.
5754         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
5757         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
5758         with a negative value, representing the width of the unbreakable
5759         space (only for -Thtml).  grohtml then converts this back to
5760         &nbsp; and uses the value of N as its width.
5762         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
5763         unbreakable_space_node::tprint): Emit `N-<width>'.
5764         * src/include/printer.h (printer::set_numbered_char): Make it
5765         virtual.
5766         Make members `font_table' and `nfonts' protected instead of private.
5767         * src/devices/grohtml/post-html.cc
5768         (html_printer::set_numbered_char): New member function.
5771         * src/libs/libgroff/maxfilename.cc:
5772         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
5774         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
5775         emit word marker.
5777 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
5779         * man/roff.man: Small fixes.
5781 2003-04-03  Werner LEMBERG  <wl@gnu.org>
5783         Make groff independent from locale's numeric settings.
5785         * configure.ac: Check for `setlocale'.
5786         * configure, src/include/config.hin: Regenerated.
5788         * src/include/lib.h: Handle HAVE_SETLOCALE.
5790         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
5791         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
5792         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
5795         * doc/groff.texinfo: Change dir category to `Typesetting'.
5796         (Man font macros): Mention that there is no space between arguments
5797         of .BI and friends.
5799         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
5800         (*printer::change_color, *printer::change_fill_color): Add missing
5801         `const'.
5803 2003-04-02  Werner LEMBERG  <wl@gnu.org>
5805         * src/devices/grohtml/html-table.cc (html_table::emit_col,
5806         html_table::is_gap): Compute table widths after converting border
5807         positions to avoid rounding errors.
5809 2003-04-01  Werner LEMBERG  <wl@gnu.org>
5811         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
5812         `space_emitted' properly.
5814 2003-03-31  Werner LEMBERG  <wl@gnu.org>
5816         * src/devices/grohtml/html-table.cc: Fix column width calculation.
5817         (html_table::set_linelength): Don't add 1.
5818         (html_table::add_indent): Don't subtract 1.
5820         * tmac/html.tmac: Set default page offset to zero.
5822 2003-03-30  Werner LEMBERG  <wl@gnu.org>
5824         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
5826         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
5827         unbreakable_space_node::tprint): New functions.
5828         (troff_output_file): Make space_char_hmotion_mode::tprint and
5829         unbreakable_space_node::tprint to friends.
5830         * src/roff/troff/node.h: Updated.
5832         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
5833         in the HTML standard).
5835 2003-03-29  Werner LEMBERG  <wl@gnu.org>
5837         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
5838         Otherwise, the following code
5840           .di xxx
5841           .ps 10
5842           a
5843           .br
5844           .di
5845           x\*[xxx]
5847         produces `x a' instead of `xa'.  This is a temporary fix, disabling
5848         font changes in diversions for -Thtml.
5850         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
5851         `HTML-TAG'.
5852         (an-do-tag-html): Merge with ...
5853         (an-do-tag): This macro.
5854         Change code slightly to circumvent grohtml bug.
5855         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
5857         * src/devices/grohtml/html-table.cc (html_table::emit_col,
5858         html_table::is_gap): Round `width' properly.
5860         * tmac/html.tmac: Provide some default layout parameters for
5861         grohtml.
5863         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
5864         command.
5866 2003-03-28  Werner LEMBERG  <wl@gnu.org>
5868         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
5870 2003-03-27  Werner LEMBERG  <wl@gnu.org>
5872         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
5873         defined.
5875 2003-03-20  Werner LEMBERG  <wl@gnu.org>
5877         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
5878         `.vs'.
5879         * doc/groff.texinfo: Updated.
5881 2003-03-19  Werner LEMBERG  <wl@gnu.org>
5883         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
5884         TOKEN_END_TRAP>: Reset `have_input'.
5886 2003-03-18  Werner LEMBERG  <wl@gnu.org>
5888         * src/roff/groff/groff.man: Mention groff_trace man page.
5890 2003-03-16  Werner LEMBERG  <wl@gnu.org>
5892         * Makefile.in (LIBEXT): New variable to indicate the file extension
5893         of library files.  Computed heuristically from $(OBJEXT).
5894         (MDEFINES): Add $(LIBEXT).
5895         * Makefile.lib, Makefile.comm: Use it.
5897         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
5898         overlong lines into smaller chunks.
5899         (get_binary): New function.
5900         (main): Use them.
5901         * src/utils/pfbtops/pfbtops.man: Updated.
5903 2003-03-15  Colin Watson  <cjwatson@debian.org>
5905         * src/roff/groff/groff.man: Minor syntax fix.
5907 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
5909         * src/devices/grops/ps.cc (ps_printer::media_set,
5910         ps_printer::~ps_printer): Handle zero paper width and length.
5912 2003-03-13  Werner LEMBERG  <wl@gnu.org>
5914         Add options -p and -l to grodvi.
5916         * src/devices/grodvi/dvi.cc: Include paper.h.
5917         (landscape_flag, user_paper_length, user_paper_width): New global
5918         variables.
5919         (dvi_printer::begin_page): Emit `papersize' special.
5920         Set color after initialization of `cur_h' and `cur_v'.
5921         (main): Add options `-l' and `-p'.
5922         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
5923         * src/devices/grodvi/grodvi.man, NEWS: Updated.
5925         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
5927 2003-03-12  Werner LEMBERG  <wl@gnu.org>
5929         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
5930         * man/groff_tmac.man: This man page.
5931         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
5932         deprecated.
5934         * tmac/X.tmac: Don't load pspic.tmac.
5936 2003-03-11  Werner LEMBERG  <wl@gnu.org>
5938         Make variable `pr' local to libdriver/input.cc.  Based on a patch
5939         by Bernd Warken <bwarken@mayn.de>.
5941         * src/include/driver.h (pr): Removed.
5943         * src/libs/libdriver/input.cc (pr): New global variable.
5944         (do_file): Deallocate `pr'.
5945         * src/libs/libdriver/printer.cc (pr): Removed.
5947         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
5948         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5949         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5950         (main): Don't delete `pr'.
5952 2003-03-10  Werner LEMBERG  <wl@gnu.org>
5954         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
5955         * tmac/papersize.tmac: New file.
5956         * tmac/troffrc: Include `papersize.tmac'.
5957         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
5958         * tmac/an-old.tmac: Set LT to LL by default.
5960         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
5961         doc/groff.texinfo: Updated.
5963         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
5964         bug which caused all odd iso papers to have wrong dimensions.
5966         * src/devices/grops/ps.cc (user_paper_width): New global variable.
5967         (main) <'p'>: Set `user_paper_width' also.
5968         (ps_printer::media_width, ps_printer::media_height): Use values
5969         given with option `-p'.
5971 2003-03-09  Werner LEMBERG  <wl@gnu.org>
5973         * src/include/nonposix.h: Provide default for SET_BINARY.
5975         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
5976         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
5977         unconditionally.
5979         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
5980         (main): Treat \r\n as \n.
5982 2003-03-08  Werner LEMBERG  <wl@gnu.org>
5984         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
5985         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
5987 2003-03-07  Werner LEMBERG  <wl@gnu.org>
5989         Added support to access more than 256 glyphs in Type 1 fonts.
5991         * src/devices/grops/ps.cc (subencoding): New structure.
5992         (style): Add `sub' field.
5993         Updated all users.
5994         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
5995         Add `set_subencoding', `get_subfont' and `encode_subfont' member
5996         functions.
5997         Updated all users.
5998         (ps_printer::set_char): Use `set_subencoding'.
5999         (make_subencoding_name): New function.
6000         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6001         (ps_printer::~ps_printer): Emit subencoding definitions.
6003         * src/devices/grops/psrm.cc (valid_input_table): New array to
6004         properly support EBCDIC.
6005         (white_space): Add `\f'.
6006         (ps_get_line): Change first argument to be of type `string &'.
6007         Updated all callers.
6008         This allows to get lines of arbitrary length.
6009         Use `valid_input_table'.
6010         Remove warning about non-conforming PS line length.  This seems
6011         not to be of great importance -- for example, dvips don't emit
6012         a warning either.
6013         (PS_LINE_MAX): Removed.
6014         (matches_comment): Change first argument to be of type `string &'.
6016         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6018         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6019         %AGL_to_unicode, %default_ligatures): New hash tables.
6020         Read all map entries.
6021         Add unencoded characters.
6022         Check for default ligatures if there are no `L' entries.
6023         Print all kern entries.
6024         Print all characters in charset.
6025         * src/utils/afmtodit/afmtodit.man: Updated.
6027         * font/devps/*: Regerated all fonts.
6029         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6030         of characters, just use `.trin'.  Otherwise the mapping depends
6031         on the font encoding.
6032         * tmac/ps.tmac: Add `fi' and `fl'.
6033         Improve `Fi' and `Fl'.
6034         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6035         * tmac/Xps.tmac: Fix `em'.
6037         * NEWS: Updated.
6039 2003-03-04  Werner LEMBERG  <wl@gnu.org>
6041         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6042         `have_input'.
6044 2003-03-03  Werner LEMBERG  <wl@gnu.org>
6046         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6048         * font/devps/generate/textmap: Remove entry `similarequal'.
6049         * font/devps/symbolmap: Updated.
6051 2003-03-02  Werner LEMBERG  <wl@gnu.org>
6053         * src/libs/libgroff/font.cc (font::load): Fix error message for
6054         bad character type.
6056         * src/devices/grops/grops.man: Improve documentation of the -b
6057         flag.
6059         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6060         `ascii' and `cp1047'.
6062 2003-03-01  Werner LEMBERG  <wl@gnu.org>
6064         Document composite glyphs and the `composite' request.
6066         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6068 2003-02-28  Werner LEMBERG  <wl@gnu.org>
6070         * font/devdvi/generate/ec.map: Add some more Unicode entities.
6071         * font/devdvi/*EC: Updated.
6073         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6074         * tmac/latin1 (latin1-tr): Undo any previous mapping.
6075         * tmac/troffrc: Load `composite.tmac'.
6076         * tmac/Makefile.sub (NORMALFILES): Updated.
6078         * doc/groff.texinfo (Input Encodings): New section.
6079         * NEWS: Updated.
6081 2003-02-27  Werner LEMBERG  <wl@gnu.org>
6083         * doc/texinfo.tex: New version 2003-02-11.06.
6085         * tmac/doc-common (Dt): Don't emit warning for unknown section.
6086         * tmac/groff_mdoc.man: Fix description of `Dt'.
6088 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
6090         * font/devps/prologue.ps: Fix for included Postscript that does
6091         a setpagedevice -- which is now safely ignored.
6093         * NEWS: Updated.
6095         * src/devices/grops/ps.cc: Now sets the page size in the generated
6096         document.  This is done in two ways: Via a %%-comment for gv and
6097         the like, and via a PageSize and setpagedevice for programs that
6098         understands Postscript proper, like ps2pdf.
6100         * src/devices/grops/ps.h: New broken-flag to avoid page size
6101         definition, if required.
6103         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6105         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6106         Not really necessary due to the fix in prologue.ps, but cleaner:
6107         Such information does not belong in an .eps file.
6109         * doc/Makefile.sub: See doc/Makefile.in.
6111 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
6113         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6114         instead of P1 since the latter is broken in some versions of netpbm.
6115         * configure: Updated.
6117 2003-02-26  Larry Kollar  <kollar@alltel.net>
6119         Make man pages more customizable.
6121         * tmac/an-old.tmac (FT): New register holding footer distance from
6122         bottom.
6123         (HF): New string holding the default heading font.
6124         (TH): Handle registers `IN' and `SN' set on the command line.
6125         Use `FT'.
6126         (PT, BT): New strings to customize header and footer lines.
6127         (an-header, an-footer): Use them.
6128         (SH, SS): Use `HF'.
6129         * tmac/groff_man.man: Document changes.
6131         * doc/groff.texinfo: Document man changes.
6132         Document Ultrix extensions of man.
6134 2003-02-26  Werner LEMBERG  <wl@gnu.org>
6136         * src/roff/troff/input.cc (do_width, do_if_request): Reset
6137         `have_input' after changing back to old environment.
6139         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6140         function up to be defined before first call.  This is necessary to
6141         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6143         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6144         the default font directory also.  Based on a patch from James
6145         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6146         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6147         * src/utils/afmtodit/afmtodit.man: Document it.
6149         * NEWS: Updated.
6151         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6153 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
6155         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6156         (GROFF_PNMTOPS_NOSETPAGE): New macro.
6157         * configure.ac: Use it.
6158         * configure: Regenerated.
6159         * Makefile.in: Updated.
6161         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6162         (CLEANADD): Add www.tmac-sed.
6163         (pnmtops_nosetpage): Define default.
6164         (install_data): Handle www.tmac-sed and substitute
6165         @PNMTOPS_NOSETPAGE@.
6166         (stamp-sed): Add www.tmac.
6167         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6168         It now breaks URLs at suitable places.
6169         (www:substring_ok): New register set by...
6170         (www:@test_substring): New macro.
6171         (www:error): New alias to www-error.
6172         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6173         New macros.
6174         (URL): Use www:url_breaks.
6175         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6176         (CDS, CDE): New macros.
6178 2003-02-25  Werner LEMBERG  <wl@gnu.org>
6180         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6181         buffer overflow.
6183 2003-02-24  Werner LEMBERG  <wl@gnu.org>
6185         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6186         can be negative also.
6188         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6189         `int16'.
6190         (read_char_table): Avoid negative ascenders.
6191         (output_charset): Add cast.
6192         * font/devlj4/*: Regenerated.
6194         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6195         possible.
6197         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6198         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6199         of `<>'.
6200         * font/devdvi/*: Regenerated.
6202         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
6203         normal width, while the previously used characters (U+2329 and
6204         U+232A) are classified as wide due to canonical equivalence with the
6205         CJK punctuation characters U+3008 and U+3009.
6207         * font/devutf8/R.proto: Updated.
6208         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6210         * man/groff_char.man: Simplify handling of table traps by
6211         introducing `start block' and `end block' macros.
6212         (Ns, Ne, 2s, 2e, Ds, De): New macros.
6213         (DL): Make it work with Unix troff also.
6214         Fix code values of `la' and `ra'.
6216         * tmac/dvi.tmac: Define `<>' for CW and CWI.
6218 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
6220         * src/devices/grohtml/post-html.cc (element_list::~element_list):
6221         New destructor, fixing a major memory leak.
6223 2003-02-22  Werner LEMBERG  <wl@gnu.org>
6225         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6226         to be in conformance with Unicode 3.0 and newer.
6228         * font/devlj4/generate/text.map: Add `Eu'.
6229         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6230         * font/devlj4/S: Regenerated.
6232         * man/groff_char.man: Completely rewritten.
6234         * doc/groff.texinfo: Fix description of request and macro arguments.
6236 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
6238         Valgrind fixes.
6240         * src/devices/grohtml/html-table.cc (html_table::~html_table):
6241         Deallocate `columns' list.
6242         * src/devices/grohtml/post-html.cc (char_block::~char_block):
6243         New destructor.
6244         (text_glob::text_glob_html, text_glob::text_glob_special,
6245         text_glob::text_glob_line, text_glob::text_glob_auto_image,
6246         text_glob::text_glob_tag): Avoid memory leaks.
6247         (text_glob::remember_table): Free memory before reassigning.
6249 2003-02-19  Werner LEMBERG  <wl@gnu.org>
6251         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6252         alias `hbar'), the Planck constant over two pi.
6254         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6255         `+e' for position 34.
6256         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6257         `u2662' and `u2661'.
6258         * font/devdvi/{MI,S}: Regenerated.
6259         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6260         * font/devlbp/*: Add `hbar' alias.
6261         * font/devlj4/generate/special.map: Ditto.
6262         * font/devlj4/S: Regenerated.
6263         * font/devps/generate/symbolchars: Add `+e'.
6264         * font/devps/generate/textmap: Fix PS name for `-h'.
6265         Add `hbar' alias.
6266         * font/devps/symbolmap: Regenerated.
6268         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6270         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6271         `-h', `hbar'.
6272         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6273         `-h'.
6275         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6276         `hbar'.
6277         * tmac/tty-char.tmac: Add `+e'.
6279 2003-02-17  Werner LEMBERG  <wl@gnu.org>
6281         Another round trying to really fix problems with `have_input'.
6283         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6284         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6286         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6287         handling if both foreground and background colors are default.
6289         * doc/groff.texinfo (Debugging): Document .lf differences to
6290         AT&T troff.
6292 2003-02-16  Werner LEMBERG  <wl@gnu.org>
6294         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6295         null-bytes in created string.
6297         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6298         alias_macro, lookup_request): Improve warning messages.
6300         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6301         not `strdup'.
6302         Free `last_image_filename'.
6304         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6305         `buffer'.
6306         (imageList::createPage, imageList::createImage): Use `free', not
6307         `a_delete'.
6308         (imageItem::~imageItem): Free `imageName'.
6309         (addRegDef): Use `strsave', not `strdup'.
6310         (get_resolution): Free `pathp'.
6312 2003-02-15  Werner LEMBERG  <wl@gnu.org>
6314         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
6315         to `dummy'.
6317 2003-02-14  Werner LEMBERG  <wl@gnu.org>
6319         Add memory management for colors to deallocate unnamed colors
6320         properly.
6322         * src/include/color.h (color): New members `free_list' and `next'.
6323         New member functions `new' and `delete'.
6324         Add destructor.
6325         * src/libs/libgroff/color.cc: Implement it.
6327         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
6328         for array size of new operator.
6330         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
6331         redundant comparison.
6333         * src/roff/troff/input.cc (word_space_node::reread,
6334         hmotion_node::reread): Avoid warning about unused parameter.
6335         (reset_output_registers): Remove redundant parameter.
6336         (define_color): Undo change 2003-02-12.
6338         * src/roff/troff/reg.h: Updated.
6340         * src/roff/troff/node.cc (troff_output_file::really_print_line,
6341         output_file::put_filename, real_output_file::really_put_filename,
6342         ascii_output_file::really_print_line,
6343         break_char_node::get_hyphen_list): Avoid warning about unused
6344         parameter.
6345         (suppress_node::tprint): Updated.
6347         * configure.ac: Check declaration for rand() and srand().
6348         * configure: Regenerated.
6350         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
6351         conditionally.
6352         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
6353         and srand().
6355         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
6356         to avoid compiler warnings.
6358         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
6359         unused.
6361         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
6362         is unused.
6363         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
6364         (unused) parameter.
6365         Updated all callers.
6367         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
6368         is unused.
6369         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
6370         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
6372         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
6373         Parameter is unused.
6374         (html_printer::add_table_end): Define parameter conditionally.
6375         * src/devices/grohtml/output.cc (simple_output::special): Parameter
6376         is unused.
6378         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
6379         (lbp_printer::set_char): Last parameter is unused.
6381         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
6383 2003-02-13  Werner LEMBERG  <wl@gnu.org>
6385         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
6386         Make \D'f ...' move horizontally again for backwards compatibility.
6387         Replace it with \D'Fg ...' where appropriate to avoid dependency
6388         on horizontal resolution.
6390         * src/roff/troff/input.cc (do_get_long_name): New function.
6391         (get_long_name): Call it.
6393         (read_draw_node): Handle `\D'Fx ...' by calling ...
6394         (read_color_draw_node): New function.
6396         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
6397         `end'.
6398         Pass it to `do_get_long_name' which is used instead of
6399         `get_long_name'.
6401         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
6402         unnecessary value guard.
6403         (parse_D_command) <'f'>: Add horizontal shift.
6405         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
6406         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6407         (FILL_MAX): Removed.
6409         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6410         Updated.
6412 2003-02-12  Werner LEMBERG  <wl@gnu.org>
6414         * src/roff/troff/input.cc (do_name_test, do_expr_test,
6415         do_zero_width): Push `\n' if closing delimiter is missing.
6417         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
6418         <'F'>: Make \F non-transparent at the beginning of line.
6419         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
6420         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
6421         `have_input'.
6423         (define_color): Free color in case of reassignment.
6425         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
6426         @DefescListEnd): Use @Var, not @var.
6427         Fix all calls.
6429         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
6431         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
6432         `shaded' and `outlined' arrays.
6433         (object_spec::object_spec): Initialize `shaded' and `outlined'.
6434         (graphic_object::set_fill_color, graphic_object::set_outline_color):
6435         Use strsave.
6436         (closed_object::set_fill_color): Ditto.
6437         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
6438         instead of strdup.
6439         (troff_output::reset_color): Use a_delete instead of free.
6440         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
6442 2003-02-11  Werner LEMBERG  <wl@gnu.org>
6444         * doc/groff.texinfo: Improve documentation of `ad'.
6445         Document that \D'f...' is dependent on the horizontal resolution.
6446         * man/groff_diff.man: Improve documentation of \D'f...'.
6448         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
6449         compensating \h'...' for \D'f ...' since the latter no longer moves
6450         current position.
6451         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6453 2003-02-10  Werner LEMBERG  <wl@gnu.org>
6455         Improve error messages for `x F' (and `F') commands.
6457         * src/include/error.h: Add declaration for
6458         `current_source_filename'.
6459         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
6460         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
6461         parameter for source file string.
6462         Updated all callers.
6464         * src/libs/libdriver/input.cc: Add `current_source_filename'.
6465         (remember_source_filename): New function.
6466         (parse_x_command <'F'>, do_file <'F'>): Use it.
6468 2003-02-09  Werner LEMBERG  <wl@gnu.org>
6470         Make grotty not emit warnings about unknown colors more than
6471         necessary.
6473         * src/devices/grotty/tty.cc: Include `ptable.h'.
6474         (TTY_MAX_COLORS): Removed.
6475         (DEFAULT_COLOR_IDX): Defined to -1.
6476         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
6477         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
6478         Change `tty_colors' to be a ptable.
6479         First arg of `put_color' is now `char'.
6480         New functions `make_rgb_string' and `tty_color'.
6481         (tty_printer::tty_printer): Use `tty_color'.
6482         (tty_printer::color_to_idx): Return value is now `char'.
6483         Use `tty_color'.
6485         * src/include/color.h (color): Add `print_color' member function.
6486         * src/libs/libgroff/color.cc (color::print_color): Implement it.
6488 2003-02-08  Werner LEMBERG  <wl@gnu.org>
6490         Valgrind fixes.
6492         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
6493         encoding file.
6495         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
6496         assume that value has been allocated with `new[]', thus use
6497         `a_delete' for deallocation.
6499         * src/libs/libdriver/input.cc (get_integer_arg,
6500         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
6501         where appropriate.
6503         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
6504         * src/libs/libgroff/nametoindex.cc
6505         (character_indexer::named_char_index): Use `new <type>[1]'.
6507         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
6508         <type>[1]'.
6509         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
6510         (split_text): Use `a_delete'.
6512         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
6513         <type>[1]'.
6515         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
6516         harmless memory leak.
6517         (hyphen_trie::read_patterns_file): Initialize `buf'.
6518         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
6519         Initialize `current_fill_color'and `current_glyph_color'.
6520         * src/roff/troff/glyphuni.cc
6521         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
6522         * src/roff/troff/uniuni.cc
6523         (unicode_decompose_init::unicode_decompose_init): Ditto.
6524         * src/roff/troff/uniglyph.cc
6525         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
6527 2003-01-26  Werner LEMBERG  <wl@gnu.org>
6529         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
6530         `access' before calling `unlink'.
6531         (do_file): Handle __EMX__.
6533         * src/include/nonposix.h: Handle __EMX__.
6535         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
6536         (fontpath,tmacpath): Use it.
6537         (MDEFINES): Add it.
6538         Sorted alphabetically.
6540         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
6541         @SEP@.
6542         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
6543         @SEP@.
6545 2003-01-27  Werner LEMBERG  <wl@gnu.org>
6547         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
6548         New files, copied from gnulib.
6549         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
6550         * configure.ac: Updated.
6551         * configure: Regenerated.
6553         * src/include/config.hin: Regenerated.
6554         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
6555         Don't define `strcasecmp' as `strcmp'.
6556         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
6557         Dont define `strncasecmp' as `strncmp'.
6559         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
6560         Removed.
6562 2003-01-26  Werner LEMBERG  <wl@gnu.org>
6564         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
6565         s/unline/unlink/.
6567 2003-01-25  Werner LEMBERG  <wl@gnu.org>
6569         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
6571 2003-01-24  Werner LEMBERG  <wl@gnu.org>
6573         Add US-english hyphenation exceptions (converted from Barbara
6574         Beeton's hyphenation exception log reports which appear irregularly
6575         in TUGBoat).
6577         * tmac/hyphen.us: Updated to latest version.
6578         * tmac/README: Updated.
6579         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
6580         * tmac/troffrc: Load `hyphenex.us'.
6581         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
6582         * doc/groff.texinfo: Updated.
6584 2003-01-23  Werner LEMBERG  <wl@gnu.org>
6586         Improve hyphenation slightly.  This is a first step in redesigning
6587         the hyphenation algorithm to make it more flexible (e.g. allowing
6588         kerns and ligatures between the hyphenation character and the
6589         following character -- while not used normally in English, other
6590         languages like German would benefit).
6592         * src/roff/troff/env.cc (environment::hyphenate_line): Use
6593         assertion instead of if-clause.
6594         Let `get_hyphen_list' return the number of involved characters in
6595         the hyphenation pattern instead of computing it directly (which
6596         often yields too small values).
6597         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
6598         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
6599         parameter.
6601 2003-01-22  Werner LEMBERG  <wl@gnu.org>
6603         Fixing a bug which caused groff to hang if the hyphenation exception
6604         dictionary tried to grow.
6606         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
6607         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
6608         pointer to dictionary.
6610 2003-01-20  Werner LEMBERG  <wl@gnu.org>
6612         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
6613         negative left italic correction.
6614         * src/utils/afmtodit/afmtodit.man: Document it.
6616         * font/devps/generate/Makefile (RFLAG): Add `-m'.
6617         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
6618         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
6620         * NEWS: Updated.
6622 2003-01-16  Werner LEMBERG  <wl@gnu.org>
6624         * NEWS: Updated.
6626 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
6628         * src/preproc/refer/refer.man: Mention REFER environment variable.
6630 2003-01-05  Werner LEMBERG  <wl@gnu.org>
6632         Similar to \[is], the square root glyph (\[sr]) and the square root
6633         extension glyph (\[radicalex]) are now text symbols.  The new
6634         mathematical versions are called \[sqrt] and \[sqrtex],
6635         respectively.
6637         * font/devX*/S: Regenerated.
6638         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
6639         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
6640         * font/devdvi/EX, font/devdvi/S: Regenerated.
6641         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
6642         * font/devlj4/generate/special.map: Add `sqrt'.
6643         * font/devlj4/S: Regenerated.
6644         * font/devps/generate/textmap: Add `sqrt'.
6645         * font/devps/S, font/devps/symbolmap: Regenerated.
6647         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
6648         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
6649         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
6650         overlap horizontally.
6652         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
6653         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
6654         Fix `radicalex'.
6656         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
6657         and `sqrtex' are overlapping glyphs.
6659 2003-01-04  Werner LEMBERG  <wl@gnu.org>
6661         * font/devdvi/generate/texsy.map: Add `is'.
6662         * font/devps/symbolmap: Regenerated.
6663         * font/devdvi/*TC, MI, S: Regenerated.
6665         * tmac/dvi.tmac: Remove `is'.
6667 2003-01-03  Werner LEMBERG  <wl@gnu.org>
6669         `is' is now a text symbol (only relevant for dvi).  The math variant
6670         can be accessed with `integral'.
6672         * font/devX*/S: Regenerated.
6673         * font/devdvi/generate/texex.map: Remove `is'.
6674         * font/devdvi/EX: Updated.
6675         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
6676         * font/devlj4/generate/special.map: Ditto.
6677         * font/devlj4/S: Regenerated.
6678         * font/devps/generate/textmap: Add `integral'.
6679         * font/devps/S: Regenerated.
6681         * tmac/dvi.tmac: Define `is'.
6683         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
6685         * src/preproc/tbl/main.cc (process_format): Fix error message.
6687 2003-01-02  Werner LEMBERG  <wl@gnu.org>
6689         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
6690         * font/devps/textmap: Fix entries for `ne' and `nc'.
6691         * font/devps/symbolmap: Regenerated.
6693         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
6694         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
6695         `38', `58', `78', `-+', `|=', `nc', `ne'.
6697         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
6698         Use `schar' for `aq'.
6699         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
6700         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
6701         * tmac/tty.tmac: Add `ne'.
6703         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
6704         for fallback glyphs.
6706 2002-12-29  Werner LEMBERG  <wl@gnu.org>
6708         Add glyph `|='.
6710         * font/devX*/*: Regenerated.
6711         * font/devdvi/generate/ec.map: Remove `eq'.
6712         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
6713         Assign `|=' to position 39.
6714         * font/devdvi/*EC, S: Regenerated.
6715         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
6716         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
6717         Assign `|=' to position 549.
6718         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
6719         `equalmath'.
6720         Add `uni2243' for `|='.
6722         * tmac/ec.tmac: Add `eq'.
6723         * tmac/dvi.tmac: Add `=~'.
6724         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
6725         `|='.
6727 2002-12-21  Werner LEMBERG  <wl@gnu.org>
6729         * font/devdvi/generate/tc.map: Remove `**'.
6730         * font/devdvi/*TC: Regenerated.
6731         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
6732         `78', `<<', `>>'.
6733         * font/devutf8/NOTES: Updated.
6735         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
6736         Don't give default parameter to `set_macro'.
6737         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
6738         instead of `set_macro'.
6739         (charinfo::setx_macro): Implement it.
6740         (charinfo::set_macro): Don't change `mode'.
6742         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
6743         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
6744         * tmac/dvi.tmac: Define `!=' with `.schar'.
6746 2002-12-20  Werner LEMBERG  <wl@gnu.org>
6748         * font/devX*/S: Regenerated.
6749         * font/devdvi/generate/ec.map: Remove `pl'.
6750         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
6751         * font/devdvi/*{TC,EC}: Regenerated.
6752         * font/devhtml/R.proto: Add `-+'.
6753         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
6754         * font/devlbp/*: Remove `or'.
6755         * font/devlj4/generate/special.map: Remove `or'.
6756         * font/devlj4/S: Regenerated.
6757         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
6758         `seveneighths', `threeeighths'.
6759         Remove `plusmath'.
6760         Replace `minusplus' with `uni2213'.
6761         * font/devps/symbolmap: Regenerated.
6762         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
6763         Add `-+'.
6765         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
6766         function.
6767         * src/roff/troff/node.cc (troff_output_file::put_char_width):
6768         Call glyph_color and fill_color even if tcommand_flag isn't set.
6769         (make_node, node::add_char): Check not ci->is_fallback but
6770         ci->is_normal.
6772         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
6773         * tmac/ec.tmac: Add .rchar entry for `f/'.
6774         Don't remove `12', `14', `34'.
6775         Define `pl' to be always roman.
6776         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
6777         Define `18', `38', `58', `78'.
6778         * tmac/tty.tmac: Add `-+'.
6779         * tmac/dvi.tmac: Define `f/'.
6780         (dvi-frac): Use `f/'.
6781         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
6782         Define `18', `38', `58', `78'.
6784 2002-12-15  Colin Watson  <cjwatson@debian.org>
6786         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
6788 2002-12-10  Werner LEMBERG  <wl@gnu.org>
6790         Add glyph `tno', a textual variant of `no'.
6792         * font/devX*/*: Regenerated.
6793         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
6794         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
6795         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
6796         * font/devdvi/*: Regenerated.
6797         * font/devlbp/*: Add `tno'.
6798         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
6799         * font/devlj4/*: Regenerated.
6800         * font/devps/generate/textmap: Replace `no' with `tno'.
6801         * font/devps/generate/symbolchars: Add `no'.
6802         * font/devps/*: Regenerated.
6804         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
6806         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
6807         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
6809         * NEWS: Updated.
6811         * tmac/dvi.tmac: Replace most `\\' with `\E'.
6812         Add definition for `sd'.
6813         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
6815         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
6817 2002-12-08  Werner LEMBERG  <wl@gnu.org>
6819         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
6820         mode to avoid rounding errors.
6821         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
6823         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
6824         src/roff/troff/troff.man: Improve documentation of -T.
6826 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
6828         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
6829         (run_pipeline) [_WIN32]: Provide working function without `fork'.
6831 2002-12-06  Werner LEMBERG  <wl@gnu.org>
6833         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
6834         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
6835         Scaling Euro.sansserif glyphs down to have the same height as
6836         digits.
6837         Removed unnecessary points; added some extrema.
6839         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
6840         Regenerated.
6842 2002-12-04  Werner LEMBERG  <wl@gnu.org>
6844         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
6845         and `Euro.symbol.bold.slanted'.
6846         Improve some glyph offsets and widths.
6847         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
6848         Regenerated.
6849         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
6850         typo.
6851         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
6852         direcory.
6854         * tmac/europs.tmac: Updated to new glyph indices.
6855         Use Euro.symbol for font familiy `A'.
6857         * doc/groff.texinfo: Minor improvements.
6859 2002-12-02  Werner LEMBERG  <wl@gnu.org>
6861         * font/devdvi/generate.tc.map: s/%O/%0/.
6862         * font/devdvi/*TC: Regenerated.
6864         * src/roff/troff/div.cc (init_div_requests): Sorted.
6866         * tmac/dvi.tmac: Remove `Ye'.
6867         * tmac/ec.tmac: Remove `Ye'.
6868         Add .rchar entry for `de'.
6870         * man/groff.man, man/groff_diff.man: Document register `.pe'.
6871         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
6872         * NEWS: Updated.
6874 2002-11-30  Werner LEMBERG  <wl@gnu.org>
6876         Add PS font for various Euro glyphs.
6878         * font/devps/generate/freeeuro.sfd: New master font file for
6879         pfaedit.
6880         * font/devps/generate/sfdtopfa.pe: New conversion script for
6881         pfaedit.
6882         * font/devps/generate/Makefile (FONTS): Add `EURO'.
6883         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
6884         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
6885         `freeeuro.sfd'.
6886         * font/devps/EURO: Generated from `freeeuro.afm'.
6887         * font/devps/download: Add `freeuro.pfa'.
6888         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
6889         `freeeuro.pfa'.
6891         * tmac/europs.tmac: New file.
6892         * tmac/ps.tmac: Include `europs.tmac'.
6893         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
6895 2002-11-29  Werner LEMBERG  <wl@gnu.org>
6897         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
6898         * font/devdvi/S: Regenerated.
6899         * font/devhtml/R.proto: Fix `CR' and `ci'.
6900         Add `OK'.
6901         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
6902         Remove `bs'.
6903         * font/devps/symbolmap: Regenerated.
6904         * font/devutf8/R.proto: Fix `CR' and `ci'.
6905         Add `OK'.
6906         * font/devutf8/NOTES: Updated.
6908         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
6909         `ci'.
6910         Add `OK'.
6911         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
6913         * tmac/dvi.tmac: Add `lh' and `rh'.
6914         * tmac/Xps.tmac: Fix `lh' and `rh'.
6915         * tmac/X.tmac: Add `OK'.
6916         * tmac/lj4.tmac: Ditto.
6918 2002-11-24  Werner LEMBERG  <wl@gnu.org>
6920         * font/devX*/S: Regenerated.
6921         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
6922         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
6923         * font/devdvi/generate/texsy.map: Remove `or' glyph.
6924         * font/devdvi/S: Regenerated.
6925         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
6926         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
6927         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
6928         `bracketleftbt', `bracketrighttp', `bracketrightex',
6929         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
6930         `braceex', `braceleftex', `bracerightex', `bracerighttp',
6931         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
6932         `rb', and `bv'.
6933         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
6934         * font/devutf8/NOTES: Updated.
6935         * font/devlj4/generate/special.map: Add glyph `braceex'.
6936         * font/devlj4/S: Regenerated.
6938         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
6940 2002-11-14  Werner LEMBERG  <wl@gnu.org>
6942         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
6943         and `vA'.
6944         Fix code for `an'.
6945         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
6947         * doc/texinfo.tex: New version from texinfo 4.3.
6948         * doc/groff.texinfo: Updated for texinfo 4.3.
6949         Use @tie{} where appropriate.
6950         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
6951         * font/devdvi/generate/tc.map: Remove `rn'.
6952         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
6953         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
6954         Fix code for `an'.
6955         * font/devX100/*, font/devX100-12/*, font/devX75/*,
6956         font/devX75-12/*: Regenerated.
6958         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
6959         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
6960         Improve definition of `an'.
6961         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
6962         `ru'.
6963         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
6964         * tmac/X.tmac: Add definition for `or'.
6965         * tmac/Xps.tmac: Undo change 2002-11-05.
6966         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
6968 2002-11-11  Werner LEMBERG  <wl@gnu.org>
6970         * src/roff/troff/node.cc (troff_output_file::put_char): Always
6971         call flush_tbuf.
6973 2002-11-10  Werner LEMBERG  <wl@gnu.org>
6975         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
6976         defines a glyph which is searched after the check for fonts declared
6977         with `.special' (and before the check for all mounted special
6978         fonts).  `fschar' defines a glyph for a particular font which is
6979         searched after the check for fonts declared with `.fspecial' (and
6980         before the check for fonts declared with `.special').  `rfschar'
6981         removes glyphs defined with `fschar'.
6983         * src/roff/troff/token.h (char_mode): New enum.
6984         Declare do_define_character.
6985         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
6986         `mode'.
6987         (charinfo::is_fallback): Updated.
6988         (charinfo::is_special): New method.
6989         * src/roff/troff/input.cc (do_define_character): Add and use
6990         optional second parameter used as a prefix for font-specific glyph
6991         names.
6992         (define_character, define_fallback_character): Updated.
6993         (define_special_character): New function.
6994         (init_input_requests): Add `schar'.
6995         (charinfo::charinfo, charinfo::set_macro): Updated.
6996         * src/roff/troff/node.cc: Include `stringclass.h'.
6997         (make_glyph_node): Handle special glyphs defined with `.schar' and
6998         `.fschar'.
6999         (define_font_special_character, remove_font_special_character): New
7000         functions.
7001         (init_node_requests): Sorted.
7002         Add `fschar' and `rfschar'.
7003         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7004         Document new requests.
7006         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7007         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7009 2002-11-08  Werner LEMBERG  <wl@gnu.org>
7011         Added new font `SC' (cmtex10) to devdvi.
7013         * devdvi/generate/Makefile (FONTS): Add `SC'.
7014         (SC): New rule.
7015         * devdvi/generate/textex.map: New map file for cmtex.
7016         * devdvi/SC: New.
7017         * devdvi/Makefile.sub (DEVFILES): Updated.
7018         * tmac/dvi.tmac: Add fspecial entries for SC.
7019         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
7020         found before `S' since the font position of `SC' is lower due to the
7021         gaps in DESC's `font' line.
7022         * tmac/ec.tmac: Add a `special' call.
7023         * NEWS: Updated.
7025         * font/devhtml/R.proto: Remove double entry for `ti'.
7026         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7027         * tmac/tty-char.tmac: Remove entry for `bq'.
7028         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7029         * tmac/ec.tmac: Don't remove `aq' glyph.
7030         * tmac/X.tmac: Fix entry for `em'.
7031         Add entries for `fo' and `fc'.
7032         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7034         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7035         documentation of `special' and `fspecial' requests.
7037 2002-11-05  Werner LEMBERG  <wl@gnu.org>
7039         * font/devascii/R.proto, font/devcp1047/R.proto,
7040         font/devlatin1/R.proto: Remove entry for `.i'.
7041         * font/devdvi/generate/textt.map: Add entry for `ad'.
7042         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7043         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7044         We need this for getting kerning values to compose `/l' and `/L'.
7045         * font/devdvi: Regenerated font definition files for CM fonts.
7046         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7047         * font/devutf8/R.proto: Ditto.
7048         Remove double entry for `ti'.
7050         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7051         for (groff) ligatures, `la', and `ra'.
7052         Add "'C", "'c", `IJ', and `ij'.
7053         Remove double entry for `ti'.
7054         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7055         double entries.
7056         Add "'C", "'c", `IJ', and `ij'.
7057         Fix entries for (groff) ligatures, `la', and `ra'.
7059         * tmac/ps.tmac (ps-achar): New macro.
7060         Define "'c" and "'C".
7061         * tmac/tty.tmac: Add entry for `.i'.
7062         * tmac/X.tmac (X-achar): New macro.
7063         Define "'c", "'C", and `:Y'.
7064         Add entries for `IJ' and `ij'.
7065         * tmac/Xps.tmac (Xps-achar): New macro.
7066         Define "'c" and "'C".
7067         Add entries for `IJ' and `ij'.
7068         * tmac/lbp.tmac (lbp-achar): New macro.
7069         Add fallback characters for all groff ligatures and many other
7070         glyphs.
7071         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7072         Add entries for `/l' and `/L'.
7073         Define "'c" and "'C".
7074         Add entries for `IJ' and `ij'.
7076 2002-11-02  Larry Kollar  <kollar@alltel.net>
7078         * PROBLEMS: Document how to solve Mac OS X compilation problems.
7080 2002-11-02  Werner LEMBERG  <wl@gnu.org>
7082         Adding support for composite glyphs: \[xxx yyy ...] and the
7083         `composite' request.
7085         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7086         to Unicode-based glyph names.
7087         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7088         glyph names to groff glyph names.
7089         * src/roff/troff/uniuni.cc: New file for canonically decomposing
7090         Unicode-based glyph names.
7091         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7092         for handling Unicode glyph names.
7093         * src/roff/troff/input.cc: Include unicode.h.
7094         (composite_glyph_name): New function.
7095         (token::next) <'['>: Handle Unicode glyph names and composite
7096         glyphs.
7097         (composite_dictionary): New dictionary for the `composite' request.
7098         (composite_request): Implement `composite' request.
7099         (init_input_requests): Add `composite'.
7100         Alphabetically sorted.
7101         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7102         commented out).
7103         (init_env_requests): Alphabetically sorted.
7104         Removed `tas' and `tar' (already commented out).
7105         * src/roff/troff/Makefile.sub: Updated.
7107 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
7109         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7110         of options.
7112 2002-10-29  Werner LEMBERG  <wl@gnu.org>
7114         Fix computation of .trunc register.  Additionally, its value (and
7115         the value of the .ne register) is now always set before entering the
7116         trap.
7118         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7119         `needed_space' before calling `space'.
7120         (top_level_diversion::space): Remove special code for 'sp before the
7121         first page.
7122         Call `begin_page' with the discarded space as a parameter.
7123         (top_level_diversion::begin_page): Add optional parameter to set
7124         `truncated_space'.
7125         * src/roff/troff/div.h: Updated.
7127         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7128         \n[.ne].
7130         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7131         (LP): Remove superfluous call to `br'.
7132         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7133         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7135 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7137         * tmac/doc-ditroff: Remove useless switch/variable -rC.
7138         (doc-setup-header): Don't set page register `%'.
7139         * tmac/doc-nroff: Remove variable `C'.
7140         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7141         (doc-setup-header): Don't set page register `%'.
7142         Don't call `bp'.
7143         * tmac/doc-common (doc-header): Call `ns'.
7144         (doc-paragraph): Protect .sp with .br so that it survives traps
7145         possibly set by the user.
7146         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7148         * tmac/doc*: Replace ' with . for consistency if no effect.
7150 2002-10-26  Werner LEMBERG  <wl@gnu.org>
7152         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7153         so that it survives traps possibly set by the user.
7155         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7156         (troff_output_file::set_font): Call flush_tbuf if necessary.
7157         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7158         flush_tbuf and do_motion only if necessary.
7159         (troff_output_file::start_special,
7160         troff_output_file::put_char_width, troff_output_file::put_char,
7161         troff_output_file::draw): Updated.
7162         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7163         vmotion_node::tprint): Undo change 2002-10-23.
7165 2002-10-25  Werner LEMBERG  <wl@gnu.org>
7167         * tmac/www.tmac (DC): Fix case of overlapping images.
7169 2002-10-23  Werner LEMBERG  <wl@gnu.org>
7171         * src/roff/troff/node.cc (troff_output_file::fill_color,
7172         troff_output_file::glyph_color): Set current color before testing
7173         color_flag.
7174         (troff_output_file::put_char_width, troff_output_file::put_char,
7175         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7176         before glyph_color.
7177         (troff_output_file::file_color, troff_output_file::glyph_color):
7178         Call do_motion.
7179         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7180         vmotion_node::tprint): Move first, then call fill_color.
7182 2002-10-20  Werner LEMBERG  <wl@gnu.org>
7184         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7185         possible to use multiple main macro packages.
7187 2002-10-19  Werner LEMBERG  <wl@gnu.org>
7189         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7190         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7191         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7192         is set.
7193         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7194         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7196 2002-10-16  Werner LEMBERG  <wl@gnu.org>
7198         * NEWS, doc/webpage.ms: Updated.
7200 2002-10-14  Werner LEMBERG  <wl@gnu.org>
7202         * src/roff/troff/node.cc (troff_output_file::put_char_width,
7203         troff_output_file::put_char, troff_output_file::fill_color,
7204         troff_output_file::glyph_color): Handle case where color pointer
7205         is null.
7207 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
7209         Add the new -r option to grotty.  It is similar to the -i option
7210         except it tells grotty(1) to use the `reverse video' attribute to
7211         render italic fonts.
7213         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7214         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7215         (tty_printer::make_underline, tty_printer::put_color,
7216         tty_printer::end_page): Use it.
7217         (main): Add -r switch.
7218         (usage): Updated.
7219         * src/devices/grotty/grotty.man: Document it.
7221 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
7223         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7224         cast to `unsigned char' to properly read patterns with 8bit
7225         characters.
7227 2002-10-08  Werner LEMBERG  <wl@gnu.org>
7229         * REVISION: Increased to 2.
7231 Local Variables:
7232 version-control: never
7233 coding: latin-1
7234 End: