1 2009-01-04 Werner LEMBERG <wl@gnu.org>
3 * tmac/de.tmac: Fix German date string. Reported by Axel Kielhorn.
5 2009-01-04 Werner LEMBERG <wl@gnu.org>
7 * doc/texinfo.tex: Updated from `texinfo' CVS repository.
8 * doc/txi-en.tex: New file from `texinfo' CVS repository.
10 2009-01-04 Werner LEMBERG <wl@gnu.org>
12 * font/make-Rproto: Moved to...
13 * font/util/make-Rproto: Here.
15 * Makefile.in (NOMAKEDIRS): Add `m4', `font/devps/old', and
18 2009-01-04 Werner LEMBERG <wl@gnu.org>
20 * src/roff/troff/TODO: Mention local variables.
22 2009-01-03 Werner LEMBERG <wl@gnu.org>
24 * contrib/hdtbl/examples/col_rowspan_colors.roff,
25 contrib/hdtbl/examples/color_boxes.roff,
26 contrib/hdtbl/examples/color_nested_tables.roff,
27 contrib/hdtbl/examples/color_table_cells.roff,
28 contrib/hdtbl/examples/color_transitions.roff,
29 contrib/hdtbl/examples/short_reference.roff: Minor improvements.
31 2009-01-03 Werner LEMBERG <wl@gnu.org>
33 * doc/webpage.ms: Updated.
35 2009-01-03 Werner LEMBERG <wl@gnu.org>
37 * NEWS, groff.texinfo, font/devps/*, VERSION, REVISION: Prepare for
40 2009-01-03 Werner LEMBERG <wl@gnu.org>
42 * src/preproc/tbl/table.cpp (table::compute_expand_width,
43 table::compute_separation_factor): In warning messages, don't refer
44 to pages but to input line numbers.
46 2009-01-03 Werner LEMBERG <wl@gnu.org>
48 * tmac/groff_ms.man: Improve formatting of tables.
50 2009-01-03 Werner LEMBERG <wl@gnu.org>
52 * tmac/www.tmac (www->): Handle XHTML.
53 (HTML</p>): Handle non-HTML devices.
54 (www:url_check_tag): Avoid warnings.
56 2009-01-03 Werner LEMBERG <wl@gnu.org>
58 * tmac/an-old.tmac, tmac/doc.tmac: For -Tutf8, map \-, -, ', and `
59 conservatively to ASCII for the sake of easy cut and paste.
61 2009-01-03 Werner LEMBERG <wl@gnu.org>
63 * NEWS: Mention hdtbl.
65 2009-01-02 Werner LEMBERG <wl@gnu.org>
67 * tmac/groff_mdoc.man: Update OS version string listing.
69 2009-01-02 Werner LEMBERG <wl@gnu.org>
71 * config.rpath, m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4,
72 m4/lib-link.m4, m4/lib-prefix.m4, src/include/localcharset.h,
73 src/libs/libgroff/config.charset, src/libs/libgroff/localcharset.c,
74 src/libs/libgroff/ref-add.sin, src/libs/libgroff/ref-del.sin:
75 Updated from `gnulib' git repository.
77 * configure: Regenerated.
79 2009-01-02 Werner LEMBERG <wl@gnu.org>
81 * tmac/ptx.tmac: New file.
83 * NEWS, man/groff_tmac: man: Document it.
85 2008-12-30 Werner LEMBERG <wl@gnu.org>
87 Fix more quoting issues.
89 * tmac/www.tmac (BCL, BGIMG, PIMG, MPIMG, LNS): For the sake of
90 XHTML, quote more arguments.
93 2008-12-30 Werner LEMBERG <wl@gnu.org>
95 Fix quoting issues in www.tmac.
97 * tmac/www.tmac (www:url_breaks_splitted): Renamed to...
98 (www:url_breaks_split): This.
99 (www->): New string to close tag singletons like <img> or <hr>. In
100 XHTML mode (not implemented yet), this has to be changed from `>' to
102 (IMG): Don't use </img>
104 (PIMG, MPIMG): Don't use </img>
106 Fix doublequote issues.
107 (HR): Don't use </hr>.
109 (LNS): Fix doublequote issues.
111 2008-12-24 Michail Vidiassov <master@iaas.msu.ru>
113 * tmac/doc-common: Add entries for Mac OS X and FreeBSD.
115 2008-12-22 Alexey Gladkov <legion@altlinux.ru>
117 * contrib/groffer/perl/roff2.pl: Fix syntax error.
119 2008-12-15 Werner LEMBERG <wl@gnu.org>
121 * NEWS: Mention `preconv'.
123 2008-11-12 Werner LEMBERG <wl@gnu.org>
125 Implement `x' specifier for expanded columns. Contrary to old DWB
126 tbl, more than a single `x' specifier can be used. At the same
127 time, remove most of the code from change 2007-02-09 which collides
128 with the new implementation.
130 * src/preproc/tbl/main.cpp (format): Add `expand' array.
131 (format::format, format::~format): Updated.
132 (input_entry_format): Add `expand' field.
133 (input_entry_format::input_entry_format): Updated.
134 (input_entry_format::debug_print): Handle `expand'.
135 (process_format): Handle `x' specifier.
136 (process_data): Updated.
138 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): Remove.
139 (EXPAND_REG): New macro.
140 (table_entry::divert, block_entry::divert,
141 alphabetic_block_entry::divert): Add parameter to control whether
142 expanded columns shall be handled.
143 (block_entry::do_width): Remove.
144 (block_entry::do_divert): Add parameter to control whether expanded
145 columns shall be handled.
146 Treat expanded columns like columns with a minimum width.
147 Remove `experimental' code.
148 (table::table, table::~table, table::allocate): Updated.
149 (table::set_expand_column): New function.
150 (table::count_block_columns): Replace with...
151 (table::count_expand_columns): This function.
152 (table::divide_span): Handle expanded columns the same as equal
154 (table::sum_columns): Add parameter to control whether expanded
155 columns shall be handled.
156 (table::compute_available_block_width): Replace with...
157 (table::compute_expand_width): This function.
158 (table::compute_total_separation): New function, taking code from
159 `compute_separation_factor'.
160 (table::compute_separation_factor): Simpler code. The check for the
161 `EXPAND' flag has been moved to the caller.
162 (table::compute_widths): Add `top-level' changes to handle expanded
165 * src/preproc/tbl/table.h (table): New field `total_separation'.
166 Remove `blockflag' array.
168 Update member function declarations.
170 * src/preproc/tbl/tbl.man: Document `x' specifier.
171 Expand documentation to cover all aspects of Lesk's tbl reference.
173 * NEWS: Document `x' specifier.
175 2008-11-08 Werner LEMBERG <wl@gnu.org>
177 * src/preproc/tbl/tbl.man: Restructuring.
178 Improve text block documentation.
180 2008-11-07 Werner LEMBERG <wl@gnu.org>
182 * src/preproc/tbl/table.cpp (table::compute_widths): Use default
183 scaling operator for minimum width. Without this fix, `lw3' (or
184 `lw(3)' would be handled as a column with a minimum width of 3u
187 2008-11-05 Werner LEMBERG <wl@gnu.org>
189 * tmac/doc-common (Dt): Start a new page if necessary and set up
192 * tmac/andoc.tmac (reload-doc): Simplify due to change in
197 2008-10-18 Werner LEMBERG <wl@gnu.org>
199 * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' to
200 `m' and `M', respectively.
201 Sort entries in `switch' block.
202 * src/preproc/tbl/tbl.man: Updated.
203 Sort key entries; other minor improvements.
205 2008-10-17 Werner LEMBERG <wl@gnu.org>
207 * src/preproc/tbl/table.cpp (table::compute_available_block_width):
209 (table::compute_widths): Replace some code with new function
210 (shifted to a more appropriate place).
211 * src/preproc/tbl/table.h: Updated.
213 2008-10-16 Werner LEMBERG <wl@gnu.org>
215 * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Add
218 2008-10-13 Werner LEMBERG <wl@gnu.org>
220 * tmac/groff_mdoc.man: Update documentation on BSD-like OS string
223 2008-10-10 Werner LEMBERG <wl@gnu.org>
225 * man/roff.man, doc/groff.texinfo: Improve the history part. This
226 is based on input from Tom Van Vleck <thvv@multicians.org>.
229 * src/preproc/eqn/sqrt.cpp (sqrt_box::compute_metrics): Assure that
230 value of `rst' register is not zero, as can happen for the HTML
231 output device. Otherwise, there are too many loops, and we get a
232 stack overflow because of recursion.
234 2008-10-05 Stephen Gildea <http://www.gildea.com/stephen/>
236 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Do
237 not insert SORT_SEP before the first field, so that sort_key
238 has the same format as before the patch of 2003-08-23.
240 2008-10-04 Werner LEMBERG <wl@gnu.org>
242 * tmac/doc-common (doc-operating-system-*): Update releases.
244 * tmac/an-old.tmac (an-extra1, an-extra2, an-extra3): Initialize.
246 * tmac/andoc.tmac: Rewritten, based on a preliminary version from
247 Tadziu Hoffmann. It can now process multiple man pages with both
248 man and mdoc formats intermixed.
250 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
251 man/groff_tmac.man: Document it.
253 2008-10-04 Werner LEMBERG <wl@gnu.org>
255 * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
256 \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
257 to the other \O variants).
259 * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
260 default macros. This causes endless loops (at least for TE).
262 * doc/groff.texinfo: Improve documentation of `.als'.
264 2008-10-03 Werner LEMBERG <wl@gnu.org>
266 * src/devices/grops/grops.man, src/roff/troff/troff.man,
267 src/preproc/soelim/soelim.man: Correct documentation of -I switch.
268 Reported by Larry Kollar.
269 Other minor formatting issues.
271 2008-10-02 Werner LEMBERG <wl@gnu.org>
273 * tmac/trace.tmac: Much improved.
274 (trace-full): New register to be set on the command line; it
275 controls whether number and string register assignments get traced
277 (!!c): New macro for comments.
278 (rm): New traced macro.
279 (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
280 `!!xxx'; this makes doc.tmac completely traceable.
281 Trace call of .de and friends also.
283 * tmac/groff_tmac.man, NEWS: Update.
285 2008-09-30 Werner LEMBERG <wl@gnu.org>
287 Restore behaviour of \$0 if a macro is called with string syntax
288 (problem caused by change on 2008-09-29).
290 * src/roff/troff/input.cpp (input_iterator, input_stack,
291 macro_iterator): Add `get_macro_name' member function.
292 (interpolate_string): Use it.
294 2008-09-29 Werner LEMBERG <wl@gnu.org>
296 Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
297 expected. Without the patch,
308 prints `2 3' instead of `1 2 3'.
310 * src/roff/troff/input.cpp (input_iterator, input_stack,
311 macro_iterator): Add `get_arg_list' member function.
312 (macro): Add `is_a_string', `is_string', and `clear_string_flag'
314 Update constructors and operators.
315 (arg_list): Add copy constructor.
316 (macro_iterator): Add optional argument to constructor to indicate
317 whether arguments shall be inherited from calling macro.
318 (interpolate_string): If string argument is a macro, push a macro
319 iterator on the stack.
320 (do_define_macro): Call clear_string_flag if macro data contains a
323 * src/roff/troff/request.h: Updated.
325 2008-09-29 Eric S. Raymond <esr@snark.thyrsus.com>
327 * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
328 Improve the documentation of text objects.
330 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com>
332 * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
333 contrib/eqn2graph.man: Tweak scripts to cope with incompatible
334 changes in ImageMagick crop options. Document the bugs.
336 2008-09-28 Werner LEMBERG <wl@gnu.org>
338 If a macro is called as a string, inherit value of \n[.br] from the
339 caller. This is useful for `trace.tmac'.
341 * src/roff/troff/input.cpp (string_iterator): New members
342 `with_break' and `get_break_flag'.
343 (string_iterator::string_iterator): Updated.
345 * doc/groff.texinfo: Improve documentation of \$0 and string syntax
347 Document behaviour of \n[.br] within strings.
349 2008-09-26 Werner LEMBERG <wl@gnu.org>
351 * tmac/trace.tmac: Add copyright message.
352 Use `.de1' where possible to make source code more readable.
353 (so, mso, als, rn): Restore escape character before executing the
355 (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
357 2008-09-24 Werner LEMBERG <wl@gnu.org>
359 Fix incompatibility between `.de1' and `.do'. Without this change,
360 the following snippet
368 prints 1 instead of 0.
370 * src/roff/troff/input.cc (do_request): If a macro gets processed,
372 (interpolate_macro): Add optional argument. Update callers.
373 (request::invoke): Add optional argument.
374 (macro::invoke): Add optional argument to delay call of tok.next().
376 * src/roff/troff/request.h (request_or_macro): Add argument to
377 `invoke' member. Update all derived classes.
379 * doc/groff.texinfo: Improve documentation of .do request.
381 2008-09-09 Werner LEMBERG <wl@gnu.org>
383 * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu
386 2008-09-06 Werner LEMBERG <wl@gnu.org>
388 * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
389 `.Nm' work properly if next manual page is printed.
391 2008-08-20 Werner LEMBERG <wl@gnu.org>
393 * src/preproc/tbl/tbl.man: Document computation of element widths.
395 2008-08-20 Alexey Gladkov <legion@altlinux.ru>
396 Werner LEMBERG <wl@gnu.org>
398 Add default encoding option -D to preconv and groff.
400 * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
403 (main): Handle new option -D.
405 * src/preproc/preconv/preconv.man: Updated.
407 * src/roff/groff/groff.cpp (main): Handle new option -D.
408 (synopsis, help): Updated.
409 * src/roff/groff/groff.man: Updated.
411 2008-07-26 Werner LEMBERG <wl@gnu.org>
413 * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported
416 * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
418 2008-07-24 Denis M. Wilson <dmw@oxytropis.plus.com>
420 New options -f and -k for afmtodit.
422 * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
423 name of the groff font.
424 New option `-k' disables output of kerning data.
425 * src/afmtodit/afmtodit.man, NEWS: Document new options.
427 2008-07-18 Werner LEMBERG <wl@gnu.org>
429 * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
430 warning messages if table gets squeezed.
431 (table::compute_widths): Fix computation of AVAILABLE_REG.
432 Emit warning if table is wider than line length.
434 * src/preproc/tbl/tbl.man: Minor improvements.
436 2008-05-02 Larry Jones <lawrence.jones@siemens.com>
438 * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
439 the `$<' macro is only guaranteed to be defined in inference rules,
440 not in explicit target rules. Since there is only one input file in
441 the places where it is used, the `$?' macro (which is guaranteed to be
442 defined for both kinds of rules) is a suitable replacement.
444 * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
445 versions of ls don't have a `--color' option.
447 2008-04-30 Larry Jones <lawrence.jones@siemens.com>
449 * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
451 2008-04-29 Larry Jones <lawrence.jones@siemens.com>
453 * src/eqn/script.cpp (script_box::output): Portability fix.
455 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com>
457 Add better support for `.TAG #<label>' in non-HTML documents: In
458 case of a forward reference in a call to .URL, write `(see below)'.
459 In case of a backwards reference use the page number instead. The
460 reference gets stored in a string `TAG_<label>' and can be
461 overridden while calling `.TAG' with its new optional argument --
462 this is useful for a second-pass system which resolves forward
465 * tmac/www.tmac (www:url_check_tag): New function.
467 (TAG): Add optional argument to define string `TAG_<label>'.
469 2008-03-24 Werner LEMBERG <wl@gnu.org>
471 * tmac/trace.tmac (so, mso): Added.
473 * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'.
474 If used with -mtrace, and this clause was active, the macro was
477 * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality.
478 This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
480 * man/groff_tmac.man: Document it.
482 2008-02-26 Werner LEMBERG <wl@gnu.org>
484 * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
485 Update all occurrences so that \n[.U] works as advertised. Bug
486 reported by Dorai Sitaram.
488 2008-02-17 Werner LEMBERG <wl@gnu.org>
490 * doc/groff.texinfo: Improve documentation of .cf request.
492 2008-01-19 Werner LEMBERG <wl@gnu.org>
494 * src/preproc/html/pre-html.cpp (usage): Don't describe options but
495 mention that it should never be called stand-alone.
497 * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
498 man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
499 src/roff/groff/groff.man: Mention -Txhtml.
501 * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
503 2008-01-16 Werner LEMBERG <wl@gnu.org>
505 * src/libs/libgroff/font.cpp (font::contains, font::get_code):
506 Handle single-letter names correctly.
508 * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
512 2008-01-15 Werner LEMBERG <wl@gnu.org>
514 * man/groff_font.man: Revised.
516 2008-01-14 Werner LEMBERG <wl@gnu.org>
518 * man/groff.man: Mention glyph and characters.
520 * man/groff_char.man: Minor updates.
521 * man/groff_diff.man: Better clarification between characters and
524 2008-01-12 Werner LEMBERG <wl@gnu.org>
526 * doc/groff.texinfo: Fix top-level structure to make it compilable
527 again with all texinfo modes. Reported by Jörg van den Hoff
528 <j.van_den_hoff@fzd.de>.
530 2008-01-11 Werner LEMBERG <wl@gnu.org>
532 * doc/pic.ms: Mention that compass points of line objects are
535 2008-01-06 Werner LEMBERG <wl@gnu.org>
537 * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
538 Don't remove itself if there is no glyph associated with the node
539 yet. This happens, for example, in this situation:
546 2008-01-05 Werner LEMBERG <wl@gnu.org>
548 * man/groff_char.man, man/groff.man: Revised.
550 * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
552 2008-01-04 Werner LEMBERG <wl@gnu.org>
553 * */*: s/Osanna/Ossanna/.
555 * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
556 Replace .MTO with .MT/.ME (except in groff_www.tmac).
557 Insert `\:' in URLs where appropriate.
558 Don't include www.tmac (except in groff_www.tmac).
560 * man/groff.man (.ESC[]): Fix font of closing bracket.
561 (.ESCq): Fix font of closing quote character.
562 Many other improvements.
564 2007-12-30 Bernhard Fisseni <bfi@ikp.uni-bonn.de>
566 * src/devices/grohtml/post-html.cc
567 (html_printer::writeHeadMetaStyle): Fix CSS output.
569 2007-12-29 Werner LEMBERG <wl@gnu.org>
571 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
572 contain additional glyphs (like some uppercase Greek letters).
574 2007-12-06 Werner LEMBERG <wl@gnu.org>
578 2007-12-06 Colin Watson <cjwatson@debian.org>
580 * src/roff/nroff/nroff.sh: Add options -w and -W.
581 * src/roff/nroff/nroff.man: Document them.
583 2007-12-06 Karl Berry <karl@freefriends.org>
585 * tmac/hyphenex.pl: Update header output.
587 2007-11-29 Werner LEMBERG <wl@gnu.org>
589 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
591 2007-11-20 Werner LEMBERG <wl@gnu.org>
593 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
595 2007-11-17 Werner LEMBERG <wl@gnu.org>
597 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
598 variable. Problem reported by Michael G Schwern
601 * src/roff/nroff/nroff.man: Document it.
604 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
606 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
607 `xslanted' and `yslanted'.
609 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
610 Initialize `xslanted' and `yslanted'.
611 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
612 (closed_object): Ditto.
613 Add members `xslanted' and `yslanted'.
614 (box_object::print): Use them.
615 (object_spec::make_object): Handle slant values.
616 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
618 (object_spec): Add members `xslanted' and `yslanted'.
619 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
623 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
626 2007-11-16 Werner LEMBERG <wl@gnu.org>
628 * tmac/hyphenex.pl: Generate copyright notice (this has been
629 approved by Barbara Beeton).
630 * tmac/hyphenex.us: Updated.
632 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
634 * tmac/doc-syms (doc-str-St--susv3): New string.
635 * tmac/groff_mdoc.man: Document it.
637 2007-11-08 Werner LEMBERG <wl@gnu.org>
639 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be',
640 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
641 (is_comment_line): Handle '\" and '\# also.
643 * src/preproc/preconv/preconv.man: Revise and make complete.
645 2007-10-25 Werner LEMBERG <wl@gnu.org>
647 * tmac/cs.tmac: New file holding Czech strings, contributed by
648 Marcela Maslanova <mmaslano@redhat.com>.
649 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
650 for Czech, taken from CTAN.
652 * tmac/Makefile (NORMALFILES): Add Czech stuff.
653 * doc/groff_tmac.man: Mention cs.tmac.
655 2007-10-21 Werner LEMBERG <wl@gnu.org>
657 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
658 comments correctly. Reported by Frank Jahnke
659 <jahnke@sonatabio.com>.
661 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
663 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
666 * tmac/doc-syms: Give better names for System V releases.
668 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
670 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
671 the production of html files.
673 Remove background colour switch.
674 (.SUFFIXES, clean): Handle *.xhtml files.
676 * src/devices/grohtml/grohtml.man: Document that -V option now
677 generates an HTML-4.01 validator or XHTML validator.
679 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
680 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
681 we are inside a <pre> block.
683 * src/devices/grohtml/post-html.cpp
684 (html_printer::handle_valid_flag): Add a parameter to indicate
685 whether it needs to generate a paragraph block.
686 (html_printer::write_navigation): Updated.
687 (html_printer::do_file_components): Generate an HTML-4.01 blue
688 validator button also.
690 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
692 * man/groff.man: Fix URL of CSTR 54.
694 2007-09-23 Werner LEMBERG <wl@gnu.org>
696 * man/groff_char.man: Normalize character set names as defined
697 by IANA. Based on a patch from Axel Kielhorn.
699 * src/preproc/refer/label.y: Undo change from 2007-09-19.
701 2007-09-19 Werner LEMBERG <wl@gnu.org>
703 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
706 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
707 Remove compiler warning.
709 * src/preproc/refer/label.y: Remove compiler warning.
711 * src/preproc/pic/pic.y: Remove doubled token entries.
713 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
715 * doc/groff.texinfo: Document new .O register and add cross
720 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
722 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
723 (html_table:: emit_colspan, html_table::emit_td): New methods.
724 (html_table::emit_col): Use html_table::emit_td.
725 (html_table::emit_table_header): Use html_table::emit_colspan if
726 dialect xhtml is specified.
727 (html_table::finish_row): Updated.
729 * src/devices/grohtml/html-table.h (html_table): Declare
730 emit_colspan, emit_td.
732 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
733 xhtml if this dialect was requested.
735 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
736 (html_text): Add new variable `dialect'.
738 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
740 (valid_flag, groff_sig, dialect): New global variables.
741 (html_printer::handle_valid_flag, html_printer::do_math,
742 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
743 html_printer::do_math, html_printer::handle_valid_flag): New
745 (html_printer::emit_line, html_printer::emit_raw,
746 html_printer::do_check_center, html_printer::write_title,
747 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
748 html_printer::begin_page): Altered to be XHTML compliant.
749 (html_printer::write_header): Updated.
750 (html_printer::troff_tag): Call do_math.
751 (html_printer::insert_split_file, html_printer::do_file_components,
752 html_printer::write_navigation): Create XHTML file components if
753 necessary and also produces a groff signature if requested.
754 (~html_printer): Call writeHeadMetaStyle at appropriate places
755 depending upon html_dialect.
756 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
757 (main): Added options -x, -V, and -y.
760 * src/preproc/eqn/box.cpp: Create a distinction between
761 the MathML device and the XHTML device.
762 (do_text): Issue a newline at the end of the equation if XHTML was
764 (box::top_level): Prefix the output of an equation by the .MATHML
766 (output_string): Suppress \n if XHTML was specified.
768 * src/preproc/eqn/main.cpp (xhtml): New global flag.
769 (inline_equation): Skip leading spaces after inline equation for
771 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
773 * src/preproc/eqn/eqn.h (xhtml): New external flag.
775 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
777 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
778 (dialect, eqn_flag): New global variables.
779 (html_system): Improve debugging support.
780 (alterDeviceTo): Test for -Txhtml when altering device to the image
781 device and reset to -Txhtml.
782 (addZ): Renamed to...
784 Introducea a general parameter.
785 (print_args): New debugging function.
786 (char_buffer::run_output_filter): Use print_args and addArg rather
788 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
789 line parameter as an argument to the html generation of text when
790 xhtml is needed. Include -e on the command line if mathml is
792 (scanArguments): Allow -e, -V, -y and -x options.
793 -V, -y are handled by the back end. -e sets `eqn_flag'.
794 -x determines HTML dialect.
796 * src/roff/groff/groff.cpp (possible_command): New method
798 (main): Set eflag if -e is present on command line.
799 Set is_xhtml if -Txhtml is present.
800 Pass `-x x' to the HTML pre and post processors.
801 Pass `-e' to the HTML pre processor if required.
802 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
804 * src/roff/troff/input.cpp (init_input_requests): Introduce new
805 number register `\n[.O]'.
807 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
808 (cov*ab-init) reformat.
809 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
810 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
811 <cite></cite> for the html device rather than generate images for
814 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
815 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
816 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
817 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
819 * tmac/www.tmac: (HTML<?p>): New macro.
820 (MATH<?p>): New macro.
821 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
822 (www-emit-ltag): New macro.
823 (www-push-li): Updated.
824 (ULS): Ensure that tags are balanced in order by use of
826 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
828 (OLS, OLE, DLS, DLE): Ditto.
829 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
831 (www-li-ul, www-li-ol, www-li-dl): Updated.
832 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
833 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
836 2007-09-17 Werner LEMBERG <wl@gnu.org>
838 * man/groff_font.man: Document `unicode' keyword.
839 * doc/groff.texinfo (DESC File Format): Synchronize with
842 2007-09-15 Werner LEMBERG <wl@nu.org>
844 * man/groff.man: Document `\_'.
845 * doc/groff.texinfo: Ditto.
846 Remove references to `\@' which isn't a valid escape sequence in
850 * tmac/unicode.tmac: Add ` and '.
851 * tmac/html.tmac: Load unicode.tmac.
853 2007-09-14 Werner LEMBERG <wl@gnu.org>
855 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
858 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
860 2007-09-11 Werner LEMBERG <wl@gnu.org>
862 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
865 * src/preproc/tbl/table.cpp (table::allocate): Initialize
868 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
870 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
871 defective GnuWin32 versions of netpbm/libpng.
873 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
875 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
878 2007-07-11 Werner LEMBERG <wl@gnu.org>
880 * gendef.sh: Add shebang.
882 2007-07-05 Werner LEMBERG <wl@gnu.org>
884 * tmac/papersize.tmac: Fix dimensions of executive paper format.
885 Reported by John Rupley <rupley@u.arizona.edu>.
887 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
889 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
890 top-level environment.
892 2007-06-12 Werner LEMBERG <wl@gnu.org>
894 * src/devices/xditview/TODO, NEWS: Updated.
895 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
896 Handle `GXditview-color'.
897 * src/devices/xditview/gxditview.man: Updated.
899 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
900 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
901 from `gnulib' git repository.
903 * configure.ac: Updated.
904 * configure: Regenerated (using autoconf 2.61).
906 * config.guess, config.sub: Updated from `config' CVS repository.
907 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
910 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
912 * src/devices/xditview/GXditview.ad: Split off color definitions
914 * src/devices/xditview/GXditview-color.ad: This new file.
916 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>
918 * tmac/fr.tmac: Handle chapter system for `me'.
920 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
922 * src/devices/xditview/xditview.c (main): Add support for
925 * src/devices/xditview/GXditview.ad: Updated.
926 Make widget more colourful.
928 2007-05-30 Werner LEMBERG <wl@gnu.org>
930 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
931 Recommend `tbl' instead of `-column' lists for more complicated
934 2007-05-21 Werner LEMBERG <wl@gnu.org>
936 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
939 2007-04-10 Werner LEMBERG <wl@gnu.org>
941 In pic, make rounded boxes work with colors. Reported by Urs Eggli
942 <Urs.Eggli@zuerich.ch>.
944 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
945 (output): Add color parameter to `rounded_box' member function.
947 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
949 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
950 to `out->rounded_box'.
952 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
954 * font/devps/generate/textmap: Add Greek letters and some more.
956 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
957 `Omega', and `mu' to the ones from aglfn.txt.
959 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
961 * tmac/s.tmac (SN): Define unconditionally.
962 (SN-STYLE): New string; define.
964 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
966 2007-03-22 Werner LEMBERG <wl@gnu.org>
968 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
969 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
971 2007-03-20 Werner LEMBERG <wl@gnu.org>
973 * tmac/trace.tmac (rn): Added.
974 (nr, ds, ds1, as, as1, substring): Restore escape character while
976 (nr): Remove dead code.
978 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
979 definitions to make them traceable.
981 2007-03-19 Werner LEMBERG <wl@gnu.org>
983 * src/roff/troff/input.cpp (get_copy): Add third argument to control
984 whether \E shall be expanded.
985 (get_char_for_escape_name): Allow \E.
987 2007-03-15 Werner LEMBERG <wl@gnu.org>
989 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
990 par*define-font-macro, \[hooko]): Use \E to make it traceable.
992 (ref*field): Add argument to control the space between previous and
995 (ref*add-N): Fix handling of opening parenthesis. Problem reported
996 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
998 2007-03-14 Werner LEMBERG <wl@gnu.org>
1000 * tmac/trace.tmac (als): Added.
1001 (de, de1, am, am1): Make traced macros aliased with .als work.
1003 2007-02-25 Werner LEMBERG <wl@gnu.org>
1005 * src/devices/xditview/TODO: Add some more items.
1007 * Makefile.comm (.man.n): Add @APPRESDIR@.
1010 * src/devices/xditview/gxditview.man: Document GXditview resource
1012 Other documentation enhancements based on a patch from Jörg.
1014 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1015 Joerg van den Hoff <j.van_den_hoff@fzd.de>
1017 * src/devices/xditview/GXditview.ad: Make all keys work regardless
1018 of the current mouse position.
1020 2007-02-20 Werner LEMBERG <wl@gnu.org>
1022 * tmac/groff_man.man: Revised to improve visual appearance.
1023 Reduce use of future tense.
1025 * tmac/groff_trace.man: Revosed to improve visual appearance.
1027 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
1029 Make groff.man viewer-portable.
1031 * tmac/groff.man: Eliminate use of .eo/.ec.
1032 (.REQ): Surround args 2 through N with quotes. This will enable us
1033 not to rely on the shift request, which is nonportable.
1034 (ExecFF): Remove. The code is simpler without it.
1036 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
1038 * tmac/groff_www.man: Viewer-portability fixes.
1040 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
1042 * man/groff.man: Remove some unneeded code and a no-longer-used
1043 inclusion of the www macros.
1045 2007-02-12 Werner LEMBERG <wl@gnu.org>
1047 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
1049 (table::compute_widths): Simplify.
1051 2007-02-11 Werner LEMBERG <wl@gnu.org>
1053 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
1054 (table): Replace `bool' type with `char' for orthogonality.
1057 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
1058 AVAILABLE_REG and COLCOUNT_REG.
1059 (table::table): Fix order call of initializers.
1060 (table::~table): Deallocate `blockflag'.
1062 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
1064 A try at the new rule for block column allocation is now enabled by
1065 the new `experimental' global option: The horizontal space up to the
1066 right margin which is not used by columns without text blocks is
1067 evenly distributed to the columns with text blocks.
1069 It doesn't work right as yet; there appears to be some error in the
1070 computation of `3avail', the available line length. The purpose of
1071 this patch is (a) to make experimenting with other formulas easy,
1072 and (b) leave the infrastructure for flag `experimental' in place
1073 for future experiments. Do not document any behavior associated
1076 * src/preproc/tbl/table.h: Include `stdbool.h'.
1077 (table): Make `flags' public.
1078 Add `count_block_columns' function.
1079 Add `blockflag' array.
1080 Add `EXPERIMENTAL' enumeration value.
1082 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
1084 (table_entry): New member `parent' so that class and subclass
1085 members can set a parent field. Update all users.
1086 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
1087 (block_entry::do_width): Set the parent's `blockflag'.
1088 (table::allocate): Handle `blockflag'.
1089 (table::count_block_columns): New function.
1090 (compute_span_width): Adjust AVAILABLE_REG.
1091 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
1093 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
1096 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
1098 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
1101 2007-02-08 Werner LEMBERG <wl@gnu.org>
1103 * man/groff_out.man (offset): Make it work reliably.
1105 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
1107 * man/groff_out.man: Simplify some font changes so \fP is less
1108 likely to do something surprising.
1110 * man/groff_out.man: We can simplify the command macros still
1111 further if we stop trying to hide structural requests inside them.
1112 Also, fix some instances of \} at start of line without a dot, and
1113 make some font changes explicit in strings.
1115 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
1118 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
1119 calls and fix macros to do without them. File should now be
1122 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
1123 micromotions that produce the same visual result and can be lifted
1126 * man/groff_out.man: Third step: Reduce Da-comand, fix a
1127 call-sequence bug in the original.
1129 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
1130 move font-change escapes to portable form.
1132 * man/groff_out.man: First step in macro simplification; eliminate
1133 list1..n, simplify .offset and .index_offset so they no longer
1134 require groff-specific features or eqn (instead, use troff
1135 micromotions for subscripting).
1137 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
1139 * src/preproc/eqn/eqn.man: Minor corrections.
1141 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
1142 longer takes a second argument that is pasted to the end of the
1143 generated text. Instead, the end macro takes an argument that does
1146 * man/ditroff.man, man/groff_diff.man, man/groff.man,
1147 man/groff_out.man, man/groff_tmac.man, man/roff.man,
1148 src/roff/groff/groff.man, src/roff/grog/grog.man,
1149 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
1151 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
1152 so we can use them here.
1154 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1156 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
1157 By popular demand, make ... set three lower dots again
1158 and introduce a new predefined macro 'cdots' to set
1159 three centered dots.
1161 2007-02-05 Werner LEMBERG <wl@gnu.org>
1163 * src/preproc/eqn/eqn.man: Revised.
1165 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
1167 (spacing_type): Fix typo.
1168 (special_to_entity): Use `const'.
1169 Remove unused variable.
1170 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
1172 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1174 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
1175 which is a shame as the effect was cute.
1177 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
1179 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
1180 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
1181 possible, remove preamble declarations and macros that are no
1182 longer needed. Conversion checked using the protocol described in
1185 2007-02-03 Werner LEMBERG <wl@gnu.org>
1187 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
1190 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
1192 * tmac/groff_man.man: Documented the extension macros, and
1193 added portability advice.
1195 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
1198 Add support for MathML output to eqn.
1200 The strategy used is very simple and relies on the fact that the box
1201 models of eqn and Presentation MathML differ in only trivial ways.
1202 It leaves the grammar and existing internal object structures
1203 unchanged. A new global, `output_format', is defined as an
1204 enumerated type with values {troff, mathml}. Most of the functions
1205 and methods that emit actual output acquire a top-level conditional,
1206 dispatching on this global, which has one arm for troff mode and one
1207 for MathML mode. In most cases the MathML arm is drastically
1210 (This strategy could be easily generalized to support other output
1211 formats. TeX is a possibility that leaps to mind.)
1213 The only even moderately tricky changes are in the lexer. Some of
1214 the predefined macros used constructs like `up', `down', `fwd',
1215 `back', and `vcenter' that have no equivalents in MathML. I
1216 attacked this problem in these ways:
1218 1. I eliminated three uses of `back' to compose characters in favor
1219 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
1220 that did not exist when these macros were written. (This will be
1221 a quality improvement for troff users.)
1223 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
1225 3. I then split the table of pre-definitions in three; one large
1226 common table and two small troff-specific and MathML-specific
1227 tables. Use of troff-only operations (up, down, back, fwd,
1228 vcenter) is now confined to the former. The latter now uses
1229 `size big' and drops out the explicit positioning operations,
1230 counting on MathML processors to do them.
1232 POTENTIAL TROUBLE SPOTS:
1234 Here are notes for reviewers on places I'm not 100% sure I've done
1237 * In the process of preparing the troff table, I translated three
1238 definitions (dot_def, dotdot_def, and utilde def) that previously
1239 used explicit \v escapes to use `up' and `down' instead. I
1240 modeled the new definitions on the way `vec' and `dyad' work, but
1241 it's possible I got something subtle wrong.
1243 * I'm not certain the MathML implementation of font_box::output() is
1244 right, because I don't quite get what the switcheroo between
1245 `current_roman_font' and `old_roman_font' is supposed to
1246 accomplish. It does seem to generare good MathML, though.
1248 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
1249 with an enum some magic numbers for spacing types that I thought
1250 were too ugly to live.
1254 The entirety of eqn is translated when `-TMathML' is specified,
1255 with the following exceptions...
1257 Limitations that cannot be fixed include non-support for special,
1258 up/down/fwd/back, and vcenter.
1260 Limitations that might be fixable include non-support for mark and
1261 lineup. I will investigate further, but if these can be implemented
1262 at all it's going to be in a very complicated and nasty way.
1264 The way character boxes are output means that each digit of a
1265 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
1266 While this is not technically wrong for Presentation MathML, it is
1267 ugly and inefficient. Fixing this will require implementing a
1268 little state machine in the `text.cpp' output method.
1270 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
1271 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
1272 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1273 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
1274 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
1275 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1276 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1277 src/preproc/eqn/eqn.man: MathML output mode.
1279 * NEWS: Document it.
1281 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1283 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1284 and for cross-viewer portability. Conversion checked
1285 using the protocol described in tmac/TESTING-HINTS.
1287 2007-02-02 Werner LEMBERG <wl@gnu.org>
1289 * tmac/an-ext.tmac (ME): Don't use `\:'.
1291 * src/roff/grog/grog.man: Further refinements and normalizations.
1293 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1295 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1296 cross-viewer portability. Conversion checked using the protocol
1297 described in tmac/TESTING-HINTS.
1299 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1301 * tmac/TESTING-HINTS: Added.
1303 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1305 Enable the support for Bell archaisms on .SC, so the `-r bell'
1306 switch is no longer needed to format old AT&T papers like
1309 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1311 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1313 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1315 Add some Bell labs extensions to the -ms macros.
1317 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1319 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1321 2007-01-30 Werner LEMBERG <wl@gnu.org>
1323 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1324 (\n[mH]): New register (set if grohtml is used).
1325 (\n[SY]): Rename to \n[mS].
1326 (\n[a]): Rename to \n[mA].
1327 (\n[i]): Rename to \n[mI].
1328 (mU): New auxiliary input trap macro.
1329 (UR, UE): Replace stub with real definition.
1331 (MT, ME): New macros.
1333 (EX, EE): Don't insert vertical space.
1334 Use a register to store (and restore) the current font.
1336 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1337 on patches from Eric Raymond.
1340 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
1342 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1344 2007-01-22 Werner LEMBERG <wl@gnu.org>
1346 * tmac/an-ext.tmac: Protect against being sourced twice.
1347 (URL, EE): Use always two backslashes.
1350 2007-01-16 Werner LEMBERG <wl@gnu.org>
1352 * tmac/an-ext.tmac: Remove code for grodvi.
1354 Don't insert empty line.
1355 (URL, TQ): Fix typos.
1357 2007-01-14 Werner LEMBERG <wl@gnu.org>
1359 * tmac/an-ext.tmac: New file, containing extension macros
1360 for -man. See discussion on the groff mailing list for
1361 background information.
1362 * tmac/an-old.tmac: Load an-ext.tmac.
1363 Decorate .ds and as with comment escapes where appropriate.
1364 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1366 2007-01-05 Werner LEMBERG <wl@gnu.org>
1368 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1370 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
1372 Make -me macros ready for grohtml.
1374 * tmac/e.tmac: Load devtag.tmac.
1375 (need_eo_h, need_eo_tl, need_tl): New registers.
1376 (check_need_title, (x-html, )x-html, xp-html): New macros.
1377 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1378 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1379 (bp): Rename to @b only if output device is not html.
1381 2007-01-01 Werner LEMBERG <wl@gnu.org>
1383 * man/groff_font.man: Document empty lines.
1385 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1386 the very beginning of the output.
1387 [!$opt_x]: Fix typo.
1389 * font/devps/*: Regenerate font definition files.
1391 2007-01-01 Werner LEMBERG <wl@gnu.org>
1393 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1395 * font/devps/*: Regenerate font definition files.
1397 2006-12-31 Werner LEMBERG <wl@gnu.org>
1399 * Makefile.in (oldfontdir): New variable.
1400 (MDEFINES): Add $(oldfontdir).
1401 (uninstall_dirs): Remove `current' link.
1402 Remove $(oldfontdir).
1404 * Makefile.comm (oldfontsubdir): New variable.
1405 (install_dev): Install files collected in $(OLDDEVFILES) into
1407 (uninstall_dev): Remove data in $(oldfontsubdir).
1408 (.man.n): Handle @OLDFONTDIR@.
1410 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1411 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1412 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1413 Document GROFF_FONT_PATH.
1415 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1416 old font description files.
1418 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1421 * font/devps/old/*: New directory, holding the previous version
1422 of the 35 Adobe core font description files.
1424 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1425 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1427 * NEWS: Document font update.
1429 2006-12-31 Werner LEMBERG <wl@gnu.org>
1431 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1433 * Makefile.comm (fonts): New (empty) target.
1434 * Makefile.in (TARGETS): Add `fonts'.
1436 * MANIFEST: Add `chem'.
1438 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1441 2006-12-26 Werner LEMBERG <wl@gnu.org>
1443 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
1445 2006-12-19 Werner LEMBERG <wl@gnu.org>
1447 Add support for German. For activation, simply use -mde or -mden
1448 (for traditional and new orthgraphy, respectively) as the last
1451 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1452 tmac/hyphenex.det: New files, partly taken from CTAN.
1453 * LICENSES: Updated list of hyphenation patterns.
1454 * man/groff_tmac.man: Mention de.tmac and den.tmac.
1457 2006-12-11 Werner LEMBERG <wl@gnu.org>
1459 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1462 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
1463 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
1464 limit of 9 arguments.
1465 (process_body): Handle argument numbers with more than a single
1467 (interpolate_macro_with_args): Protect against exceeding number of
1470 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1472 2006-12-10 Werner LEMBERG <wl@gnu.org>
1474 * Makefile.in (site.exp, docheck): Commented out. Not working
1476 (check): Just emit dummy message.
1478 2006-12-08 Werner LEMBERG <wl@gnu.org>
1480 During installation, create soft link from <version> to `current' in
1483 * Makefile.comm (install): Renamed to...
1485 (prefix_must_exist): Removed. Code moved to Makefile.in.
1487 * Makefile.in (TARGETS): Remove `install'.
1489 (install): New target which first creates the directory given by
1490 --prefix, then calling `make' to do the installation, and finishing
1491 with the creation of the soft link.
1493 2006-11-21 Werner LEMBERG <wl@gnu.org>
1495 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1497 2006-11-18 Werner LEMBERG <wl@gnu.org>
1499 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1500 information from Tom Van Vleck <thvv@multicians.org>.
1502 2006-11-16 Werner LEMBERG <wl@gnu.org>
1504 * tmac/62bit.tmac: New macro package.
1505 * tmac/Makefile.sub (NORMALFILES): Add it.
1506 * NEWS: Document it.
1508 * tmac/trace.tmac: Protect against being loaded again.
1509 (nr): Always show result.
1511 * doc/groff.texinfo (Input Encodings): Document latin-5.
1513 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1515 2006-11-13 Werner LEMBERG <wl@gnu.org>
1517 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1518 on negative trap positions.
1520 2006-11-10 Werner LEMBERG <wl@gnu.org>
1522 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1524 2006-11-09 Werner LEMBERG <wl@gnu.org>
1526 * INSTALL: Move information about external installation from
1527 INSTALL.gen into this file.
1530 * INSTALL.gen: Update to new version (from texinfo CVS).
1532 2006-11-09 Bernd Warken
1534 * INSTALL.gen: Extend the file by information on `external
1535 installation'. Reorder the installation instruction as `normal
1538 2006-11-08 Werner LEMBERG <wl@gnu.org>
1540 * doc/Makefile.sub (install_data): Take care of proper paths while
1541 installing info files. Bug reported by Bernd Warken.
1543 2006-11-06 Bernd Warken
1545 * src/roff/grog/grog.pl: Rewrite.
1546 - Call by `#! /usr/bin/env perl'. That isn't replaced.
1547 - Rename usage() to version().
1549 - For `use strict', start all global variables with an upper case
1550 character. Use `my' for all variables. Use several new variables.
1552 - Add copyright to GPL and Emacs comment.
1553 - Handle several `-m*' options.
1554 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1555 - Allow options after file names.
1556 - Allow only one `-' parameter (standard input).
1557 - Add option abbreviations.
1558 - Expand the usage information.
1560 - Add single quote "'" as additional first character and allow
1561 arbitrary space after the first character.
1563 * src/roff/grog/grog.sh: Rewrite.
1564 - Remove option `-e' of `sed'.
1565 - Allow file names with space characters.
1567 - Add copyright to GPL.
1568 - Handle several `-m*' options.
1569 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1570 - Allow options after file names.
1571 - Allow only one `-' parameter (standard input).
1572 - Add option abbreviations.
1573 - Expand the usage information.
1575 - Add single quote "'" as additional first character and allow
1576 arbitrary space after the first character.
1578 * src/roff/grog/Makefile.sub:
1579 - Add copyright to GPL.
1580 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1581 fair chance to choose between the shell version and the Perl
1582 version of `grog'. This is now again comparable to grog in groff
1585 * src/roff/grog/grog.man: Rewrite.
1586 - Move the license to GPL.
1587 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1588 - Take over some setup and macros from `groffer'.
1589 - Add information on options.
1591 2006-10-28 Werner LEMBERG <wl@gnu.org>
1593 * tmac/trace.tmac: Improve tracing of `.nr'.
1594 Trace `.substring' also.
1598 2006-10-28 Bernd Warken
1600 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1601 of groff development site, fix fonts.
1603 * News: Add information on `chem' and `groffer'.
1605 2006-10-26 Bernd Warken
1607 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1609 2006-10-26 Werner LEMBERG <wl@gnu.org>
1611 Add `\$^' escape to handle the parameters to a macro as a string
1614 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1616 * src/roff/troff/input.cpp (input_iterator, input_stack,
1617 macro_iterator): Add `space_follows_arg' member function.
1618 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1620 (arg_list): Add member `space_follows'.
1621 Update constructor and all callers.
1622 (decode_args): Store discarded double quotes.
1623 (interpolate_args): Handle DOUBLE_QUOTE.
1625 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1627 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1629 * docs/groff.texinfo (Parameters), man/groff.man,
1630 man/groff_diff.man, NEWS: Document it.
1632 2006-10-24 Bernd Warken
1634 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1636 2006-10-24 Werner LEMBERG <wl@gnu.org>
1638 * tmac/groff_trace.man: Mention problem with `\\\\'.
1640 2006-10-23 Werner LEMBERG <wl@gnu.org>
1642 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1644 * tmac/trace.tmac (return): Don't call `substring'.
1646 2006-09-10 Werner LEMBERG <wl@gnu.org>
1648 * src/roff/troff/input.cpp (read_size): Revert previous change
1651 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1653 2006-09-09 Werner LEMBERG <wl@gnu.org>
1655 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1656 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1657 point size to 1). Reported by Gunnar Ritter.
1658 Also catch `\s-[-...]' and friends (causing an error).
1660 2006-09-06 Werner LEMBERG <wl@gnu.org>
1662 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1663 space only if there is no previous space. This fixes a bug which
1664 caused unwanted filling of the last line in a paragraph. Thanks to
1665 Gunnar Ritter for an analysis.
1667 2006-09-03 Werner LEMBERG <wl@gnu.org>
1669 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1670 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1672 2006-09-01 Nick Stoughton <nick@msbit.com>
1673 Werner LEMBERG <wl@gnu.org>
1675 Add a request `pev' to print environment information (similar to
1676 `pnr' and `ptr' to print number registers and traps).
1678 * src/roff/troff/env.h (environment): Add member function print_env.
1680 * src/roff/troff/env.cpp: (environment::print_env): New function to
1681 print a given environment state.
1682 (print_env): New global function to iterate through the
1683 environments, printing each one.
1684 (init_env_requests): Register `pev'.
1686 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1687 NEWS: Document `pev' request.
1689 2006-09-01 Bernd Warken
1691 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1694 2006-09-01 Werner LEMBERG <wl@gnu.org>
1696 * src/preproc/pic/main.cpp (usage): Add missing options.
1698 2006-08-25 Werner LEMBERG <wl@gnu.org>
1700 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1703 2006-08-19 Werner LEMBERG <wl@gnu.org>
1705 * configure: Regenerated.
1707 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1709 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1710 logic; it previously caused an `expr' syntax error, if no version of
1711 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1712 builds, if an up to date `groff.info' is present in either `builddir'
1715 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1717 * font/devps/prologue.ps: Add BPhook.
1719 * src/devices/grops/grops.man: Document BPHook.
1720 Reorder some sections for better readability.
1722 2006-08-12 Werner LEMBERG <wl@gnu.org>
1724 * src/include/lib.h (getlocale): New macro.
1725 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1728 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1730 2006-08-11 Werner LEMBERG <wl@gnu.org>
1732 Add new flag to .cflags to enable hyphenation without looking at
1735 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1737 New member function `ignore_hcodes'.
1739 * src/roff/troff/node.cpp (break_char_node::add_self,
1740 node::add_char): Updated.
1742 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1744 2006-08-09 Werner LEMBERG <wl@gnu.org>
1746 Support composite Unicode characters again. Reported by Colin.
1748 * font/devhtml/R.proto: Renamed to...
1749 * font/devhtml/R.in: This.
1751 * font/devutf8/R.proto: Renamed to...
1752 * font/devutf8/R.in: This.
1755 * font/make-Rproto: New script.
1756 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1758 2006-07-26 Werner LEMBERG <wl@gnu.org>
1760 * README: Fix description of CVS access. Reported by Joachim.
1762 2006-07-11 Werner LEMBERG <wl@gnu.org>
1764 Add a request `.fzoom' and a number register `.zoom' to magnify
1767 * src/include/font.h (font): Add member variable `zoom'.
1768 Add member functions `set_zoom' and `get_zoom'.
1769 Remove `static' attribute from `scale' member function.
1771 * src/libs/libgroff/font.cpp (font::font): Updated.
1772 (scale_round): New version with three parameters to handle zoom
1774 (font::scale, font::get_width): Handle zoom factor.
1775 (font::set_zoom, font::get_zoom): New functions.
1776 (font::load): Handle `zoom' while computing `space_width'.
1778 * src/roff/troff/env.h: Declare `env_get_zoom'.
1779 (environment): Add member function `get_zoom'.
1781 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1782 (init_env_requests): Initialize `.zoom' register.
1784 * src/roff/troff/node.cpp (font_info): New member functions
1785 `set_zoom' and `get_zoom'.
1786 (tfont): New member function `get_zoom'.
1787 (env_get_zoom): New function.
1788 (troff_output_file::set_font): Handle zoom factor.
1789 (font_zoom_request): New function.
1790 (init_node_requests): Initialize `fzoom' request.
1792 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1793 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1796 * src/roff/troff/TODO: Updated.
1798 2006-07-10 Werner LEMBERG <wl@gnu.org>
1800 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1803 2006-07-02 Werner LEMBERG <wl@gnu.org>
1805 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1807 2006-07-01 Werner LEMBERG <wl@gnu.org>
1809 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1810 Print image file name for devices which don't support PS image
1812 Handle multiple inclusions.
1813 Add lots of comments.
1815 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1818 * tmac/troffrc: Load pspic.tmac.
1820 * man/groff_tmac.man: Update .PSPIC documentation.
1824 2006-06-29 Werner LEMBERG <wl@gnu.org>
1826 * src/roff/troff/input.cpp (interpolate_macro):
1827 s/probably/possibly/, as suggested by Keith.
1829 2006-06-28 Werner LEMBERG <wl@gnu.org>
1831 Add support for \D'p...' to grotty.
1833 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1835 (tty_printer::line): This function.
1836 (tty_printer::draw): Rewritten; just call either draw_line or
1838 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1840 * src/devices/grotty/grotty.man, NEWS: Document it.
1842 2006-06-27 Werner LEMBERG <wl@gnu.org>
1844 * src/preproc/refer/command.h (have_bibliography): New variable
1847 * src/preproc/refer/command.cpp (bibliography_command): Set
1848 `have_bibliography'.
1850 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1851 (output_references): Emit warning only if `have_bibliography' is
1854 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1856 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1857 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1860 2006-06-15 Werner LEMBERG <wl@gnu.org>
1862 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1863 macro (as suggested by Tadziu Hoffmann).
1865 2006-06-12 Werner LEMBERG <wl@gnu.org>
1867 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1868 macro (as suggested by Tadziu Hoffmann).
1870 2006-06-05 Werner LEMBERG <wl@gnu.org>
1872 * tmac/strip.sed: Strip `\#' also.
1874 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1875 \? for string comparison.
1877 2006-06-04 Werner LEMBERG <wl@gnu.org>
1879 * doc/groff.texinfo: Add more index entries for copy-in mode.
1880 (Changing Fonts) <.ft>: Document that a font definition file must
1881 not be called `DESC'.
1883 2006-05-31 Werner LEMBERG <wl@gnu.org>
1885 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1888 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1889 (PROCESSEDEXAMPLEFILES): Here.
1891 2006-05-30 Werner LEMBERG <wl@gnu.org>
1893 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1895 Reduce number of false positives for `.if F ...' conditionals.
1896 Improve warning messages.
1898 2006-05-29 Werner LEMBERG <wl@gnu.org>
1900 * tmac/Makefile.sub: Add copyright notice.
1901 (NORMALFILES): Add man.tmac and ms.tmac.
1902 (SPECIALFILES): Remove man.tmac and ms.tmac.
1903 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1904 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1906 (stamp-sed): Don't handle man.tmac and ms.tmac.
1907 Remove obsolete components in sed's regexp.
1909 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1911 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1913 2006-05-28 Werner LEMBERG <wl@gnu.org>
1915 * doc/groff.texinfo (History): Correct death circumstances of Joe
1918 2006-05-27 Werner LEMBERG <wl@gnu.org>
1920 * tmac/an-old.tmac (an-do-tag): Simplify.
1922 2006-05-26 Werner LEMBERG <wl@gnu.org>
1924 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1925 (an-header, an-p-footer): Use named environment.
1927 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1930 2006-05-21 Werner LEMBERG <wl@gnu.org>
1932 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1935 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1937 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1939 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1941 * src/roff/groff/groff.man: Update copyright notice.
1942 Improved wording to describe effect of `-Z' option.
1944 2006-05-06 Werner LEMBERG <wl@gnu.org>
1946 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1947 Normalize handling of `"' in arguments.
1948 (PIMG): Remove debug message.
1951 2006-05-05 Werner LEMBERG <wl@gnu.org>
1953 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1954 swallow character immediately after `\[...]'.
1957 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1959 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1961 2006-05-02 Larry Kollar <kollar@alltel.net>
1963 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1966 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1968 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1969 information as a comment in output.
1970 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1972 2006-04-26 Werner LEMBERG <wl@gnu.org>
1974 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1975 Handle current_paragraph only if it is non-NULL.
1977 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1978 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1979 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1982 Surround the (pseudo) file name for the .pso request with `<' and
1985 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1986 second parameter to `really_put_filename' and `put_filename'.
1987 (troff_output_file::really_put_filename): Emit `<' and `>' around
1988 filename if second argument is set.
1989 * src/roff/troff/node.h: Updated.
1991 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1992 file_iterator::set_location): Update to changes in node.cpp.
1994 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
1996 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1997 preprocessor expression (I18N -> HAVE_ICONV).
1998 (main): Fix handling of option `-h'.
1999 Fix conditional preprocessor expression.
2001 2006-04-04 Werner LEMBERG <wl@gnu.org>
2003 Implement new number register `.br' which is set to 1 if a macro has
2004 been called as .foo and to 0 if called as 'bar. This is useful for
2005 -mtrace so that requests can be reliably traced too.
2007 * src/roff/troff/input.cpp (input_iterator): Add virtual function
2009 (macro_iterator): Add `with_break' member and `get_break_flag'
2011 Update constructors.
2012 (input_stack): Add function `get_break_flag'.
2013 (break_flag_reg): New number register class.
2014 (input_init_requests): Register `.br'.
2016 * src/roff/troff/TODO: Updated.
2018 * tmac/trace.tmac: s/!!sp/!!!sp/.
2019 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
2021 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
2024 2006-03-29 Werner LEMBERG <wl@gnu.org>
2026 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
2027 messages where appropriate.
2029 2006-03-28 Werner LEMBERG <wl@gnu.org>
2031 * configure.ac: Call AC_PROG_EGREP.
2032 * configure: Regenerated.
2034 * Makefile.in (EGREP): New variable.
2035 (MDEFINES): Add $(EGREP).
2037 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
2038 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
2041 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
2043 2006-03-27 Werner LEMBERG <wl@gnu.org>
2045 Add two requests `.device' and `.devicem' which are equivalent to
2046 `\X' and `\Y', respectively.
2048 * src/roff/troff/input.cpp (device_request, device_macro_request):
2050 (init_input_requests): Register them.
2052 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
2053 man/groff.man, NEWS: Document them.
2055 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
2057 * src/roff/troff/input.cpp (encode_char): Emit special characters
2058 for -Thtml as `\[...]'.
2059 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
2061 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
2063 2006-03-27 Werner LEMBERG <wl@gnu.org>
2065 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
2068 2006-03-26 Werner LEMBERG <wl@gnu.org>
2070 * doc/groff.texinfo (Writing Macros): More documentation on
2071 end-of-macro symbol of `.de'.
2072 (Diversions): Minor addition to `.di' description.
2074 * src/devices/grops/grops.man: Some clarifications regarding
2075 insertion of PostScript snippets.
2077 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
2079 Add rules to generate `symbolsl.afm'.
2081 * font/devps/generate/zapfdr.sed,
2082 font/devps/generate/symbolsl.awk: New files.
2084 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
2086 (SS, clean): Updated.
2087 (freeeuro.afm): Use $(srcdir).
2088 (symbolsl.afm): New rule.
2089 (zapfdr.afm): Use zapfdr.sed.
2091 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
2093 * src/preproc/pic/pic.y (expr <INT>): Fix code.
2095 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
2097 * tmac/sv.tmac: Add missing translations and activate support for
2098 other macro packages.
2100 2006-03-21 Francis GUDIN <fgudin@nerim.net>
2102 * tmac/doc-syms (Dx): New macro to identify DragonFly.
2103 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
2104 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
2106 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
2107 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
2108 doc-operating-system-DragonFly-*): New operating system strings.
2110 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
2112 2006-03-21 Werner LEMBERG <wl@gnu.org>
2114 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
2115 both DWB pic and dpic, make
2123 line right then down;
2130 * doc/pic.ms: Document this.
2132 2006-03-20 Werner LEMBERG <wl@gnu.org>
2134 * doc/pic.ms: With permission of Eric Raymond, put it under the
2139 2006-03-19 Werner LEMBERG <wl@gnu.org>
2141 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
2143 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
2144 attribute in combination with `with'. Bug reported by Jennifer
2145 Sayers <jenjen@mail.usyd.edu.au>.
2147 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
2149 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
2152 2006-03-18 Werner LEMBERG <wl@gnu.org>
2154 * LICENSE: Renamed to...
2155 * LICENSES: This. Collect all licensing information in this file.
2156 * tmac/README, src/libs/snprintf/README: Removed.
2158 * src/devices/grops/grops.man: Add section how to install fonts.
2160 * src/utils/xtotroff/xtotroff.c: Add GPL.
2162 2006-03-17 Werner LEMBERG <wl@gnu.org>
2164 * Makefile.comm (.y.cpp): Fix #line arguments in output.
2166 2006-03-13 Werner LEMBERG <wl@gnu.org>
2168 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
2170 * tmac/doc-common (Os): Add more Darwin versions.
2171 * tmac/groff_mdoc.man: Document them.
2173 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
2174 works with \N'...' also.
2175 * man/groff_diff.man: Ditto. Remove use of future tense where
2178 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
2180 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
2181 font/devps/zapfdr.ps: Add `%%EndComments' line.
2183 2006-03-10 Larry Kollar <kollar@alltel.net>
2185 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
2187 2006-03-10 Werner LEMBERG <wl@gnu.org>
2189 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
2190 ps_printer::do_mdef): Overlong lines now cause a warning message,
2193 2006-03-09 Werner LEMBERG <wl@gnu.org>
2195 * font/devps/generate/make-zapfdr: New script for generating
2198 2006-03-08 Werner LEMBERG <wl@gnu.org>
2200 * doc/groff.css (pre): Fix `background-color' value.
2202 2006-03-04 Larry Kollar <kollar@alltel.net>
2204 * tmac/groff_ms.man: Document PT, HD, and BT.
2206 2006-03-04 Werner LEMBERG <wl@gnu.org>
2208 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
2209 for single-letter glyph names.
2211 2006-03-02 Werner LEMBERG <wl@gnu.org>
2213 * tmac/sv.tmac: New file; currently holding only the Swedish strings
2215 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
2217 * tmac/README: Updated.
2219 2006-02-27 Werner LEMBERG <wl@gnu.org>
2221 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
2222 * tmac/fr.tmac: Add French translations.
2224 * tmac/composite.tmac: Add entry for `:'.
2226 2006-02-26 Werner LEMBERG <wl@gnu.org>
2228 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
2230 (install_html, uninstall_sub): Updated.
2232 2006-02-26 Bruno Haible <bruno@clisp.org>
2234 Introduce Unicode fonts.
2236 * font/devhtml/DESC.proto: Mark as unicode.
2237 * font/devhtml/R.proto: Remove all charset entries that are already
2239 * font/devutf8/DESC.proto: Mark as unicode.
2240 * font/devutf8/R.proto: Remove all charset entries.
2241 * src/include/font.h (font): New static field `is_unicode'.
2242 Change order of fields.
2243 * src/libs/libgroff/font.cpp: Include unicode.h.
2244 (font::font): Update for changed order of fields.
2245 (font::contains, font::get_width, font::get_height, font::get_depth,
2246 font::get_italic_correction, font::get_left_italic_correction,
2247 font::get_subscript_correction, font::get_character_type,
2248 font::get_code, font::get_special_device_encoding): Handle both the
2249 explicitly enumerated glyphs and use general code for Unicode fonts.
2250 (font::load): Make the charset section optional when the font is
2252 (font::load_desc): Recognize the `unicode' attribute.
2253 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
2255 2006-02-26 Claudio Fontana <claudio@gnu.org>
2257 * Makefile.in: Add comment about DESTDIR.
2259 * Makefile.sub: Add DESTDIR to install and uninstall targets
2260 to support staged installations.
2261 * Makefile.comm: Likewise.
2262 * doc/Makefile.sub: Likewise.
2263 * contrib/eqn2graph/Makefile.sub: Likewise.
2264 * contrib/grap2graph/Makefile.sub: Likewise.
2265 * contrib/pic2graph/Makefile.sub: Likewise.
2266 * src/devices/xditview/Makefile.sub: Likewise.
2267 * src/preproc/eqn/Makefile.sub: Likewise.
2268 * src/roff/grog/Makefile.sub: Likewise.
2269 * src/roff/nroff/Makefile.sub: Likewise.
2270 * src/utils/afmtodit/Makefile.sub: Likewise.
2271 * src/utils/indxbib/Makefile.sub: Likewise.
2272 * tmac/Makefile.sub: Likewise.
2274 2006-02-24 Werner LEMBERG <wl@gnu.org>
2276 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2278 Remove commented out entries for \' and \` (there are no such glyph
2281 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2282 commented out entries for \' and \`.
2285 * */*: s/legal/valid/ where appropriate.
2287 2006-06-23 Werner LEMBERG <wl@gnu.org>
2289 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2292 2006-02-22 Werner LEMBERG <wl@gnu.org>
2294 Remove all remaining traces from the `shc' glyph.
2296 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2297 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2300 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2301 entry with unnamed glyph.
2303 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2305 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2308 2006-02-22 Bruno Haible <bruno@clisp.org>
2310 Concretize the `glyph' datatype.
2312 * src/include/font.h (glyph): Remove class.
2313 (glyph): Renamed from struct `glyphinfo'.
2314 (glyph_to_index): New inline function.
2315 (glyph_to_name): Make extern, not inline.
2316 (glyph_to_number): Update.
2317 (font): Use `glyph *' instead of `glyph'.
2319 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2320 `glyph'. Make `name' field public.
2321 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2323 (glyph_to_name): Renamed from `glyph::glyph_name'.
2325 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2326 Use `glyph *' instead of `glyph'.
2328 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2329 `glyph *' instead of `glyph'.
2330 (glyph_to_name): Renamed from `glyph::glyph_name'.
2332 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2333 and `glyph_to_index' instead of `glyph::glyph_index'.
2335 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2336 * src/libs/libdriver/printer.cpp: Likewise.
2337 * src/devices/grodvi/dvi.cpp: Likewise.
2338 * src/devices/grohtml/post-html.cpp: Likewise.
2339 * src/devices/grolbp/lbp.cpp: Likewise.
2340 * src/devices/grolj4/lj4.cpp: Likewise.
2341 * src/devices/grops/ps.cpp: Likewise.
2342 * src/devices/grotty/tty.cpp: Likewise.
2344 2006-02-22 Werner LEMBERG <wl@gnu.org>
2346 * font/devdvi/generate/tc.map: Add `sr' glyph.
2347 * font/devdvi/*TC: Regenerated.
2349 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2352 2006-02-21 Werner LEMBERG <wl@gnu.org>
2354 * man/groff_char.man: Explain `***' marker.
2356 2006-02-17 Bruno Haible <bruno@clisp.org>
2358 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2359 methods and fields from *_index to *_glyph.
2360 (character_indexer::named_char_glyph): Test for `charNNN' name
2362 (name_to_glyph): ... not here.
2364 2006-02-17 Bruno Haible <bruno@clisp.org>
2366 * src/include/font.h (name_to_glyph): Renamed from
2367 font::name_to_index.
2368 (number_to_glyph): Renamed from font::number_to_index.
2369 (glyph_to_name): Renamed from font::index_to_name.
2370 (glyph_to_number): Renamed from font::index_to_number.
2371 * src/libs/libgroff/nametoindex.cpp: Likewise.
2372 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2373 charinfo::get_index.
2375 * src/roff/troff/input.cpp: All callers changed.
2376 * src/roff/troff/node.cpp: Likewise.
2377 * src/libs/libgroff/font.cpp: Likewise.
2378 * src/devices/grops/ps.cpp: Likewise.
2379 * src/devices/grohtml/post-html.cpp: Likewise.
2380 * src/libs/libdriver/printer.cpp: Likewise.
2382 2006-02-17 Werner LEMBERG <wl@gnu.org>
2384 * src/include/ptable.h, src/include/itable.h
2385 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2386 of external symbol `next_ptable_size' (used by both header files).
2388 2006-02-15 Bruno Haible <bruno@clisp.org>
2390 * src/include/font.h (glyphinfo): New class.
2391 (glyph): Change internal representation.
2392 Change constructor signature.
2393 New method glyph::glyph_number().
2394 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2395 glyph::operator==, glyph::operator!=): Update.
2396 (font::index_to_name, font::index_to_number): New functions.
2398 * src/include/itable.h: New file, based on src/include/ptable.h.
2400 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2401 (class charinfo): New class.
2402 (class character_indexer): Change table result type from `int' to
2404 Add table with integer key.
2405 (character_indexer::character_indexer): Update.
2406 (character_indexer::ascii_char_index): Update.
2407 (character_indexer::numbered_char_index): Use NULL as name, not a
2408 string starting with a space.
2409 (character_indexer::named_char_index): Update.
2410 (font::number_to_index, font::name_to_index): Remove no-op cast.
2411 (glyph::glyph_name): New method.
2412 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2414 (NUMBERED): Remove flag bit.
2415 (charinfo::numbered, charinfo::get_index): Update.
2417 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2418 (charinfo::set_number, charinfo::get_number): Update.
2419 (glyph::glyph_name): New method.
2421 2006-02-15 Werner LEMBERG <wl@gnu.org>
2423 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2424 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
2426 2006-02-13 Werner LEMBERG <wl@gnu.org>
2428 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2431 2006-02-11 Werner LEMBERG <wl@gnu.org>
2433 * src/include/font.h: s/glyph_t/glyph/.
2436 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2437 s/output_character_t/output_character/.
2439 2006-02-11 Bruno Haible <bruno@clisp.org>
2441 New accessor method glyph_t::glyph_name().
2443 * src/include/ptable.h (declare_ptable): Add a return value to the
2444 `define' method, and declare a `lookupassoc' method.
2445 (implement_ptable): Return the stored key in `define'. Implement
2447 * src/include/font.h (glyph_t): Add `name' field. Add an argument
2449 (glyph_t::glyph_name): New method.
2451 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2452 return type of methods and field member type to glyph_t.
2453 (character_indexer::character_indexer): Update.
2454 (character_indexer::ascii_char_index): Allocate a name for the
2456 Return a glyph_t with name.
2457 (character_indexer::numbered_char_index): Return a glyph_t without a
2459 (character_indexer::named_char_index): Return a glyph_t with a name.
2460 (font::number_to_index, font::name_to_index): Update.
2462 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2465 2006-02-11 Bruno Haible <bruno@clisp.org>
2467 * src/devices/grotty/tty.cpp (output_character_t): New type.
2468 (tty_printer::make_bold, tty_printer::add_char,
2469 tty_printer::put_char): Change argument type to output_character_t.
2470 (crossings): Change element type to output_character_t.
2472 2006-02-11 Bruno Haible <bruno@clisp.org>
2474 Make the glyph data type abstract.
2476 * src/include/font.h (glyph_t): New class.
2477 (name_to_index, number_to_index): Change return type to glyph_t.
2478 (font::contains, font::get_width, font::get_height, font::get_depth,
2479 font::get_character_type, font::get_kern, font::get_skew,
2480 font::get_italic_correction, font::get_left_italic_correction,
2481 font::get_subscript_correction, font::get_code,
2482 font::get_special_device_encoding, font::add_entry,
2483 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2486 * src/libs/libgroff/font.cpp (font_kern_list): Change members
2487 type and constructor argument types to glyph_t.
2488 (font::contains, font::get_width, font::get_height, font::get_depth,
2489 font::get_character_type, font::get_kern, font::get_skew,
2490 font::get_italic_correction, font::get_left_italic_correction,
2491 font::get_subscript_correction, font::get_code,
2492 font::get_special_device_encoding, font::add_entry,
2493 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2495 (font::load): Use glyph_t variables.
2497 * src/libs/libgroff/nametoindex.cpp (name_to_index,
2498 number_to_index): Change return type to glyph_t.
2500 * src/roff/troff/charinfo.h (charinfo::index): Change type to
2502 (charinfo::get_index): Change return type to glyph_t.
2504 * src/roff/troff/env.cpp: Include font.h.
2506 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2508 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2509 (charinfo::charinfo): Update.
2510 (name_to_index, number_to_index): Change return type to glyph_t.
2512 * src/include/printer.h (printer::set_char_and_width): Change return
2515 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2516 Change return type to glyph_t.
2518 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2519 argument type to glyph_t.
2521 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2522 (html_printer::space_glyph): Renamed from space_char_index.
2523 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2524 html_printer::overstrike, html_printer::set_char): Change argument
2526 (html_printer::set_char_and_width): Change return type to glyph_t.
2528 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2529 argument type to glyph_t.
2531 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2532 argument type to glyph_t.
2534 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2536 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2539 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2540 argument type to glyph_t.
2542 2006-02-11 Bruno Haible <bruno@clisp.org>
2544 * src/roff/troff/input.cpp (font::name_to_index): Never return a
2547 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2548 font::name_to_index.
2550 2006-02-10 Werner LEMBERG <wl@gnu.org>
2552 * doc/groff.texinfo (Assigning Formats): Number registers are always
2554 Apply some rephrasing, contributed by Michael Burt.
2556 2006-02-07 Werner LEMBERG <wl@gnu.org>
2558 * tmac/fr.tmac <ms>: Set `HY' register.
2560 2006-02-07 Werner LEMBERG <wl@gnu.org>
2562 Add framework for simple adaptation of the main macro packages (mm,
2563 me, ms, mom) to different locales. In particular, add support for
2564 French. For activation, simply use `-mfr' as the last macro
2565 package. This feature has been contributed by Fabrice Ménard
2566 <menard.fabrice@wanadoo.fr>.
2568 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2570 * tmac/README: Mention hyphen.fr.
2571 * man/groff_tmac.man: Mention fr.tmac.
2574 2006-01-27 Werner LEMBERG <wl@gnu.org>
2576 * man/groff_font.man: Updated documentation of `entity_name' field.
2579 2006-01-27 Bruno Haible <bruno@clisp.org>
2581 * font/devhtml/R.proto: Remove the entity names from the font's
2582 special_encoding_encoding column.
2583 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2584 handling the entity names here.
2585 (get_html_translation): Use it. Change return type to `const
2587 (page::add_and_encode): Update, removing a useless cast.
2589 2006-01-26 Werner LEMBERG <wl@gnu.org>
2591 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2593 * src/include/device.h: Add comments.
2594 * src/include/font.h: Add comments.
2595 * src/include/unicode.h: Likewise.
2596 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2598 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2600 Suppress `.st' request emission by `grn'.
2602 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2605 2006-01-22 Werner LEMBERG <wl@gnu.org>
2607 * install-sh: New version; taken from texinfo CVS.
2609 2006-01-21 Werner LEMBERG <wl@gnu.org>
2611 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2612 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2614 2006-01-19 Bruno Haible <bruno@clisp.org>
2616 Let `make -k install' install more files.
2618 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2619 $(MAKE) and $(MDEFINES) are used.
2620 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2621 $(CPROGDIRS) everywhere.
2622 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2624 ($(OTHERDIRS)): Likewise.
2627 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2628 failure test for font::name_to_index -- it can never fail.
2630 2006-01-19 Werner LEMBERG <wl@gnu.org>
2632 * src/devices/grops/grops.man: Fix section on creating EPS files.
2633 Don't use future time in manual.
2636 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2638 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2639 various typographical URL attributes for non-HTML devices.
2641 * tmac/groff_www.man: Document LINKSTYLE.
2643 2006-01-11 Werner LEMBERG <wl@gnu.org>
2645 * configure.ac: Test for getc_unlocked (needed for localcharset).
2646 * configure, src/include/config.hin: Regenerated.
2648 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2651 * src/libs/libgroff/relocatable.h: New dummy header file for
2654 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2657 2006-01-10 Bruno Haible <bruno@clisp.org>
2659 Work around unportability of nl_langinfo(CODESET).
2661 * m4/glibc21.m4: New file, from gnulib.
2662 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2663 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2664 * Makefile.in (HOST, GLIBC21): New variables.
2665 (MDEFINES): Pass them to subdirectories.
2666 * src/include/relocate.h (relocatep): Define with C linkage.
2667 * src/include/localcharset.h: New file, from gnulib.
2668 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2669 modification for relocate().
2670 * src/libs/libgroff/config.charset: New file, from gnulib.
2671 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2672 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2673 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2674 (OBJS): Add localcharset.o.
2675 (CSRCS): Add localcharset.c.
2676 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2677 (charset.alias): New rule.
2678 (PACKAGE): New variable.
2679 (ref-add.sed, ref-del.sed): New rules.
2680 (MKINSTALLDIRS): New variable.
2681 (install_data): Depend on install_charset_data.
2682 (install_charset_data): New rule for creating or updating
2684 (uninstall_sub): Depend on uninstall_charset_data.
2685 (uninstall_charset_data): New rule for uninstalling or updating
2687 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2689 (main): Initialize default_encoding from locale_charset() instead of
2690 nl_langinfo(CODESET).
2692 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2694 2006-01-10 Werner LEMBERG <wl@gnu.org>
2696 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2697 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2699 2006-01-07 Werner LEMBERG <wl@gnu.org>
2701 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2703 Bump font version to 001.001.
2705 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2706 Call fontforge, not pfaedit.
2708 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2710 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2712 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2713 * tmac/groff_mdoc.man: Updated.
2715 2006-01-05 Werner LEMBERG <wl@gnu.org>
2717 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2718 (raw_flag): New global variable.
2719 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2720 Don't pass BOM to `conversion_utf8'.
2722 (main): Handle `-r' command line switch to set `raw_flag'.
2723 (get_BOM): Fix encodings in `BOM_table'.
2725 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2726 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2728 2006-01-04 Werner LEMBERG <wl@gnu.org>
2730 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2731 Bruno, comment out most encodings to support only a small set of
2732 coding tags, thus reducing potential problems with legacy encodings
2733 and character sets in the future.
2734 Add many XEmacs coding tags (now commented out).
2736 (check_encoding_tag): Renamed to...
2737 (check_coding_tag): This.
2738 (get_BOM): Return encoding as specified by BOM.
2739 Test for UTF32-LE too.
2740 (do_file): Don't check for coding tag if a BOM has been found.
2742 2006-01-03 Bruno Haible <bruno@clisp.org>
2744 * m4/groff.m4: Renamed from aclocal.m4.
2745 * m4/codeset.m4: New file, from gnulib.
2746 * m4/iconv.m4: New file, from gnulib.
2747 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2749 * config.rpath: New file, from gnulib.
2750 * config.guess, config.sub: New files, from gnulib.
2751 * Makefile.sub (M4MACROS): New variable.
2752 (configure): Fix typo.
2753 (aclocal.m4): New rule.
2754 (stamp-h.in): Depend on aclocal.m4.
2755 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2756 * Makefile.in (LIBICONV): New variable.
2757 (MDEFINES): Pass it to recursive makes.
2758 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2759 HAVE_ICONV instead of I18N macro.
2760 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2762 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2764 2006-01-03 Werner LEMBERG <wl@gnu.org>
2766 * doc/Makefile.in (webpage.html): Simplify.
2767 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2768 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2770 2006-01-01 Werner LEMBERG <wl@gnu.org>
2772 * tmac/doc-common (Os): Add some Darwin versions.
2773 * tmac/groff_mdoc.man: Document them.
2775 2006-01-01 Bruno Haible <bruno@clisp.org>
2777 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2779 . Don't map ascii to latin-1.
2780 . Don't use IBMxxx encodings but cpxxx for portability.
2781 . Map cp932, cp936, cp949, cp950 to itself.
2782 (emacs2mime): Protect calls to strcasecmp.
2783 (conversion_iconv): Add missing call to iconv_close.
2784 (do_file): Emit error message in case of unsupported encoding.
2786 2005-12-31 Werner LEMBERG <wl@gnu.org>
2788 Integrate preconv into the groff binary. Changes based on a patch
2789 from Michail Vidiassov.
2791 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2793 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2794 (SOELIM_INDEX): Updated.
2795 (help, synopsis): Updated.
2796 (main): Add command line options `-k' and `-K enc' to select
2798 Add support for GROFF_ENCODING environment variable.
2800 * src/roff/groff/groff.man: Updated and revised.
2803 Start with autoconf support for preconv.
2805 * configure.ac: Call AC_C_BIGENDIAN.
2806 * configure, src/include/config.hin: Regenerated.
2808 2005-12-30 Werner LEMBERG <wl@gnu.org>
2810 New preprocessor `preconv' to convert input encodings to something
2811 groff can understand. Not yet integrated within groff. Proper
2812 autoconf stuff is missing too.
2814 Tomohiro Kubota has written a first draft of this program, and some
2815 ideas have been reused (while almost no code has been taken
2818 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2821 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2822 (GROFF_BIN_PATH): Add preconv.
2824 2005-12-12 Werner LEMBERG <wl@gnu.org>
2826 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2827 In particular, don't use `\+' since it is a GNU sed extension.
2829 * configure: Regenerated.
2831 2005-12-09 Werner LEMBERG <wl@gnu.org>
2833 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2835 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2839 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2842 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2845 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2846 %AGL_to_unicode): Removed. Replace it with a tag.
2848 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2849 to replace tag with actual file contents.
2851 2005-12-08 Werner LEMBERG <wl@gnu.org>
2853 The change 2005-06-20 can indeed cause problems, so we follow the
2854 advice by using marks.
2856 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2857 (PEND): Use `cleartomark'.
2859 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2861 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2862 glyphs which have kern values but aren't handled (glyph variants,
2865 2005-12-02 Werner LEMBERG <wl@gnu.org>
2867 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2868 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2870 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2872 * doc/Makefile.in: Separate rule for webpage.html so that extra
2873 command line options can be passed to grohtml.
2874 * doc/groff.css: Change all margins to 0%.
2875 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2876 navigation is exploited. Also update webpage to contain new
2877 sections on licenses, mailing lists, cvs/ftp access, groff
2878 dependencies, and bug reports.
2879 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2880 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2882 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2884 * src/devices/grohtml/post-html.cpp
2885 (html_printer::do_file_components): Add fputs calls to emit the
2886 head contents and shut down the head tag whenever a new file
2887 component is generated.
2889 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2891 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2892 call to flush_text to flush any outstanding html tags on the
2895 2005-11-18 Werner LEMBERG <wl@gnu.org>
2897 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2898 Announce makeinfo version.
2899 * configure: Regenerated.
2901 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2903 * Makefile.in: Declare proper dependencies between make targets.
2905 * doc/Makefile.in: Rename groff info page to `groff.info'.
2906 * doc/Makefile.sub: Likewise.
2907 * doc/groff.texinfo: Likewise.
2909 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2911 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2912 definition of __GETOPT_PREFIX to the beginning of file to ensure
2913 that it is defined even on platforms where getopt.h is already
2914 included by other header files.
2916 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2918 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2919 Reset font to NULL to ensure that a font block is recreated during
2922 2005-11-04 Werner LEMBERG <wl@gnu.org>
2924 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2925 * configure: Regenerated.
2927 2005-10-27 Werner LEMBERG <wl@gnu.org>
2929 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2930 makeinfo 4.8 or newer is available.
2931 * configure.ac: Call GROFF_MAKEINFO.
2932 * configure: Regenerated.
2934 * Makefile.in (MAKEINFO): Use autoconf variable.
2935 (MDEFINES): Add MAKEINFO.
2937 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2938 * doc/Makefile.sub (MAKEINFO): Remove.
2940 2005-10-26 Werner LEMBERG <wl@gnu.org>
2942 * REVISION: Set to 3.
2944 2005-10-17 Werner LEMBERG <wl@gnu.org>
2946 Mention $MANPAGER variable used with some `man' systems.
2948 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2950 2005-09-13 Werner LEMBERG <wl@gnu.org>
2952 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2954 2005-09-04 Werner LEMBERG <wl@gnu.org>
2956 Version 1.19.2 released
2957 =======================
2959 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2961 * doc/webpage.ms: Updated.
2963 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2965 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2967 * tmac/groff_ms.man: Document `PO' better.
2969 2005-09-03 Werner LEMBERG <wl@gnu.org>
2971 * NEWS: Document grotty changes.
2973 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2975 Backward compatibility support for `man' program.
2977 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2978 assignment, prior `.ll' request and then package defaults, in this
2979 specified order of decreasing priority.
2981 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2982 altered `LL' register initialization priorities.
2984 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2986 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2987 section should look like.
2989 2005-08-29 Werner LEMBERG <wl@gnu.org>
2991 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2994 2005-08-27 Bernd Warken
2996 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2999 2005-08-11 Bernd Warken
3001 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
3003 2005-08-09 Bernd Warken
3005 * tmac/www.tmac (URL, MTO): Use bold series if color support is
3008 2005-08-02 Bernd Warken
3010 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
3011 as argument to $(INSTALL_INFO). The latter isn't portable.
3012 Remove $(HTMLEXAMPLEFILES) too.
3014 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
3016 Suppress warning messages and return always true.
3018 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
3020 2005-07-02 Bernd Warken
3022 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
3023 * man/groff_out.man: More markup and minor improvements.
3024 * src/roff/groff/groff.man: Minor improvements.
3026 2005-06-28 Werner LEMBERG <wl@gnu.org>
3028 * ChangeLog: Split off older entries into...
3029 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
3032 2005-06-26 Bernd Warken
3034 * src/devices/xditview/gxditview.man: More minor fixes.
3036 2005-06-24 Werner LEMBERG <wl@gnu.org>
3038 * src/preproc/pic/troff.cpp (troff_output::set_fill,
3039 troff_output::set_color, troff_output::reset_color): Use .bcolor and
3040 .fcolor instead of \m and \M, respectively.
3042 2005-06-23 Bernd Warken
3044 * src/devices/xditview/gxditview.man: More minor fixes.
3045 * README: Formatting issues.
3046 Mention some problems with Debian.
3048 2005-06-23 Bernd Warken
3050 * src/devices/xditview/gxditview.man: Revised and improved.
3052 2005-06-22 Werner LEMBERG <wl@gnu.org>
3054 Another round in fixing getopt problems. Hopefully the last one!
3055 This time we use the getopt stuff from gnulib and define a prefix
3056 unconditionally so that there are no collisions with any other
3057 getopt implementations. This is a slight waste of space in case
3058 we already use a GNU getopt implementation, but on
3059 the other hand it really simplifies life.
3061 * src/include/getopt.h: Use gnulib version.
3063 * src/include/getopt_int.h: Use gnulib version.
3065 * src/include/groff-getopt.h: Removed. Obsolete now.
3067 * src/include/lib.h: Regarding getopt, don't handle any platform
3068 specially; just include getopt.h.
3069 (__GETOPT_PREFIX): Define (before getopt.h).
3071 * src/include/Makefile.sub (HDRS): Updated.
3073 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
3076 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
3079 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
3080 (__GETOPT_PREFIX): Define (before getopt.h).
3082 2005-06-21 Werner LEMBERG <wl@gnu.org>
3084 * src/include/lib.h: Provide a fix for Mac OS X to not include
3087 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
3089 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
3090 `bind' to define a procedure which contains `showpage' means that an
3091 invocation of `showpage' may execute wrongly (the exact effect
3092 depending on the interpreter). Not usually a problem except under
3093 transformations, such as combining pages.
3094 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
3095 of /PEND means that stack underflow will occur if the stack is
3096 deliberately non-empty before document inclusion. If included
3097 files are found to be generally badly behaved, we could replace the
3098 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
3099 never found this necessary).
3101 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
3103 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
3104 earlier to get correct error message.
3106 2005-06-16 Bernd Warken
3107 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
3109 2005-06-15 Werner LEMBERG <wl@gnu.org>
3111 Another try to update getopt files. This time we add a dummy
3112 gettext.h file to satisfy the dependency.
3114 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3115 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3117 * src/include/getopt_int.h: New file (from GNU libc CVS).
3119 * src/include/gettext.h: Dummy file which just defines a gettext()
3122 * src/include/groff-getopt.h: Updated.
3124 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
3127 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
3128 `const' keywords in return value.
3130 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
3131 Remove redundant variable `old'.
3132 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
3134 * src/preproc/tbl/main.cpp (process_table): Remove redundant
3138 Fix more friend name injection problems since modern C++ compilers
3139 fail otherwise. We simply provide (global) declarations for all
3140 functions declared as friends. This is not really necessary but
3143 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
3144 peek_char, and get_location.
3146 * src/preproc/refer/ref.h: Provide declarations for
3147 compare_reference, same_reference, same_year, same_date,
3148 same_author_last_name, and same_author_name.
3150 * src/roff/troff/div.h: Provide declarations for do_divert and
3153 * src/roff/troff/env.h: Provide declarations for title_length,
3154 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
3155 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
3156 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
3157 margin_character, no_number, number_lines, leader_character,
3158 tab_character, hyphenate_request, no_hyphenate,
3159 hyphen_line_max_request, hyphenation_space_request,
3160 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
3161 line_tabs_request, widow_control_request, and do_divert.
3163 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
3165 * src/roff/troff/node.cpp: Provide declarations for class
3167 Provide declaration for make_tfont.
3169 2005-05-29 Werner LEMBERG <wl@gnu.org>
3171 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
3173 2005-05-28 Werner LEMBERG <wl@gnu.org>
3175 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
3176 redundant semicolons.
3178 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
3179 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
3180 Define `MLIB'. Some compilers need this for linking with libgroff.
3182 2005-05-27 Werner LEMBERG <wl@gnu.org>
3184 * MANIFEST, README, doc/webpage.ms: Updated.
3186 2005-05-26 Werner LEMBERG <wl@gnu.org>
3188 * All affected files: Update postal address of FSF.
3190 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
3193 * README: More fixes.
3195 * README.CVS: Removed. Its contents is now part of the README file.
3197 2005-05-21 Werner LEMBERG <wl@gnu.org>
3199 * README: Updated. Based on a patch from Bernd Warken.
3201 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3203 Miscellaneous script portability enhancements.
3205 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
3206 generated conftest.sh script, conforming to portability
3207 recommendation in autoconf docs.
3208 * configure: Likewise, for code generated by GROFF_CSH_HACK.
3209 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
3210 to portability recommendation in autoconf docs.
3211 * contrib/grap2graph/grap2graph.sh: Likewise.
3212 * contrib/pic2graph/pic2graph.sh: Likewise.
3213 * font/devps/generate/afmname: Likewise.
3214 * src/devices/xditview/ad2c: Likewise.
3215 * src/preproc/eqn/neqn.sh: Likewise.
3216 * src/roff/grog/grog.pl: Likewise.
3217 * src/roff/grog/grog.sh: Likewise.
3218 * src/roff/nroff/nroff.sh: Likewise.
3219 * PROBLEMS: Likewise, in embedded script examples.
3221 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3223 Improve portability of `pdfroff' shell script.
3225 * arch/misc/shdeps.sh: Add space in shebang, conforming to
3226 portability guidelines in `autoconf' docs.
3227 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
3228 initialization code. Used by contrib/pdfmark/pdfroff.sh's
3229 `searchpath' function.
3231 2005-05-14 Werner LEMBERG <wl@gnu.org>
3233 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
3234 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
3235 needed for newer ImageMagick versions.
3237 2005-05-07 Werner LEMBERG <wl@gnu.org>
3239 * src/preproc/refer/refer.man: Many small typographic fixes.
3241 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
3243 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
3244 Use `char *' cast for a_delete.
3246 2005-05-03 Werner LEMBERG <wl@gnu.org>
3248 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
3249 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
3251 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
3253 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
3254 `a_delete' for `const char *'.
3256 2005-05-03 Werner LEMBERG <wl@gnu.org>
3258 * src/devices/grohtml/post-html.cpp,
3259 src/devices/grohtml/html-table.cpp,
3260 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3261 Replace malloc/free with new/delete/a_delete.
3263 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3264 are prohibited with ANSI C++.
3265 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3266 function has a variable number of arguments).
3268 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3269 Simplify function and update all callers.
3271 2005-05-02 Werner LEMBERG <wl@gnu.org>
3273 Undo getopt changes from 2005-04-30. We don't want a dependency
3276 * src/include/getopt_int.h: Removed.
3278 * src/include/getopt.h, src/include/groff-getopt.h,
3279 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3280 src/libs/libgroff/getopt1.c: Revert to previous version.
3283 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3285 * src/include/posix.h (F_OK): Define conditionally.
3287 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3288 different variable name in second `for' loop to avoid MSVC compiler
3291 2005-04-30 Werner LEMBERG <wl@gnu.org>
3293 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3295 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3296 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3297 * configure, src/include/config.hin: Regenerated.
3299 * PROBLEMS: Updated.
3302 Update getopt files.
3304 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3305 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3307 * src/include/getopt_int.h: New file (from GNU libc CVS).
3309 * src/include/groff-getopt.h: Updated.
3311 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3314 * font/devutf8/NOTES: Updated.
3316 2005-04-28 Werner LEMBERG <wl@gnu.org>
3318 Bug fix for Win32 relocatable code. Based on a patch from Keith
3321 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3324 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3325 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3327 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3329 Correct `gnu.eps' handling for build from distribution tarball, with
3330 separate source and build directories.
3332 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3333 grnexmpl.g, groff.css and gnu.eps from source to build directory;
3334 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3335 (prepare_examples): Make it depend on examples.stamp.
3336 (CLEANADD): Add examples.stamp.
3338 2005-04-27 Werner LEMBERG <wl@gnu.org>
3342 position: `(' position `)'
3346 * src/preproc/pic/pic.y (position, position_not_place): Handle
3347 additional parentheses.
3349 * doc/pic.ms: Updated.
3351 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
3353 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3355 2005-04-18 Werner LEMBERG <wl@gnu.org>
3357 * src/roff/groff/pipeline.c: Don't include ctype.h.
3359 2005-04-13 Werner LEMBERG <wl@gnu.org>
3361 * src/roff/nroff/nroff.man: Document option `-M'.
3363 2005-04-13 Bruce Lilly <blilly@erols.com>
3365 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3367 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
3368 Werner LEMBERG <wl@gnu.org>
3370 Add binary relocation support for Windows platforms.
3372 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3374 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3376 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3377 (search_path::search_path, search_path::open_file_cautious): Use
3380 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3381 src/include/Makefile.sub (HDRS): Updated.
3383 2005-04-01 Werner LEMBERG <wl@gnu.org>
3385 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3388 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3390 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3391 lib.h already does it.
3393 * src/libs/libgroff/maxpathname.cpp: New file, defining
3396 * src/include/lib.h: Add prototype for path_name_max.
3398 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3400 * src/include/nonposix.h (PATH_EXT): New macro.
3402 2005-03-28 Werner LEMBERG <wl@gnu.org>
3404 Add support for double- and zero-width characters in grotty.
3406 * src/devices/grotty/tty.cpp (glyph): Add width.
3407 (tty_printer::make_underline, tty_printer::make_bold,
3408 tty_printer::add_character): Add parameter to pass character width.
3410 (tty_printer::end_page): Increase hpos by actual character width.
3412 * font/devutf8/R.proto: Specify zero width for non-spacing
3415 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3417 * Makefile.comm (extraclean): Remove more junk files.
3419 2005-03-25 Werner LEMBERG <wl@gnu.org>
3421 * configure.ac: Undo change from 2005-03-24.
3422 * configure: Regenerated.
3424 2005-03-24 Werner LEMBERG <wl@gnu.org>
3426 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3427 (dist): Search Makefile while descending into $(EXTRADIRS).
3429 * doc/Makefile.in (.PHONY): Add.
3430 (clean): Don't remove *.png and *.eps.
3432 (realclean): Remove *.png and *.eps.
3433 (extraclean): Depend on distclean.
3435 * configure.ac: Add copyright.
3436 Handle contrib/pdfmark/Makefile.
3438 * configure: Regenerated.
3440 2005-03-18 Larry Kollar <kollar@alltel.net>
3442 Add numbered and definition lists to www.tmac.
3444 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3445 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3446 auxiliary string registers.
3447 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3448 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3449 (www-level): Removed.
3450 (www-level1, www-level2, www-level3): Initialize to empty.
3451 (www-level0, www-level4, www-level5, www-level6, www-level7,
3452 www-level8, www-level9): New string registers.
3453 (www-push-li, www-pop-li): New macros.
3454 (www-push-level, www-pop-level): Renamed to...
3455 (www-push-ul-level, www-pop-ul-level): This.
3457 (www-push-ol-level, www-pop-ol-level): New macros.
3458 (ULS, ULE): Updated.
3459 (OLS, OLE, DLS, DLE): New user macros.
3460 (LI): Removed. It is aliased to one of...
3461 (www-li-ul, www-li-ol, www-li-dl): New macros.
3463 * tmac/groff_www.man: Document new macros.
3467 2005-03-18 Werner LEMBERG <wl@gnu.org>
3469 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3470 doc-operating-system-NetBSD-2.0.2): New strings.
3472 * tmac/groff_mdoc.man: Updated.
3474 2005-03-17 Werner LEMBERG <wl@gnu.org>
3476 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3478 2005-03-17 Werner LEMBERG <wl@gnu.org>
3480 * src/libs/libgroff/hypot.c: Renamed to...
3481 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
3483 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3485 * src/include/lib.h: Updated.
3487 2005-03-16 Werner LEMBERG <wl@gnu.org>
3489 Add workaround for broken hypot() on Interix.
3491 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3493 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3494 (CSRCS): Add `hypot.c'.
3496 * src/include/lib.h: Declare `groff_hypot'.
3498 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3501 * src/preproc/pic/pic.h: Don't declare `hypot'.
3503 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3505 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3507 * src/devices/grohtml/post-html.cpp
3508 (html_printer::lookahead_for_tables): End .ce properly to avoid a
3511 2005-03-15 Werner LEMBERG <wl@gnu.org>
3513 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3515 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3517 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3519 2005-03-14 Werner LEMBERG <wl@gnu.org>
3521 Add Cyrillic support to devutf8 and devhtml.
3523 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3525 * tmac/unicode.tmac: New file.
3527 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3529 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3533 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
3535 * src/libs/libdriver/printer.cpp (check_for_output_error): New
3536 function. It has been introduced to catch peculiar error contexts
3537 on MS-Windows platforms.
3539 2005-02-28 Werner LEMBERG <wl@gnu.org>
3541 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3544 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3546 * configure: Regenerated.
3550 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3552 Integrate `pdfmark' into normal groff build system;
3553 install macro `pdfmark' packages, build and install `pdfroff',
3554 and PDF format documentation.
3556 * Makefile.comm: Add PDFDOCDIR.
3558 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3559 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3560 (unstall_dirs): Add pdfdocdir.
3562 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3563 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3564 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3565 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3566 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3567 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3569 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3570 use of GROFF_AWK_PREFS.
3571 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3572 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3574 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3575 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3576 also by modified GROFF_HTML_PROGRAMS).
3578 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3580 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3582 (html_text::done_para): Unset `start_space'.
3583 (html_text::remove_para_align): Call `retrieve_para_space' for the
3586 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3588 (html_printer::do_check_center): Emit vertical space if necessary.
3590 * src/roff/troff/env.cpp (environment_switch): Preserve
3591 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3594 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3597 2005-02-20 Werner LEMBERG <wl@gnu.org>
3599 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3602 2005-02-17 Werner LEMBERG <wl@gnu.org>
3604 * doc/pic.ms, man/groff.man: Fix typos.
3606 * doc/groff.texinfo: Fix typos.
3607 (\LEmacro): Get proper mathematical spacing.
3609 2005-02-16 Werner LEMBERG <wl@gnu.org>
3611 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3612 * configure: Regenerated with autoconf 2.59b.
3614 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3616 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3617 html_printer::start_font): Fix handling of preformatted text.
3619 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3621 These patches modify the indentation implementation to use `<p
3622 style=margin-left: n%>'. Many thanks to Peter and Larry for
3623 suggesting this solution. Grohtml only uses tables for `.IP' and
3624 related tags when the first operand has a short width.
3626 Similarly, they modify all vertical space code. By default, grohtml
3627 sets up a style sheet which uses no vertical space between `table',
3628 `pre', and `p' tags. It forces spaces when it needs them using
3629 `style="margin-top: 1em"'.
3631 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3632 (html_table::emit_table_header, html_table::emit_new_row):
3634 (html_table::set_space): New function.
3635 (html_indent::html_indent): Don't set `is_used'.
3636 (html_indent::begin): Rewritten.
3637 (html_indent::end): Remove code in function.
3639 * src/devices/grohtml/html-table.h: Updated.
3640 (html_table): Make `out' public.
3642 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3643 Initialize `start_space' with FALSE.
3644 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3645 (html_text::issue_tag): Add argument to handle space style.
3646 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3647 (html_text::flush_text): Don't set `start_space'.
3648 (html_text::push_para): Don't set `p->really_issued'.
3649 (html_text::do_emittext): Updated.
3650 (html_text::do_para): Add paremeter to handle space.
3652 (html_text::retrieve_para_space): New function.
3654 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3655 (tag_definition): Remove `really_issued'.
3656 (html_text): Updated.
3658 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3659 `current_column' and `row_space'.
3661 (html_printer::emit_raw, html_printer::write_header,
3662 html_printer::do_indent, html_printer::do_check_center,
3663 html_printer::do_tab_ts): Handle vertical space.
3664 (html_printer:do_tab_te, html_printer::do_end_para): Call
3665 `remove_para_space'.
3666 (html_printer::do_col): Rewritten.
3667 (html_printer::flush_globs): Remove debugging code.
3668 (html_printer::is_line_start): New function.
3669 (html_printer::start_font): Use `is_line_start'.
3670 (html_printer::writeHeadMetaStyle): New function.
3671 (html_printer::do_file_components, html_printer::~html_printer):
3672 Call `writeHeadMetaStyle'.
3674 * tmac/www.tmac (www-handle-percent): New macro.
3675 (MPIMG): Handle percent values for width and height parameters.
3678 * tmac/groff_www.man: Updated.
3680 2005-02-14 Werner LEMBERG <wl@gnu.org>
3682 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3683 $psname and $italic_angle.
3684 Immediately restart file input loops if `split' returns an empty
3687 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3688 Werner LEMBERG <wl@gnu.org>
3690 Update afmtodit to better support Unicode (Michail).
3691 Update afmtodit to use Perl 5 syntax (Werner).
3693 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3695 Decorate variables with `my' where necessary.
3696 Use `defined' where necessary to avoid warnings.
3697 Don't use `do' for subroutine calls.
3698 Other minor syntax updates.
3699 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3700 Handle glyph variants properly.
3701 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3704 * src/utils/afmtodit/afmtodit.man: Updated.
3706 2005-02-13 Werner LEMBERG <wl@gnu.org>
3708 Make groff.texinfo work with texinfo 4.8.
3710 * doc/groff.texinfo (@Var): Use @r and @slanted.
3711 (@defdummy, @Def*): Use @c to avoid empty lines.
3712 (\angles): Replaced with...
3713 (\Langlemacro, \Ranglemacro): New TeX macros.
3714 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3715 (@angles): Use @Langlemacro and @Ranglemacro.
3716 (\LE): Replaced with...
3717 (\LEmacro): New TeX macro.
3718 (@LEmacro): New variable defined with @set.
3719 (@LE): Use @LEmacro.
3720 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3721 variables defined with @set.
3722 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3723 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3726 Other minor updates.
3728 * doc/texinfo.tex: Update to texinfo version 4.8.
3730 * README.CVS: Updated.
3732 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3734 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3735 and `FAM' registers.
3737 2005-02-05 Werner LEMBERG <wl@gnu.org>
3739 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3740 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3743 2005-02-01 Werner LEMBERG <wl@gnu.org>
3745 * src/roff/groff/groff.man: Add information about paper size.
3747 2005-01-25 Werner LEMBERG <wl@gnu.org>
3749 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3752 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3754 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3756 (Re): Emit a warning if called without `.Rs'.
3757 (doc-finish-reference): Use parameter for decreasing
3758 `doc-reference-count'.
3759 (doc-print-reference): Pass specific count parameters to
3760 `doc-finish-reference'.
3762 2005-01-21 Werner LEMBERG <wl@gnu.org>
3764 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3765 Reset pointers to zero after deallocation. This fixes a crash
3766 if a driver is called with multiple input files. Reported by
3767 Ken Chilton <ken@chiltonfamily.org>.
3769 * src/devices/grops/grops.man: Add more info on DSC.
3771 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3773 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3776 2005-01-17 Werner LEMBERG <wl@gnu.org>
3778 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3779 against division by zero.
3781 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3783 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3785 2004-12-19 Werner LEMBERG <wl@gnu.org>
3787 * install-sh: New version; taken from texinfo CVS.
3789 2004-12-17 Werner LEMBERG <wl@gnu.org>
3791 * tmac/devtag.tmac: Protect against loading twice.
3792 Protect agains compatibility mode.
3793 * tmac/www.tmac: Protect against loading twice.
3794 Load `devtag.tmac' before switching off compatibility mode.
3795 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3797 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3799 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3800 * configure: Updated.
3802 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3804 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3806 2004-12-15 Werner LEMBERG <wl@gnu.org>
3808 Make `test-groff' work again -- previously, wrong paths have been
3809 used. Additionally, it can now be called from anywhere.
3811 * test-groff.in: Don't test for groff binary. This is no longer
3812 necessary since the proper paths are determined by `configure'.
3813 (EXEEXT): Removed. No longer used.
3814 (srcdir, builddir): Use values provided by the configure script.
3815 (XENVIRONMENT): Updated.
3819 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3821 Make .tag and .taga work for all devices (but only grohtml actually
3824 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3825 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3826 html_printer::handle_assertion): Don't use hard-coded string
3828 (html_printer::lookahead_for_table): Reset `tbl' properly if
3830 (html_printer::devtag): New function, handling `devtag'.
3831 (html_printer::special): Don't handle `html-tag'.
3833 * src/include/printer.h, src/libs/libdriver/printer.cpp
3834 (printer::devtag): New virtual function.
3836 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3839 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3840 src/roff/troff/node.cpp: s/html-tag/devtag/.
3842 * src/roff/troff/input.cpp (tag, taga): Always call
3845 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3846 macros instead of HTML-TAG*.
3848 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3850 * tmac/www.tmac: Load devtag.tmac.
3851 Replace HTML-TAG* macros with DEVTAG* macros.
3852 (HTML, HTML-NS): Changed definitions.
3854 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3856 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3858 2004-12-10 Werner LEMBERG <wl@gnu.org>
3860 Import Mike's `gdiffmk' package.
3862 * contrib/gdiffmk/*: New files.
3863 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3866 2004-12-08 Werner LEMBERG <wl@gnu.org>
3868 Import Keith's `pdfmark' package. Integration is very preliminary.
3870 * contrib/pdfmark/*: New files.
3871 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3874 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3876 Fix a bug with title handling in HTML.
3878 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3879 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3881 (html_printer::handle_tag_within_title): New function.
3882 (html_printer::do_title): Use it.
3884 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3885 (cov*tl-au-print): Emit `.eo.tl' tag.
3887 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3889 * man/groff_char.man: Minor imrovements.
3891 2004-12-04 Werner LEMBERG <wl@gnu.org>
3893 * src/preproc/eqn/eqn.man: Revised.
3895 2004-11-25 Werner LEMBERG <wl@gnu.org>
3897 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3901 Remove X_NOT_STDC_ENV conditional.
3902 (Version_string, program_name): New global variables.
3903 (groff_flag): Removed.
3905 (usage): Take a stream as argument.
3908 (main): Add `long_options' array for `--help' and `--version'.
3909 Make `-g' a dummy option.
3910 Handle `-v' and unknown options.
3911 Remove unused `position' variable.
3913 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3914 (XLIBS): Add LIBGROFF.
3916 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3919 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3920 parts to avoid compiler warning.
3921 (resources): Don't initialize with `default_font_map'.
3922 (ClassInitialize): Initialize first element of `resources'.
3924 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3927 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3928 src/utils/pfbtops/pfbtops.man: Revised, updated.
3930 * configure.ac: Generate src/utils/xtotroff/Makefile.
3931 * configure: Regenerated.
3933 2004-11-24 Werner LEMBERG <wl@gnu.org>
3935 First fixes to get produce HTML.
3937 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3940 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3941 (HR, LI): Use `HTML</p>', not `HTML'.
3943 * doc/webpage.ms: Minor updates.
3945 2004-11-23 Larry Kollar <kollar@alltel.net>
3947 Add option -S grohtml to determine the file split level.
3949 * src/devices/grohtml/post-html.cpp (split_level): New global
3951 (html_header::determine_header_level): Use split_level.
3952 (main): Handle `-S' command line option.
3955 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3957 * src/devices/grohtml/grohtml.man: Document it.
3960 * NEWS: Document it.
3962 2004-11-23 Y T <doarhop@hotmail.com>
3964 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3965 the volume and number refer entries.
3967 2004-11-22 Werner LEMBERG <wl@gnu.org>
3969 * src/devices/grohtml/html-table.cpp
3970 (html_table::emit_table_header): Don't emit `cols' attribute which
3971 doesn't exist in HTML 4.0 and is thus invalid.
3973 * NEWS: More minor fixes and updates.
3975 2004-11-18 Werner LEMBERG <wl@gnu.org>
3977 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3978 (HTML</p>): Minor clean-up.
3980 * tmac/groff_www.man: Updated.
3982 * src/devices/grohtml/grohtml.man: Revised and updated.
3986 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3988 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3989 Fix space insertion.
3990 (html_printer::do_links): Fix rules generation around automatic
3993 * tmac/www.tmac (LK): Use HTML-TAG-NS.
3995 No longer emit empty line for non-HTML devices.
3997 2004-11-17 Werner LEMBERG <wl@gnu.org>
3999 * doc/Makefile.in (prepare_examples, webpage.html): Handle
4002 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
4003 prepare_examples, webpage.html): Handle `groff.css'.
4005 2004-11-15 Werner LEMBERG <wl@gnu.org>
4007 * NEWS, README, doc/webpage.ms: Updated.
4009 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
4011 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
4013 * src/include/printer.h (printer): Remove virtual function
4015 Update all source files.
4017 * src/devices/grohtml/post-html.cpp (html_printer): New member
4018 function `round_width'.
4020 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4022 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
4023 column key letter suffix.
4025 2004-10-14 Werner LEMBERG <wl@gnu.org>
4027 * Makefile.in (check): Depend on `site.exp' and `docheck'.
4028 (docheck): Run dejagnu's `runtest' if it exists.
4029 (site.exp): Create dejagnu configuration file.
4031 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
4033 2004-10-13 Werner LEMBERG <wl@gnu.org>
4035 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
4036 src/devices/grohtml/post-html.cpp (make_val,
4037 html_printer::handle_state_assertion): Fix compiler warnings.
4039 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
4040 (diversion::diversion): Fix order of initializers.
4042 * src/roff/troff/div.h: Don't include `mtsm.h'.
4044 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
4045 (environment::environment): Fix order of initializers.
4046 (environment::make_tag, environment::construct_format_state): Fix
4049 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
4050 (input_iterator::input_iterator, macro::macro): Fix order of
4053 * src/roff/troff/mtsm.cpp: Include only necessary header files.
4054 (state_set::add, state_set::val): Fix compiler warnings.
4056 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
4057 (bool_value_state, int_value_state, units_value_state,
4058 string_value_state): Remove comma after last element which causes
4059 an error with g++ 3.3.3.
4061 * src/roff/troff/node.cpp: Include `stringclass.h'.
4062 (hline_node::hline_node, vline_node::vline_node,
4063 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
4065 (zero_width_node::zero_width_node): Fix order of initializers.
4067 * src/roff/troff/node.h: Don't include `mtsm.h'.
4068 (hmotion_node): Fix compiler warnings.
4070 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
4072 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
4074 * doc/groff.css: New file.
4076 * doc/webpage.ms: Use `groff.css'.
4079 * tmac/an-old.tmac (need_eo_h): New number register.
4080 (TH): Emit `.eo.tl' tag after title.
4081 (SH): Set `need_eo_h'.
4082 (an-trap): Handle `need_eo_h'.
4083 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
4085 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
4086 (TL): Always start diversion.
4088 (@AI): Always call `par@reset'.
4089 (@AB): Update code for -Thtml.
4090 (cov*tl-au-print): Handle -Thtml.
4091 (par@reset): Handle `need_eo_tl', `need_eo_h'.
4093 (@IT-html): Removed.
4094 (@SH): Set `need_eo_h' for -Thtml.
4095 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
4097 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
4098 Set `need_eo_h' for -Thtml.
4099 (@EQ, @EN): Don't handle -Thtml specially.
4100 (par@load-init): Don't handle -Thtml specially.
4102 * tmac/www.tmac (www:paraspace): New macro.
4103 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
4104 (HTML</p>, HTML-TAG-NEXT): New macros.
4105 (HnE): Emit tag `.eo.h' instead of break.
4106 (HR): s/HTML-NS/HTML/.
4107 (www-end-nowhere): End diversion only if `www-html' not set.
4109 (ULS, ULE): s|HTML|HTML</p>|.
4110 (LI): Call `www:paraspace'.
4113 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
4115 * src/roff/troff/request.h (macro): Make `p' public.
4116 New variable `is_a_diversion'.
4117 New member function `is_diversion'.
4120 * src/devices/grohtml/html.h (simple_output): New member function
4123 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
4124 computation of `total'.
4125 (tabs::check_init): New function.
4126 (html_table::emit_table_header): Emit style data.
4127 (html_table::insert_column): Improved.
4129 * src/devices/grohtml/html-table.h: Updated.
4131 * src/devices/grohtml/html-text.cpp (html_text::html_text):
4132 Initialize `start_space' with TRUE.
4133 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
4135 (html_text::flush_text): Set `start_space' flag.
4136 (html_text::uses_indent, html_text::remove_para_space,
4137 html_text::get_alignment): New functions.
4138 (html_text::push_para): Updated.
4139 (html_text::do_para): Check for empty argument.
4140 Don't set `space_emitted'.
4141 (html_text::do_space, html_text::emit_space): Updated.
4143 * src/devices/grohtml/html-text.h (tag_definition): New variable
4145 (html_text): New member function `uses_indent', `remove_para_space',
4148 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
4150 (simple_output:nl): Always emit `\n'.
4152 * src/devices/grohtml/post-html.cpp: Include `string.h'.
4153 (BASE_POINT_SIZE): Removed.
4154 (base_point_size, head_info): New global variables.
4155 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
4157 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
4159 (page::add_and_encode): Pass additional parameter for tag flag.
4160 (assert_pos): New structure.
4161 (assert_state): New class.
4162 (html_printer): Remove `indentation', `prev_indent'.
4163 Add variables `troff_indent', `device_indent', `temp_indent'.
4164 Add variables `seen_indent', `next_indent', `seen_pageoffset',
4165 `next_pageoffset', `seen_linelenght', `next_linelength',
4166 `seen_center', `next_center', `seen_space', `seen_break', `as'.
4167 Add member functions `do_check_center', `do_space', `do_head',
4168 `get_troff_indent', `restore_troff_indent', `handle_assertion',
4169 `handle_state_assertion', `do_end_para', `set_char_and_width'.
4170 Change argument to `do_fill' to `char *'.
4172 (html_printer::emit_raw): Call `shutdown_table'.
4174 (html_printer::do_center): Simplified.
4175 (html_printer::do_title): Improved.
4176 (html_printer::write_header): Emit one more newline.
4178 (html_printer::do_heading, html_printer::do_indent,
4179 html_printer::do_eol, html_printer::do_tab_ts,
4180 html_printer::do_tab, html_printer::do_tab0,
4181 html_printer::calc_po_in, html_printer::next_horiz_pos,
4182 html_printer::remove_courier_tabs,
4183 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
4185 (html_printer::do_linelength, html_printer::do_pageoffset,
4186 html_printer::do_indentation, html_printer::do_tempindent,
4187 html_printer::do_tab_te): Simplified.
4188 (html_printer::do_pointsize): Check whether point size is really
4189 associated a `.tl' tag.
4190 (html_printer::do_break): Rewritten.
4191 (html_printer::troff_tag): Improved.
4192 (html_printer::flush_globs): Updated.
4193 (html_printer::lookahead_for_tables): Handle `is_br'.
4195 (html_printer::set_char): Check `sbuf_style.f'.
4196 (html_printer::write_navigation): Use string comparison.
4197 (html_printer::~html_printer): Emit `head_info'.
4198 (html_printer::special): Rewritten.
4199 (get_str, make_val): New functions.
4200 (main): New option `s' to set the base point size.
4202 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
4204 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
4206 * src/roff/troff/node.cpp: New extern `debug_state'.
4207 Include `stringclass.h' and `mtsm.h'.
4208 Implement new classes and class members from `node.h'.
4209 (real_output_file): Make `fp' public.
4210 (troff_output_file): New variables `cur_div_level' and `tag_list'.
4211 Update constructors.
4212 (troff_output_file::really_print_line): Check whether we should push
4213 the current troff state and use the state at the start of the
4214 invocation of this diversion.
4215 (troff_output_file::add_to_tag_list): New member function.
4216 (node::add_char): Handle `glyph_comp_np'.
4218 * src/roff/troff/node.h: Include `mtsm.h'.
4219 (node): New variables `state', `push_state', `div_nest_level',
4220 `is_special'. Update constructors, all descendants.
4221 Pass additional argument to `add_char' member function.
4222 New virtual member functions `is_tag', `debug_node',
4223 `debug_node_list'. Update all descendants.
4224 (tag_node): New class for handling tags.
4225 (output_file): Add variable `state'.
4227 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
4229 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
4230 providing a minimal troff state machine to emit meta tags for the
4231 post-grohtml device driver.
4233 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
4236 2004-10-09 Werner LEMBERG <wl@gnu.org>
4238 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
4240 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
4242 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
4244 * src/roff/troff/div.h: Include `mtsm.h'.
4245 (diversion): New variables `any_chars_added', `needs_push',
4246 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
4247 `saved_suppress_next_eol', `modified_tag'.
4248 New virtual member function `is_diversion'. Update all descendants.
4250 * src/roff/troff/div.cpp (diversion::diversion,
4251 macro_diversion::macro_diversion): Updated.
4252 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
4253 `suppress_next_eol'.
4254 (top_level_diversion::space): Handle `curenv->seen_space'.
4255 (page_offset): Update tag handling.
4256 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4258 * src/roff/troff/env.h (environment): Make `tabs' public.
4259 Remove `ignore_next_eol', `emitted_node'.
4260 Update `output_line', `output'.
4261 New variables `seen_space', `seen_eol', `suppress_next_eol',
4263 New member functions `construct_state', `make_tag',
4264 `construct_format_state, `construct_new_line_state,
4266 Remove `add_html_tag', `make_html_tag'.
4268 * src/roff/troff/env.cpp: New externs `suppress_push',
4269 `get_diversion_state', `global_diverted_space'.
4270 (pending_output_line): New variable `was_centered'.
4271 Update constructor and all callers.
4272 (pending_output_line::output): Call `curenv->construct_format_state'.
4273 (environment::environment, environment::copy): Updated.
4274 (environment::output): Handle `was_centered'.
4275 (environment::add_char): Handle construct and diversion state.
4276 (environment::add_node): Handle construct state.
4277 (environment::newline): Handle `was_centered'.
4278 (environment::output_line): Updated.
4279 (environment::possibly_break_line): Updated.
4280 Update tag handling.
4281 (environment::add_html_tag): Replaced with...
4282 (environment::make_tag): New function.
4283 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4284 (environment::dump_troff_state): New debugging function.
4285 (environment::construct_state, environment::construct_format_state,
4286 environment::construct_new_line_state): New functions.
4287 (environment::do_break): Updated.
4288 Handle `global_diverted_space'.
4289 (environment::handle_tag): Update tag handling.
4290 (point_size, fill, do_break_request): Don't call `add_html_tag'.
4291 (no_fill): Don't call `add_html_tag'.
4292 Set `suppress_next_eol'.
4293 (center, right_justify, line_length, indent, temporary_indent,
4295 Update tag handling.
4297 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4298 (input_iterator): New variables `is_diversion', `diversion_state'.
4299 Update constructors.
4300 (input_stack): New member functions `get_div_level',
4301 `get_diversion_state', `check_end_diversion'.
4302 New variables `div_level', `diversion_state'. Initialize them.
4303 (suppress_push, global_diverted_space): New global variables.
4304 (input_stack::finish_get, input_stack::finish_peek,
4305 input_stack::remove_boundary, input_stack::end_file,
4306 input_stack::clear, input_stack::pop_macro): Call
4307 `check_end_diversion'.
4308 (input_stack::push): Handle `div_level' and `diversion_state'.
4309 (get_diversion_state): New function.
4310 (diverted_space_node::reread): Handle `global_diverted_space'.
4311 (macro::macro): Update constructors.
4312 (macro::is_diversion): New function.
4313 (macro::operator=): Set `is_a_diversion'.
4314 (string_iterator): New member function `is_diversion'.
4315 (string_iterator::string_iterator): Update constructors.
4316 (string_iterator::fill): Set `div_nest_level'.
4317 (macro_iterator): New member function `is_diversion'.
4318 (do_if_request): Handle `suppress_push'.
4319 (tag, taga): New functions.
4320 (init_input_requests): Add `tag' and `taga' requests.
4322 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
4324 * src/include/font.h (font): New member function
4325 `get_image_generator'.
4326 New variables `unscaled_charwidths' and `image_generator'.
4328 * src/libs/libgroff/font.cpp (font::get_width): Always return the
4329 character's unscaled width if `font::unscaled_charwidths' is set.
4330 (font::get_image_generator): New function.
4331 (font::load_desc): Check the `unscaled_charwidths' and
4332 `image_generator' keywords.
4334 * src/libs/libgroff/fontfile.cpp: Initialize
4335 `font::unscaled_charwidths' and `font::image_generator'.
4337 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4339 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4341 * man/groff_font.man: Document `unscaled_charwidths' and
4344 * src/preproc/html/pre-html.cpp: Include `device.h'.
4345 (image_gen): New global variable.
4346 (imageList::createPage): Use `image_gen'.
4347 (main): Use `image_generator' keyword.
4349 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4351 * tmac/html.tmac: Handle \[sqrtex].
4353 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4355 * src/include/printer.h (printer): New virtual method `round_width'.
4357 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4358 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4359 src/devices/grotty/tty.cpp (printer::round_width): New function
4362 * src/devices/grohtml/post-html.cpp (printer::round_width): New
4364 (html_printer::set_numbered_char): Use it.
4366 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
4368 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4370 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4372 * configure: Regenerated.
4374 * Makefile.in (GHOSTSCRIPT): New variable.
4375 (MDEFINES): Add GHOSTSCRIPT.
4377 2004-10-03 Werner LEMBERG <wl@gnu.org>
4379 * INSTALL.gen: Updated (taken from texinfo CVS).
4381 2004-09-28 Werner LEMBERG <wl@gnu.org>
4385 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4387 * tmac/groff_www.man: Revised and updated.
4389 2004-09-26 Werner LEMBERG <wl@gnu.org>
4391 Fix \$@ and \$* to handle any number of arguments.
4393 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4396 * src/roff/troff/input.cpp (input_iterator::internal_level):
4398 (input_stack): New member functions `increase_level' and
4400 (input_stack::get_level): Don't use `internal_level'.
4401 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4402 (end_quote_iterator): Completely removed.
4403 (interpolate_arg): Build string for \$@ and \$* which is then
4404 pushed onto the input stack.
4406 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
4408 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4409 Registers): Document changes from 2004-09-19.
4411 2004-09-23 Werner LEMBERG <wl@gnu.org>
4413 * tmac/an-old.tmac (ne): Using default scaling operator.
4415 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4417 This change implements the following features:
4420 New numeric register: Defines number of lines following LP, PP,
4421 QP, IP or XP, which must be kept together, before any automatic
4422 page break. If insufficient space remains on the current page, a
4423 page break is forced before the new paragraph begins.
4426 New numeric register: Sets number of lines of following paragraph
4427 which must be kept with a heading, defined by NH or SH, before any
4428 automatic page break. If insufficient space remains on the
4429 current page, a page break is forced before the heading.
4432 (Thanks to Joerg van den Hoff, for this idea).
4434 New numeric register: Sets the first level of heading (set with
4435 NH), which will keep the same point size as body text; e.g. if
4436 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4437 point size specified by \n[PS], but .NH 2 and .NH 1 will have
4438 progressively larger point sizes, determined by \n[PSINCR] (see
4442 New numeric register: Sets the point size increment for each level
4443 of heading, (set with NH), below the threshold level set by
4444 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4445 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4446 and all other levels will remain at 10pt, (because \n[PS] = 10).
4449 Existing macro now accepts a numeric argument, to make heading
4450 size match that of NH with same argument value, when the
4451 GROWPS/PSINCR feature is enabled.
4454 New string, set by NH macro, replaces the existing (undocumented)
4455 use of SN, to represent the assigned section number.
4458 New string, set by NH macro, represents the assigned section
4459 number, but omits the terminal period (periods at intermediate
4460 levels are retained).
4463 String set by NH macro, originally undocumented, now implemented
4464 as an alias for SN-DOT (which reproduces original behaviour).
4466 * tmac/s.tmac (PORPHANS): New register.
4467 (par*start): Use it.
4468 (HORPHANS, GROWPS, PSINCR): New registers.
4469 (SH-NO-TAG, @SH): Use them.
4472 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4474 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4475 Document the deletion of `Ds' and `De' macros.
4477 2004-09-10 Werner LEMBERG <wl@gnu.org>
4479 In tbl, handle \a as an interpreted leader character if in
4482 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4483 LEADER_CHAR): New macros.
4484 (compatible_flag): New declaration.
4486 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4487 LEADER_3, and LEADER_4 to `state'.
4488 (table_input::get): Handle `\a'.
4490 * src/preproc/tbl/table.cpp (PREFIX): Removed.
4491 (LEADER_REG): New macro.
4492 (table::init_output): Define LEADER_REG string register if in
4495 * src/preproc/tbl/tbl.man: Document it.
4497 2004-08-18 Werner LEMBERG <wl@gnu.org>
4499 * tmac/doc.tmac (An): Fix error message.
4501 2004-08-06 Werner LEMBERG <wl@gnu.org>
4503 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4504 file can't be opened. UNIX tbl has the same behaviour.
4506 2004-08-05 Y T <doarhop@hotmail.com>
4508 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4509 (DBRead): If in compatibility mode, take into account the text
4510 when computing figure boundaries.
4512 2004-08-05 Werner LEMBERG <wl@gnu.org>
4514 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
4515 from Tadziu Hoffmann.
4517 2004-08-03 Werner LEMBERG <wl@gnu.org>
4519 * doc/meref.me: Document `_M' register.
4521 2004-08-03 Martin Husemann <martin@duskware.de>
4523 Make hpftodit work correctly on big-endian systems.
4525 * src/utils/hpftodit/hpftodit.cpp (File): New method
4526 `get_uint32(char *)'.
4527 (entry): New member `orig_value'.
4528 (read_tags): Use new method.
4529 (output_font_name, read_and_output_pcltypeface, dump_ascii):
4532 2004-08-01 Werner LEMBERG <wl@gnu.org>
4534 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
4535 are already in X11's `macros.t' file.
4537 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
4539 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4541 (read_and_output_pcltypeface): Handle strings with length <= 4.
4543 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
4545 * tmac/s.tmac (pg@top): Don't save `PO' register.
4546 (pg*end-col, pg*end-page): Directly use `PO' register.
4548 2004-07-27 Werner LEMBERG <wl@gnu.org>
4550 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4552 * src/preproc/refer/refer.cpp (output_references): Check for
4554 * src/preproc/refer/refer.man: Improve documentation of
4555 `bibliography' command.
4557 2004-07-26 Werner LEMBERG <wl@gnu.org>
4559 Add requests `fcolor' and `gcolor'.
4561 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4563 (init_env_requests): Add `fcolor' and `gcolor'.
4565 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4567 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4568 (Colors): Document new requests.
4570 2004-07-24 Werner LEMBERG <wl@gnu.org>
4572 Add support for fractional point sizes in ms macros. A value for
4573 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4574 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4576 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4577 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4579 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4580 Registers), NEWS: Document it.
4582 2004-07-19 Werner LEMBERG <wl@gnu.org>
4584 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4586 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4587 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4589 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4591 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4592 * tmac/groff_mdoc.man: Updated.
4594 2004-07-05 Werner LEMBERG <wl@gnu.org>
4596 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4597 documentation of `hcode'.
4599 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4601 Improve appearance of arrows in pic.
4603 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4605 Use two line segments for drawing non-filled arrow head.
4606 (line_object::print, spline_object::print): Shorten line length to
4607 avoid arrow sticking.
4608 (arc_object::print): Take arrow direction into account.
4610 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4612 * tmac/groff_www.man: Update documentation of .MPIMG.
4614 2004-07-03 Werner LEMBERG <wl@gnu.org>
4616 * tmac/an-old.tmac (RI): Always start with font `R'.
4617 (RI, IR): Properly end with font `R'.
4619 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4621 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4622 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4623 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4624 Don't pass more than six arguments to .R, .I, .B, etc., for
4625 compatibility with traditional troff macros.
4627 2004-07-02 Werner LEMBERG <wl@gnu.org>
4629 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4630 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4632 (PUSH_COMP_MODE): New internal character constant.
4635 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4636 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4637 (token::next, macro::append): Handle PUSH_COMP_MODE.
4638 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4639 POP_GROFFCOMP after each of the decoded arguments to make them
4640 independent from the compatibility mode status.
4641 (comp_mode): Add `COMP_ENABLE'.
4642 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4643 (define_string, append_string, define_macro, define_indirect_macro,
4644 append_macro, append_indirect_macro): Handle `compatible_flag'.
4645 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4647 * man/groff_diff.man, doc/groff.texinfo: Updated.
4649 2004-07-01 Werner LEMBERG <wl@gnu.org>
4651 * doc/groff.texinfo: Improve documentation of `hcode'.
4652 Use @documentencoding and convert document to latin-1; to do that
4653 make latin characters active and assign proper macros (within a
4654 @tex...@end tex environment).
4655 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4656 * doc/Makefile.sub (groff): Ditto.
4658 2004-06-29 Werner LEMBERG <wl@gnu.org>
4660 Implement two new conditional operators `F <name>' and `S <name>'
4661 which check whether <name> is a valid font or style, respectively.
4663 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4664 (text_file::text_file): Updated.
4665 (text_file::error): Don't emit message if `silent' is set.
4666 (font::load_font): Add optional third argument (which is directly
4668 (font::load): Add optional second argument to check the header of
4669 a font only, without emitting warning or error messages.
4670 * src/include/font.h (font): Updated.
4672 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4674 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4675 fourth argument to check a font without mounting.
4676 (check_font, check_style): New functions.
4677 * src/roff/troff/node.h: Updated.
4679 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4682 2004-06-27 Werner LEMBERG <wl@gnu.org>
4684 Implement new string-valued register `.sty' to return the current
4687 * env.cpp (environment::get_style_name_string): New function.
4688 (init_env_requests): Add `.sty' register.
4689 * env.h (environment): Updated.
4690 * node.cpp (font_info): Make `get_style_name' a friend.
4691 (get_style_name): New function.
4694 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4697 2004-06-15 Werner LEMBERG <wl@gnu.org>
4699 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4702 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4704 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4705 and \n[mo] to avoid dependency on current date.
4707 2004-06-08 Werner LEMBERG <wl@gnu.org>
4709 * Makefile.sub (install_data): New target.
4711 2004-06-04 Werner LEMBERG <wl@gnu.org>
4713 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4715 2004-06-03 Werner LEMBERG <wl@gnu.org>
4717 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4719 (install_data): Add $(srcdir).
4721 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4724 2004-06-02 Werner LEMBERG <wl@gnu.org>
4726 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4727 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4728 Add test for Xmu library.
4729 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4730 GROFF_APPRESDIR_DEFAULT): New macros.
4732 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4733 and GROFF_APPRESDIR_DEFAULT.
4735 * configure: Regenerated.
4737 * Makefile.in (appresdir): New variable.
4738 (MDEFINES): Add appresdir.
4740 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4742 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4744 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4745 `$(srcdir)/eign', not `eign'.
4747 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4749 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4750 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4751 Protect (g)xditview with `\%' to avoid hyphenation.
4752 Other minor formatting.
4754 2004-06-01 Werner LEMBERG <wl@gnu.org>
4756 Integrate gxditview into groff's standard directory hierarchy.
4758 * src/xditview/*: Moved to ...
4759 * src/devices/xditview/*: Here.
4760 Moved DviChar.h and XFontName.h to src/include.
4761 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4762 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4763 Moved xtotroff.c to new directory src/utils/xtotroff.
4764 Provide proper Makefile.sub files (reusing the stuff from
4766 DESC renamed to DESC.in.
4767 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4768 Converted everything from K&R to ANSI C.
4769 Decorated with const where appropriate.
4770 Cast string constants with `String' and `char *' where appropriate.
4771 Made it compile with C++ (used as a C compiler).
4772 Removed other minor compiler warnings.
4774 * src/devices/xditview/device.c: Include config.h, string.h, and
4776 Don't declare `exit', `strtok', `strchr', and `getenv'.
4779 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4782 * src/devices/xditview/xditview.c: Include config.h.
4783 Include stdio.h earlier.
4784 Protect declaration of `popen' and `pclose' with
4785 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4786 Replace `caddr_t' with `XtPointer'.
4787 (MakePromptFunc): New typedef.
4788 (DoPrint): Use RETSIGTYPE.
4789 (promptfunction): Change type to MakePromptFunc.
4790 (MakePrompt): Use MakePromptFunc for third argument.
4793 * src/devices/xditview/ad2c: Add casts to `String'.
4795 * src/include/XFontName.h (XFontNameString): Don't use array
4797 Add prototypes for `XParseFontName', `XFormatFontName',
4798 `XCompareFontName', and `XCopyFontName'.
4800 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4803 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4804 Don't declare `XParseFontName' and `XFormatFontName'.
4806 (main): Remove `optind' and `optarg'.
4808 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4809 (to select programs which need X).
4810 Make XDEVIDIRS depend on `FORCE'.
4811 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4813 (MDEFINES): Updated.
4814 (LIBDIRS): Use XLIBDIRS.
4815 (CPROGDIRS): Use XPROGDIRS.
4816 (DEVDIRS): Remove font directories for gxditview.
4817 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4818 (EXTRADIRS): Remove src/xditview.
4820 * Makefile.sub (DISCLEANFILES): Updated.
4822 * Makefile.comm (LIBXUTIL): New variable.
4823 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4824 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4826 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4828 * aclocal.m4 (GROFF_X11): New function.
4830 * configure.ac: Call GROFF_X11.
4831 Don't create src/xditview/Imakefile.
4832 Don't emit notice how to build gxditview.
4834 * configure: Regenerated.
4836 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4838 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4840 * Makefile.in (CPPFLAGS): Define.
4841 (MDEFINES): Add CPPFLAGS.
4843 2004-05-27 Werner LEMBERG <wl@gnu.org>
4845 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4847 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4849 Fix problems with `friend name injections'.
4851 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4852 make_script_box), src/roff/troff/div.h (end_diversions),
4853 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4856 2004-05-25 Bernd Warken <bwarken@mayn.de>
4858 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4860 2004-05-25 Werner LEMBERG <wl@gnu.org>
4862 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4863 src/libs/libgroff/color.cpp: Include lib.h.
4865 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4867 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4868 through Forte 6u1, and for how to get GNU make on Solaris.
4870 2004-05-24 Werner LEMBERG <wl@gnu.org>
4872 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4875 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4877 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4880 2004-05-14 Werner LEMBERG <wl@gnu.org>
4882 * REVISION: Set to 2.
4884 * aclocal.m4 (GROFF_STDINT_H): Removed.
4885 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4887 * configure.ac: Updated.
4888 * configure, src/include/config.hin: Regenerated.
4890 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4891 inttypes.h conditionally.
4893 2004-05-13 Werner LEMBERG <wl@gnu.org>
4895 Version 1.19.1 released
4896 =======================
4898 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4900 * src/preproc/refer/label.y (same_author_last_name,
4901 same_author_name): Handle empty sort keys.
4903 2004-05-10 Werner LEMBERG <wl@gnu.org>
4905 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4908 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4909 doc-str-Lb-librt): Reset font.
4910 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4911 Provide `doc-str-Lb' to reset font.
4912 * tmac/groff_mdoc.man: Updated.
4914 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4916 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4917 snprintf versions which don't conform to ANSI C 99 (this is,
4918 counting the string's trailing null byte in the return value).
4920 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4922 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4923 that all implementations of sprintf handle null pointers correctly.
4925 2004-05-04 Werner LEMBERG <wl@gnu.org>
4927 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4928 Document `.U' register.
4930 * src/roff/troff/env.cpp (environment::mark_last_line)
4931 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4933 2004-05-04 Larry Kollar <kollar@alltel.net>
4935 New read-only register `.U'; it returns 1 in safer mode and 0
4938 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4941 2004-05-03 Werner LEMBERG <wl@gnu.org>
4943 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4945 2004-04-17 Werner LEMBERG <wl@gnu.org>
4947 * src/include/font.h (font): Use `int' for ch_index.
4948 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4949 font::compact): Updated.
4951 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4954 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4955 (hyphen_word): Fix compiler warnings.
4956 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4959 (get_delim_number, get_line_arg): Change second argument type to
4961 (macro_header::copy, token::next, do_define_string,
4962 do_define_character, substring_request, asciify_macro,
4963 unformat_macro, read_size, non_interpreted_node::interpret,
4964 while_request, main: Fix compiler warnings.
4965 (read_color_draw_node): Initialize `col'.
4967 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4968 `start_col' and `end_col' of type `int'.
4969 (vertical_rule): Make `col' of type `int'.
4971 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4974 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4976 (format_serial): Use them to remove dependency on ASCII.
4978 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4980 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4983 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4985 (glyph): Change type of `hpos' to `int'.
4987 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4988 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4990 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4992 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4994 2004-04-16 Werner LEMBERG <wl@gnu.org>
4996 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4997 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4998 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4999 `double' instead of `float' everywhere.
5000 * src/preproc/grn/main.cpp: Use `double' instead of `float'
5002 (main): Add return value.
5003 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
5005 Update all user functions.
5007 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
5008 src/preproc/eqn/box.h, src/preproc/pic/object.h,
5009 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
5010 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
5011 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
5012 src/roff/troff/input.cpp, src/roff/troff/request.h,
5013 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
5016 * src/utils/indxbib/signal.c: Include stdlib.h.
5018 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5020 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
5021 before the first page.
5023 2004-04-14 Thomas Klausner <wiz@netbsd.org>
5025 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
5026 (doc-operating-system-*): Updated.
5027 * tmac/doc-syms (doc-str-St-*): Various small fixes.
5028 (doc-str-Lb-*): Add more library names.
5030 2004-04-10 Art Haas <ahaas@airmail.net>
5032 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
5035 2004-04-09 Art Haas <ahaas@airmail.net>
5037 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
5039 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
5041 * arch/misc/shdeps.sh: Generate better comment for sed script.
5043 2004-04-08 Art Haas <ahaas@airmail.net>
5045 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
5046 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
5047 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
5048 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
5049 (polyfill), src/preproc/grn/main.cpp (polyfill),
5050 src/preproc/refer/command.cpp (command_table),
5051 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
5052 gcc 3.5 doesn't like).
5054 2004-04-08 Werner LEMBERG <wl@gnu.org>
5056 Removing many compiler warnings. groff should now compile with
5057 a C++ compiler used for C files also. [Simple variable renamings
5058 to avoid shadowing aren't logged in detail.]
5060 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
5061 (draw_dvi_printer::draw) ['c']: Enclose in block.
5063 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
5064 (page::add_line): Fix typos.
5065 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
5067 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
5068 Some local variable renamings.
5069 * src/devices/grolbp/lbp.h: Some local variable renamings.
5071 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
5074 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
5075 Remove redundant local variable declaration.
5076 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
5077 Don't use `caddr_t' but `void *'.
5078 Enclose functions with `extern "C"' for C++.
5080 * src/libs/libdriver/input.cpp (remember_filename,
5081 remember_source_filename): Use cast for string constant.
5083 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
5084 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
5085 src/libs/libgroff/geometry.cpp: Some local variable renamings.
5086 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
5088 Enclose functions with `extern "C"' for C++.
5089 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
5090 (needs_quoting): Return `int'.
5091 (quote_arg): Add proper casts to malloc and realloc.
5092 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
5093 various MS Windows environments.
5094 (spawnvp_wrapper): Add proper cast to malloc.
5096 * src/preproc/eqn/box.h: Remove redundant declarations of
5097 `make_script_box', `make_mark_box' and `make_lineup_box'.
5098 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
5099 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
5102 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
5103 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
5104 (dx, dy): Renamed functions to...
5105 (deltax, deltay): This.
5106 * src/preproc/grn/main.cpp: Some local variable renamings.
5107 (deffont): Add `const'.
5108 (initpic, conv): Use cast for string constant.
5110 * src/preproc/html/pre-html.cpp: Some local variable renamings.
5111 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
5112 (char_buffer::run_output_filter): Second argument is unused.
5113 * src/preproc/html/pushback.cpp: Some local variable renamings.
5115 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
5116 * src/preproc/pic/object.cpp: Some local variable renamings.
5118 * src/preproc/refer/label.y (lookup_label): Remove redundant
5119 declaration of local variable.
5121 * src/preproc/soelim.cpp: Remove redundant declaration of
5122 `interpret_lf_args'.
5124 * src/preproc/tbl/main.cpp: Some local variable renamings.
5126 * src/roff/groff/groff.cpp (main): Use cast for string constant.
5127 * src/roff/groff/pipeline.c: Enclose declarations of `error',
5128 `c_fatal', and `i_to_a' with `extern "C"' for C++.
5129 Don't use C++-style comments.
5131 * src/roff/troff/env.h: Remove redundant declaration of `title'.
5132 * src/roff/troff/node.h, src/roff/troff/env.cpp,
5133 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
5135 * src/roff/troff/div.h: Remove redundant declaration of
5137 * src/roff/troff/troff.h: Remove redundant declaration of
5139 * src/roff/troff/input.cpp: Remove redundant declaration of
5140 `handle_first_page_transition' and `process_input_stack'.
5142 * src/utils/hpftodit.cpp: Some local variable renamings.
5144 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
5146 Don't define RETSIGTYPE.
5147 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
5149 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
5150 (error): Use `const' in argument.
5151 (main): Remove redundant declaration of `optind'.
5152 Move declaration of `Version_string' to top-level.
5154 * PROBLEMS: Document difficulties compiling signal.c if a C++
5155 compiler is used for C.
5157 2004-04-07 Werner LEMBERG <wl@gnu.org>
5159 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
5161 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
5163 Make scripts like nroff.sh and neqn.sh portable across various
5164 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
5165 non-POSIX path separators. The idea is to extend those scripts to
5166 decide at run-time (of the script) which path separator to use.
5168 * arch/misc/Makefile.sub: New file.
5169 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
5170 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
5171 a proper definition of the variable `GROFF_RUNTIME'.
5173 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
5174 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
5175 (PROGDEPDIRS): New variable.
5177 (PROGDIRS): Add PROGDEPDIRS.
5179 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
5180 Don't substitute @SEP@ and @BINDIR@.
5181 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
5182 (PATH): Use GROFF_RUNTIME.
5184 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
5185 Don't substitute @SEP@ and @BINDIR@.
5186 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
5187 (PATH): Use GROFF_RUNTIME.
5189 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5191 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
5192 Cygwin which doesn't handle stderr correctly.
5194 2004-03-08 Werner LEMBERG <wl@gnu.org>
5196 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
5197 against empty argument. Problem reported by <cgd@broadcom.com>.
5199 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5201 * Makefile.in (SEP): Replaced with...
5202 (RT_SEP, SH_SEP): Separators for the target platform's native path
5203 separator and the build environment, respectively.
5204 (fontpath, tmacpath): Use RT_SEP.
5205 (MDEFINES): Updated.
5207 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
5208 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
5209 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
5211 2004-03-05 Werner LEMBERG <wl@gnu.org>
5213 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
5214 reduce alignment problems with newer printers which use built-in
5215 TrueType fonts (instead of the older Intellifonts). The ideal
5216 solution is to provide a second set of groff metric files, but this
5217 is extremely time-consuming to produce, given that HP's metric
5218 files are very rudimentary.
5220 2004-03-01 Werner LEMBERG <wl@gnu.org>
5222 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
5223 s/operand/argument/ in error message.
5225 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5227 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
5230 2004-03-01 Antti Kantee <pooka@netbsd.org>
5232 * tmac/s.tmac (XE): Fix error message.
5234 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
5236 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
5239 * src/roff/groff/pipeline.c: Declare strcasecmp.
5240 (run_pipeline) [_WIN32]: Use function name variants which don't
5242 Fix stream handling.
5244 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
5246 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
5247 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
5248 for platforms which use the native Win32 runtime libraries.
5249 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
5251 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
5252 QUOTE_ARG_REALLOC_ERROR): Fix string.
5254 * src/preproc/html/pre-html.cpp: Remove declaration of
5256 Don't use __MINGW32__.
5257 s/DEBUG_FILE/DEBUG_FILE_DIR/.
5258 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5259 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5260 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5261 calls to `set_redirection' and `WAIT'.
5262 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5263 Fix calls to `set_redirection' and `save_and_redirect'.
5264 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5265 to `set_redirection' and `save_and_redirect'.
5266 (usage): Fix message.
5267 (makeTempFiles, main): Use `DEBUG_FILE'.
5269 2004-02-21 Werner LEMBERG <wl@gnu.org>
5271 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5273 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
5275 * src/libs/libgroff/quotearg.c: New file, providing proper argument
5276 quoting for MSVC's spawn* and exec* functions.
5277 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5278 spawnvp with proper quoting for MSVC.
5280 * src/libs/libgroff/assert.cpp (program_name),
5281 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5282 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5284 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5286 * src/include/error.h (program_name): Declare as `extern "C"'.
5287 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5289 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
5291 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5293 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5295 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
5297 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5299 (sbasename) [__MSDOS__ || ...]: New function.
5300 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5302 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5303 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5305 Use STDOUT_FILENO instead of hardcoded file handle.
5306 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5308 2004-02-19 Werner LEMBERG <wl@gnu.org>
5310 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5311 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5313 2004-02-18 Werner LEMBERG <wl@gnu.org>
5315 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5316 new font and mapping files.
5318 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
5319 Keith Marshall <keith.d.marshall@ntlworld.com>
5321 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5322 an input pipe. This is needed for the MSVC compiler to make troff's
5325 * src/roff/troff/div.cpp: Include nonposix.h.
5326 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5328 2004-02-17 Werner LEMBERG <wl@gnu.org>
5330 * font/devlj4/generate/special.awk: New script.
5331 * font/devlj4/generate/Makefile (S): Use special.awk.
5332 * font/devlj4/*: Regenerated, including the following new files:
5333 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5334 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5335 * NEWS: Document new lj4 fonts and revised hpftodit.
5337 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
5339 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5341 2004-01-25 Werner LEMBERG <wl@gnu.org>
5343 * src/libs/libgroff/progname.cpp: Replaced with...
5344 * src/libs/libgroff/progname.c: New file.
5345 * src/libs/libgroff/Makefile.sub: Updated accordingly.
5347 2004-01-17 Werner LEMBERG <wl@gnu.org>
5349 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5351 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
5353 * font/devlj4/generate/wingdings.map,
5354 font/devlj4/generate/symbol.map: Include unnamed glyphs.
5355 Use groff glyph names where possible.
5356 * src/devices/grolj4/lj4_font.man: Minor updates.
5358 2004-01-13 Werner LEMBERG <wl@gnu.org>
5360 * tmac/www.tmac (DC): Handle TTY devices.
5362 * doc/webpage.ms: Document viewCVS from ffii.org.
5363 * NEWS, README: Updated.
5365 * src/roff/groff/groff.man: Mention lj4_font man page.
5367 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5369 (FONTS): Add SYMBOL and WINGDINGS.
5370 (SYMBOL, WINGDINGS): New targets.
5372 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
5374 * src/devices/grolj4/lj4_font.man: New man page.
5375 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5376 * src/devices/grolj4.man: Mention lj4_font man page.
5378 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5379 * src/utils/hpftodit/hpftodit.man: Document it.
5381 Remove details about fonts (which are now in lj4_font.man).
5383 * font/devlj4/generate/symbol.map,
5384 font/devlj4/generate/wingdings.map: New files.
5386 2004-01-12 Werner LEMBERG <wl@gnu.org>
5388 * README: Mention ffii's viewcvs access.
5390 2004-01-09 Werner LEMBERG <wl@gnu.org>
5392 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5394 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
5396 Revert most of the change from 2004-01-03 to better control used
5399 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5400 (text_symbol_sets, special_symbol_sets): New arrays.
5401 (symbol_set_table): New global variable.
5402 (read_symbol_sets): Use search order given in the text_symbol_sets
5403 and special_symbol_sets arrays. If command line flag -a is not
5404 given, search both arrays.
5405 (output_charset): Require x_height_tag only for command line flag -i.
5407 2004-01-06 Werner LEMBERG <wl@gnu.org>
5409 Implement string-valued registers \n[.m] and \n[.M] to return the
5410 name of the current drawing and background color, respectively.
5412 * src/roff/troff/symbol.h: Moved to...
5413 * src/include/symbol.h: Here.
5414 Small fixes to make it work outside of the `troff' directory.
5415 * src/roff/troff/symbol.cpp: Moved to...
5416 * src/libs/libgroff/symbol.cpp: Here.
5417 Small fixes to make it work outside of the `troff' directory.
5419 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5420 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5423 * src/include/color.h: Include symbol.h.
5424 (color): Add new field `nm'.
5425 * src/libs/libgroff/color.cpp (color::color): Updated.
5427 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5428 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5429 src/roff/troff/reg.cpp: Don't include symbol.h.
5431 * src/roff/troff/env.cpp: Don't include symbol.h.
5432 (environment::get_glyph_color_string,
5433 environment_get_fill_color_string): New member functions.
5434 (init_env_requests): Handle `.m' and `.M' registers.
5435 * src/roff/troff/input.cpp: Don't include symbol.h.
5436 (default_symbol): Moved to symbol.cpp/symbol.h.
5437 (do_glyph_color, do_fill_color, define_color): Pass symbol name
5438 to color constructor.
5439 * src/roff/troff/env.h: Updated.
5441 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5442 Document new registers.
5444 2004-01-05 Werner LEMBERG <wl@gnu.org>
5446 * src/roff/troff/node.cpp (space_node::get_breakpoints,
5447 space_node::nbreaks): Protect against zero `next' field.
5449 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
5451 In hpftodit, use the symbol sets offered in the TFM.
5453 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5454 (symbol_set, text_symbol_sets, special_symbol_sets,
5455 symbol_set_table): Removed.
5456 (get_printcode): Removed.
5457 (read_symbol_sets): Initialize `symbol_set' field with
5459 Simplify code to just use the `kind' value.
5460 (output_charset): Improve output formatting.
5461 (dump_symbols): Simplified.
5463 2004-01-02 Werner LEMBERG <wl@gnu.org>
5465 * font/devlj4/generate/text.map: Add more MSL numbers.
5467 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
5469 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5470 (text_symbol_sets): Add more symbol sets.
5471 (debug_flag): New static variable (moved from `main').
5472 (get_printcode, show_symset): New functions.
5473 (main): Remove `debug_flag'.
5474 (output_charset): Use `show_symset'.
5475 (dump_symbols): Use `show_symset'.
5476 Print symsets for all glyphs.
5477 (read_map): Actually call `unicode_to_ucode_make' but this time
5480 2004-01-01 Werner LEMBERG <wl@gnu.org>
5482 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5483 Fix placement of comments.
5485 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
5487 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5488 option `-d' is given.
5489 (output_charset): Improve warning messages to give more information.
5490 (dump_symbols): Make information more precise.
5492 (read_map): Don't call unicode_to_ucode_name; the glyph names must
5493 appear as-is and shouldn't be decomposed.
5495 2003-12-31 Werner LEMBERG <wl@gnu.org>
5497 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5498 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5499 (FONTS): Add TrueType font families Arial and Times New Roman.
5500 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5501 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5504 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
5506 * test-groff.in (SEP): Quote value.
5507 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5508 `tem' to `char*' to avoid deallocation of a pointer to a constant
5509 object which some compilers don't like.
5511 2003-12-31 Werner LEMBERG <wl@gnu.org>
5513 * font/devlj4/generate (text.map, special.map): Rewritten to work
5514 with the new hpftodit version.
5516 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
5518 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5519 set and 8bit character code for all glyphs also.
5521 2003-12-30 Werner LEMBERG <wl@gnu.org>
5523 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5525 2003-12-29 Werner LEMBERG <wl@gnu.org>
5527 More fixes for MSVC compiler.
5529 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5531 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5532 STDERR_FILENO) [_MSC_VER]: Define conditionally.
5533 (getpid) [_MSC_VER]: Remove.
5534 Include direct.h and process.h conditionally.
5536 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5537 parentheses for a_delete.
5539 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5541 * test-groff: Replaced with...
5542 * test-groff.in: This new template to handle path separator
5545 * configure.ac: Check for direct.h and process.h.
5546 Generate test-groff script.
5547 * configure, src/include/config.hin: Regenerated.
5549 2003-12-28 Werner LEMBERG <wl@gnu.org>
5551 Add integral extension glyph.
5552 Add new option `-x' to afmtodit to suppress use of built-in AGL.
5554 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5556 * font/devps/generate/textmap: Provide entry for `integralex' to
5557 override (old) PUA value of the AGL.
5558 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5559 * font/devps/*: Regenerated.
5561 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5562 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5564 2003-12-27 Werner LEMBERG <wl@gnu.org>
5566 Add forgotten `coproduct' symbol (already available for DVI).
5568 * font/devhtml/R.proto, font/devps/generate/textmap,
5569 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5570 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5571 U+2210 (\[coproduct]).
5573 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5575 hpftodit has been extended to handle TrueType metric files and
5576 more glyphs. See hpftodit.man for more details.
5578 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5579 ctype.h, and unicode.h.
5580 s/msl/charcode/ everywhere since we now handle Unicode values also.
5581 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5582 Use it where appropriate.
5583 (MULTIPLIER): Replaced with...
5584 (multiplier): New global static variable.
5586 (tag_type): Add more TFM tags.
5587 (tag_name): New array.
5588 (ENUM_TYPE, FLOAT_TYPE): Removed.
5589 (BYTE_TYPE): New value assigned.
5590 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5591 (text_symbol_sets, special_symbol_sets): Extended to cover more
5593 (check_type): Add return value.
5594 (check_units): Add parameters to get ppi and upem values.
5595 Handle TrueType TFM data.
5596 (output_font_name): New function.
5597 (output_charset): Add parameter to handle TFM type.
5598 Handle TrueType TFMs also.
5599 (em_fract): New macro.
5600 (dump_tags): Be much more verbose and handle more tags.
5601 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5602 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5604 (read_map): Add parameter to handle TFM type.
5605 Handle both MSL and Unicode mappings.
5606 (main): Add two new command line options `-a' and `-q'.
5607 Updated to make use of new functions.
5610 * src/utils/hpftodit/hpuni.cpp: New file.
5612 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5615 2003-12-25 Werner LEMBERG <wl@gnu.org>
5617 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5619 2003-12-24 Werner LEMBERG <wl@gnu.org>
5621 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5622 by Michail Vidiassov <master@iaas.msu.ru>.
5624 2003-12-20 Werner LEMBERG <wl@gnu.org>
5626 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5628 Add missing latin-2 glyphs.
5629 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5631 * tmac/troffrc: Load `composite.tmac' earlier.
5633 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5634 u00{53,73}_0327, and u0049_0307.
5635 * tmac/X.tmac: Add u00{47,67}_0306.
5636 * tmac/tty-char.tmac: Use composite glyph names for readability.
5640 * src/include/unicode.h: Remove `extern' keywords.
5642 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5644 * tmac/latin5.tmac: New file.
5646 2003-12-19 Werner LEMBERG <wl@gnu.org>
5648 Add some glyphs needed for Turkish.
5650 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5653 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5654 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5655 u00{53,73}_0327, and u0049_0307.
5657 2003-12-18 Werner LEMBERG <wl@gnu.org>
5659 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5661 Remove trailing zeros.
5663 2003-12-17 Werner LEMBERG <wl@gnu.org>
5665 Make \? transparent to end-of-sentence recognition.
5667 * src/roff/troff/input.cc (non_interpreted_node): Add
5668 `ends_sentence' member function.
5670 2003-12-16 Werner LEMBERG <wl@gnu.org>
5672 * doc/groff.texinfo: Document `dt' request correctly.
5673 Other minor typographical improvements.
5675 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5677 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5679 2003-12-10 Richard Stallman <rms@gnu.org>
5681 * LICENSE: Better wording.
5683 2003-12-09 Werner LEMBERG <wl@gnu.org>
5685 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5686 * configure, NEWS: Updated.
5688 2003-12-08 Werner LEMBERG <wl@gnu.org>
5690 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5692 2003-12-07 Bernd Warken <bwarken@mayn.de>
5696 2003-12-07 Werner LEMBERG <wl@gnu.org>
5698 * INSTALL: Improved.
5700 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5702 Use path separator character of target platform for compiled-in
5705 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5706 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5707 * configure: Regenerated.
5708 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5710 2003-12-05 Werner LEMBERG <wl@gnu.org>
5712 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5713 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5715 2003-12-04 Bernd Warken <bwarken@mayn.de>
5717 * LICENSE: New file.
5719 2003-12-03 Werner LEMBERG <wl@gnu.org>
5721 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5722 ligatures present in AFM files since groff currently only
5723 understands some standard ligatures and nothing else.
5725 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5727 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5730 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5733 Don't use Unix wait flags.
5735 2003-12-02 Werner LEMBERG <wl@gnu.org>
5737 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5738 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5739 src/roff/troff/uniuni.cpp: Moved to...
5740 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5741 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5742 src/libs/libgroff/uniuni.cpp: Here.
5744 * src/include/Makefile.sub.old (HDRS),
5745 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5746 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5748 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5750 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5754 2003-12-01 Werner LEMBERG <wl@gnu.org>
5756 * groff.texinfo: Document special behaviour of `.vs 0'.
5757 Improve documentation of `cflags' request.
5760 2003-11-29 Werner LEMBERG <wl@gnu.org>
5762 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5763 * font/devlj4/CORONET: Regenerated.
5765 2003-11-24 Werner LEMBERG <wl@gnu.org>
5767 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5768 if processing hyphenation patterns in traditional mode.
5769 Improve error messages.
5771 2003-11-20 Werner LEMBERG <wl@gnu.org>
5773 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5774 troff_output_file::put_char): Fix type of local variable `c'.
5776 2003-11-19 Werner LEMBERG <wl@gnu.org>
5778 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5780 (i_to_a): Removed. libgroff already provides this function.
5781 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5783 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5785 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5788 2003-11-17 Werner LEMBERG <wl@gnu.org>
5790 * COPYING: Use correct version.
5792 2003-11-11 Werner LEMBERG <wl@gnu.org>
5794 LynxOS 4.0.0 doesn't declare vfprintf.
5796 * configure.ac: Check for vfprintf.
5797 * configure: Regenerated.
5798 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5799 * src/include/config.hin: Regenerated.
5801 2003-11-10 Werner LEMBERG <wl@gnu.org>
5803 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5805 * configure.ac: Check for vsnprintf.
5806 * configure: Regenerated.
5807 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5809 * src/include/config.hin: Regenerated.
5811 2003-11-09 Werner LEMBERG <wl@gnu.org>
5813 * aclocal.m4: Updated syntax to autoconf 2.59.
5814 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5815 Don't check for gsos2.
5816 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5817 working abs_top_srcdir and abs_top_builddir.
5819 * configure.ac: Updated syntax to autoconf 2.59.
5820 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5821 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5822 * configure: Regenerated.
5824 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5825 s/@groff_top_builddir@/@abs_top_builddir@/.
5827 * src/roff/groff/pipeline.c (xstrsignal):
5828 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5830 2003-11-07 Werner LEMBERG <wl@gnu.org>
5832 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5833 make start angle smaller than end angle to circumvent a bug in tpic
5834 handling of some versions of dvipdfm (and dvipdfmx).
5836 2003-10-30 Werner LEMBERG <wl@gnu.org>
5838 * src/devices/grops/grops.man: Improve section on creating EPS.
5840 2003-10-29 Werner LEMBERG <wl@gnu.org>
5842 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5845 2003-10-28 Werner LEMBERG <wl@gnu.org>
5847 * doc/groff.texinfo: Fix documentation of `.if'.
5849 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5851 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5852 the form `uniXXXX' also.
5854 2003-10-27 Werner LEMBERG <wl@gnu.org>
5856 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5857 contrib/pic2graph/pic2graph.sh: Implement secure management of
5859 Pass `-P-pletter' to groff to avoid data outside of the converted
5860 area -- some versions of `convert' (for example 5.3.8) don't check
5861 the bounding box of the image but always use a fixed image size
5862 (letter paper format).
5863 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5864 contrib/pic2graph/pic2graph.man: Updated.
5866 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5868 2003-10-26 Werner LEMBERG <wl@gnu.org>
5870 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5871 troff_output::simple_ellipse, troff_output::simple_arc,
5872 troff_output::simple_line, troff_output::simple_spline,
5873 troff_output::simple_polygon): Insert a space before arguments.
5874 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5875 latter doesn't produce a node, so the following `.sp -1' would do
5877 Don't emit `.sp -1' after \M. This also doesn't produce a token
5878 (and we don't have to care about compatibility mode).
5879 (troff_output::set_color, troff_output::reset_color): Don't emit
5880 `.sp -1' after \M and \m.
5882 * src/roff/troff/input.cpp (old_have_input): New global variable.
5883 (input_stack::get): Handle `old_have_input'.
5884 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5885 `trapping_blank_line' depending on `old_have_input', not
5888 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5890 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5891 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5892 default directory names for temporary files.
5893 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5895 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5896 [__MSDOS__] (run_pipeline): Honour environment variables.
5897 Don't use `tmpnam' but `tempnam' to work around messy
5900 * README.MinGW: New file.
5902 2003-10-16 Werner LEMBERG <wl@gnu.org>
5904 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5905 `(*t)->next' without testing validity of `*t'.
5906 (usage): Make it more readable.
5908 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5910 Make html device run under both MS-DOS and Win32.
5912 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5913 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5914 spawn or fork+exec has to be used, and whether parent must sleep
5915 until the child process terminates. Used in
5916 `char_buffer::run_output_filter'.
5917 (copyofstdoutfd): Removed.
5918 (char_buffer): Replace `write_file_html' and `write_file_troff'
5919 member functions with `emit_troff_output' and `run_output_filter'.
5920 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5922 (replaceFd): Replaced with...
5923 (set_redirection): New auxiliary function.
5924 (waitForChild): Replaced with...
5925 (save_and_redirect): New auxiliary function for.
5927 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5930 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5932 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5933 (GROFF_LIBC): New function.
5934 * configure.ac: Call GROFF_LIBC.
5936 * configure: Regenerated.
5938 * src/include/lib.h: Handle __MINGW32__.
5939 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5940 Add macro for `pipe'.
5943 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5946 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5949 2003-10-12 Werner LEMBERG <wl@gnu.org>
5951 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5952 src/roff/troff/input.cc (usage): Updated.
5954 * NEWS, doc/groff.texinfo: Updated.
5956 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5958 * src/libs/libgroff/searchpath.cpp
5959 (search_path::open_file_cautious): New function which also handles
5960 `-' as stdin and stdout depending on the access mode.
5961 * src/include/searchpath.h (search_path): Updated.
5963 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5964 * src/devices/grops/ps.h: Include `searchpath.h'.
5965 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5966 Open resource file with `include_search_path.open_file_cautious'.
5967 * src/devices/grops/grops.man: Document new `-I' switch.
5969 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5970 (main), src/devices/grolj4/lj4.cpp (main),
5971 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5973 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5975 (include_search_path): New global variable.
5976 (include_path_append): Removed.
5977 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5978 (do_file): Simplify, using new
5979 `include_search_path.open_file_cautious'.
5981 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5983 (main): Pass arguments to `-I' to both troff and devices.
5984 Improve handling of `-V'.
5985 * src/roff/groff/groff.man: Document changes to -I and -V.
5987 * src/roff/troff/input.cpp (include_search_path): New global
5989 (next_file, source, ps_bbox_request, transparent_file,
5990 process_input_file): Use new
5991 `include_search_path.open_file_cautious'.
5992 (main) Handle `-I' switch.
5993 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5994 Use new `include_search_path.open_file_cautious'.
5995 * src/roff/troff/node.h: New extern symbol `include_search_path'.
5996 * src/roff/troff/troff.man: Document new `-I' switch.
5998 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
6000 Support multiple calls of .Lb in LIBRARY section.
6002 * tmac/doc-common (doc-in-library-section): New register.
6003 (doc-section-library): New string.
6004 (Sh): Set `doc-in-library-section'.
6006 * tmac/doc-syms (Lb): Insert breaks before and after arguments
6007 if in LIBRARY section.
6008 * tmac/doc.tmac (doc-save-global-vars): Updated.
6009 * NEWS, tmac/groff_mdoc.man: Updated.
6011 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
6013 * tmac/doc-common (doc-default-operating-system): New variable.
6016 2003-09-08 Werner LEMBERG <wl@gnu.org>
6018 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
6020 2003-08-31 Werner LEMBERG <wl@gnu.org>
6022 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
6023 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
6024 $(DEVFILES) are not empty.
6025 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
6027 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
6029 * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
6030 insert SORT_SEP. With certain combinations of sort specifications,
6031 refer sorted entries in the wrong order. In particular, entries
6032 with a missing field should be be sorted before all entries that
6033 have that field, before refer looks to the next field.
6035 2003-08-23 Werner LEMBERG <wl@gnu.org>
6037 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
6038 g++ linker is used. Reported by Mark J. Reed
6039 <mark.reed@turner.com>.
6041 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
6043 Add key character `x' to tbl which makes tbl call a user-defined
6044 macro on a table cell.
6046 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
6047 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
6048 `set_modifier' after printing the compatibility request.
6049 (set_modifier): Print call to `m->macro' if not empty.
6050 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
6052 (process_format): Implement cases `x' and `X'.
6053 * src/preproc/tbl/tbl.man, NEWS: Updated.
6055 2003-08-15 Werner LEMBERG <wl@gnu.org>
6057 * doc/groff.texinfo: Minor fixes.
6059 2003-08-09 Werner LEMBERG <wl@gnu.org>
6061 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
6063 2003-08-07 Werner LEMBERG <wl@gnu.org>
6065 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
6066 argument list to nothing if there is no file to match. Use `ls' as
6067 a protection, similar to autoconf.
6069 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
6070 empty argument lists.
6072 * doc/groff.texinfo: Improve documentation how vertical spacing
6073 and line breaks interact.
6076 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
6078 2003-08-03 Werner LEMBERG <wl@gnu.org>
6080 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
6081 EPS (using eps2eps or similar programs to compute the bounding box).
6083 2003-07-24 Werner LEMBERG <wl@gnu.org>
6085 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
6086 * doc/texinfo.tex: Updated from texinfo 4.6.
6087 * README.CVS: From now on we need texinfo 4.6.
6089 2003-07-23 Werner LEMBERG <wl@gnu.org>
6091 Add requests `dei1' and `ami1' for completeness.
6093 * src/roff/troff/input.cc (calling_mode): Remove
6094 CALLING_DISABLE_COMP.
6095 (comp_mode): New enumeration.
6096 (do_define_string, define_string, define_nocomp_string,
6097 append_string, append_nocomp_string): Updated.
6098 (do_define_macro): Add third parameter.
6099 (define_macro, define_nocomp_macro, define_indirect_macro,
6100 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
6101 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
6104 (init_input_requests): Add `dei1' and `ami1'.
6106 * tmac/trace.tmac: Handle de1 and am1.
6107 (de): Improve tracing message.
6108 (am): Add missing `do'.
6111 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6112 Document new requests.
6114 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
6116 Add option -G to .MPIMG to insert a gap between text and the image.
6118 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
6119 www-finish-left-ll): Updated.
6120 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
6121 (MPIMG): Make option -L and -R optional.
6122 Implement option -G.
6124 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
6126 * src/devices/grohtml/post-html.cpp
6127 (html_printer::do_file_components): Don't use `stdout' as lvalue
6128 since it can be a macro.
6130 2003-07-22 Werner LEMBERG <wl@gnu.org>
6132 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
6133 the corresponding test in aclocal.m4.
6135 2003-07-21 Werner LEMBERG <wl@gnu.org>
6137 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
6138 names but RGB values directly. Otherwise pnmtopng depends on
6139 an external file `rgb.txt' which maps colour names to values.
6141 2003-07-20 Werner LEMBERG <wl@gnu.org>
6143 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
6144 * configure, src/include/config.hin: Regenerated.
6146 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
6148 2003-07-19 Werner LEMBERG <wl@gnu.org>
6150 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
6152 2003-07-18 Werner LEMBERG <wl@gnu.org>
6154 * *.man: Switch to non-compatibility mode temporarily if GNU
6155 syntax extensions are used in the particular man page.
6157 * PROBLEMS: Add solutions for SGR problems.
6159 2003-07-17 Werner LEMBERG <wl@gnu.org>
6161 Don't ignore grotty's command line options if \X'tty: sgr ...' is
6162 used to change the drawing scheme.
6164 * src/devives/grotty/tty.cpp (bold_flag_option,
6165 underline_flag_option, italic_flag_option, reverse_flag_option,
6166 bold_underline_mode_option): New global variables.
6167 (update_options): New function.
6168 (tty_printer::special): Call update_options.
6169 (main): Don't set xxx_flag but xxx_flag_option, then call
6172 2003-07-14 Werner LEMBERG <wl@gnu.org>
6174 Make grotty emit proper Unicode box drawing characters for -Tutf8.
6176 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
6178 (hline_char, vline_char): New global variables.
6179 (tty_printer::tty_printer): Initialize them.
6180 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
6181 horizontal and vertical lines.
6182 (crossings): New global array.
6183 (tty_printer::end_page): Use it to determine the proper crossing
6184 character for -Tutf8.
6186 2003-07-12 Werner LEMBERG <wl@gnu.org>
6188 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
6189 (HTMLDOCFILES): Revert to `pic.html'.
6190 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
6192 2003-07-11 Werner LEMBERG <wl@gnu.org>
6194 * doc/pic.ms: Improve documentation of absolute coordinates.
6195 Document absolute positioning of pictures.
6197 * NEWS: Add new pic capability.
6199 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
6201 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
6204 2003-07-07 Werner LEMBERG <wl@gnu.org>
6206 Implement support for dashed and dotted ellipses in pic. Based on
6207 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
6209 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
6210 common_output::dashed_ellipse, common_output::dotted_ellipse): New
6211 functions. Ellipse arcs are approximated with circle arcs.
6212 * src/preproc/pic/common.h (common_output): Updated.
6213 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
6215 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
6217 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
6219 2003-07-06 Werner LEMBERG <wl@gnu.org>
6221 Make grotty work on platforms which have unsigned char as the
6222 default for char. Based on a patch by Thomas Klausner
6225 * src/devices/grotty/tty.cpp (schar): New typedef.
6226 Updated calls to declare_ptable and implement_ptable.
6227 (glyph): Use schar for back_color_idx and fore_color_idx.
6228 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
6229 (tty_printer::tty_color, tty_printer::tty_printer,
6230 tty_printer::color_to_idx, tty_printer::put_color): Updated.
6232 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6234 * src/roff/nroff/nroff.sh: Add option -d for completeness.
6235 * src/roff/nroff/nroff.man: Updated.
6237 2003-07-05 Werner LEMBERG <wl@gnu.org>
6239 * NEWS, tmac/groff_www.man: Updated.
6240 * doc/Makefile.sub: Updated.
6242 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
6244 Implement support for multiple HTML output files.
6246 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
6247 -j command line option.
6249 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
6251 (file): New fields `new_output_file', `require_links',
6253 (file::file): Updated.
6254 (files::set_file_name, files::set_links_required,
6255 files::are_links_required, files::is_new_output_file,
6256 files::file_name, files::next_file_name): New functions.
6257 (header_desc): New fields `no_of_level_one_headings',
6259 (header_desc::header_desc): Updated.
6260 (header_desc::write_headings): Handle multiple files.
6261 (html_printer::write_header): Save file name in which header occurs.
6262 (html_printer::determine_header_level): Possibly split files on
6264 (html_printer::do_links, html_printer::troff_tag): Updated.
6265 (html_printer::insert_split_file, html_printer::do_job_name,
6266 html_printer::emit_link, html_printer::write_navigation,
6267 html_printer::do_file_components): New functions.
6268 (html_printer::~html_printer): Handle multiple files.
6269 (main): Handle command line option `-j'.
6271 * src/devices/grohtml/grohtml.man: Updated.
6273 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6276 * tmac/www.tmac (JOBNAME): New macro.
6277 * tmac/s.tmac (SH-NO-TAG): New macro.
6278 (@SH): Call SH-NO-TAG.
6281 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6283 * tmac/groff_mdoc.man: Improve documentation of punctuation
6286 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
6288 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6290 2003-07-03 Werner LEMBERG <wl@gnu.org>
6292 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6294 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
6296 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6297 after `/*' and `*/'.
6299 (Fn, Fo): Reduce indentation in synopsis.
6301 * tmac/doc-common (doc-check-depth): New macro.
6302 (doc-end-macro, Sh, Ss): Use it.
6303 (Cd): Fix behaviour in synopsis.
6304 (In): Make it parsed and callable.
6305 If not in the synopsis, represent the C header file enclosed in
6307 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6308 Use minus, not hyphen.
6310 * tmac/groff_mdoc.man: Updated.
6312 2003-07-01 Werner LEMBERG <wl@gnu.org>
6314 Integrated grap2graph, contributed by Eric S. Raymond.
6316 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6318 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6319 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6321 2003-07-01 Colin Watson <cjwatson@debian.org>
6323 * src/xditview/*.c: Add prototypes, fix return types, add includes.
6324 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6326 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
6328 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6330 2003-06-31 Werner LEMBERG <wl@gnu.org>
6332 * doc/Makefile.sub (CLEANADD): Remove all files created by
6333 running `make groff.{pdf,dvi}'.
6335 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6338 2003-06-30 Werner LEMBERG <wl@gnu.org>
6340 * Makefile.in (SHELL): Define as @SHELL@.
6341 (mkinstalldirs): Use $(SHELL).
6342 (MDEFINES): Add $(SHELL).
6343 * Makefile.comm (SHELL): Removed.
6345 2003-06-29 Werner LEMBERG <wl@gnu.org>
6347 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6348 The X11 documentation files use them.
6349 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6351 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
6353 * tmac/e.tmac (@C): Handle .ad also.
6355 2003-06-12 Werner LEMBERG <wl@gnu.org>
6357 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6359 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6360 Assign `n' even here. It is possible to construct a node
6361 immediately following an escape character:
6369 2003-06-10 Werner LEMBERG <wl@gnu.org>
6371 * README.WIN32: Removed.
6372 * MANIFEST: Updated.
6374 2003-06-07 Werner LEMBERG <wl@gnu.org>
6376 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6378 2003-06-05 Werner LEMBERG <wl@gnu.org>
6380 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6381 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6383 2003-06-03 Werner LEMBERG <wl@gnu.org>
6385 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6386 is done by the calling function.
6388 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
6390 * tmac/X.tmac: Fix definition of `em'.
6392 2003-05-22 Werner LEMBERG <wl@gnu.org>
6394 * src/roff/troff/input.cc (return_macro_request): Fix detection of
6397 2003-05-18 Werner LEMBERG <wl@gnu.org>
6399 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6400 to make items work which consist only of a tag.
6402 2003-05-17 Werner LEMBERG <wl@gnu.org>
6404 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6405 aren't stretched in a tag (this can fail with unformatted boxes).
6406 Instead, insert a break and go back one line.
6408 2003-05-16 Werner LEMBERG <wl@gnu.org>
6410 * src/roff/troff/input.cc (return_macro_request): If called with
6411 argument pop macro twice. We need this to trace `return'.
6413 * tmac/trace.tmac: Handle `return'.
6416 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6419 2003-05-15 Larry Kollar <kollar@alltel.net>
6421 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6422 registers `FPS', `FVS', and `FPD'.
6424 2003-05-15 Werner LEMBERG <wl@gnu.org>
6426 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6429 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
6431 * tmac/groff_mdoc.man: Slight improvements.
6433 2003-05-03 Werner LEMBERG <wl@gnu.org>
6435 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6436 `doc-header-space' after header line if register `cR' is set.
6438 2003-05-02 Werner LEMBERG <wl@gnu.org>
6442 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
6444 * tmac/doc-common (Nd): Use \[em].
6446 2003-05-01 Werner LEMBERG <wl@gnu.org>
6448 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6449 doc-footer-space): Initialize to 0.5i.
6450 (doc-setup-page-layout): Don't set doc-header-space and
6453 2003-04-30 Werner LEMBERG <wl@gnu.org>
6455 * REVISION: Set to 1.
6457 * doc/pic.ms: Document possible problems with `figname'.
6459 2003-04-29 Werner LEMBERG <wl@gnu.org>
6461 Version 1.19 released
6462 =====================
6464 * VERSION: Set to 1.19.
6465 * REVISION: Set to 0.
6466 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6468 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6469 Define charset as `US-ASCII' in html output.
6471 * tmac/www.tmac (ULE): Add missing scaling indicator.
6473 * win32-diffs: Removed.
6475 2003-04-28 Werner LEMBERG <wl@gnu.org>
6477 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6479 Document how to insert discardable whitespace with `.ss'.
6481 2003-04-27 Werner LEMBERG <wl@gnu.org>
6483 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6484 work with plain TeX also.
6486 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6488 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
6490 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6493 2003-04-24 Werner LEMBERG <wl@gnu.org>
6495 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6496 vbox with positive height and zero depth if in TeX mode.
6498 * NEWS: Document glyph name changes for grodvi and grolj4.
6500 2003-04-23 Werner LEMBERG <wl@gnu.org>
6502 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6503 * doc/pic.ms: Fixed.
6505 2003-04-21 Werner LEMBERG <wl@gnu.org>
6507 HP-UX 10.20 has `snprintf' but it isn't declared.
6509 * configure.ac: Add declaration test for snprintf.
6510 * configure: Regenerated.
6511 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6512 * src/include/config.hin: Regenerated.
6514 2003-04-19 Werner LEMBERG <wl@gnu.org>
6516 Add keyword `figname' to pic, specifying the name of the picture
6517 box in TeX mode. Based on a patch from William J Poser
6518 <wjposer@unagi.cis.upenn.edu>.
6520 * src/preproc/pic/pic.y: New token `FIGNAME'.
6521 (macro_name): New rule of type <str>.
6522 (placeless_element): Handle `FIGNAME'.
6523 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6524 * src/preproc/pic/main.cpp (graphname): New global variable.
6525 (do_picture): Initialize `graphname'.
6526 * src/preproc/pic/pic.h: Updated.
6527 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6530 (tex_output::text): Beautify output.
6531 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6532 `shaded' and `outlined' unconditionally.
6533 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6536 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6537 greater is necessary.
6539 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
6541 Add option -r to soelim to avoid emission of `.lf' lines.
6542 Add option -t to produces TeX comment lines instead of `.lf' lines.
6544 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6547 (main): Handle `-r' and `-t'.
6548 (set_location): Handle `raw_flag' and `tex_flag'.
6549 * src/preproc/soelim/soelim.man, NEWS: Updated.
6551 2003-04-17 Werner LEMBERG <wl@gnu.org>
6553 * tmac/hyphenex.sh: Replaced with...
6554 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6557 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6558 if --quiet is used for the configure script.
6559 * configure: Regenerated.
6561 2003-04-16 Werner LEMBERG <wl@gnu.org>
6563 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6564 Add `const' to second argument.
6565 (html_printer::add_table_end): Add `const' to argument.
6566 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6567 `const' to arguments.
6568 * src/devices/grohtml/html-text.h: Updated.
6570 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6571 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6574 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6575 cast for integer constant.
6577 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6578 (writeNbytes): Add `const' to first argument.
6579 (writeString): Add `const' to argument.
6580 (char_buffer::can_see): Add `const' to third argument.
6581 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6582 `const' to argument.
6583 * src/preproc/html/pushback.h: Updated.
6585 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6586 (include_path_append): Add `const' to argument.
6589 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6591 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6592 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6594 (unicode_decompose_init::unicode_decompose_init): Updated.
6595 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6597 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6598 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6601 * tmac/hyphenex.sh: Make script more portable by using a here
6604 2003-04-15 Werner LEMBERG <wl@gnu.org>
6606 Renamed all `*.cc' files to `*.cpp'.
6607 Updated all configuration files, makefiles, and documentation.
6609 2003-04-14 Werner LEMBERG <wl@gnu.org>
6611 * tmac/hyphenex.sh: Slight improvements.
6613 2003-04-13 Werner LEMBERG <wl@gnu.org>
6615 * font/devascii/R.proto, font/devcp1037/R.proto,
6616 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6617 character slots with unnamed glyphs.
6619 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6620 (an-first): New global variable.
6621 (an-header): Emit vertical space between multiple man pages.
6623 2003-04-11 Werner LEMBERG <wl@gnu.org>
6625 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6628 2003-04-10 Werner LEMBERG <wl@gnu.org>
6630 * PROBLEMS: Revised.
6632 2003-04-10 Bernd Warken <bwarken@mayn.de>
6634 * doc/webpage.ms: Improved.
6636 2003-04-09 Werner LEMBERG <wl@gnu.org>
6638 Add register \n[.height] which returns the value of \H.
6639 Add register \n[.slant] which returns the value of \S.
6641 * src/roff/troff/env.cc (init_env_requests): Implement.
6642 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6645 2003-04-08 Werner LEMBERG <wl@gnu.org>
6647 * tmac/html.tmac: Move some of the data into html-end.tmac.
6648 Remove most of the character translations for eqn since html fonts
6649 now cover those characters.
6651 * tmac/html-end.tmac: New file.
6652 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6653 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6654 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6656 2003-04-07 Werner LEMBERG <wl@gnu.org>
6658 * man/groff_out.man: Document negative values of `N' if -Thtml is
6661 2003-04-06 Werner LEMBERG <wl@gnu.org>
6663 * Makefile.comm (depend.temp): Check location of YTABC.
6665 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6667 * doc/Makefile.in (TROFFBIN): New variable for troff
6669 (GROFFBIN): New variable for groff binary path.
6670 (groff_bin_path): Rename to GROFF_BIN_PATH.
6671 (TROFF): Use TROFFBIN.
6672 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6673 * doc/Makefile.sub (GROFFBIN): New variable for groff
6675 (groff_bin_path): Rename to GROFF_BIN_PATH.
6676 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6678 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6679 with INSTALL_SCRIPT.
6680 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6681 * Makefile.dev (all): Depend on DEVSCRIPTS.
6682 (install_dev): Likewise.
6683 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6685 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6686 (DEVGENSCRIPTS): New variable to hold generated scripts.
6688 2003-04-05 Werner LEMBERG <wl@gnu.org>
6690 * src/libs/libdriver/input.cc (IntArray::operator[],
6691 IntArray::get_data): Remove meaningless `const' in return value.
6693 * README.CVS: New file.
6695 2003-04-04 Werner LEMBERG <wl@gnu.org>
6697 Check for stdint.h in C++, not in C.
6699 * aclocal.m4 (GROFF_STDINT_H): New function,
6700 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6702 * configure, src/include/config.hin: Regenerated.
6703 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6706 Fix handling of in grohtml. To do this, troff emits `N'
6707 with a negative value, representing the width of the unbreakable
6708 space (only for -Thtml). grohtml then converts this back to
6709 and uses the value of N as its width.
6711 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6712 unbreakable_space_node::tprint): Emit `N-<width>'.
6713 * src/include/printer.h (printer::set_numbered_char): Make it
6715 Make members `font_table' and `nfonts' protected instead of private.
6716 * src/devices/grohtml/post-html.cc
6717 (html_printer::set_numbered_char): New member function.
6720 * src/libs/libgroff/maxfilename.cc:
6721 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6723 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6726 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6728 * man/roff.man: Small fixes.
6730 2003-04-03 Werner LEMBERG <wl@gnu.org>
6732 Make groff independent from locale's numeric settings.
6734 * configure.ac: Check for `setlocale'.
6735 * configure, src/include/config.hin: Regenerated.
6737 * src/include/lib.h: Handle HAVE_SETLOCALE.
6739 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6740 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6741 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6744 * doc/groff.texinfo: Change dir category to `Typesetting'.
6745 (Man font macros): Mention that there is no space between arguments
6748 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6749 (*printer::change_color, *printer::change_fill_color): Add missing
6752 2003-04-02 Werner LEMBERG <wl@gnu.org>
6754 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6755 html_table::is_gap): Compute table widths after converting border
6756 positions to avoid rounding errors.
6758 2003-04-01 Werner LEMBERG <wl@gnu.org>
6760 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6761 `space_emitted' properly.
6763 2003-03-31 Werner LEMBERG <wl@gnu.org>
6765 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6766 (html_table::set_linelength): Don't add 1.
6767 (html_table::add_indent): Don't subtract 1.
6769 * tmac/html.tmac: Set default page offset to zero.
6771 2003-03-30 Werner LEMBERG <wl@gnu.org>
6773 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6775 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6776 unbreakable_space_node::tprint): New functions.
6777 (troff_output_file): Make space_char_hmotion_mode::tprint and
6778 unbreakable_space_node::tprint to friends.
6779 * src/roff/troff/node.h: Updated.
6781 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6782 in the HTML standard).
6784 2003-03-29 Werner LEMBERG <wl@gnu.org>
6786 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6787 Otherwise, the following code
6796 produces `x a' instead of `xa'. This is a temporary fix, disabling
6797 font changes in diversions for -Thtml.
6799 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6801 (an-do-tag-html): Merge with ...
6802 (an-do-tag): This macro.
6803 Change code slightly to circumvent grohtml bug.
6804 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6806 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6807 html_table::is_gap): Round `width' properly.
6809 * tmac/html.tmac: Provide some default layout parameters for
6812 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6815 2003-03-28 Werner LEMBERG <wl@gnu.org>
6817 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6819 2003-03-27 Werner LEMBERG <wl@gnu.org>
6821 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6824 2003-03-20 Werner LEMBERG <wl@gnu.org>
6826 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6828 * doc/groff.texinfo: Updated.
6830 2003-03-19 Werner LEMBERG <wl@gnu.org>
6832 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6833 TOKEN_END_TRAP>: Reset `have_input'.
6835 2003-03-18 Werner LEMBERG <wl@gnu.org>
6837 * src/roff/groff/groff.man: Mention groff_trace man page.
6839 2003-03-16 Werner LEMBERG <wl@gnu.org>
6841 * Makefile.in (LIBEXT): New variable to indicate the file extension
6842 of library files. Computed heuristically from $(OBJEXT).
6843 (MDEFINES): Add $(LIBEXT).
6844 * Makefile.lib, Makefile.comm: Use it.
6846 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6847 overlong lines into smaller chunks.
6848 (get_binary): New function.
6850 * src/utils/pfbtops/pfbtops.man: Updated.
6852 2003-03-15 Colin Watson <cjwatson@debian.org>
6854 * src/roff/groff/groff.man: Minor syntax fix.
6856 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6858 * src/devices/grops/ps.cc (ps_printer::media_set,
6859 ps_printer::~ps_printer): Handle zero paper width and length.
6861 2003-03-13 Werner LEMBERG <wl@gnu.org>
6863 Add options -p and -l to grodvi.
6865 * src/devices/grodvi/dvi.cc: Include paper.h.
6866 (landscape_flag, user_paper_length, user_paper_width): New global
6868 (dvi_printer::begin_page): Emit `papersize' special.
6869 Set color after initialization of `cur_h' and `cur_v'.
6870 (main): Add options `-l' and `-p'.
6871 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6872 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6874 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6876 2003-03-12 Werner LEMBERG <wl@gnu.org>
6878 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6879 * man/groff_tmac.man: This man page.
6880 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6883 * tmac/X.tmac: Don't load pspic.tmac.
6885 2003-03-11 Werner LEMBERG <wl@gnu.org>
6887 Make variable `pr' local to libdriver/input.cc. Based on a patch
6888 by Bernd Warken <bwarken@mayn.de>.
6890 * src/include/driver.h (pr): Removed.
6892 * src/libs/libdriver/input.cc (pr): New global variable.
6893 (do_file): Deallocate `pr'.
6894 * src/libs/libdriver/printer.cc (pr): Removed.
6896 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6897 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6898 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6899 (main): Don't delete `pr'.
6901 2003-03-10 Werner LEMBERG <wl@gnu.org>
6903 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6904 * tmac/papersize.tmac: New file.
6905 * tmac/troffrc: Include `papersize.tmac'.
6906 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6907 * tmac/an-old.tmac: Set LT to LL by default.
6909 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6910 doc/groff.texinfo: Updated.
6912 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6913 bug which caused all odd iso papers to have wrong dimensions.
6915 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6916 (main) <'p'>: Set `user_paper_width' also.
6917 (ps_printer::media_width, ps_printer::media_height): Use values
6918 given with option `-p'.
6920 2003-03-09 Werner LEMBERG <wl@gnu.org>
6922 * src/include/nonposix.h: Provide default for SET_BINARY.
6924 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6925 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6928 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6929 (main): Treat \r\n as \n.
6931 2003-03-08 Werner LEMBERG <wl@gnu.org>
6933 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6934 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6936 2003-03-07 Werner LEMBERG <wl@gnu.org>
6938 Added support to access more than 256 glyphs in Type 1 fonts.
6940 * src/devices/grops/ps.cc (subencoding): New structure.
6941 (style): Add `sub' field.
6943 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6944 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6947 (ps_printer::set_char): Use `set_subencoding'.
6948 (make_subencoding_name): New function.
6949 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6950 (ps_printer::~ps_printer): Emit subencoding definitions.
6952 * src/devices/grops/psrm.cc (valid_input_table): New array to
6953 properly support EBCDIC.
6954 (white_space): Add `\f'.
6955 (ps_get_line): Change first argument to be of type `string &'.
6956 Updated all callers.
6957 This allows to get lines of arbitrary length.
6958 Use `valid_input_table'.
6959 Remove warning about non-conforming PS line length. This seems
6960 not to be of great importance -- for example, dvips don't emit
6962 (PS_LINE_MAX): Removed.
6963 (matches_comment): Change first argument to be of type `string &'.
6965 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6967 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6968 %AGL_to_unicode, %default_ligatures): New hash tables.
6969 Read all map entries.
6970 Add unencoded characters.
6971 Check for default ligatures if there are no `L' entries.
6972 Print all kern entries.
6973 Print all characters in charset.
6974 * src/utils/afmtodit/afmtodit.man: Updated.
6976 * font/devps/*: Regerated all fonts.
6978 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6979 of characters, just use `.trin'. Otherwise the mapping depends
6980 on the font encoding.
6981 * tmac/ps.tmac: Add `fi' and `fl'.
6982 Improve `Fi' and `Fl'.
6983 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6984 * tmac/Xps.tmac: Fix `em'.
6988 2003-03-04 Werner LEMBERG <wl@gnu.org>
6990 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6993 2003-03-03 Werner LEMBERG <wl@gnu.org>
6995 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6997 * font/devps/generate/textmap: Remove entry `similarequal'.
6998 * font/devps/symbolmap: Updated.
7000 2003-03-02 Werner LEMBERG <wl@gnu.org>
7002 * src/libs/libgroff/font.cc (font::load): Fix error message for
7005 * src/devices/grops/grops.man: Improve documentation of the -b
7008 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
7009 `ascii' and `cp1047'.
7011 2003-03-01 Werner LEMBERG <wl@gnu.org>
7013 Document composite glyphs and the `composite' request.
7015 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
7017 2003-02-28 Werner LEMBERG <wl@gnu.org>
7019 * font/devdvi/generate/ec.map: Add some more Unicode entities.
7020 * font/devdvi/*EC: Updated.
7022 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
7023 * tmac/latin1 (latin1-tr): Undo any previous mapping.
7024 * tmac/troffrc: Load `composite.tmac'.
7025 * tmac/Makefile.sub (NORMALFILES): Updated.
7027 * doc/groff.texinfo (Input Encodings): New section.
7030 2003-02-27 Werner LEMBERG <wl@gnu.org>
7032 * doc/texinfo.tex: New version 2003-02-11.06.
7034 * tmac/doc-common (Dt): Don't emit warning for unknown section.
7035 * tmac/groff_mdoc.man: Fix description of `Dt'.
7037 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
7039 * font/devps/prologue.ps: Fix for included Postscript that does
7040 a setpagedevice -- which is now safely ignored.
7044 * src/devices/grops/ps.cc: Now sets the page size in the generated
7045 document. This is done in two ways: Via a %%-comment for gv and
7046 the like, and via a PageSize and setpagedevice for programs that
7047 understands Postscript proper, like ps2pdf.
7049 * src/devices/grops/ps.h: New broken-flag to avoid page size
7050 definition, if required.
7052 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
7054 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
7055 Not really necessary due to the fix in prologue.ps, but cleaner:
7056 Such information does not belong in an .eps file.
7058 * doc/Makefile.sub: See doc/Makefile.in.
7060 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
7062 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
7063 instead of P1 since the latter is broken in some versions of netpbm.
7064 * configure: Updated.
7066 2003-02-26 Larry Kollar <kollar@alltel.net>
7068 Make man pages more customizable.
7070 * tmac/an-old.tmac (FT): New register holding footer distance from
7072 (HF): New string holding the default heading font.
7073 (TH): Handle registers `IN' and `SN' set on the command line.
7075 (PT, BT): New strings to customize header and footer lines.
7076 (an-header, an-footer): Use them.
7078 * tmac/groff_man.man: Document changes.
7080 * doc/groff.texinfo: Document man changes.
7081 Document Ultrix extensions of man.
7083 2003-02-26 Werner LEMBERG <wl@gnu.org>
7085 * src/roff/troff/input.cc (do_width, do_if_request): Reset
7086 `have_input' after changing back to old environment.
7088 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
7089 function up to be defined before first call. This is necessary to
7090 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
7092 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
7093 the default font directory also. Based on a patch from James
7094 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
7095 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
7096 * src/utils/afmtodit/afmtodit.man: Document it.
7100 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
7102 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
7104 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
7105 (GROFF_PNMTOPS_NOSETPAGE): New macro.
7106 * configure.ac: Use it.
7107 * configure: Regenerated.
7108 * Makefile.in: Updated.
7110 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
7111 (CLEANADD): Add www.tmac-sed.
7112 (pnmtops_nosetpage): Define default.
7113 (install_data): Handle www.tmac-sed and substitute
7114 @PNMTOPS_NOSETPAGE@.
7115 (stamp-sed): Add www.tmac.
7116 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
7117 It now breaks URLs at suitable places.
7118 (www:substring_ok): New register set by...
7119 (www:@test_substring): New macro.
7120 (www:error): New alias to www-error.
7121 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
7123 (URL): Use www:url_breaks.
7124 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
7125 (CDS, CDE): New macros.
7127 2003-02-25 Werner LEMBERG <wl@gnu.org>
7129 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
7132 2003-02-24 Werner LEMBERG <wl@gnu.org>
7134 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
7135 can be negative also.
7137 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
7139 (read_char_table): Avoid negative ascenders.
7140 (output_charset): Add cast.
7141 * font/devlj4/*: Regenerated.
7143 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
7146 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
7147 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
7149 * font/devdvi/*: Regenerated.
7151 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
7152 normal width, while the previously used characters (U+2329 and
7153 U+232A) are classified as wide due to canonical equivalence with the
7154 CJK punctuation characters U+3008 and U+3009.
7156 * font/devutf8/R.proto: Updated.
7157 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
7159 * man/groff_char.man: Simplify handling of table traps by
7160 introducing `start block' and `end block' macros.
7161 (Ns, Ne, 2s, 2e, Ds, De): New macros.
7162 (DL): Make it work with Unix troff also.
7163 Fix code values of `la' and `ra'.
7165 * tmac/dvi.tmac: Define `<>' for CW and CWI.
7167 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
7169 * src/devices/grohtml/post-html.cc (element_list::~element_list):
7170 New destructor, fixing a major memory leak.
7172 2003-02-22 Werner LEMBERG <wl@gnu.org>
7174 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
7175 to be in conformance with Unicode 3.0 and newer.
7177 * font/devlj4/generate/text.map: Add `Eu'.
7178 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
7179 * font/devlj4/S: Regenerated.
7181 * man/groff_char.man: Completely rewritten.
7183 * doc/groff.texinfo: Fix description of request and macro arguments.
7185 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
7189 * src/devices/grohtml/html-table.cc (html_table::~html_table):
7190 Deallocate `columns' list.
7191 * src/devices/grohtml/post-html.cc (char_block::~char_block):
7193 (text_glob::text_glob_html, text_glob::text_glob_special,
7194 text_glob::text_glob_line, text_glob::text_glob_auto_image,
7195 text_glob::text_glob_tag): Avoid memory leaks.
7196 (text_glob::remember_table): Free memory before reassigning.
7198 2003-02-19 Werner LEMBERG <wl@gnu.org>
7200 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
7201 alias `hbar'), the Planck constant over two pi.
7203 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
7204 `+e' for position 34.
7205 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
7206 `u2662' and `u2661'.
7207 * font/devdvi/{MI,S}: Regenerated.
7208 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
7209 * font/devlbp/*: Add `hbar' alias.
7210 * font/devlj4/generate/special.map: Ditto.
7211 * font/devlj4/S: Regenerated.
7212 * font/devps/generate/symbolchars: Add `+e'.
7213 * font/devps/generate/textmap: Fix PS name for `-h'.
7215 * font/devps/symbolmap: Regenerated.
7217 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
7219 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
7221 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
7224 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
7226 * tmac/tty-char.tmac: Add `+e'.
7228 2003-02-17 Werner LEMBERG <wl@gnu.org>
7230 Another round trying to really fix problems with `have_input'.
7232 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
7233 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
7235 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
7236 handling if both foreground and background colors are default.
7238 * doc/groff.texinfo (Debugging): Document .lf differences to
7241 2003-02-16 Werner LEMBERG <wl@gnu.org>
7243 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
7244 null-bytes in created string.
7246 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
7247 alias_macro, lookup_request): Improve warning messages.
7249 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
7251 Free `last_image_filename'.
7253 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
7255 (imageList::createPage, imageList::createImage): Use `free', not
7257 (imageItem::~imageItem): Free `imageName'.
7258 (addRegDef): Use `strsave', not `strdup'.
7259 (get_resolution): Free `pathp'.
7261 2003-02-15 Werner LEMBERG <wl@gnu.org>
7263 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7266 2003-02-14 Werner LEMBERG <wl@gnu.org>
7268 Add memory management for colors to deallocate unnamed colors
7271 * src/include/color.h (color): New members `free_list' and `next'.
7272 New member functions `new' and `delete'.
7274 * src/libs/libgroff/color.cc: Implement it.
7276 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7277 for array size of new operator.
7279 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7280 redundant comparison.
7282 * src/roff/troff/input.cc (word_space_node::reread,
7283 hmotion_node::reread): Avoid warning about unused parameter.
7284 (reset_output_registers): Remove redundant parameter.
7285 (define_color): Undo change 2003-02-12.
7287 * src/roff/troff/reg.h: Updated.
7289 * src/roff/troff/node.cc (troff_output_file::really_print_line,
7290 output_file::put_filename, real_output_file::really_put_filename,
7291 ascii_output_file::really_print_line,
7292 break_char_node::get_hyphen_list): Avoid warning about unused
7294 (suppress_node::tprint): Updated.
7296 * configure.ac: Check declaration for rand() and srand().
7297 * configure: Regenerated.
7299 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7301 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7304 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7305 to avoid compiler warnings.
7307 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7310 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7312 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7314 Updated all callers.
7316 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7318 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7319 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7321 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7322 Parameter is unused.
7323 (html_printer::add_table_end): Define parameter conditionally.
7324 * src/devices/grohtml/output.cc (simple_output::special): Parameter
7327 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7328 (lbp_printer::set_char): Last parameter is unused.
7330 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7332 2003-02-13 Werner LEMBERG <wl@gnu.org>
7334 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7335 Make \D'f ...' move horizontally again for backwards compatibility.
7336 Replace it with \D'Fg ...' where appropriate to avoid dependency
7337 on horizontal resolution.
7339 * src/roff/troff/input.cc (do_get_long_name): New function.
7340 (get_long_name): Call it.
7342 (read_draw_node): Handle `\D'Fx ...' by calling ...
7343 (read_color_draw_node): New function.
7345 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7347 Pass it to `do_get_long_name' which is used instead of
7350 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7351 unnecessary value guard.
7352 (parse_D_command) <'f'>: Add horizontal shift.
7354 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7355 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7356 (FILL_MAX): Removed.
7358 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7361 2003-02-12 Werner LEMBERG <wl@gnu.org>
7363 * src/roff/troff/input.cc (do_name_test, do_expr_test,
7364 do_zero_width): Push `\n' if closing delimiter is missing.
7366 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7367 <'F'>: Make \F non-transparent at the beginning of line.
7368 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7369 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7372 (define_color): Free color in case of reassignment.
7374 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7375 @DefescListEnd): Use @Var, not @var.
7378 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7380 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7381 `shaded' and `outlined' arrays.
7382 (object_spec::object_spec): Initialize `shaded' and `outlined'.
7383 (graphic_object::set_fill_color, graphic_object::set_outline_color):
7385 (closed_object::set_fill_color): Ditto.
7386 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7388 (troff_output::reset_color): Use a_delete instead of free.
7389 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7391 2003-02-11 Werner LEMBERG <wl@gnu.org>
7393 * doc/groff.texinfo: Improve documentation of `ad'.
7394 Document that \D'f...' is dependent on the horizontal resolution.
7395 * man/groff_diff.man: Improve documentation of \D'f...'.
7397 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7398 compensating \h'...' for \D'f ...' since the latter no longer moves
7400 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7402 2003-02-10 Werner LEMBERG <wl@gnu.org>
7404 Improve error messages for `x F' (and `F') commands.
7406 * src/include/error.h: Add declaration for
7407 `current_source_filename'.
7408 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7409 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7410 parameter for source file string.
7411 Updated all callers.
7413 * src/libs/libdriver/input.cc: Add `current_source_filename'.
7414 (remember_source_filename): New function.
7415 (parse_x_command <'F'>, do_file <'F'>): Use it.
7417 2003-02-09 Werner LEMBERG <wl@gnu.org>
7419 Make grotty not emit warnings about unknown colors more than
7422 * src/devices/grotty/tty.cc: Include `ptable.h'.
7423 (TTY_MAX_COLORS): Removed.
7424 (DEFAULT_COLOR_IDX): Defined to -1.
7425 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7426 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7427 Change `tty_colors' to be a ptable.
7428 First arg of `put_color' is now `char'.
7429 New functions `make_rgb_string' and `tty_color'.
7430 (tty_printer::tty_printer): Use `tty_color'.
7431 (tty_printer::color_to_idx): Return value is now `char'.
7434 * src/include/color.h (color): Add `print_color' member function.
7435 * src/libs/libgroff/color.cc (color::print_color): Implement it.
7437 2003-02-08 Werner LEMBERG <wl@gnu.org>
7441 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7444 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7445 assume that value has been allocated with `new[]', thus use
7446 `a_delete' for deallocation.
7448 * src/libs/libdriver/input.cc (get_integer_arg,
7449 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7452 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7453 * src/libs/libgroff/nametoindex.cc
7454 (character_indexer::named_char_index): Use `new <type>[1]'.
7456 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7458 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7459 (split_text): Use `a_delete'.
7461 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7464 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7465 harmless memory leak.
7466 (hyphen_trie::read_patterns_file): Initialize `buf'.
7467 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7468 Initialize `current_fill_color'and `current_glyph_color'.
7469 * src/roff/troff/glyphuni.cc
7470 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7471 * src/roff/troff/uniuni.cc
7472 (unicode_decompose_init::unicode_decompose_init): Ditto.
7473 * src/roff/troff/uniglyph.cc
7474 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7476 2003-01-26 Werner LEMBERG <wl@gnu.org>
7478 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7479 `access' before calling `unlink'.
7480 (do_file): Handle __EMX__.
7482 * src/include/nonposix.h: Handle __EMX__.
7484 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7485 (fontpath,tmacpath): Use it.
7487 Sorted alphabetically.
7489 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7491 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7494 2003-01-27 Werner LEMBERG <wl@gnu.org>
7496 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7497 New files, copied from gnulib.
7498 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7499 * configure.ac: Updated.
7500 * configure: Regenerated.
7502 * src/include/config.hin: Regenerated.
7503 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7504 Don't define `strcasecmp' as `strcmp'.
7505 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7506 Dont define `strncasecmp' as `strncmp'.
7508 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7511 2003-01-26 Werner LEMBERG <wl@gnu.org>
7513 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7516 2003-01-25 Werner LEMBERG <wl@gnu.org>
7518 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7520 2003-01-24 Werner LEMBERG <wl@gnu.org>
7522 Add US-english hyphenation exceptions (converted from Barbara
7523 Beeton's hyphenation exception log reports which appear irregularly
7526 * tmac/hyphen.us: Updated to latest version.
7527 * tmac/README: Updated.
7528 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7529 * tmac/troffrc: Load `hyphenex.us'.
7530 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7531 * doc/groff.texinfo: Updated.
7533 2003-01-23 Werner LEMBERG <wl@gnu.org>
7535 Improve hyphenation slightly. This is a first step in redesigning
7536 the hyphenation algorithm to make it more flexible (e.g. allowing
7537 kerns and ligatures between the hyphenation character and the
7538 following character -- while not used normally in English, other
7539 languages like German would benefit).
7541 * src/roff/troff/env.cc (environment::hyphenate_line): Use
7542 assertion instead of if-clause.
7543 Let `get_hyphen_list' return the number of involved characters in
7544 the hyphenation pattern instead of computing it directly (which
7545 often yields too small values).
7546 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7547 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7550 2003-01-22 Werner LEMBERG <wl@gnu.org>
7552 Fixing a bug which caused groff to hang if the hyphenation exception
7553 dictionary tried to grow.
7555 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7556 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7557 pointer to dictionary.
7559 2003-01-20 Werner LEMBERG <wl@gnu.org>
7561 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7562 negative left italic correction.
7563 * src/utils/afmtodit/afmtodit.man: Document it.
7565 * font/devps/generate/Makefile (RFLAG): Add `-m'.
7566 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7567 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7571 2003-01-16 Werner LEMBERG <wl@gnu.org>
7575 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7577 * src/preproc/refer/refer.man: Mention REFER environment variable.
7579 2003-01-05 Werner LEMBERG <wl@gnu.org>
7581 Similar to \[is], the square root glyph (\[sr]) and the square root
7582 extension glyph (\[radicalex]) are now text symbols. The new
7583 mathematical versions are called \[sqrt] and \[sqrtex],
7586 * font/devX*/S: Regenerated.
7587 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7588 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7589 * font/devdvi/EX, font/devdvi/S: Regenerated.
7590 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7591 * font/devlj4/generate/special.map: Add `sqrt'.
7592 * font/devlj4/S: Regenerated.
7593 * font/devps/generate/textmap: Add `sqrt'.
7594 * font/devps/S, font/devps/symbolmap: Regenerated.
7596 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7597 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7598 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7599 overlap horizontally.
7601 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7602 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7605 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7606 and `sqrtex' are overlapping glyphs.
7608 2003-01-04 Werner LEMBERG <wl@gnu.org>
7610 * font/devdvi/generate/texsy.map: Add `is'.
7611 * font/devps/symbolmap: Regenerated.
7612 * font/devdvi/*TC, MI, S: Regenerated.
7614 * tmac/dvi.tmac: Remove `is'.
7616 2003-01-03 Werner LEMBERG <wl@gnu.org>
7618 `is' is now a text symbol (only relevant for dvi). The math variant
7619 can be accessed with `integral'.
7621 * font/devX*/S: Regenerated.
7622 * font/devdvi/generate/texex.map: Remove `is'.
7623 * font/devdvi/EX: Updated.
7624 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7625 * font/devlj4/generate/special.map: Ditto.
7626 * font/devlj4/S: Regenerated.
7627 * font/devps/generate/textmap: Add `integral'.
7628 * font/devps/S: Regenerated.
7630 * tmac/dvi.tmac: Define `is'.
7632 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7634 * src/preproc/tbl/main.cc (process_format): Fix error message.
7636 2003-01-02 Werner LEMBERG <wl@gnu.org>
7638 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7639 * font/devps/textmap: Fix entries for `ne' and `nc'.
7640 * font/devps/symbolmap: Regenerated.
7642 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7643 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7644 `38', `58', `78', `-+', `|=', `nc', `ne'.
7646 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7647 Use `schar' for `aq'.
7648 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7649 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7650 * tmac/tty.tmac: Add `ne'.
7652 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7653 for fallback glyphs.
7655 2002-12-29 Werner LEMBERG <wl@gnu.org>
7659 * font/devX*/*: Regenerated.
7660 * font/devdvi/generate/ec.map: Remove `eq'.
7661 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7662 Assign `|=' to position 39.
7663 * font/devdvi/*EC, S: Regenerated.
7664 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7665 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7666 Assign `|=' to position 549.
7667 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7669 Add `uni2243' for `|='.
7671 * tmac/ec.tmac: Add `eq'.
7672 * tmac/dvi.tmac: Add `=~'.
7673 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7676 2002-12-21 Werner LEMBERG <wl@gnu.org>
7678 * font/devdvi/generate/tc.map: Remove `**'.
7679 * font/devdvi/*TC: Regenerated.
7680 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7682 * font/devutf8/NOTES: Updated.
7684 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7685 Don't give default parameter to `set_macro'.
7686 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7687 instead of `set_macro'.
7688 (charinfo::setx_macro): Implement it.
7689 (charinfo::set_macro): Don't change `mode'.
7691 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7692 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7693 * tmac/dvi.tmac: Define `!=' with `.schar'.
7695 2002-12-20 Werner LEMBERG <wl@gnu.org>
7697 * font/devX*/S: Regenerated.
7698 * font/devdvi/generate/ec.map: Remove `pl'.
7699 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7700 * font/devdvi/*{TC,EC}: Regenerated.
7701 * font/devhtml/R.proto: Add `-+'.
7702 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7703 * font/devlbp/*: Remove `or'.
7704 * font/devlj4/generate/special.map: Remove `or'.
7705 * font/devlj4/S: Regenerated.
7706 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7707 `seveneighths', `threeeighths'.
7709 Replace `minusplus' with `uni2213'.
7710 * font/devps/symbolmap: Regenerated.
7711 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7714 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7716 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7717 Call glyph_color and fill_color even if tcommand_flag isn't set.
7718 (make_node, node::add_char): Check not ci->is_fallback but
7721 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7722 * tmac/ec.tmac: Add .rchar entry for `f/'.
7723 Don't remove `12', `14', `34'.
7724 Define `pl' to be always roman.
7725 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7726 Define `18', `38', `58', `78'.
7727 * tmac/tty.tmac: Add `-+'.
7728 * tmac/dvi.tmac: Define `f/'.
7729 (dvi-frac): Use `f/'.
7730 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7731 Define `18', `38', `58', `78'.
7733 2002-12-15 Colin Watson <cjwatson@debian.org>
7735 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7737 2002-12-10 Werner LEMBERG <wl@gnu.org>
7739 Add glyph `tno', a textual variant of `no'.
7741 * font/devX*/*: Regenerated.
7742 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7743 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7744 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7745 * font/devdvi/*: Regenerated.
7746 * font/devlbp/*: Add `tno'.
7747 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7748 * font/devlj4/*: Regenerated.
7749 * font/devps/generate/textmap: Replace `no' with `tno'.
7750 * font/devps/generate/symbolchars: Add `no'.
7751 * font/devps/*: Regenerated.
7753 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7755 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7756 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7760 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7761 Add definition for `sd'.
7762 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7764 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7766 2002-12-08 Werner LEMBERG <wl@gnu.org>
7768 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7769 mode to avoid rounding errors.
7770 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7772 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7773 src/roff/troff/troff.man: Improve documentation of -T.
7775 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7777 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7778 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7780 2002-12-06 Werner LEMBERG <wl@gnu.org>
7782 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7783 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7784 Scaling Euro.sansserif glyphs down to have the same height as
7786 Removed unnecessary points; added some extrema.
7788 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7791 2002-12-04 Werner LEMBERG <wl@gnu.org>
7793 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7794 and `Euro.symbol.bold.slanted'.
7795 Improve some glyph offsets and widths.
7796 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7798 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7800 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7803 * tmac/europs.tmac: Updated to new glyph indices.
7804 Use Euro.symbol for font familiy `A'.
7806 * doc/groff.texinfo: Minor improvements.
7808 2002-12-02 Werner LEMBERG <wl@gnu.org>
7810 * font/devdvi/generate.tc.map: s/%O/%0/.
7811 * font/devdvi/*TC: Regenerated.
7813 * src/roff/troff/div.cc (init_div_requests): Sorted.
7815 * tmac/dvi.tmac: Remove `Ye'.
7816 * tmac/ec.tmac: Remove `Ye'.
7817 Add .rchar entry for `de'.
7819 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7820 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7823 2002-11-30 Werner LEMBERG <wl@gnu.org>
7825 Add PS font for various Euro glyphs.
7827 * font/devps/generate/freeeuro.sfd: New master font file for
7829 * font/devps/generate/sfdtopfa.pe: New conversion script for
7831 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7832 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7833 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7835 * font/devps/EURO: Generated from `freeeuro.afm'.
7836 * font/devps/download: Add `freeuro.pfa'.
7837 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7840 * tmac/europs.tmac: New file.
7841 * tmac/ps.tmac: Include `europs.tmac'.
7842 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7844 2002-11-29 Werner LEMBERG <wl@gnu.org>
7846 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7847 * font/devdvi/S: Regenerated.
7848 * font/devhtml/R.proto: Fix `CR' and `ci'.
7850 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7852 * font/devps/symbolmap: Regenerated.
7853 * font/devutf8/R.proto: Fix `CR' and `ci'.
7855 * font/devutf8/NOTES: Updated.
7857 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7860 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7862 * tmac/dvi.tmac: Add `lh' and `rh'.
7863 * tmac/Xps.tmac: Fix `lh' and `rh'.
7864 * tmac/X.tmac: Add `OK'.
7865 * tmac/lj4.tmac: Ditto.
7867 2002-11-24 Werner LEMBERG <wl@gnu.org>
7869 * font/devX*/S: Regenerated.
7870 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7871 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7872 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7873 * font/devdvi/S: Regenerated.
7874 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7875 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7876 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7877 `bracketleftbt', `bracketrighttp', `bracketrightex',
7878 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7879 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7880 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7882 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7883 * font/devutf8/NOTES: Updated.
7884 * font/devlj4/generate/special.map: Add glyph `braceex'.
7885 * font/devlj4/S: Regenerated.
7887 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7889 2002-11-14 Werner LEMBERG <wl@gnu.org>
7891 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7894 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7896 * doc/texinfo.tex: New version from texinfo 4.3.
7897 * doc/groff.texinfo: Updated for texinfo 4.3.
7898 Use @tie{} where appropriate.
7899 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7900 * font/devdvi/generate/tc.map: Remove `rn'.
7901 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7902 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7904 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7905 font/devX75-12/*: Regenerated.
7907 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7908 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7909 Improve definition of `an'.
7910 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7912 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7913 * tmac/X.tmac: Add definition for `or'.
7914 * tmac/Xps.tmac: Undo change 2002-11-05.
7915 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7917 2002-11-11 Werner LEMBERG <wl@gnu.org>
7919 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7922 2002-11-10 Werner LEMBERG <wl@gnu.org>
7924 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7925 defines a glyph which is searched after the check for fonts declared
7926 with `.special' (and before the check for all mounted special
7927 fonts). `fschar' defines a glyph for a particular font which is
7928 searched after the check for fonts declared with `.fspecial' (and
7929 before the check for fonts declared with `.special'). `rfschar'
7930 removes glyphs defined with `fschar'.
7932 * src/roff/troff/token.h (char_mode): New enum.
7933 Declare do_define_character.
7934 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7936 (charinfo::is_fallback): Updated.
7937 (charinfo::is_special): New method.
7938 * src/roff/troff/input.cc (do_define_character): Add and use
7939 optional second parameter used as a prefix for font-specific glyph
7941 (define_character, define_fallback_character): Updated.
7942 (define_special_character): New function.
7943 (init_input_requests): Add `schar'.
7944 (charinfo::charinfo, charinfo::set_macro): Updated.
7945 * src/roff/troff/node.cc: Include `stringclass.h'.
7946 (make_glyph_node): Handle special glyphs defined with `.schar' and
7948 (define_font_special_character, remove_font_special_character): New
7950 (init_node_requests): Sorted.
7951 Add `fschar' and `rfschar'.
7952 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7953 Document new requests.
7955 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7956 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7958 2002-11-08 Werner LEMBERG <wl@gnu.org>
7960 Added new font `SC' (cmtex10) to devdvi.
7962 * devdvi/generate/Makefile (FONTS): Add `SC'.
7964 * devdvi/generate/textex.map: New map file for cmtex.
7966 * devdvi/Makefile.sub (DEVFILES): Updated.
7967 * tmac/dvi.tmac: Add fspecial entries for SC.
7968 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7969 found before `S' since the font position of `SC' is lower due to the
7970 gaps in DESC's `font' line.
7971 * tmac/ec.tmac: Add a `special' call.
7974 * font/devhtml/R.proto: Remove double entry for `ti'.
7975 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7976 * tmac/tty-char.tmac: Remove entry for `bq'.
7977 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7978 * tmac/ec.tmac: Don't remove `aq' glyph.
7979 * tmac/X.tmac: Fix entry for `em'.
7980 Add entries for `fo' and `fc'.
7981 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7983 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7984 documentation of `special' and `fspecial' requests.
7986 2002-11-05 Werner LEMBERG <wl@gnu.org>
7988 * font/devascii/R.proto, font/devcp1047/R.proto,
7989 font/devlatin1/R.proto: Remove entry for `.i'.
7990 * font/devdvi/generate/textt.map: Add entry for `ad'.
7991 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7992 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7993 We need this for getting kerning values to compose `/l' and `/L'.
7994 * font/devdvi: Regenerated font definition files for CM fonts.
7995 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7996 * font/devutf8/R.proto: Ditto.
7997 Remove double entry for `ti'.
7999 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
8000 for (groff) ligatures, `la', and `ra'.
8001 Add "'C", "'c", `IJ', and `ij'.
8002 Remove double entry for `ti'.
8003 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
8005 Add "'C", "'c", `IJ', and `ij'.
8006 Fix entries for (groff) ligatures, `la', and `ra'.
8008 * tmac/ps.tmac (ps-achar): New macro.
8009 Define "'c" and "'C".
8010 * tmac/tty.tmac: Add entry for `.i'.
8011 * tmac/X.tmac (X-achar): New macro.
8012 Define "'c", "'C", and `:Y'.
8013 Add entries for `IJ' and `ij'.
8014 * tmac/Xps.tmac (Xps-achar): New macro.
8015 Define "'c" and "'C".
8016 Add entries for `IJ' and `ij'.
8017 * tmac/lbp.tmac (lbp-achar): New macro.
8018 Add fallback characters for all groff ligatures and many other
8020 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
8021 Add entries for `/l' and `/L'.
8022 Define "'c" and "'C".
8023 Add entries for `IJ' and `ij'.
8025 2002-11-02 Larry Kollar <kollar@alltel.net>
8027 * PROBLEMS: Document how to solve Mac OS X compilation problems.
8029 2002-11-02 Werner LEMBERG <wl@gnu.org>
8031 Adding support for composite glyphs: \[xxx yyy ...] and the
8032 `composite' request.
8034 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
8035 to Unicode-based glyph names.
8036 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
8037 glyph names to groff glyph names.
8038 * src/roff/troff/uniuni.cc: New file for canonically decomposing
8039 Unicode-based glyph names.
8040 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
8041 for handling Unicode glyph names.
8042 * src/roff/troff/input.cc: Include unicode.h.
8043 (composite_glyph_name): New function.
8044 (token::next) <'['>: Handle Unicode glyph names and composite
8046 (composite_dictionary): New dictionary for the `composite' request.
8047 (composite_request): Implement `composite' request.
8048 (init_input_requests): Add `composite'.
8049 Alphabetically sorted.
8050 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
8052 (init_env_requests): Alphabetically sorted.
8053 Removed `tas' and `tar' (already commented out).
8054 * src/roff/troff/Makefile.sub: Updated.
8056 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
8058 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
8061 2002-10-29 Werner LEMBERG <wl@gnu.org>
8063 Fix computation of .trunc register. Additionally, its value (and
8064 the value of the .ne register) is now always set before entering the
8067 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
8068 `needed_space' before calling `space'.
8069 (top_level_diversion::space): Remove special code for 'sp before the
8071 Call `begin_page' with the discarded space as a parameter.
8072 (top_level_diversion::begin_page): Add optional parameter to set
8074 * src/roff/troff/div.h: Updated.
8076 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
8079 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
8080 (LP): Remove superfluous call to `br'.
8081 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
8082 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8084 2002-10-26 Werner LEMBERG <wl@gnu.org>
8086 * tmac/doc-ditroff: Remove useless switch/variable -rC.
8087 (doc-setup-header): Don't set page register `%'.
8088 * tmac/doc-nroff: Remove variable `C'.
8089 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
8090 (doc-setup-header): Don't set page register `%'.
8092 * tmac/doc-common (doc-header): Call `ns'.
8093 (doc-paragraph): Protect .sp with .br so that it survives traps
8094 possibly set by the user.
8095 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8097 * tmac/doc*: Replace ' with . for consistency if no effect.
8099 2002-10-26 Werner LEMBERG <wl@gnu.org>
8101 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
8102 so that it survives traps possibly set by the user.
8104 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
8105 (troff_output_file::set_font): Call flush_tbuf if necessary.
8106 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
8107 flush_tbuf and do_motion only if necessary.
8108 (troff_output_file::start_special,
8109 troff_output_file::put_char_width, troff_output_file::put_char,
8110 troff_output_file::draw): Updated.
8111 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8112 vmotion_node::tprint): Undo change 2002-10-23.
8114 2002-10-25 Werner LEMBERG <wl@gnu.org>
8116 * tmac/www.tmac (DC): Fix case of overlapping images.
8118 2002-10-23 Werner LEMBERG <wl@gnu.org>
8120 * src/roff/troff/node.cc (troff_output_file::fill_color,
8121 troff_output_file::glyph_color): Set current color before testing
8123 (troff_output_file::put_char_width, troff_output_file::put_char,
8124 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
8126 (troff_output_file::file_color, troff_output_file::glyph_color):
8128 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8129 vmotion_node::tprint): Move first, then call fill_color.
8131 2002-10-20 Werner LEMBERG <wl@gnu.org>
8133 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
8134 possible to use multiple main macro packages.
8136 2002-10-19 Werner LEMBERG <wl@gnu.org>
8138 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
8139 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
8140 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
8142 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
8143 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
8145 2002-10-16 Werner LEMBERG <wl@gnu.org>
8147 * NEWS, doc/webpage.ms: Updated.
8149 2002-10-14 Werner LEMBERG <wl@gnu.org>
8151 * src/roff/troff/node.cc (troff_output_file::put_char_width,
8152 troff_output_file::put_char, troff_output_file::fill_color,
8153 troff_output_file::glyph_color): Handle case where color pointer
8156 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
8158 Add the new -r option to grotty. It is similar to the -i option
8159 except it tells grotty(1) to use the `reverse video' attribute to
8160 render italic fonts.
8162 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
8163 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
8164 (tty_printer::make_underline, tty_printer::put_color,
8165 tty_printer::end_page): Use it.
8166 (main): Add -r switch.
8168 * src/devices/grotty/grotty.man: Document it.
8170 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
8172 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
8173 cast to `unsigned char' to properly read patterns with 8bit
8176 2002-10-08 Werner LEMBERG <wl@gnu.org>
8178 * REVISION: Increased to 2.
8180 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
8181 Free Software Foundation, Inc.
8183 Copying and distribution of this file, with or without modification,
8184 are permitted in any medium without royalty provided the copyright
8185 notice and this notice are preserved.
8188 version-control: never