1 2009-01-02 Werner LEMBERG <wl@gnu.org>
3 * tmac/groff_mdoc.man: Update OS version string listing.
5 2009-01-02 Werner LEMBERG <wl@gnu.org>
7 * config.rpath, m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4,
8 m4/lib-link.m4, m4/lib-prefix.m4, src/include/localcharset.h,
9 src/libs/libgroff/config.charset, src/libs/libgroff/localcharset.c,
10 src/libs/libgroff/ref-add.sin, src/libs/libgroff/ref-del.sin:
11 Updated from `gnulib' git repository.
13 * configure: Regenerated.
15 2009-01-02 Werner LEMBERG <wl@gnu.org>
17 * tmac/ptx.tmac: New file.
19 * NEWS, man/groff_tmac: man: Document it.
21 2008-12-30 Werner LEMBERG <wl@gnu.org>
23 Fix more quoting issues.
25 * tmac/www.tmac (BCL, BGIMG, PIMG, MPIMG, LNS): For the sake of
26 XHTML, quote more arguments.
29 2008-12-30 Werner LEMBERG <wl@gnu.org>
31 Fix quoting issues in www.tmac.
33 * tmac/www.tmac (www:url_breaks_splitted): Renamed to...
34 (www:url_breaks_split): This.
35 (www->): New string to close tag singletons like <img> or <hr>. In
36 XHTML mode (not implemented yet), this has to be changed from `>' to
38 (IMG): Don't use </img>
40 (PIMG, MPIMG): Don't use </img>
42 Fix doublequote issues.
43 (HR): Don't use </hr>.
45 (LNS): Fix doublequote issues.
47 2008-12-24 Michail Vidiassov <master@iaas.msu.ru>
49 * tmac/doc-common: Add entries for Mac OS X and FreeBSD.
51 2008-12-22 Alexey Gladkov <legion@altlinux.ru>
53 * contrib/groffer/perl/roff2.pl: Fix syntax error.
55 2008-12-15 Werner LEMBERG <wl@gnu.org>
57 * NEWS: Mention `preconv'.
59 2008-11-12 Werner LEMBERG <wl@gnu.org>
61 Implement `x' specifier for expanded columns. Contrary to old DWB
62 tbl, more than a single `x' specifier can be used. At the same
63 time, remove most of the code from change 2007-02-09 which collides
64 with the new implementation.
66 * src/preproc/tbl/main.cpp (format): Add `expand' array.
67 (format::format, format::~format): Updated.
68 (input_entry_format): Add `expand' field.
69 (input_entry_format::input_entry_format): Updated.
70 (input_entry_format::debug_print): Handle `expand'.
71 (process_format): Handle `x' specifier.
72 (process_data): Updated.
74 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): Remove.
75 (EXPAND_REG): New macro.
76 (table_entry::divert, block_entry::divert,
77 alphabetic_block_entry::divert): Add parameter to control whether
78 expanded columns shall be handled.
79 (block_entry::do_width): Remove.
80 (block_entry::do_divert): Add parameter to control whether expanded
81 columns shall be handled.
82 Treat expanded columns like columns with a minimum width.
83 Remove `experimental' code.
84 (table::table, table::~table, table::allocate): Updated.
85 (table::set_expand_column): New function.
86 (table::count_block_columns): Replace with...
87 (table::count_expand_columns): This function.
88 (table::divide_span): Handle expanded columns the same as equal
90 (table::sum_columns): Add parameter to control whether expanded
91 columns shall be handled.
92 (table::compute_available_block_width): Replace with...
93 (table::compute_expand_width): This function.
94 (table::compute_total_separation): New function, taking code from
95 `compute_separation_factor'.
96 (table::compute_separation_factor): Simpler code. The check for the
97 `EXPAND' flag has been moved to the caller.
98 (table::compute_widths): Add `top-level' changes to handle expanded
101 * src/preproc/tbl/table.h (table): New field `total_separation'.
102 Remove `blockflag' array.
104 Update member function declarations.
106 * src/preproc/tbl/tbl.man: Document `x' specifier.
107 Expand documentation to cover all aspects of Lesk's tbl reference.
109 * NEWS: Document `x' specifier.
111 2008-11-08 Werner LEMBERG <wl@gnu.org>
113 * src/preproc/tbl/tbl.man: Restructuring.
114 Improve text block documentation.
116 2008-11-07 Werner LEMBERG <wl@gnu.org>
118 * src/preproc/tbl/table.cpp (table::compute_widths): Use default
119 scaling operator for minimum width. Without this fix, `lw3' (or
120 `lw(3)' would be handled as a column with a minimum width of 3u
123 2008-11-05 Werner LEMBERG <wl@gnu.org>
125 * tmac/doc-common (Dt): Start a new page if necessary and set up
128 * tmac/andoc.tmac (reload-doc): Simplify due to change in
133 2008-10-18 Werner LEMBERG <wl@gnu.org>
135 * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' to
136 `m' and `M', respectively.
137 Sort entries in `switch' block.
138 * src/preproc/tbl/tbl.man: Updated.
139 Sort key entries; other minor improvements.
141 2008-10-17 Werner LEMBERG <wl@gnu.org>
143 * src/preproc/tbl/table.cpp (table::compute_available_block_width):
145 (table::compute_widths): Replace some code with new function
146 (shifted to a more appropriate place).
147 * src/preproc/tbl/table.h: Updated.
149 2008-10-16 Werner LEMBERG <wl@gnu.org>
151 * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Add
154 2008-10-13 Werner LEMBERG <wl@gnu.org>
156 * tmac/groff_mdoc.man: Update documentation on BSD-like OS string
159 2008-10-10 Werner LEMBERG <wl@gnu.org>
161 * man/roff.man, doc/groff.texinfo: Improve the history part. This
162 is based on input from Tom Van Vleck <thvv@multicians.org>.
165 * src/preproc/eqn/sqrt.cpp (sqrt_box::compute_metrics): Assure that
166 value of `rst' register is not zero, as can happen for the HTML
167 output device. Otherwise, there are too many loops, and we get a
168 stack overflow because of recursion.
170 2008-10-05 Stephen Gildea <http://www.gildea.com/stephen/>
172 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Do
173 not insert SORT_SEP before the first field, so that sort_key
174 has the same format as before the patch of 2003-08-23.
176 2008-10-04 Werner LEMBERG <wl@gnu.org>
178 * tmac/doc-common (doc-operating-system-*): Update releases.
180 * tmac/an-old.tmac (an-extra1, an-extra2, an-extra3): Initialize.
182 * tmac/andoc.tmac: Rewritten, based on a preliminary version from
183 Tadziu Hoffmann. It can now process multiple man pages with both
184 man and mdoc formats intermixed.
186 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
187 man/groff_tmac.man: Document it.
189 2008-10-04 Werner LEMBERG <wl@gnu.org>
191 * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
192 \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
193 to the other \O variants).
195 * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
196 default macros. This causes endless loops (at least for TE).
198 * doc/groff.texinfo: Improve documentation of `.als'.
200 2008-10-03 Werner LEMBERG <wl@gnu.org>
202 * src/devices/grops/grops.man, src/roff/troff/troff.man,
203 src/preproc/soelim/soelim.man: Correct documentation of -I switch.
204 Reported by Larry Kollar.
205 Other minor formatting issues.
207 2008-10-02 Werner LEMBERG <wl@gnu.org>
209 * tmac/trace.tmac: Much improved.
210 (trace-full): New register to be set on the command line; it
211 controls whether number and string register assignments get traced
213 (!!c): New macro for comments.
214 (rm): New traced macro.
215 (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
216 `!!xxx'; this makes doc.tmac completely traceable.
217 Trace call of .de and friends also.
219 * tmac/groff_tmac.man, NEWS: Update.
221 2008-09-30 Werner LEMBERG <wl@gnu.org>
223 Restore behaviour of \$0 if a macro is called with string syntax
224 (problem caused by change on 2008-09-29).
226 * src/roff/troff/input.cpp (input_iterator, input_stack,
227 macro_iterator): Add `get_macro_name' member function.
228 (interpolate_string): Use it.
230 2008-09-29 Werner LEMBERG <wl@gnu.org>
232 Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
233 expected. Without the patch,
244 prints `2 3' instead of `1 2 3'.
246 * src/roff/troff/input.cpp (input_iterator, input_stack,
247 macro_iterator): Add `get_arg_list' member function.
248 (macro): Add `is_a_string', `is_string', and `clear_string_flag'
250 Update constructors and operators.
251 (arg_list): Add copy constructor.
252 (macro_iterator): Add optional argument to constructor to indicate
253 whether arguments shall be inherited from calling macro.
254 (interpolate_string): If string argument is a macro, push a macro
255 iterator on the stack.
256 (do_define_macro): Call clear_string_flag if macro data contains a
259 * src/roff/troff/request.h: Updated.
261 2008-09-29 Eric S. Raymond <esr@snark.thyrsus.com>
263 * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
264 Improve the documentation of text objects.
266 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com>
268 * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
269 contrib/eqn2graph.man: Tweak scripts to cope with incompatible
270 changes in ImageMagick crop options. Document the bugs.
272 2008-09-28 Werner LEMBERG <wl@gnu.org>
274 If a macro is called as a string, inherit value of \n[.br] from the
275 caller. This is useful for `trace.tmac'.
277 * src/roff/troff/input.cpp (string_iterator): New members
278 `with_break' and `get_break_flag'.
279 (string_iterator::string_iterator): Updated.
281 * doc/groff.texinfo: Improve documentation of \$0 and string syntax
283 Document behaviour of \n[.br] within strings.
285 2008-09-26 Werner LEMBERG <wl@gnu.org>
287 * tmac/trace.tmac: Add copyright message.
288 Use `.de1' where possible to make source code more readable.
289 (so, mso, als, rn): Restore escape character before executing the
291 (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
293 2008-09-24 Werner LEMBERG <wl@gnu.org>
295 Fix incompatibility between `.de1' and `.do'. Without this change,
296 the following snippet
304 prints 1 instead of 0.
306 * src/roff/troff/input.cc (do_request): If a macro gets processed,
308 (interpolate_macro): Add optional argument. Update callers.
309 (request::invoke): Add optional argument.
310 (macro::invoke): Add optional argument to delay call of tok.next().
312 * src/roff/troff/request.h (request_or_macro): Add argument to
313 `invoke' member. Update all derived classes.
315 * doc/groff.texinfo: Improve documentation of .do request.
317 2008-09-09 Werner LEMBERG <wl@gnu.org>
319 * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu
322 2008-09-06 Werner LEMBERG <wl@gnu.org>
324 * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
325 `.Nm' work properly if next manual page is printed.
327 2008-08-20 Werner LEMBERG <wl@gnu.org>
329 * src/preproc/tbl/tbl.man: Document computation of element widths.
331 2008-08-20 Alexey Gladkov <legion@altlinux.ru>
332 Werner LEMBERG <wl@gnu.org>
334 Add default encoding option -D to preconv and groff.
336 * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
339 (main): Handle new option -D.
341 * src/preproc/preconv/preconv.man: Updated.
343 * src/roff/groff/groff.cpp (main): Handle new option -D.
344 (synopsis, help): Updated.
345 * src/roff/groff/groff.man: Updated.
347 2008-07-26 Werner LEMBERG <wl@gnu.org>
349 * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported
352 * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
354 2008-07-24 Denis M. Wilson <dmw@oxytropis.plus.com>
356 New options -f and -k for afmtodit.
358 * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
359 name of the groff font.
360 New option `-k' disables output of kerning data.
361 * src/afmtodit/afmtodit.man, NEWS: Document new options.
363 2008-07-18 Werner LEMBERG <wl@gnu.org>
365 * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
366 warning messages if table gets squeezed.
367 (table::compute_widths): Fix computation of AVAILABLE_REG.
368 Emit warning if table is wider than line length.
370 * src/preproc/tbl/tbl.man: Minor improvements.
372 2008-05-02 Larry Jones <lawrence.jones@siemens.com>
374 * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
375 the `$<' macro is only guaranteed to be defined in inference rules,
376 not in explicit target rules. Since there is only one input file in
377 the places where it is used, the `$?' macro (which is guaranteed to be
378 defined for both kinds of rules) is a suitable replacement.
380 * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
381 versions of ls don't have a `--color' option.
383 2008-04-30 Larry Jones <lawrence.jones@siemens.com>
385 * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
387 2008-04-29 Larry Jones <lawrence.jones@siemens.com>
389 * src/eqn/script.cpp (script_box::output): Portability fix.
391 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com>
393 Add better support for `.TAG #<label>' in non-HTML documents: In
394 case of a forward reference in a call to .URL, write `(see below)'.
395 In case of a backwards reference use the page number instead. The
396 reference gets stored in a string `TAG_<label>' and can be
397 overridden while calling `.TAG' with its new optional argument --
398 this is useful for a second-pass system which resolves forward
401 * tmac/www.tmac (www:url_check_tag): New function.
403 (TAG): Add optional argument to define string `TAG_<label>'.
405 2008-03-24 Werner LEMBERG <wl@gnu.org>
407 * tmac/trace.tmac (so, mso): Added.
409 * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'.
410 If used with -mtrace, and this clause was active, the macro was
413 * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality.
414 This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
416 * man/groff_tmac.man: Document it.
418 2008-02-26 Werner LEMBERG <wl@gnu.org>
420 * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
421 Update all occurrences so that \n[.U] works as advertised. Bug
422 reported by Dorai Sitaram.
424 2008-02-17 Werner LEMBERG <wl@gnu.org>
426 * doc/groff.texinfo: Improve documentation of .cf request.
428 2008-01-19 Werner LEMBERG <wl@gnu.org>
430 * src/preproc/html/pre-html.cpp (usage): Don't describe options but
431 mention that it should never be called stand-alone.
433 * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
434 man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
435 src/roff/groff/groff.man: Mention -Txhtml.
437 * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
439 2008-01-16 Werner LEMBERG <wl@gnu.org>
441 * src/libs/libgroff/font.cpp (font::contains, font::get_code):
442 Handle single-letter names correctly.
444 * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
448 2008-01-15 Werner LEMBERG <wl@gnu.org>
450 * man/groff_font.man: Revised.
452 2008-01-14 Werner LEMBERG <wl@gnu.org>
454 * man/groff.man: Mention glyph and characters.
456 * man/groff_char.man: Minor updates.
457 * man/groff_diff.man: Better clarification between characters and
460 2008-01-12 Werner LEMBERG <wl@gnu.org>
462 * doc/groff.texinfo: Fix top-level structure to make it compilable
463 again with all texinfo modes. Reported by Jörg van den Hoff
464 <j.van_den_hoff@fzd.de>.
466 2008-01-11 Werner LEMBERG <wl@gnu.org>
468 * doc/pic.ms: Mention that compass points of line objects are
471 2008-01-06 Werner LEMBERG <wl@gnu.org>
473 * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
474 Don't remove itself if there is no glyph associated with the node
475 yet. This happens, for example, in this situation:
482 2008-01-05 Werner LEMBERG <wl@gnu.org>
484 * man/groff_char.man, man/groff.man: Revised.
486 * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
488 2008-01-04 Werner LEMBERG <wl@gnu.org>
489 * */*: s/Osanna/Ossanna/.
491 * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
492 Replace .MTO with .MT/.ME (except in groff_www.tmac).
493 Insert `\:' in URLs where appropriate.
494 Don't include www.tmac (except in groff_www.tmac).
496 * man/groff.man (.ESC[]): Fix font of closing bracket.
497 (.ESCq): Fix font of closing quote character.
498 Many other improvements.
500 2007-12-30 Bernhard Fisseni <bfi@ikp.uni-bonn.de>
502 * src/devices/grohtml/post-html.cc
503 (html_printer::writeHeadMetaStyle): Fix CSS output.
505 2007-12-29 Werner LEMBERG <wl@gnu.org>
507 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
508 contain additional glyphs (like some uppercase Greek letters).
510 2007-12-06 Werner LEMBERG <wl@gnu.org>
514 2007-12-06 Colin Watson <cjwatson@debian.org>
516 * src/roff/nroff/nroff.sh: Add options -w and -W.
517 * src/roff/nroff/nroff.man: Document them.
519 2007-12-06 Karl Berry <karl@freefriends.org>
521 * tmac/hyphenex.pl: Update header output.
523 2007-11-29 Werner LEMBERG <wl@gnu.org>
525 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
527 2007-11-20 Werner LEMBERG <wl@gnu.org>
529 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
531 2007-11-17 Werner LEMBERG <wl@gnu.org>
533 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
534 variable. Problem reported by Michael G Schwern
537 * src/roff/nroff/nroff.man: Document it.
540 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
542 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
543 `xslanted' and `yslanted'.
545 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
546 Initialize `xslanted' and `yslanted'.
547 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
548 (closed_object): Ditto.
549 Add members `xslanted' and `yslanted'.
550 (box_object::print): Use them.
551 (object_spec::make_object): Handle slant values.
552 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
554 (object_spec): Add members `xslanted' and `yslanted'.
555 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
559 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
562 2007-11-16 Werner LEMBERG <wl@gnu.org>
564 * tmac/hyphenex.pl: Generate copyright notice (this has been
565 approved by Barbara Beeton).
566 * tmac/hyphenex.us: Updated.
568 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
570 * tmac/doc-syms (doc-str-St--susv3): New string.
571 * tmac/groff_mdoc.man: Document it.
573 2007-11-08 Werner LEMBERG <wl@gnu.org>
575 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be',
576 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
577 (is_comment_line): Handle '\" and '\# also.
579 * src/preproc/preconv/preconv.man: Revise and make complete.
581 2007-10-25 Werner LEMBERG <wl@gnu.org>
583 * tmac/cs.tmac: New file holding Czech strings, contributed by
584 Marcela Maslanova <mmaslano@redhat.com>.
585 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
586 for Czech, taken from CTAN.
588 * tmac/Makefile (NORMALFILES): Add Czech stuff.
589 * doc/groff_tmac.man: Mention cs.tmac.
591 2007-10-21 Werner LEMBERG <wl@gnu.org>
593 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
594 comments correctly. Reported by Frank Jahnke
595 <jahnke@sonatabio.com>.
597 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
599 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
602 * tmac/doc-syms: Give better names for System V releases.
604 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
606 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
607 the production of html files.
609 Remove background colour switch.
610 (.SUFFIXES, clean): Handle *.xhtml files.
612 * src/devices/grohtml/grohtml.man: Document that -V option now
613 generates an HTML-4.01 validator or XHTML validator.
615 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
616 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
617 we are inside a <pre> block.
619 * src/devices/grohtml/post-html.cpp
620 (html_printer::handle_valid_flag): Add a parameter to indicate
621 whether it needs to generate a paragraph block.
622 (html_printer::write_navigation): Updated.
623 (html_printer::do_file_components): Generate an HTML-4.01 blue
624 validator button also.
626 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
628 * man/groff.man: Fix URL of CSTR 54.
630 2007-09-23 Werner LEMBERG <wl@gnu.org>
632 * man/groff_char.man: Normalize character set names as defined
633 by IANA. Based on a patch from Axel Kielhorn.
635 * src/preproc/refer/label.y: Undo change from 2007-09-19.
637 2007-09-19 Werner LEMBERG <wl@gnu.org>
639 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
642 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
643 Remove compiler warning.
645 * src/preproc/refer/label.y: Remove compiler warning.
647 * src/preproc/pic/pic.y: Remove doubled token entries.
649 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
651 * doc/groff.texinfo: Document new .O register and add cross
656 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
658 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
659 (html_table:: emit_colspan, html_table::emit_td): New methods.
660 (html_table::emit_col): Use html_table::emit_td.
661 (html_table::emit_table_header): Use html_table::emit_colspan if
662 dialect xhtml is specified.
663 (html_table::finish_row): Updated.
665 * src/devices/grohtml/html-table.h (html_table): Declare
666 emit_colspan, emit_td.
668 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
669 xhtml if this dialect was requested.
671 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
672 (html_text): Add new variable `dialect'.
674 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
676 (valid_flag, groff_sig, dialect): New global variables.
677 (html_printer::handle_valid_flag, html_printer::do_math,
678 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
679 html_printer::do_math, html_printer::handle_valid_flag): New
681 (html_printer::emit_line, html_printer::emit_raw,
682 html_printer::do_check_center, html_printer::write_title,
683 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
684 html_printer::begin_page): Altered to be XHTML compliant.
685 (html_printer::write_header): Updated.
686 (html_printer::troff_tag): Call do_math.
687 (html_printer::insert_split_file, html_printer::do_file_components,
688 html_printer::write_navigation): Create XHTML file components if
689 necessary and also produces a groff signature if requested.
690 (~html_printer): Call writeHeadMetaStyle at appropriate places
691 depending upon html_dialect.
692 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
693 (main): Added options -x, -V, and -y.
696 * src/preproc/eqn/box.cpp: Create a distinction between
697 the MathML device and the XHTML device.
698 (do_text): Issue a newline at the end of the equation if XHTML was
700 (box::top_level): Prefix the output of an equation by the .MATHML
702 (output_string): Suppress \n if XHTML was specified.
704 * src/preproc/eqn/main.cpp (xhtml): New global flag.
705 (inline_equation): Skip leading spaces after inline equation for
707 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
709 * src/preproc/eqn/eqn.h (xhtml): New external flag.
711 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
713 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
714 (dialect, eqn_flag): New global variables.
715 (html_system): Improve debugging support.
716 (alterDeviceTo): Test for -Txhtml when altering device to the image
717 device and reset to -Txhtml.
718 (addZ): Renamed to...
720 Introducea a general parameter.
721 (print_args): New debugging function.
722 (char_buffer::run_output_filter): Use print_args and addArg rather
724 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
725 line parameter as an argument to the html generation of text when
726 xhtml is needed. Include -e on the command line if mathml is
728 (scanArguments): Allow -e, -V, -y and -x options.
729 -V, -y are handled by the back end. -e sets `eqn_flag'.
730 -x determines HTML dialect.
732 * src/roff/groff/groff.cpp (possible_command): New method
734 (main): Set eflag if -e is present on command line.
735 Set is_xhtml if -Txhtml is present.
736 Pass `-x x' to the HTML pre and post processors.
737 Pass `-e' to the HTML pre processor if required.
738 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
740 * src/roff/troff/input.cpp (init_input_requests): Introduce new
741 number register `\n[.O]'.
743 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
744 (cov*ab-init) reformat.
745 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
746 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
747 <cite></cite> for the html device rather than generate images for
750 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
751 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
752 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
753 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
755 * tmac/www.tmac: (HTML<?p>): New macro.
756 (MATH<?p>): New macro.
757 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
758 (www-emit-ltag): New macro.
759 (www-push-li): Updated.
760 (ULS): Ensure that tags are balanced in order by use of
762 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
764 (OLS, OLE, DLS, DLE): Ditto.
765 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
767 (www-li-ul, www-li-ol, www-li-dl): Updated.
768 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
769 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
772 2007-09-17 Werner LEMBERG <wl@gnu.org>
774 * man/groff_font.man: Document `unicode' keyword.
775 * doc/groff.texinfo (DESC File Format): Synchronize with
778 2007-09-15 Werner LEMBERG <wl@nu.org>
780 * man/groff.man: Document `\_'.
781 * doc/groff.texinfo: Ditto.
782 Remove references to `\@' which isn't a valid escape sequence in
786 * tmac/unicode.tmac: Add ` and '.
787 * tmac/html.tmac: Load unicode.tmac.
789 2007-09-14 Werner LEMBERG <wl@gnu.org>
791 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
794 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
796 2007-09-11 Werner LEMBERG <wl@gnu.org>
798 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
801 * src/preproc/tbl/table.cpp (table::allocate): Initialize
804 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
806 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
807 defective GnuWin32 versions of netpbm/libpng.
809 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
811 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
814 2007-07-11 Werner LEMBERG <wl@gnu.org>
816 * gendef.sh: Add shebang.
818 2007-07-05 Werner LEMBERG <wl@gnu.org>
820 * tmac/papersize.tmac: Fix dimensions of executive paper format.
821 Reported by John Rupley <rupley@u.arizona.edu>.
823 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
825 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
826 top-level environment.
828 2007-06-12 Werner LEMBERG <wl@gnu.org>
830 * src/devices/xditview/TODO, NEWS: Updated.
831 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
832 Handle `GXditview-color'.
833 * src/devices/xditview/gxditview.man: Updated.
835 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
836 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
837 from `gnulib' git repository.
839 * configure.ac: Updated.
840 * configure: Regenerated (using autoconf 2.61).
842 * config.guess, config.sub: Updated from `config' CVS repository.
843 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
846 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
848 * src/devices/xditview/GXditview.ad: Split off color definitions
850 * src/devices/xditview/GXditview-color.ad: This new file.
852 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>
854 * tmac/fr.tmac: Handle chapter system for `me'.
856 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
858 * src/devices/xditview/xditview.c (main): Add support for
861 * src/devices/xditview/GXditview.ad: Updated.
862 Make widget more colourful.
864 2007-05-30 Werner LEMBERG <wl@gnu.org>
866 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
867 Recommend `tbl' instead of `-column' lists for more complicated
870 2007-05-21 Werner LEMBERG <wl@gnu.org>
872 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
875 2007-04-10 Werner LEMBERG <wl@gnu.org>
877 In pic, make rounded boxes work with colors. Reported by Urs Eggli
878 <Urs.Eggli@zuerich.ch>.
880 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
881 (output): Add color parameter to `rounded_box' member function.
883 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
885 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
886 to `out->rounded_box'.
888 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
890 * font/devps/generate/textmap: Add Greek letters and some more.
892 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
893 `Omega', and `mu' to the ones from aglfn.txt.
895 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
897 * tmac/s.tmac (SN): Define unconditionally.
898 (SN-STYLE): New string; define.
900 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
902 2007-03-22 Werner LEMBERG <wl@gnu.org>
904 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
905 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
907 2007-03-20 Werner LEMBERG <wl@gnu.org>
909 * tmac/trace.tmac (rn): Added.
910 (nr, ds, ds1, as, as1, substring): Restore escape character while
912 (nr): Remove dead code.
914 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
915 definitions to make them traceable.
917 2007-03-19 Werner LEMBERG <wl@gnu.org>
919 * src/roff/troff/input.cpp (get_copy): Add third argument to control
920 whether \E shall be expanded.
921 (get_char_for_escape_name): Allow \E.
923 2007-03-15 Werner LEMBERG <wl@gnu.org>
925 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
926 par*define-font-macro, \[hooko]): Use \E to make it traceable.
928 (ref*field): Add argument to control the space between previous and
931 (ref*add-N): Fix handling of opening parenthesis. Problem reported
932 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
934 2007-03-14 Werner LEMBERG <wl@gnu.org>
936 * tmac/trace.tmac (als): Added.
937 (de, de1, am, am1): Make traced macros aliased with .als work.
939 2007-02-25 Werner LEMBERG <wl@gnu.org>
941 * src/devices/xditview/TODO: Add some more items.
943 * Makefile.comm (.man.n): Add @APPRESDIR@.
946 * src/devices/xditview/gxditview.man: Document GXditview resource
948 Other documentation enhancements based on a patch from Jörg.
950 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
951 Joerg van den Hoff <j.van_den_hoff@fzd.de>
953 * src/devices/xditview/GXditview.ad: Make all keys work regardless
954 of the current mouse position.
956 2007-02-20 Werner LEMBERG <wl@gnu.org>
958 * tmac/groff_man.man: Revised to improve visual appearance.
959 Reduce use of future tense.
961 * tmac/groff_trace.man: Revosed to improve visual appearance.
963 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
965 Make groff.man viewer-portable.
967 * tmac/groff.man: Eliminate use of .eo/.ec.
968 (.REQ): Surround args 2 through N with quotes. This will enable us
969 not to rely on the shift request, which is nonportable.
970 (ExecFF): Remove. The code is simpler without it.
972 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
974 * tmac/groff_www.man: Viewer-portability fixes.
976 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
978 * man/groff.man: Remove some unneeded code and a no-longer-used
979 inclusion of the www macros.
981 2007-02-12 Werner LEMBERG <wl@gnu.org>
983 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
985 (table::compute_widths): Simplify.
987 2007-02-11 Werner LEMBERG <wl@gnu.org>
989 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
990 (table): Replace `bool' type with `char' for orthogonality.
993 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
994 AVAILABLE_REG and COLCOUNT_REG.
995 (table::table): Fix order call of initializers.
996 (table::~table): Deallocate `blockflag'.
998 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
1000 A try at the new rule for block column allocation is now enabled by
1001 the new `experimental' global option: The horizontal space up to the
1002 right margin which is not used by columns without text blocks is
1003 evenly distributed to the columns with text blocks.
1005 It doesn't work right as yet; there appears to be some error in the
1006 computation of `3avail', the available line length. The purpose of
1007 this patch is (a) to make experimenting with other formulas easy,
1008 and (b) leave the infrastructure for flag `experimental' in place
1009 for future experiments. Do not document any behavior associated
1012 * src/preproc/tbl/table.h: Include `stdbool.h'.
1013 (table): Make `flags' public.
1014 Add `count_block_columns' function.
1015 Add `blockflag' array.
1016 Add `EXPERIMENTAL' enumeration value.
1018 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
1020 (table_entry): New member `parent' so that class and subclass
1021 members can set a parent field. Update all users.
1022 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
1023 (block_entry::do_width): Set the parent's `blockflag'.
1024 (table::allocate): Handle `blockflag'.
1025 (table::count_block_columns): New function.
1026 (compute_span_width): Adjust AVAILABLE_REG.
1027 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
1029 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
1032 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
1034 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
1037 2007-02-08 Werner LEMBERG <wl@gnu.org>
1039 * man/groff_out.man (offset): Make it work reliably.
1041 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
1043 * man/groff_out.man: Simplify some font changes so \fP is less
1044 likely to do something surprising.
1046 * man/groff_out.man: We can simplify the command macros still
1047 further if we stop trying to hide structural requests inside them.
1048 Also, fix some instances of \} at start of line without a dot, and
1049 make some font changes explicit in strings.
1051 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
1054 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
1055 calls and fix macros to do without them. File should now be
1058 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
1059 micromotions that produce the same visual result and can be lifted
1062 * man/groff_out.man: Third step: Reduce Da-comand, fix a
1063 call-sequence bug in the original.
1065 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
1066 move font-change escapes to portable form.
1068 * man/groff_out.man: First step in macro simplification; eliminate
1069 list1..n, simplify .offset and .index_offset so they no longer
1070 require groff-specific features or eqn (instead, use troff
1071 micromotions for subscripting).
1073 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
1075 * src/preproc/eqn/eqn.man: Minor corrections.
1077 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
1078 longer takes a second argument that is pasted to the end of the
1079 generated text. Instead, the end macro takes an argument that does
1082 * man/ditroff.man, man/groff_diff.man, man/groff.man,
1083 man/groff_out.man, man/groff_tmac.man, man/roff.man,
1084 src/roff/groff/groff.man, src/roff/grog/grog.man,
1085 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
1087 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
1088 so we can use them here.
1090 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1092 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
1093 By popular demand, make ... set three lower dots again
1094 and introduce a new predefined macro 'cdots' to set
1095 three centered dots.
1097 2007-02-05 Werner LEMBERG <wl@gnu.org>
1099 * src/preproc/eqn/eqn.man: Revised.
1101 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
1103 (spacing_type): Fix typo.
1104 (special_to_entity): Use `const'.
1105 Remove unused variable.
1106 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
1108 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1110 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
1111 which is a shame as the effect was cute.
1113 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
1115 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
1116 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
1117 possible, remove preamble declarations and macros that are no
1118 longer needed. Conversion checked using the protocol described in
1121 2007-02-03 Werner LEMBERG <wl@gnu.org>
1123 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
1126 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
1128 * tmac/groff_man.man: Documented the extension macros, and
1129 added portability advice.
1131 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
1134 Add support for MathML output to eqn.
1136 The strategy used is very simple and relies on the fact that the box
1137 models of eqn and Presentation MathML differ in only trivial ways.
1138 It leaves the grammar and existing internal object structures
1139 unchanged. A new global, `output_format', is defined as an
1140 enumerated type with values {troff, mathml}. Most of the functions
1141 and methods that emit actual output acquire a top-level conditional,
1142 dispatching on this global, which has one arm for troff mode and one
1143 for MathML mode. In most cases the MathML arm is drastically
1146 (This strategy could be easily generalized to support other output
1147 formats. TeX is a possibility that leaps to mind.)
1149 The only even moderately tricky changes are in the lexer. Some of
1150 the predefined macros used constructs like `up', `down', `fwd',
1151 `back', and `vcenter' that have no equivalents in MathML. I
1152 attacked this problem in these ways:
1154 1. I eliminated three uses of `back' to compose characters in favor
1155 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
1156 that did not exist when these macros were written. (This will be
1157 a quality improvement for troff users.)
1159 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
1161 3. I then split the table of pre-definitions in three; one large
1162 common table and two small troff-specific and MathML-specific
1163 tables. Use of troff-only operations (up, down, back, fwd,
1164 vcenter) is now confined to the former. The latter now uses
1165 `size big' and drops out the explicit positioning operations,
1166 counting on MathML processors to do them.
1168 POTENTIAL TROUBLE SPOTS:
1170 Here are notes for reviewers on places I'm not 100% sure I've done
1173 * In the process of preparing the troff table, I translated three
1174 definitions (dot_def, dotdot_def, and utilde def) that previously
1175 used explicit \v escapes to use `up' and `down' instead. I
1176 modeled the new definitions on the way `vec' and `dyad' work, but
1177 it's possible I got something subtle wrong.
1179 * I'm not certain the MathML implementation of font_box::output() is
1180 right, because I don't quite get what the switcheroo between
1181 `current_roman_font' and `old_roman_font' is supposed to
1182 accomplish. It does seem to generare good MathML, though.
1184 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
1185 with an enum some magic numbers for spacing types that I thought
1186 were too ugly to live.
1190 The entirety of eqn is translated when `-TMathML' is specified,
1191 with the following exceptions...
1193 Limitations that cannot be fixed include non-support for special,
1194 up/down/fwd/back, and vcenter.
1196 Limitations that might be fixable include non-support for mark and
1197 lineup. I will investigate further, but if these can be implemented
1198 at all it's going to be in a very complicated and nasty way.
1200 The way character boxes are output means that each digit of a
1201 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
1202 While this is not technically wrong for Presentation MathML, it is
1203 ugly and inefficient. Fixing this will require implementing a
1204 little state machine in the `text.cpp' output method.
1206 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
1207 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
1208 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1209 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
1210 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
1211 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1212 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1213 src/preproc/eqn/eqn.man: MathML output mode.
1215 * NEWS: Document it.
1217 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1219 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1220 and for cross-viewer portability. Conversion checked
1221 using the protocol described in tmac/TESTING-HINTS.
1223 2007-02-02 Werner LEMBERG <wl@gnu.org>
1225 * tmac/an-ext.tmac (ME): Don't use `\:'.
1227 * src/roff/grog/grog.man: Further refinements and normalizations.
1229 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1231 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1232 cross-viewer portability. Conversion checked using the protocol
1233 described in tmac/TESTING-HINTS.
1235 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1237 * tmac/TESTING-HINTS: Added.
1239 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1241 Enable the support for Bell archaisms on .SC, so the `-r bell'
1242 switch is no longer needed to format old AT&T papers like
1245 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1247 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1249 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1251 Add some Bell labs extensions to the -ms macros.
1253 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1255 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1257 2007-01-30 Werner LEMBERG <wl@gnu.org>
1259 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1260 (\n[mH]): New register (set if grohtml is used).
1261 (\n[SY]): Rename to \n[mS].
1262 (\n[a]): Rename to \n[mA].
1263 (\n[i]): Rename to \n[mI].
1264 (mU): New auxiliary input trap macro.
1265 (UR, UE): Replace stub with real definition.
1267 (MT, ME): New macros.
1269 (EX, EE): Don't insert vertical space.
1270 Use a register to store (and restore) the current font.
1272 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1273 on patches from Eric Raymond.
1276 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
1278 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1280 2007-01-22 Werner LEMBERG <wl@gnu.org>
1282 * tmac/an-ext.tmac: Protect against being sourced twice.
1283 (URL, EE): Use always two backslashes.
1286 2007-01-16 Werner LEMBERG <wl@gnu.org>
1288 * tmac/an-ext.tmac: Remove code for grodvi.
1290 Don't insert empty line.
1291 (URL, TQ): Fix typos.
1293 2007-01-14 Werner LEMBERG <wl@gnu.org>
1295 * tmac/an-ext.tmac: New file, containing extension macros
1296 for -man. See discussion on the groff mailing list for
1297 background information.
1298 * tmac/an-old.tmac: Load an-ext.tmac.
1299 Decorate .ds and as with comment escapes where appropriate.
1300 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1302 2007-01-05 Werner LEMBERG <wl@gnu.org>
1304 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1306 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
1308 Make -me macros ready for grohtml.
1310 * tmac/e.tmac: Load devtag.tmac.
1311 (need_eo_h, need_eo_tl, need_tl): New registers.
1312 (check_need_title, (x-html, )x-html, xp-html): New macros.
1313 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1314 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1315 (bp): Rename to @b only if output device is not html.
1317 2007-01-01 Werner LEMBERG <wl@gnu.org>
1319 * man/groff_font.man: Document empty lines.
1321 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1322 the very beginning of the output.
1323 [!$opt_x]: Fix typo.
1325 * font/devps/*: Regenerate font definition files.
1327 2007-01-01 Werner LEMBERG <wl@gnu.org>
1329 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1331 * font/devps/*: Regenerate font definition files.
1333 2006-12-31 Werner LEMBERG <wl@gnu.org>
1335 * Makefile.in (oldfontdir): New variable.
1336 (MDEFINES): Add $(oldfontdir).
1337 (uninstall_dirs): Remove `current' link.
1338 Remove $(oldfontdir).
1340 * Makefile.comm (oldfontsubdir): New variable.
1341 (install_dev): Install files collected in $(OLDDEVFILES) into
1343 (uninstall_dev): Remove data in $(oldfontsubdir).
1344 (.man.n): Handle @OLDFONTDIR@.
1346 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1347 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1348 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1349 Document GROFF_FONT_PATH.
1351 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1352 old font description files.
1354 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1357 * font/devps/old/*: New directory, holding the previous version
1358 of the 35 Adobe core font description files.
1360 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1361 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1363 * NEWS: Document font update.
1365 2006-12-31 Werner LEMBERG <wl@gnu.org>
1367 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1369 * Makefile.comm (fonts): New (empty) target.
1370 * Makefile.in (TARGETS): Add `fonts'.
1372 * MANIFEST: Add `chem'.
1374 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1377 2006-12-26 Werner LEMBERG <wl@gnu.org>
1379 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
1381 2006-12-19 Werner LEMBERG <wl@gnu.org>
1383 Add support for German. For activation, simply use -mde or -mden
1384 (for traditional and new orthgraphy, respectively) as the last
1387 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1388 tmac/hyphenex.det: New files, partly taken from CTAN.
1389 * LICENSES: Updated list of hyphenation patterns.
1390 * man/groff_tmac.man: Mention de.tmac and den.tmac.
1393 2006-12-11 Werner LEMBERG <wl@gnu.org>
1395 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1398 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
1399 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
1400 limit of 9 arguments.
1401 (process_body): Handle argument numbers with more than a single
1403 (interpolate_macro_with_args): Protect against exceeding number of
1406 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1408 2006-12-10 Werner LEMBERG <wl@gnu.org>
1410 * Makefile.in (site.exp, docheck): Commented out. Not working
1412 (check): Just emit dummy message.
1414 2006-12-08 Werner LEMBERG <wl@gnu.org>
1416 During installation, create soft link from <version> to `current' in
1419 * Makefile.comm (install): Renamed to...
1421 (prefix_must_exist): Removed. Code moved to Makefile.in.
1423 * Makefile.in (TARGETS): Remove `install'.
1425 (install): New target which first creates the directory given by
1426 --prefix, then calling `make' to do the installation, and finishing
1427 with the creation of the soft link.
1429 2006-11-21 Werner LEMBERG <wl@gnu.org>
1431 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1433 2006-11-18 Werner LEMBERG <wl@gnu.org>
1435 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1436 information from Tom Van Vleck <thvv@multicians.org>.
1438 2006-11-16 Werner LEMBERG <wl@gnu.org>
1440 * tmac/62bit.tmac: New macro package.
1441 * tmac/Makefile.sub (NORMALFILES): Add it.
1442 * NEWS: Document it.
1444 * tmac/trace.tmac: Protect against being loaded again.
1445 (nr): Always show result.
1447 * doc/groff.texinfo (Input Encodings): Document latin-5.
1449 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1451 2006-11-13 Werner LEMBERG <wl@gnu.org>
1453 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1454 on negative trap positions.
1456 2006-11-10 Werner LEMBERG <wl@gnu.org>
1458 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1460 2006-11-09 Werner LEMBERG <wl@gnu.org>
1462 * INSTALL: Move information about external installation from
1463 INSTALL.gen into this file.
1466 * INSTALL.gen: Update to new version (from texinfo CVS).
1468 2006-11-09 Bernd Warken
1470 * INSTALL.gen: Extend the file by information on `external
1471 installation'. Reorder the installation instruction as `normal
1474 2006-11-08 Werner LEMBERG <wl@gnu.org>
1476 * doc/Makefile.sub (install_data): Take care of proper paths while
1477 installing info files. Bug reported by Bernd Warken.
1479 2006-11-06 Bernd Warken
1481 * src/roff/grog/grog.pl: Rewrite.
1482 - Call by `#! /usr/bin/env perl'. That isn't replaced.
1483 - Rename usage() to version().
1485 - For `use strict', start all global variables with an upper case
1486 character. Use `my' for all variables. Use several new variables.
1488 - Add copyright to GPL and Emacs comment.
1489 - Handle several `-m*' options.
1490 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1491 - Allow options after file names.
1492 - Allow only one `-' parameter (standard input).
1493 - Add option abbreviations.
1494 - Expand the usage information.
1496 - Add single quote "'" as additional first character and allow
1497 arbitrary space after the first character.
1499 * src/roff/grog/grog.sh: Rewrite.
1500 - Remove option `-e' of `sed'.
1501 - Allow file names with space characters.
1503 - Add copyright to GPL.
1504 - Handle several `-m*' options.
1505 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1506 - Allow options after file names.
1507 - Allow only one `-' parameter (standard input).
1508 - Add option abbreviations.
1509 - Expand the usage information.
1511 - Add single quote "'" as additional first character and allow
1512 arbitrary space after the first character.
1514 * src/roff/grog/Makefile.sub:
1515 - Add copyright to GPL.
1516 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1517 fair chance to choose between the shell version and the Perl
1518 version of `grog'. This is now again comparable to grog in groff
1521 * src/roff/grog/grog.man: Rewrite.
1522 - Move the license to GPL.
1523 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1524 - Take over some setup and macros from `groffer'.
1525 - Add information on options.
1527 2006-10-28 Werner LEMBERG <wl@gnu.org>
1529 * tmac/trace.tmac: Improve tracing of `.nr'.
1530 Trace `.substring' also.
1534 2006-10-28 Bernd Warken
1536 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1537 of groff development site, fix fonts.
1539 * News: Add information on `chem' and `groffer'.
1541 2006-10-26 Bernd Warken
1543 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1545 2006-10-26 Werner LEMBERG <wl@gnu.org>
1547 Add `\$^' escape to handle the parameters to a macro as a string
1550 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1552 * src/roff/troff/input.cpp (input_iterator, input_stack,
1553 macro_iterator): Add `space_follows_arg' member function.
1554 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1556 (arg_list): Add member `space_follows'.
1557 Update constructor and all callers.
1558 (decode_args): Store discarded double quotes.
1559 (interpolate_args): Handle DOUBLE_QUOTE.
1561 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1563 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1565 * docs/groff.texinfo (Parameters), man/groff.man,
1566 man/groff_diff.man, NEWS: Document it.
1568 2006-10-24 Bernd Warken
1570 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1572 2006-10-24 Werner LEMBERG <wl@gnu.org>
1574 * tmac/groff_trace.man: Mention problem with `\\\\'.
1576 2006-10-23 Werner LEMBERG <wl@gnu.org>
1578 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1580 * tmac/trace.tmac (return): Don't call `substring'.
1582 2006-09-10 Werner LEMBERG <wl@gnu.org>
1584 * src/roff/troff/input.cpp (read_size): Revert previous change
1587 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1589 2006-09-09 Werner LEMBERG <wl@gnu.org>
1591 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1592 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1593 point size to 1). Reported by Gunnar Ritter.
1594 Also catch `\s-[-...]' and friends (causing an error).
1596 2006-09-06 Werner LEMBERG <wl@gnu.org>
1598 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1599 space only if there is no previous space. This fixes a bug which
1600 caused unwanted filling of the last line in a paragraph. Thanks to
1601 Gunnar Ritter for an analysis.
1603 2006-09-03 Werner LEMBERG <wl@gnu.org>
1605 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1606 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1608 2006-09-01 Nick Stoughton <nick@msbit.com>
1609 Werner LEMBERG <wl@gnu.org>
1611 Add a request `pev' to print environment information (similar to
1612 `pnr' and `ptr' to print number registers and traps).
1614 * src/roff/troff/env.h (environment): Add member function print_env.
1616 * src/roff/troff/env.cpp: (environment::print_env): New function to
1617 print a given environment state.
1618 (print_env): New global function to iterate through the
1619 environments, printing each one.
1620 (init_env_requests): Register `pev'.
1622 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1623 NEWS: Document `pev' request.
1625 2006-09-01 Bernd Warken
1627 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1630 2006-09-01 Werner LEMBERG <wl@gnu.org>
1632 * src/preproc/pic/main.cpp (usage): Add missing options.
1634 2006-08-25 Werner LEMBERG <wl@gnu.org>
1636 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1639 2006-08-19 Werner LEMBERG <wl@gnu.org>
1641 * configure: Regenerated.
1643 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1645 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1646 logic; it previously caused an `expr' syntax error, if no version of
1647 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1648 builds, if an up to date `groff.info' is present in either `builddir'
1651 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1653 * font/devps/prologue.ps: Add BPhook.
1655 * src/devices/grops/grops.man: Document BPHook.
1656 Reorder some sections for better readability.
1658 2006-08-12 Werner LEMBERG <wl@gnu.org>
1660 * src/include/lib.h (getlocale): New macro.
1661 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1664 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1666 2006-08-11 Werner LEMBERG <wl@gnu.org>
1668 Add new flag to .cflags to enable hyphenation without looking at
1671 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1673 New member function `ignore_hcodes'.
1675 * src/roff/troff/node.cpp (break_char_node::add_self,
1676 node::add_char): Updated.
1678 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1680 2006-08-09 Werner LEMBERG <wl@gnu.org>
1682 Support composite Unicode characters again. Reported by Colin.
1684 * font/devhtml/R.proto: Renamed to...
1685 * font/devhtml/R.in: This.
1687 * font/devutf8/R.proto: Renamed to...
1688 * font/devutf8/R.in: This.
1691 * font/make-Rproto: New script.
1692 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1694 2006-07-26 Werner LEMBERG <wl@gnu.org>
1696 * README: Fix description of CVS access. Reported by Joachim.
1698 2006-07-11 Werner LEMBERG <wl@gnu.org>
1700 Add a request `.fzoom' and a number register `.zoom' to magnify
1703 * src/include/font.h (font): Add member variable `zoom'.
1704 Add member functions `set_zoom' and `get_zoom'.
1705 Remove `static' attribute from `scale' member function.
1707 * src/libs/libgroff/font.cpp (font::font): Updated.
1708 (scale_round): New version with three parameters to handle zoom
1710 (font::scale, font::get_width): Handle zoom factor.
1711 (font::set_zoom, font::get_zoom): New functions.
1712 (font::load): Handle `zoom' while computing `space_width'.
1714 * src/roff/troff/env.h: Declare `env_get_zoom'.
1715 (environment): Add member function `get_zoom'.
1717 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1718 (init_env_requests): Initialize `.zoom' register.
1720 * src/roff/troff/node.cpp (font_info): New member functions
1721 `set_zoom' and `get_zoom'.
1722 (tfont): New member function `get_zoom'.
1723 (env_get_zoom): New function.
1724 (troff_output_file::set_font): Handle zoom factor.
1725 (font_zoom_request): New function.
1726 (init_node_requests): Initialize `fzoom' request.
1728 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1729 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1732 * src/roff/troff/TODO: Updated.
1734 2006-07-10 Werner LEMBERG <wl@gnu.org>
1736 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1739 2006-07-02 Werner LEMBERG <wl@gnu.org>
1741 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1743 2006-07-01 Werner LEMBERG <wl@gnu.org>
1745 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1746 Print image file name for devices which don't support PS image
1748 Handle multiple inclusions.
1749 Add lots of comments.
1751 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1754 * tmac/troffrc: Load pspic.tmac.
1756 * man/groff_tmac.man: Update .PSPIC documentation.
1760 2006-06-29 Werner LEMBERG <wl@gnu.org>
1762 * src/roff/troff/input.cpp (interpolate_macro):
1763 s/probably/possibly/, as suggested by Keith.
1765 2006-06-28 Werner LEMBERG <wl@gnu.org>
1767 Add support for \D'p...' to grotty.
1769 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1771 (tty_printer::line): This function.
1772 (tty_printer::draw): Rewritten; just call either draw_line or
1774 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1776 * src/devices/grotty/grotty.man, NEWS: Document it.
1778 2006-06-27 Werner LEMBERG <wl@gnu.org>
1780 * src/preproc/refer/command.h (have_bibliography): New variable
1783 * src/preproc/refer/command.cpp (bibliography_command): Set
1784 `have_bibliography'.
1786 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1787 (output_references): Emit warning only if `have_bibliography' is
1790 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1792 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1793 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1796 2006-06-15 Werner LEMBERG <wl@gnu.org>
1798 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1799 macro (as suggested by Tadziu Hoffmann).
1801 2006-06-12 Werner LEMBERG <wl@gnu.org>
1803 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1804 macro (as suggested by Tadziu Hoffmann).
1806 2006-06-05 Werner LEMBERG <wl@gnu.org>
1808 * tmac/strip.sed: Strip `\#' also.
1810 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1811 \? for string comparison.
1813 2006-06-04 Werner LEMBERG <wl@gnu.org>
1815 * doc/groff.texinfo: Add more index entries for copy-in mode.
1816 (Changing Fonts) <.ft>: Document that a font definition file must
1817 not be called `DESC'.
1819 2006-05-31 Werner LEMBERG <wl@gnu.org>
1821 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1824 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1825 (PROCESSEDEXAMPLEFILES): Here.
1827 2006-05-30 Werner LEMBERG <wl@gnu.org>
1829 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1831 Reduce number of false positives for `.if F ...' conditionals.
1832 Improve warning messages.
1834 2006-05-29 Werner LEMBERG <wl@gnu.org>
1836 * tmac/Makefile.sub: Add copyright notice.
1837 (NORMALFILES): Add man.tmac and ms.tmac.
1838 (SPECIALFILES): Remove man.tmac and ms.tmac.
1839 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1840 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1842 (stamp-sed): Don't handle man.tmac and ms.tmac.
1843 Remove obsolete components in sed's regexp.
1845 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1847 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1849 2006-05-28 Werner LEMBERG <wl@gnu.org>
1851 * doc/groff.texinfo (History): Correct death circumstances of Joe
1854 2006-05-27 Werner LEMBERG <wl@gnu.org>
1856 * tmac/an-old.tmac (an-do-tag): Simplify.
1858 2006-05-26 Werner LEMBERG <wl@gnu.org>
1860 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1861 (an-header, an-p-footer): Use named environment.
1863 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1866 2006-05-21 Werner LEMBERG <wl@gnu.org>
1868 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1871 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1873 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1875 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1877 * src/roff/groff/groff.man: Update copyright notice.
1878 Improved wording to describe effect of `-Z' option.
1880 2006-05-06 Werner LEMBERG <wl@gnu.org>
1882 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1883 Normalize handling of `"' in arguments.
1884 (PIMG): Remove debug message.
1887 2006-05-05 Werner LEMBERG <wl@gnu.org>
1889 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1890 swallow character immediately after `\[...]'.
1893 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1895 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1897 2006-05-02 Larry Kollar <kollar@alltel.net>
1899 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1902 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1904 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1905 information as a comment in output.
1906 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1908 2006-04-26 Werner LEMBERG <wl@gnu.org>
1910 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1911 Handle current_paragraph only if it is non-NULL.
1913 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1914 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1915 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1918 Surround the (pseudo) file name for the .pso request with `<' and
1921 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1922 second parameter to `really_put_filename' and `put_filename'.
1923 (troff_output_file::really_put_filename): Emit `<' and `>' around
1924 filename if second argument is set.
1925 * src/roff/troff/node.h: Updated.
1927 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1928 file_iterator::set_location): Update to changes in node.cpp.
1930 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
1932 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1933 preprocessor expression (I18N -> HAVE_ICONV).
1934 (main): Fix handling of option `-h'.
1935 Fix conditional preprocessor expression.
1937 2006-04-04 Werner LEMBERG <wl@gnu.org>
1939 Implement new number register `.br' which is set to 1 if a macro has
1940 been called as .foo and to 0 if called as 'bar. This is useful for
1941 -mtrace so that requests can be reliably traced too.
1943 * src/roff/troff/input.cpp (input_iterator): Add virtual function
1945 (macro_iterator): Add `with_break' member and `get_break_flag'
1947 Update constructors.
1948 (input_stack): Add function `get_break_flag'.
1949 (break_flag_reg): New number register class.
1950 (input_init_requests): Register `.br'.
1952 * src/roff/troff/TODO: Updated.
1954 * tmac/trace.tmac: s/!!sp/!!!sp/.
1955 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1957 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1960 2006-03-29 Werner LEMBERG <wl@gnu.org>
1962 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1963 messages where appropriate.
1965 2006-03-28 Werner LEMBERG <wl@gnu.org>
1967 * configure.ac: Call AC_PROG_EGREP.
1968 * configure: Regenerated.
1970 * Makefile.in (EGREP): New variable.
1971 (MDEFINES): Add $(EGREP).
1973 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1974 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1977 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1979 2006-03-27 Werner LEMBERG <wl@gnu.org>
1981 Add two requests `.device' and `.devicem' which are equivalent to
1982 `\X' and `\Y', respectively.
1984 * src/roff/troff/input.cpp (device_request, device_macro_request):
1986 (init_input_requests): Register them.
1988 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1989 man/groff.man, NEWS: Document them.
1991 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
1993 * src/roff/troff/input.cpp (encode_char): Emit special characters
1994 for -Thtml as `\[...]'.
1995 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1997 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1999 2006-03-27 Werner LEMBERG <wl@gnu.org>
2001 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
2004 2006-03-26 Werner LEMBERG <wl@gnu.org>
2006 * doc/groff.texinfo (Writing Macros): More documentation on
2007 end-of-macro symbol of `.de'.
2008 (Diversions): Minor addition to `.di' description.
2010 * src/devices/grops/grops.man: Some clarifications regarding
2011 insertion of PostScript snippets.
2013 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
2015 Add rules to generate `symbolsl.afm'.
2017 * font/devps/generate/zapfdr.sed,
2018 font/devps/generate/symbolsl.awk: New files.
2020 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
2022 (SS, clean): Updated.
2023 (freeeuro.afm): Use $(srcdir).
2024 (symbolsl.afm): New rule.
2025 (zapfdr.afm): Use zapfdr.sed.
2027 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
2029 * src/preproc/pic/pic.y (expr <INT>): Fix code.
2031 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
2033 * tmac/sv.tmac: Add missing translations and activate support for
2034 other macro packages.
2036 2006-03-21 Francis GUDIN <fgudin@nerim.net>
2038 * tmac/doc-syms (Dx): New macro to identify DragonFly.
2039 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
2040 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
2042 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
2043 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
2044 doc-operating-system-DragonFly-*): New operating system strings.
2046 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
2048 2006-03-21 Werner LEMBERG <wl@gnu.org>
2050 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
2051 both DWB pic and dpic, make
2059 line right then down;
2066 * doc/pic.ms: Document this.
2068 2006-03-20 Werner LEMBERG <wl@gnu.org>
2070 * doc/pic.ms: With permission of Eric Raymond, put it under the
2075 2006-03-19 Werner LEMBERG <wl@gnu.org>
2077 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
2079 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
2080 attribute in combination with `with'. Bug reported by Jennifer
2081 Sayers <jenjen@mail.usyd.edu.au>.
2083 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
2085 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
2088 2006-03-18 Werner LEMBERG <wl@gnu.org>
2090 * LICENSE: Renamed to...
2091 * LICENSES: This. Collect all licensing information in this file.
2092 * tmac/README, src/libs/snprintf/README: Removed.
2094 * src/devices/grops/grops.man: Add section how to install fonts.
2096 * src/utils/xtotroff/xtotroff.c: Add GPL.
2098 2006-03-17 Werner LEMBERG <wl@gnu.org>
2100 * Makefile.comm (.y.cpp): Fix #line arguments in output.
2102 2006-03-13 Werner LEMBERG <wl@gnu.org>
2104 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
2106 * tmac/doc-common (Os): Add more Darwin versions.
2107 * tmac/groff_mdoc.man: Document them.
2109 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
2110 works with \N'...' also.
2111 * man/groff_diff.man: Ditto. Remove use of future tense where
2114 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
2116 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
2117 font/devps/zapfdr.ps: Add `%%EndComments' line.
2119 2006-03-10 Larry Kollar <kollar@alltel.net>
2121 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
2123 2006-03-10 Werner LEMBERG <wl@gnu.org>
2125 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
2126 ps_printer::do_mdef): Overlong lines now cause a warning message,
2129 2006-03-09 Werner LEMBERG <wl@gnu.org>
2131 * font/devps/generate/make-zapfdr: New script for generating
2134 2006-03-08 Werner LEMBERG <wl@gnu.org>
2136 * doc/groff.css (pre): Fix `background-color' value.
2138 2006-03-04 Larry Kollar <kollar@alltel.net>
2140 * tmac/groff_ms.man: Document PT, HD, and BT.
2142 2006-03-04 Werner LEMBERG <wl@gnu.org>
2144 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
2145 for single-letter glyph names.
2147 2006-03-02 Werner LEMBERG <wl@gnu.org>
2149 * tmac/sv.tmac: New file; currently holding only the Swedish strings
2151 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
2153 * tmac/README: Updated.
2155 2006-02-27 Werner LEMBERG <wl@gnu.org>
2157 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
2158 * tmac/fr.tmac: Add French translations.
2160 * tmac/composite.tmac: Add entry for `:'.
2162 2006-02-26 Werner LEMBERG <wl@gnu.org>
2164 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
2166 (install_html, uninstall_sub): Updated.
2168 2006-02-26 Bruno Haible <bruno@clisp.org>
2170 Introduce Unicode fonts.
2172 * font/devhtml/DESC.proto: Mark as unicode.
2173 * font/devhtml/R.proto: Remove all charset entries that are already
2175 * font/devutf8/DESC.proto: Mark as unicode.
2176 * font/devutf8/R.proto: Remove all charset entries.
2177 * src/include/font.h (font): New static field `is_unicode'.
2178 Change order of fields.
2179 * src/libs/libgroff/font.cpp: Include unicode.h.
2180 (font::font): Update for changed order of fields.
2181 (font::contains, font::get_width, font::get_height, font::get_depth,
2182 font::get_italic_correction, font::get_left_italic_correction,
2183 font::get_subscript_correction, font::get_character_type,
2184 font::get_code, font::get_special_device_encoding): Handle both the
2185 explicitly enumerated glyphs and use general code for Unicode fonts.
2186 (font::load): Make the charset section optional when the font is
2188 (font::load_desc): Recognize the `unicode' attribute.
2189 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
2191 2006-02-26 Claudio Fontana <claudio@gnu.org>
2193 * Makefile.in: Add comment about DESTDIR.
2195 * Makefile.sub: Add DESTDIR to install and uninstall targets
2196 to support staged installations.
2197 * Makefile.comm: Likewise.
2198 * doc/Makefile.sub: Likewise.
2199 * contrib/eqn2graph/Makefile.sub: Likewise.
2200 * contrib/grap2graph/Makefile.sub: Likewise.
2201 * contrib/pic2graph/Makefile.sub: Likewise.
2202 * src/devices/xditview/Makefile.sub: Likewise.
2203 * src/preproc/eqn/Makefile.sub: Likewise.
2204 * src/roff/grog/Makefile.sub: Likewise.
2205 * src/roff/nroff/Makefile.sub: Likewise.
2206 * src/utils/afmtodit/Makefile.sub: Likewise.
2207 * src/utils/indxbib/Makefile.sub: Likewise.
2208 * tmac/Makefile.sub: Likewise.
2210 2006-02-24 Werner LEMBERG <wl@gnu.org>
2212 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2214 Remove commented out entries for \' and \` (there are no such glyph
2217 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2218 commented out entries for \' and \`.
2221 * */*: s/legal/valid/ where appropriate.
2223 2006-06-23 Werner LEMBERG <wl@gnu.org>
2225 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2228 2006-02-22 Werner LEMBERG <wl@gnu.org>
2230 Remove all remaining traces from the `shc' glyph.
2232 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2233 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2236 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2237 entry with unnamed glyph.
2239 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2241 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2244 2006-02-22 Bruno Haible <bruno@clisp.org>
2246 Concretize the `glyph' datatype.
2248 * src/include/font.h (glyph): Remove class.
2249 (glyph): Renamed from struct `glyphinfo'.
2250 (glyph_to_index): New inline function.
2251 (glyph_to_name): Make extern, not inline.
2252 (glyph_to_number): Update.
2253 (font): Use `glyph *' instead of `glyph'.
2255 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2256 `glyph'. Make `name' field public.
2257 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2259 (glyph_to_name): Renamed from `glyph::glyph_name'.
2261 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2262 Use `glyph *' instead of `glyph'.
2264 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2265 `glyph *' instead of `glyph'.
2266 (glyph_to_name): Renamed from `glyph::glyph_name'.
2268 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2269 and `glyph_to_index' instead of `glyph::glyph_index'.
2271 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2272 * src/libs/libdriver/printer.cpp: Likewise.
2273 * src/devices/grodvi/dvi.cpp: Likewise.
2274 * src/devices/grohtml/post-html.cpp: Likewise.
2275 * src/devices/grolbp/lbp.cpp: Likewise.
2276 * src/devices/grolj4/lj4.cpp: Likewise.
2277 * src/devices/grops/ps.cpp: Likewise.
2278 * src/devices/grotty/tty.cpp: Likewise.
2280 2006-02-22 Werner LEMBERG <wl@gnu.org>
2282 * font/devdvi/generate/tc.map: Add `sr' glyph.
2283 * font/devdvi/*TC: Regenerated.
2285 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2288 2006-02-21 Werner LEMBERG <wl@gnu.org>
2290 * man/groff_char.man: Explain `***' marker.
2292 2006-02-17 Bruno Haible <bruno@clisp.org>
2294 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2295 methods and fields from *_index to *_glyph.
2296 (character_indexer::named_char_glyph): Test for `charNNN' name
2298 (name_to_glyph): ... not here.
2300 2006-02-17 Bruno Haible <bruno@clisp.org>
2302 * src/include/font.h (name_to_glyph): Renamed from
2303 font::name_to_index.
2304 (number_to_glyph): Renamed from font::number_to_index.
2305 (glyph_to_name): Renamed from font::index_to_name.
2306 (glyph_to_number): Renamed from font::index_to_number.
2307 * src/libs/libgroff/nametoindex.cpp: Likewise.
2308 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2309 charinfo::get_index.
2311 * src/roff/troff/input.cpp: All callers changed.
2312 * src/roff/troff/node.cpp: Likewise.
2313 * src/libs/libgroff/font.cpp: Likewise.
2314 * src/devices/grops/ps.cpp: Likewise.
2315 * src/devices/grohtml/post-html.cpp: Likewise.
2316 * src/libs/libdriver/printer.cpp: Likewise.
2318 2006-02-17 Werner LEMBERG <wl@gnu.org>
2320 * src/include/ptable.h, src/include/itable.h
2321 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2322 of external symbol `next_ptable_size' (used by both header files).
2324 2006-02-15 Bruno Haible <bruno@clisp.org>
2326 * src/include/font.h (glyphinfo): New class.
2327 (glyph): Change internal representation.
2328 Change constructor signature.
2329 New method glyph::glyph_number().
2330 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2331 glyph::operator==, glyph::operator!=): Update.
2332 (font::index_to_name, font::index_to_number): New functions.
2334 * src/include/itable.h: New file, based on src/include/ptable.h.
2336 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2337 (class charinfo): New class.
2338 (class character_indexer): Change table result type from `int' to
2340 Add table with integer key.
2341 (character_indexer::character_indexer): Update.
2342 (character_indexer::ascii_char_index): Update.
2343 (character_indexer::numbered_char_index): Use NULL as name, not a
2344 string starting with a space.
2345 (character_indexer::named_char_index): Update.
2346 (font::number_to_index, font::name_to_index): Remove no-op cast.
2347 (glyph::glyph_name): New method.
2348 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2350 (NUMBERED): Remove flag bit.
2351 (charinfo::numbered, charinfo::get_index): Update.
2353 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2354 (charinfo::set_number, charinfo::get_number): Update.
2355 (glyph::glyph_name): New method.
2357 2006-02-15 Werner LEMBERG <wl@gnu.org>
2359 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2360 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
2362 2006-02-13 Werner LEMBERG <wl@gnu.org>
2364 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2367 2006-02-11 Werner LEMBERG <wl@gnu.org>
2369 * src/include/font.h: s/glyph_t/glyph/.
2372 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2373 s/output_character_t/output_character/.
2375 2006-02-11 Bruno Haible <bruno@clisp.org>
2377 New accessor method glyph_t::glyph_name().
2379 * src/include/ptable.h (declare_ptable): Add a return value to the
2380 `define' method, and declare a `lookupassoc' method.
2381 (implement_ptable): Return the stored key in `define'. Implement
2383 * src/include/font.h (glyph_t): Add `name' field. Add an argument
2385 (glyph_t::glyph_name): New method.
2387 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2388 return type of methods and field member type to glyph_t.
2389 (character_indexer::character_indexer): Update.
2390 (character_indexer::ascii_char_index): Allocate a name for the
2392 Return a glyph_t with name.
2393 (character_indexer::numbered_char_index): Return a glyph_t without a
2395 (character_indexer::named_char_index): Return a glyph_t with a name.
2396 (font::number_to_index, font::name_to_index): Update.
2398 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2401 2006-02-11 Bruno Haible <bruno@clisp.org>
2403 * src/devices/grotty/tty.cpp (output_character_t): New type.
2404 (tty_printer::make_bold, tty_printer::add_char,
2405 tty_printer::put_char): Change argument type to output_character_t.
2406 (crossings): Change element type to output_character_t.
2408 2006-02-11 Bruno Haible <bruno@clisp.org>
2410 Make the glyph data type abstract.
2412 * src/include/font.h (glyph_t): New class.
2413 (name_to_index, number_to_index): Change return type to glyph_t.
2414 (font::contains, font::get_width, font::get_height, font::get_depth,
2415 font::get_character_type, font::get_kern, font::get_skew,
2416 font::get_italic_correction, font::get_left_italic_correction,
2417 font::get_subscript_correction, font::get_code,
2418 font::get_special_device_encoding, font::add_entry,
2419 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2422 * src/libs/libgroff/font.cpp (font_kern_list): Change members
2423 type and constructor argument types to glyph_t.
2424 (font::contains, font::get_width, font::get_height, font::get_depth,
2425 font::get_character_type, font::get_kern, font::get_skew,
2426 font::get_italic_correction, font::get_left_italic_correction,
2427 font::get_subscript_correction, font::get_code,
2428 font::get_special_device_encoding, font::add_entry,
2429 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2431 (font::load): Use glyph_t variables.
2433 * src/libs/libgroff/nametoindex.cpp (name_to_index,
2434 number_to_index): Change return type to glyph_t.
2436 * src/roff/troff/charinfo.h (charinfo::index): Change type to
2438 (charinfo::get_index): Change return type to glyph_t.
2440 * src/roff/troff/env.cpp: Include font.h.
2442 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2444 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2445 (charinfo::charinfo): Update.
2446 (name_to_index, number_to_index): Change return type to glyph_t.
2448 * src/include/printer.h (printer::set_char_and_width): Change return
2451 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2452 Change return type to glyph_t.
2454 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2455 argument type to glyph_t.
2457 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2458 (html_printer::space_glyph): Renamed from space_char_index.
2459 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2460 html_printer::overstrike, html_printer::set_char): Change argument
2462 (html_printer::set_char_and_width): Change return type to glyph_t.
2464 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2465 argument type to glyph_t.
2467 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2468 argument type to glyph_t.
2470 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2472 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2475 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2476 argument type to glyph_t.
2478 2006-02-11 Bruno Haible <bruno@clisp.org>
2480 * src/roff/troff/input.cpp (font::name_to_index): Never return a
2483 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2484 font::name_to_index.
2486 2006-02-10 Werner LEMBERG <wl@gnu.org>
2488 * doc/groff.texinfo (Assigning Formats): Number registers are always
2490 Apply some rephrasing, contributed by Michael Burt.
2492 2006-02-07 Werner LEMBERG <wl@gnu.org>
2494 * tmac/fr.tmac <ms>: Set `HY' register.
2496 2006-02-07 Werner LEMBERG <wl@gnu.org>
2498 Add framework for simple adaptation of the main macro packages (mm,
2499 me, ms, mom) to different locales. In particular, add support for
2500 French. For activation, simply use `-mfr' as the last macro
2501 package. This feature has been contributed by Fabrice Ménard
2502 <menard.fabrice@wanadoo.fr>.
2504 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2506 * tmac/README: Mention hyphen.fr.
2507 * man/groff_tmac.man: Mention fr.tmac.
2510 2006-01-27 Werner LEMBERG <wl@gnu.org>
2512 * man/groff_font.man: Updated documentation of `entity_name' field.
2515 2006-01-27 Bruno Haible <bruno@clisp.org>
2517 * font/devhtml/R.proto: Remove the entity names from the font's
2518 special_encoding_encoding column.
2519 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2520 handling the entity names here.
2521 (get_html_translation): Use it. Change return type to `const
2523 (page::add_and_encode): Update, removing a useless cast.
2525 2006-01-26 Werner LEMBERG <wl@gnu.org>
2527 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2529 * src/include/device.h: Add comments.
2530 * src/include/font.h: Add comments.
2531 * src/include/unicode.h: Likewise.
2532 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2534 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2536 Suppress `.st' request emission by `grn'.
2538 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2541 2006-01-22 Werner LEMBERG <wl@gnu.org>
2543 * install-sh: New version; taken from texinfo CVS.
2545 2006-01-21 Werner LEMBERG <wl@gnu.org>
2547 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2548 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2550 2006-01-19 Bruno Haible <bruno@clisp.org>
2552 Let `make -k install' install more files.
2554 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2555 $(MAKE) and $(MDEFINES) are used.
2556 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2557 $(CPROGDIRS) everywhere.
2558 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2560 ($(OTHERDIRS)): Likewise.
2563 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2564 failure test for font::name_to_index -- it can never fail.
2566 2006-01-19 Werner LEMBERG <wl@gnu.org>
2568 * src/devices/grops/grops.man: Fix section on creating EPS files.
2569 Don't use future time in manual.
2572 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2574 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2575 various typographical URL attributes for non-HTML devices.
2577 * tmac/groff_www.man: Document LINKSTYLE.
2579 2006-01-11 Werner LEMBERG <wl@gnu.org>
2581 * configure.ac: Test for getc_unlocked (needed for localcharset).
2582 * configure, src/include/config.hin: Regenerated.
2584 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2587 * src/libs/libgroff/relocatable.h: New dummy header file for
2590 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2593 2006-01-10 Bruno Haible <bruno@clisp.org>
2595 Work around unportability of nl_langinfo(CODESET).
2597 * m4/glibc21.m4: New file, from gnulib.
2598 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2599 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2600 * Makefile.in (HOST, GLIBC21): New variables.
2601 (MDEFINES): Pass them to subdirectories.
2602 * src/include/relocate.h (relocatep): Define with C linkage.
2603 * src/include/localcharset.h: New file, from gnulib.
2604 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2605 modification for relocate().
2606 * src/libs/libgroff/config.charset: New file, from gnulib.
2607 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2608 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2609 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2610 (OBJS): Add localcharset.o.
2611 (CSRCS): Add localcharset.c.
2612 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2613 (charset.alias): New rule.
2614 (PACKAGE): New variable.
2615 (ref-add.sed, ref-del.sed): New rules.
2616 (MKINSTALLDIRS): New variable.
2617 (install_data): Depend on install_charset_data.
2618 (install_charset_data): New rule for creating or updating
2620 (uninstall_sub): Depend on uninstall_charset_data.
2621 (uninstall_charset_data): New rule for uninstalling or updating
2623 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2625 (main): Initialize default_encoding from locale_charset() instead of
2626 nl_langinfo(CODESET).
2628 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2630 2006-01-10 Werner LEMBERG <wl@gnu.org>
2632 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2633 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2635 2006-01-07 Werner LEMBERG <wl@gnu.org>
2637 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2639 Bump font version to 001.001.
2641 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2642 Call fontforge, not pfaedit.
2644 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2646 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2648 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2649 * tmac/groff_mdoc.man: Updated.
2651 2006-01-05 Werner LEMBERG <wl@gnu.org>
2653 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2654 (raw_flag): New global variable.
2655 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2656 Don't pass BOM to `conversion_utf8'.
2658 (main): Handle `-r' command line switch to set `raw_flag'.
2659 (get_BOM): Fix encodings in `BOM_table'.
2661 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2662 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2664 2006-01-04 Werner LEMBERG <wl@gnu.org>
2666 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2667 Bruno, comment out most encodings to support only a small set of
2668 coding tags, thus reducing potential problems with legacy encodings
2669 and character sets in the future.
2670 Add many XEmacs coding tags (now commented out).
2672 (check_encoding_tag): Renamed to...
2673 (check_coding_tag): This.
2674 (get_BOM): Return encoding as specified by BOM.
2675 Test for UTF32-LE too.
2676 (do_file): Don't check for coding tag if a BOM has been found.
2678 2006-01-03 Bruno Haible <bruno@clisp.org>
2680 * m4/groff.m4: Renamed from aclocal.m4.
2681 * m4/codeset.m4: New file, from gnulib.
2682 * m4/iconv.m4: New file, from gnulib.
2683 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2685 * config.rpath: New file, from gnulib.
2686 * config.guess, config.sub: New files, from gnulib.
2687 * Makefile.sub (M4MACROS): New variable.
2688 (configure): Fix typo.
2689 (aclocal.m4): New rule.
2690 (stamp-h.in): Depend on aclocal.m4.
2691 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2692 * Makefile.in (LIBICONV): New variable.
2693 (MDEFINES): Pass it to recursive makes.
2694 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2695 HAVE_ICONV instead of I18N macro.
2696 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2698 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2700 2006-01-03 Werner LEMBERG <wl@gnu.org>
2702 * doc/Makefile.in (webpage.html): Simplify.
2703 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2704 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2706 2006-01-01 Werner LEMBERG <wl@gnu.org>
2708 * tmac/doc-common (Os): Add some Darwin versions.
2709 * tmac/groff_mdoc.man: Document them.
2711 2006-01-01 Bruno Haible <bruno@clisp.org>
2713 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2715 . Don't map ascii to latin-1.
2716 . Don't use IBMxxx encodings but cpxxx for portability.
2717 . Map cp932, cp936, cp949, cp950 to itself.
2718 (emacs2mime): Protect calls to strcasecmp.
2719 (conversion_iconv): Add missing call to iconv_close.
2720 (do_file): Emit error message in case of unsupported encoding.
2722 2005-12-31 Werner LEMBERG <wl@gnu.org>
2724 Integrate preconv into the groff binary. Changes based on a patch
2725 from Michail Vidiassov.
2727 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2729 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2730 (SOELIM_INDEX): Updated.
2731 (help, synopsis): Updated.
2732 (main): Add command line options `-k' and `-K enc' to select
2734 Add support for GROFF_ENCODING environment variable.
2736 * src/roff/groff/groff.man: Updated and revised.
2739 Start with autoconf support for preconv.
2741 * configure.ac: Call AC_C_BIGENDIAN.
2742 * configure, src/include/config.hin: Regenerated.
2744 2005-12-30 Werner LEMBERG <wl@gnu.org>
2746 New preprocessor `preconv' to convert input encodings to something
2747 groff can understand. Not yet integrated within groff. Proper
2748 autoconf stuff is missing too.
2750 Tomohiro Kubota has written a first draft of this program, and some
2751 ideas have been reused (while almost no code has been taken
2754 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2757 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2758 (GROFF_BIN_PATH): Add preconv.
2760 2005-12-12 Werner LEMBERG <wl@gnu.org>
2762 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2763 In particular, don't use `\+' since it is a GNU sed extension.
2765 * configure: Regenerated.
2767 2005-12-09 Werner LEMBERG <wl@gnu.org>
2769 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2771 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2775 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2778 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2781 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2782 %AGL_to_unicode): Removed. Replace it with a tag.
2784 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2785 to replace tag with actual file contents.
2787 2005-12-08 Werner LEMBERG <wl@gnu.org>
2789 The change 2005-06-20 can indeed cause problems, so we follow the
2790 advice by using marks.
2792 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2793 (PEND): Use `cleartomark'.
2795 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2797 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2798 glyphs which have kern values but aren't handled (glyph variants,
2801 2005-12-02 Werner LEMBERG <wl@gnu.org>
2803 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2804 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2806 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2808 * doc/Makefile.in: Separate rule for webpage.html so that extra
2809 command line options can be passed to grohtml.
2810 * doc/groff.css: Change all margins to 0%.
2811 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2812 navigation is exploited. Also update webpage to contain new
2813 sections on licenses, mailing lists, cvs/ftp access, groff
2814 dependencies, and bug reports.
2815 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2816 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2818 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2820 * src/devices/grohtml/post-html.cpp
2821 (html_printer::do_file_components): Add fputs calls to emit the
2822 head contents and shut down the head tag whenever a new file
2823 component is generated.
2825 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2827 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2828 call to flush_text to flush any outstanding html tags on the
2831 2005-11-18 Werner LEMBERG <wl@gnu.org>
2833 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2834 Announce makeinfo version.
2835 * configure: Regenerated.
2837 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2839 * Makefile.in: Declare proper dependencies between make targets.
2841 * doc/Makefile.in: Rename groff info page to `groff.info'.
2842 * doc/Makefile.sub: Likewise.
2843 * doc/groff.texinfo: Likewise.
2845 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2847 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2848 definition of __GETOPT_PREFIX to the beginning of file to ensure
2849 that it is defined even on platforms where getopt.h is already
2850 included by other header files.
2852 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2854 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2855 Reset font to NULL to ensure that a font block is recreated during
2858 2005-11-04 Werner LEMBERG <wl@gnu.org>
2860 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2861 * configure: Regenerated.
2863 2005-10-27 Werner LEMBERG <wl@gnu.org>
2865 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2866 makeinfo 4.8 or newer is available.
2867 * configure.ac: Call GROFF_MAKEINFO.
2868 * configure: Regenerated.
2870 * Makefile.in (MAKEINFO): Use autoconf variable.
2871 (MDEFINES): Add MAKEINFO.
2873 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2874 * doc/Makefile.sub (MAKEINFO): Remove.
2876 2005-10-26 Werner LEMBERG <wl@gnu.org>
2878 * REVISION: Set to 3.
2880 2005-10-17 Werner LEMBERG <wl@gnu.org>
2882 Mention $MANPAGER variable used with some `man' systems.
2884 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2886 2005-09-13 Werner LEMBERG <wl@gnu.org>
2888 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2890 2005-09-04 Werner LEMBERG <wl@gnu.org>
2892 Version 1.19.2 released
2893 =======================
2895 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2897 * doc/webpage.ms: Updated.
2899 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2901 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2903 * tmac/groff_ms.man: Document `PO' better.
2905 2005-09-03 Werner LEMBERG <wl@gnu.org>
2907 * NEWS: Document grotty changes.
2909 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2911 Backward compatibility support for `man' program.
2913 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2914 assignment, prior `.ll' request and then package defaults, in this
2915 specified order of decreasing priority.
2917 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2918 altered `LL' register initialization priorities.
2920 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2922 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2923 section should look like.
2925 2005-08-29 Werner LEMBERG <wl@gnu.org>
2927 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2930 2005-08-27 Bernd Warken
2932 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2935 2005-08-11 Bernd Warken
2937 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2939 2005-08-09 Bernd Warken
2941 * tmac/www.tmac (URL, MTO): Use bold series if color support is
2944 2005-08-02 Bernd Warken
2946 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2947 as argument to $(INSTALL_INFO). The latter isn't portable.
2948 Remove $(HTMLEXAMPLEFILES) too.
2950 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2952 Suppress warning messages and return always true.
2954 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2956 2005-07-02 Bernd Warken
2958 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2959 * man/groff_out.man: More markup and minor improvements.
2960 * src/roff/groff/groff.man: Minor improvements.
2962 2005-06-28 Werner LEMBERG <wl@gnu.org>
2964 * ChangeLog: Split off older entries into...
2965 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2968 2005-06-26 Bernd Warken
2970 * src/devices/xditview/gxditview.man: More minor fixes.
2972 2005-06-24 Werner LEMBERG <wl@gnu.org>
2974 * src/preproc/pic/troff.cpp (troff_output::set_fill,
2975 troff_output::set_color, troff_output::reset_color): Use .bcolor and
2976 .fcolor instead of \m and \M, respectively.
2978 2005-06-23 Bernd Warken
2980 * src/devices/xditview/gxditview.man: More minor fixes.
2981 * README: Formatting issues.
2982 Mention some problems with Debian.
2984 2005-06-23 Bernd Warken
2986 * src/devices/xditview/gxditview.man: Revised and improved.
2988 2005-06-22 Werner LEMBERG <wl@gnu.org>
2990 Another round in fixing getopt problems. Hopefully the last one!
2991 This time we use the getopt stuff from gnulib and define a prefix
2992 unconditionally so that there are no collisions with any other
2993 getopt implementations. This is a slight waste of space in case
2994 we already use a GNU getopt implementation, but on
2995 the other hand it really simplifies life.
2997 * src/include/getopt.h: Use gnulib version.
2999 * src/include/getopt_int.h: Use gnulib version.
3001 * src/include/groff-getopt.h: Removed. Obsolete now.
3003 * src/include/lib.h: Regarding getopt, don't handle any platform
3004 specially; just include getopt.h.
3005 (__GETOPT_PREFIX): Define (before getopt.h).
3007 * src/include/Makefile.sub (HDRS): Updated.
3009 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
3012 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
3015 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
3016 (__GETOPT_PREFIX): Define (before getopt.h).
3018 2005-06-21 Werner LEMBERG <wl@gnu.org>
3020 * src/include/lib.h: Provide a fix for Mac OS X to not include
3023 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
3025 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
3026 `bind' to define a procedure which contains `showpage' means that an
3027 invocation of `showpage' may execute wrongly (the exact effect
3028 depending on the interpreter). Not usually a problem except under
3029 transformations, such as combining pages.
3030 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
3031 of /PEND means that stack underflow will occur if the stack is
3032 deliberately non-empty before document inclusion. If included
3033 files are found to be generally badly behaved, we could replace the
3034 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
3035 never found this necessary).
3037 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
3039 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
3040 earlier to get correct error message.
3042 2005-06-16 Bernd Warken
3043 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
3045 2005-06-15 Werner LEMBERG <wl@gnu.org>
3047 Another try to update getopt files. This time we add a dummy
3048 gettext.h file to satisfy the dependency.
3050 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3051 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3053 * src/include/getopt_int.h: New file (from GNU libc CVS).
3055 * src/include/gettext.h: Dummy file which just defines a gettext()
3058 * src/include/groff-getopt.h: Updated.
3060 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
3063 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
3064 `const' keywords in return value.
3066 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
3067 Remove redundant variable `old'.
3068 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
3070 * src/preproc/tbl/main.cpp (process_table): Remove redundant
3074 Fix more friend name injection problems since modern C++ compilers
3075 fail otherwise. We simply provide (global) declarations for all
3076 functions declared as friends. This is not really necessary but
3079 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
3080 peek_char, and get_location.
3082 * src/preproc/refer/ref.h: Provide declarations for
3083 compare_reference, same_reference, same_year, same_date,
3084 same_author_last_name, and same_author_name.
3086 * src/roff/troff/div.h: Provide declarations for do_divert and
3089 * src/roff/troff/env.h: Provide declarations for title_length,
3090 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
3091 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
3092 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
3093 margin_character, no_number, number_lines, leader_character,
3094 tab_character, hyphenate_request, no_hyphenate,
3095 hyphen_line_max_request, hyphenation_space_request,
3096 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
3097 line_tabs_request, widow_control_request, and do_divert.
3099 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
3101 * src/roff/troff/node.cpp: Provide declarations for class
3103 Provide declaration for make_tfont.
3105 2005-05-29 Werner LEMBERG <wl@gnu.org>
3107 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
3109 2005-05-28 Werner LEMBERG <wl@gnu.org>
3111 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
3112 redundant semicolons.
3114 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
3115 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
3116 Define `MLIB'. Some compilers need this for linking with libgroff.
3118 2005-05-27 Werner LEMBERG <wl@gnu.org>
3120 * MANIFEST, README, doc/webpage.ms: Updated.
3122 2005-05-26 Werner LEMBERG <wl@gnu.org>
3124 * All affected files: Update postal address of FSF.
3126 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
3129 * README: More fixes.
3131 * README.CVS: Removed. Its contents is now part of the README file.
3133 2005-05-21 Werner LEMBERG <wl@gnu.org>
3135 * README: Updated. Based on a patch from Bernd Warken.
3137 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3139 Miscellaneous script portability enhancements.
3141 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
3142 generated conftest.sh script, conforming to portability
3143 recommendation in autoconf docs.
3144 * configure: Likewise, for code generated by GROFF_CSH_HACK.
3145 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
3146 to portability recommendation in autoconf docs.
3147 * contrib/grap2graph/grap2graph.sh: Likewise.
3148 * contrib/pic2graph/pic2graph.sh: Likewise.
3149 * font/devps/generate/afmname: Likewise.
3150 * src/devices/xditview/ad2c: Likewise.
3151 * src/preproc/eqn/neqn.sh: Likewise.
3152 * src/roff/grog/grog.pl: Likewise.
3153 * src/roff/grog/grog.sh: Likewise.
3154 * src/roff/nroff/nroff.sh: Likewise.
3155 * PROBLEMS: Likewise, in embedded script examples.
3157 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3159 Improve portability of `pdfroff' shell script.
3161 * arch/misc/shdeps.sh: Add space in shebang, conforming to
3162 portability guidelines in `autoconf' docs.
3163 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
3164 initialization code. Used by contrib/pdfmark/pdfroff.sh's
3165 `searchpath' function.
3167 2005-05-14 Werner LEMBERG <wl@gnu.org>
3169 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
3170 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
3171 needed for newer ImageMagick versions.
3173 2005-05-07 Werner LEMBERG <wl@gnu.org>
3175 * src/preproc/refer/refer.man: Many small typographic fixes.
3177 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
3179 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
3180 Use `char *' cast for a_delete.
3182 2005-05-03 Werner LEMBERG <wl@gnu.org>
3184 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
3185 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
3187 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
3189 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
3190 `a_delete' for `const char *'.
3192 2005-05-03 Werner LEMBERG <wl@gnu.org>
3194 * src/devices/grohtml/post-html.cpp,
3195 src/devices/grohtml/html-table.cpp,
3196 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3197 Replace malloc/free with new/delete/a_delete.
3199 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3200 are prohibited with ANSI C++.
3201 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3202 function has a variable number of arguments).
3204 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3205 Simplify function and update all callers.
3207 2005-05-02 Werner LEMBERG <wl@gnu.org>
3209 Undo getopt changes from 2005-04-30. We don't want a dependency
3212 * src/include/getopt_int.h: Removed.
3214 * src/include/getopt.h, src/include/groff-getopt.h,
3215 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3216 src/libs/libgroff/getopt1.c: Revert to previous version.
3219 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3221 * src/include/posix.h (F_OK): Define conditionally.
3223 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3224 different variable name in second `for' loop to avoid MSVC compiler
3227 2005-04-30 Werner LEMBERG <wl@gnu.org>
3229 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3231 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3232 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3233 * configure, src/include/config.hin: Regenerated.
3235 * PROBLEMS: Updated.
3238 Update getopt files.
3240 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3241 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3243 * src/include/getopt_int.h: New file (from GNU libc CVS).
3245 * src/include/groff-getopt.h: Updated.
3247 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3250 * font/devutf8/NOTES: Updated.
3252 2005-04-28 Werner LEMBERG <wl@gnu.org>
3254 Bug fix for Win32 relocatable code. Based on a patch from Keith
3257 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3260 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3261 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3263 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3265 Correct `gnu.eps' handling for build from distribution tarball, with
3266 separate source and build directories.
3268 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3269 grnexmpl.g, groff.css and gnu.eps from source to build directory;
3270 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3271 (prepare_examples): Make it depend on examples.stamp.
3272 (CLEANADD): Add examples.stamp.
3274 2005-04-27 Werner LEMBERG <wl@gnu.org>
3278 position: `(' position `)'
3282 * src/preproc/pic/pic.y (position, position_not_place): Handle
3283 additional parentheses.
3285 * doc/pic.ms: Updated.
3287 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
3289 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3291 2005-04-18 Werner LEMBERG <wl@gnu.org>
3293 * src/roff/groff/pipeline.c: Don't include ctype.h.
3295 2005-04-13 Werner LEMBERG <wl@gnu.org>
3297 * src/roff/nroff/nroff.man: Document option `-M'.
3299 2005-04-13 Bruce Lilly <blilly@erols.com>
3301 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3303 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
3304 Werner LEMBERG <wl@gnu.org>
3306 Add binary relocation support for Windows platforms.
3308 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3310 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3312 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3313 (search_path::search_path, search_path::open_file_cautious): Use
3316 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3317 src/include/Makefile.sub (HDRS): Updated.
3319 2005-04-01 Werner LEMBERG <wl@gnu.org>
3321 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3324 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3326 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3327 lib.h already does it.
3329 * src/libs/libgroff/maxpathname.cpp: New file, defining
3332 * src/include/lib.h: Add prototype for path_name_max.
3334 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3336 * src/include/nonposix.h (PATH_EXT): New macro.
3338 2005-03-28 Werner LEMBERG <wl@gnu.org>
3340 Add support for double- and zero-width characters in grotty.
3342 * src/devices/grotty/tty.cpp (glyph): Add width.
3343 (tty_printer::make_underline, tty_printer::make_bold,
3344 tty_printer::add_character): Add parameter to pass character width.
3346 (tty_printer::end_page): Increase hpos by actual character width.
3348 * font/devutf8/R.proto: Specify zero width for non-spacing
3351 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3353 * Makefile.comm (extraclean): Remove more junk files.
3355 2005-03-25 Werner LEMBERG <wl@gnu.org>
3357 * configure.ac: Undo change from 2005-03-24.
3358 * configure: Regenerated.
3360 2005-03-24 Werner LEMBERG <wl@gnu.org>
3362 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3363 (dist): Search Makefile while descending into $(EXTRADIRS).
3365 * doc/Makefile.in (.PHONY): Add.
3366 (clean): Don't remove *.png and *.eps.
3368 (realclean): Remove *.png and *.eps.
3369 (extraclean): Depend on distclean.
3371 * configure.ac: Add copyright.
3372 Handle contrib/pdfmark/Makefile.
3374 * configure: Regenerated.
3376 2005-03-18 Larry Kollar <kollar@alltel.net>
3378 Add numbered and definition lists to www.tmac.
3380 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3381 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3382 auxiliary string registers.
3383 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3384 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3385 (www-level): Removed.
3386 (www-level1, www-level2, www-level3): Initialize to empty.
3387 (www-level0, www-level4, www-level5, www-level6, www-level7,
3388 www-level8, www-level9): New string registers.
3389 (www-push-li, www-pop-li): New macros.
3390 (www-push-level, www-pop-level): Renamed to...
3391 (www-push-ul-level, www-pop-ul-level): This.
3393 (www-push-ol-level, www-pop-ol-level): New macros.
3394 (ULS, ULE): Updated.
3395 (OLS, OLE, DLS, DLE): New user macros.
3396 (LI): Removed. It is aliased to one of...
3397 (www-li-ul, www-li-ol, www-li-dl): New macros.
3399 * tmac/groff_www.man: Document new macros.
3403 2005-03-18 Werner LEMBERG <wl@gnu.org>
3405 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3406 doc-operating-system-NetBSD-2.0.2): New strings.
3408 * tmac/groff_mdoc.man: Updated.
3410 2005-03-17 Werner LEMBERG <wl@gnu.org>
3412 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3414 2005-03-17 Werner LEMBERG <wl@gnu.org>
3416 * src/libs/libgroff/hypot.c: Renamed to...
3417 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
3419 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3421 * src/include/lib.h: Updated.
3423 2005-03-16 Werner LEMBERG <wl@gnu.org>
3425 Add workaround for broken hypot() on Interix.
3427 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3429 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3430 (CSRCS): Add `hypot.c'.
3432 * src/include/lib.h: Declare `groff_hypot'.
3434 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3437 * src/preproc/pic/pic.h: Don't declare `hypot'.
3439 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3441 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3443 * src/devices/grohtml/post-html.cpp
3444 (html_printer::lookahead_for_tables): End .ce properly to avoid a
3447 2005-03-15 Werner LEMBERG <wl@gnu.org>
3449 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3451 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3453 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3455 2005-03-14 Werner LEMBERG <wl@gnu.org>
3457 Add Cyrillic support to devutf8 and devhtml.
3459 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3461 * tmac/unicode.tmac: New file.
3463 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3465 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3469 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
3471 * src/libs/libdriver/printer.cpp (check_for_output_error): New
3472 function. It has been introduced to catch peculiar error contexts
3473 on MS-Windows platforms.
3475 2005-02-28 Werner LEMBERG <wl@gnu.org>
3477 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3480 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3482 * configure: Regenerated.
3486 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3488 Integrate `pdfmark' into normal groff build system;
3489 install macro `pdfmark' packages, build and install `pdfroff',
3490 and PDF format documentation.
3492 * Makefile.comm: Add PDFDOCDIR.
3494 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3495 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3496 (unstall_dirs): Add pdfdocdir.
3498 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3499 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3500 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3501 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3502 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3503 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3505 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3506 use of GROFF_AWK_PREFS.
3507 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3508 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3510 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3511 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3512 also by modified GROFF_HTML_PROGRAMS).
3514 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3516 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3518 (html_text::done_para): Unset `start_space'.
3519 (html_text::remove_para_align): Call `retrieve_para_space' for the
3522 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3524 (html_printer::do_check_center): Emit vertical space if necessary.
3526 * src/roff/troff/env.cpp (environment_switch): Preserve
3527 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3530 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3533 2005-02-20 Werner LEMBERG <wl@gnu.org>
3535 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3538 2005-02-17 Werner LEMBERG <wl@gnu.org>
3540 * doc/pic.ms, man/groff.man: Fix typos.
3542 * doc/groff.texinfo: Fix typos.
3543 (\LEmacro): Get proper mathematical spacing.
3545 2005-02-16 Werner LEMBERG <wl@gnu.org>
3547 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3548 * configure: Regenerated with autoconf 2.59b.
3550 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3552 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3553 html_printer::start_font): Fix handling of preformatted text.
3555 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3557 These patches modify the indentation implementation to use `<p
3558 style=margin-left: n%>'. Many thanks to Peter and Larry for
3559 suggesting this solution. Grohtml only uses tables for `.IP' and
3560 related tags when the first operand has a short width.
3562 Similarly, they modify all vertical space code. By default, grohtml
3563 sets up a style sheet which uses no vertical space between `table',
3564 `pre', and `p' tags. It forces spaces when it needs them using
3565 `style="margin-top: 1em"'.
3567 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3568 (html_table::emit_table_header, html_table::emit_new_row):
3570 (html_table::set_space): New function.
3571 (html_indent::html_indent): Don't set `is_used'.
3572 (html_indent::begin): Rewritten.
3573 (html_indent::end): Remove code in function.
3575 * src/devices/grohtml/html-table.h: Updated.
3576 (html_table): Make `out' public.
3578 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3579 Initialize `start_space' with FALSE.
3580 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3581 (html_text::issue_tag): Add argument to handle space style.
3582 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3583 (html_text::flush_text): Don't set `start_space'.
3584 (html_text::push_para): Don't set `p->really_issued'.
3585 (html_text::do_emittext): Updated.
3586 (html_text::do_para): Add paremeter to handle space.
3588 (html_text::retrieve_para_space): New function.
3590 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3591 (tag_definition): Remove `really_issued'.
3592 (html_text): Updated.
3594 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3595 `current_column' and `row_space'.
3597 (html_printer::emit_raw, html_printer::write_header,
3598 html_printer::do_indent, html_printer::do_check_center,
3599 html_printer::do_tab_ts): Handle vertical space.
3600 (html_printer:do_tab_te, html_printer::do_end_para): Call
3601 `remove_para_space'.
3602 (html_printer::do_col): Rewritten.
3603 (html_printer::flush_globs): Remove debugging code.
3604 (html_printer::is_line_start): New function.
3605 (html_printer::start_font): Use `is_line_start'.
3606 (html_printer::writeHeadMetaStyle): New function.
3607 (html_printer::do_file_components, html_printer::~html_printer):
3608 Call `writeHeadMetaStyle'.
3610 * tmac/www.tmac (www-handle-percent): New macro.
3611 (MPIMG): Handle percent values for width and height parameters.
3614 * tmac/groff_www.man: Updated.
3616 2005-02-14 Werner LEMBERG <wl@gnu.org>
3618 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3619 $psname and $italic_angle.
3620 Immediately restart file input loops if `split' returns an empty
3623 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3624 Werner LEMBERG <wl@gnu.org>
3626 Update afmtodit to better support Unicode (Michail).
3627 Update afmtodit to use Perl 5 syntax (Werner).
3629 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3631 Decorate variables with `my' where necessary.
3632 Use `defined' where necessary to avoid warnings.
3633 Don't use `do' for subroutine calls.
3634 Other minor syntax updates.
3635 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3636 Handle glyph variants properly.
3637 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3640 * src/utils/afmtodit/afmtodit.man: Updated.
3642 2005-02-13 Werner LEMBERG <wl@gnu.org>
3644 Make groff.texinfo work with texinfo 4.8.
3646 * doc/groff.texinfo (@Var): Use @r and @slanted.
3647 (@defdummy, @Def*): Use @c to avoid empty lines.
3648 (\angles): Replaced with...
3649 (\Langlemacro, \Ranglemacro): New TeX macros.
3650 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3651 (@angles): Use @Langlemacro and @Ranglemacro.
3652 (\LE): Replaced with...
3653 (\LEmacro): New TeX macro.
3654 (@LEmacro): New variable defined with @set.
3655 (@LE): Use @LEmacro.
3656 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3657 variables defined with @set.
3658 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3659 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3662 Other minor updates.
3664 * doc/texinfo.tex: Update to texinfo version 4.8.
3666 * README.CVS: Updated.
3668 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3670 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3671 and `FAM' registers.
3673 2005-02-05 Werner LEMBERG <wl@gnu.org>
3675 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3676 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3679 2005-02-01 Werner LEMBERG <wl@gnu.org>
3681 * src/roff/groff/groff.man: Add information about paper size.
3683 2005-01-25 Werner LEMBERG <wl@gnu.org>
3685 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3688 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3690 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3692 (Re): Emit a warning if called without `.Rs'.
3693 (doc-finish-reference): Use parameter for decreasing
3694 `doc-reference-count'.
3695 (doc-print-reference): Pass specific count parameters to
3696 `doc-finish-reference'.
3698 2005-01-21 Werner LEMBERG <wl@gnu.org>
3700 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3701 Reset pointers to zero after deallocation. This fixes a crash
3702 if a driver is called with multiple input files. Reported by
3703 Ken Chilton <ken@chiltonfamily.org>.
3705 * src/devices/grops/grops.man: Add more info on DSC.
3707 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3709 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3712 2005-01-17 Werner LEMBERG <wl@gnu.org>
3714 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3715 against division by zero.
3717 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3719 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3721 2004-12-19 Werner LEMBERG <wl@gnu.org>
3723 * install-sh: New version; taken from texinfo CVS.
3725 2004-12-17 Werner LEMBERG <wl@gnu.org>
3727 * tmac/devtag.tmac: Protect against loading twice.
3728 Protect agains compatibility mode.
3729 * tmac/www.tmac: Protect against loading twice.
3730 Load `devtag.tmac' before switching off compatibility mode.
3731 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3733 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3735 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3736 * configure: Updated.
3738 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3740 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3742 2004-12-15 Werner LEMBERG <wl@gnu.org>
3744 Make `test-groff' work again -- previously, wrong paths have been
3745 used. Additionally, it can now be called from anywhere.
3747 * test-groff.in: Don't test for groff binary. This is no longer
3748 necessary since the proper paths are determined by `configure'.
3749 (EXEEXT): Removed. No longer used.
3750 (srcdir, builddir): Use values provided by the configure script.
3751 (XENVIRONMENT): Updated.
3755 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3757 Make .tag and .taga work for all devices (but only grohtml actually
3760 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3761 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3762 html_printer::handle_assertion): Don't use hard-coded string
3764 (html_printer::lookahead_for_table): Reset `tbl' properly if
3766 (html_printer::devtag): New function, handling `devtag'.
3767 (html_printer::special): Don't handle `html-tag'.
3769 * src/include/printer.h, src/libs/libdriver/printer.cpp
3770 (printer::devtag): New virtual function.
3772 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3775 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3776 src/roff/troff/node.cpp: s/html-tag/devtag/.
3778 * src/roff/troff/input.cpp (tag, taga): Always call
3781 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3782 macros instead of HTML-TAG*.
3784 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3786 * tmac/www.tmac: Load devtag.tmac.
3787 Replace HTML-TAG* macros with DEVTAG* macros.
3788 (HTML, HTML-NS): Changed definitions.
3790 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3792 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3794 2004-12-10 Werner LEMBERG <wl@gnu.org>
3796 Import Mike's `gdiffmk' package.
3798 * contrib/gdiffmk/*: New files.
3799 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3802 2004-12-08 Werner LEMBERG <wl@gnu.org>
3804 Import Keith's `pdfmark' package. Integration is very preliminary.
3806 * contrib/pdfmark/*: New files.
3807 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3810 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3812 Fix a bug with title handling in HTML.
3814 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3815 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3817 (html_printer::handle_tag_within_title): New function.
3818 (html_printer::do_title): Use it.
3820 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3821 (cov*tl-au-print): Emit `.eo.tl' tag.
3823 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3825 * man/groff_char.man: Minor imrovements.
3827 2004-12-04 Werner LEMBERG <wl@gnu.org>
3829 * src/preproc/eqn/eqn.man: Revised.
3831 2004-11-25 Werner LEMBERG <wl@gnu.org>
3833 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3837 Remove X_NOT_STDC_ENV conditional.
3838 (Version_string, program_name): New global variables.
3839 (groff_flag): Removed.
3841 (usage): Take a stream as argument.
3844 (main): Add `long_options' array for `--help' and `--version'.
3845 Make `-g' a dummy option.
3846 Handle `-v' and unknown options.
3847 Remove unused `position' variable.
3849 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3850 (XLIBS): Add LIBGROFF.
3852 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3855 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3856 parts to avoid compiler warning.
3857 (resources): Don't initialize with `default_font_map'.
3858 (ClassInitialize): Initialize first element of `resources'.
3860 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3863 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3864 src/utils/pfbtops/pfbtops.man: Revised, updated.
3866 * configure.ac: Generate src/utils/xtotroff/Makefile.
3867 * configure: Regenerated.
3869 2004-11-24 Werner LEMBERG <wl@gnu.org>
3871 First fixes to get produce HTML.
3873 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3876 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3877 (HR, LI): Use `HTML</p>', not `HTML'.
3879 * doc/webpage.ms: Minor updates.
3881 2004-11-23 Larry Kollar <kollar@alltel.net>
3883 Add option -S grohtml to determine the file split level.
3885 * src/devices/grohtml/post-html.cpp (split_level): New global
3887 (html_header::determine_header_level): Use split_level.
3888 (main): Handle `-S' command line option.
3891 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3893 * src/devices/grohtml/grohtml.man: Document it.
3896 * NEWS: Document it.
3898 2004-11-23 Y T <doarhop@hotmail.com>
3900 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3901 the volume and number refer entries.
3903 2004-11-22 Werner LEMBERG <wl@gnu.org>
3905 * src/devices/grohtml/html-table.cpp
3906 (html_table::emit_table_header): Don't emit `cols' attribute which
3907 doesn't exist in HTML 4.0 and is thus invalid.
3909 * NEWS: More minor fixes and updates.
3911 2004-11-18 Werner LEMBERG <wl@gnu.org>
3913 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3914 (HTML</p>): Minor clean-up.
3916 * tmac/groff_www.man: Updated.
3918 * src/devices/grohtml/grohtml.man: Revised and updated.
3922 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3924 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3925 Fix space insertion.
3926 (html_printer::do_links): Fix rules generation around automatic
3929 * tmac/www.tmac (LK): Use HTML-TAG-NS.
3931 No longer emit empty line for non-HTML devices.
3933 2004-11-17 Werner LEMBERG <wl@gnu.org>
3935 * doc/Makefile.in (prepare_examples, webpage.html): Handle
3938 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3939 prepare_examples, webpage.html): Handle `groff.css'.
3941 2004-11-15 Werner LEMBERG <wl@gnu.org>
3943 * NEWS, README, doc/webpage.ms: Updated.
3945 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3947 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
3949 * src/include/printer.h (printer): Remove virtual function
3951 Update all source files.
3953 * src/devices/grohtml/post-html.cpp (html_printer): New member
3954 function `round_width'.
3956 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3958 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3959 column key letter suffix.
3961 2004-10-14 Werner LEMBERG <wl@gnu.org>
3963 * Makefile.in (check): Depend on `site.exp' and `docheck'.
3964 (docheck): Run dejagnu's `runtest' if it exists.
3965 (site.exp): Create dejagnu configuration file.
3967 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3969 2004-10-13 Werner LEMBERG <wl@gnu.org>
3971 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3972 src/devices/grohtml/post-html.cpp (make_val,
3973 html_printer::handle_state_assertion): Fix compiler warnings.
3975 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3976 (diversion::diversion): Fix order of initializers.
3978 * src/roff/troff/div.h: Don't include `mtsm.h'.
3980 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3981 (environment::environment): Fix order of initializers.
3982 (environment::make_tag, environment::construct_format_state): Fix
3985 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3986 (input_iterator::input_iterator, macro::macro): Fix order of
3989 * src/roff/troff/mtsm.cpp: Include only necessary header files.
3990 (state_set::add, state_set::val): Fix compiler warnings.
3992 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3993 (bool_value_state, int_value_state, units_value_state,
3994 string_value_state): Remove comma after last element which causes
3995 an error with g++ 3.3.3.
3997 * src/roff/troff/node.cpp: Include `stringclass.h'.
3998 (hline_node::hline_node, vline_node::vline_node,
3999 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
4001 (zero_width_node::zero_width_node): Fix order of initializers.
4003 * src/roff/troff/node.h: Don't include `mtsm.h'.
4004 (hmotion_node): Fix compiler warnings.
4006 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
4008 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
4010 * doc/groff.css: New file.
4012 * doc/webpage.ms: Use `groff.css'.
4015 * tmac/an-old.tmac (need_eo_h): New number register.
4016 (TH): Emit `.eo.tl' tag after title.
4017 (SH): Set `need_eo_h'.
4018 (an-trap): Handle `need_eo_h'.
4019 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
4021 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
4022 (TL): Always start diversion.
4024 (@AI): Always call `par@reset'.
4025 (@AB): Update code for -Thtml.
4026 (cov*tl-au-print): Handle -Thtml.
4027 (par@reset): Handle `need_eo_tl', `need_eo_h'.
4029 (@IT-html): Removed.
4030 (@SH): Set `need_eo_h' for -Thtml.
4031 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
4033 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
4034 Set `need_eo_h' for -Thtml.
4035 (@EQ, @EN): Don't handle -Thtml specially.
4036 (par@load-init): Don't handle -Thtml specially.
4038 * tmac/www.tmac (www:paraspace): New macro.
4039 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
4040 (HTML</p>, HTML-TAG-NEXT): New macros.
4041 (HnE): Emit tag `.eo.h' instead of break.
4042 (HR): s/HTML-NS/HTML/.
4043 (www-end-nowhere): End diversion only if `www-html' not set.
4045 (ULS, ULE): s|HTML|HTML</p>|.
4046 (LI): Call `www:paraspace'.
4049 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
4051 * src/roff/troff/request.h (macro): Make `p' public.
4052 New variable `is_a_diversion'.
4053 New member function `is_diversion'.
4056 * src/devices/grohtml/html.h (simple_output): New member function
4059 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
4060 computation of `total'.
4061 (tabs::check_init): New function.
4062 (html_table::emit_table_header): Emit style data.
4063 (html_table::insert_column): Improved.
4065 * src/devices/grohtml/html-table.h: Updated.
4067 * src/devices/grohtml/html-text.cpp (html_text::html_text):
4068 Initialize `start_space' with TRUE.
4069 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
4071 (html_text::flush_text): Set `start_space' flag.
4072 (html_text::uses_indent, html_text::remove_para_space,
4073 html_text::get_alignment): New functions.
4074 (html_text::push_para): Updated.
4075 (html_text::do_para): Check for empty argument.
4076 Don't set `space_emitted'.
4077 (html_text::do_space, html_text::emit_space): Updated.
4079 * src/devices/grohtml/html-text.h (tag_definition): New variable
4081 (html_text): New member function `uses_indent', `remove_para_space',
4084 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
4086 (simple_output:nl): Always emit `\n'.
4088 * src/devices/grohtml/post-html.cpp: Include `string.h'.
4089 (BASE_POINT_SIZE): Removed.
4090 (base_point_size, head_info): New global variables.
4091 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
4093 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
4095 (page::add_and_encode): Pass additional parameter for tag flag.
4096 (assert_pos): New structure.
4097 (assert_state): New class.
4098 (html_printer): Remove `indentation', `prev_indent'.
4099 Add variables `troff_indent', `device_indent', `temp_indent'.
4100 Add variables `seen_indent', `next_indent', `seen_pageoffset',
4101 `next_pageoffset', `seen_linelenght', `next_linelength',
4102 `seen_center', `next_center', `seen_space', `seen_break', `as'.
4103 Add member functions `do_check_center', `do_space', `do_head',
4104 `get_troff_indent', `restore_troff_indent', `handle_assertion',
4105 `handle_state_assertion', `do_end_para', `set_char_and_width'.
4106 Change argument to `do_fill' to `char *'.
4108 (html_printer::emit_raw): Call `shutdown_table'.
4110 (html_printer::do_center): Simplified.
4111 (html_printer::do_title): Improved.
4112 (html_printer::write_header): Emit one more newline.
4114 (html_printer::do_heading, html_printer::do_indent,
4115 html_printer::do_eol, html_printer::do_tab_ts,
4116 html_printer::do_tab, html_printer::do_tab0,
4117 html_printer::calc_po_in, html_printer::next_horiz_pos,
4118 html_printer::remove_courier_tabs,
4119 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
4121 (html_printer::do_linelength, html_printer::do_pageoffset,
4122 html_printer::do_indentation, html_printer::do_tempindent,
4123 html_printer::do_tab_te): Simplified.
4124 (html_printer::do_pointsize): Check whether point size is really
4125 associated a `.tl' tag.
4126 (html_printer::do_break): Rewritten.
4127 (html_printer::troff_tag): Improved.
4128 (html_printer::flush_globs): Updated.
4129 (html_printer::lookahead_for_tables): Handle `is_br'.
4131 (html_printer::set_char): Check `sbuf_style.f'.
4132 (html_printer::write_navigation): Use string comparison.
4133 (html_printer::~html_printer): Emit `head_info'.
4134 (html_printer::special): Rewritten.
4135 (get_str, make_val): New functions.
4136 (main): New option `s' to set the base point size.
4138 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
4140 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
4142 * src/roff/troff/node.cpp: New extern `debug_state'.
4143 Include `stringclass.h' and `mtsm.h'.
4144 Implement new classes and class members from `node.h'.
4145 (real_output_file): Make `fp' public.
4146 (troff_output_file): New variables `cur_div_level' and `tag_list'.
4147 Update constructors.
4148 (troff_output_file::really_print_line): Check whether we should push
4149 the current troff state and use the state at the start of the
4150 invocation of this diversion.
4151 (troff_output_file::add_to_tag_list): New member function.
4152 (node::add_char): Handle `glyph_comp_np'.
4154 * src/roff/troff/node.h: Include `mtsm.h'.
4155 (node): New variables `state', `push_state', `div_nest_level',
4156 `is_special'. Update constructors, all descendants.
4157 Pass additional argument to `add_char' member function.
4158 New virtual member functions `is_tag', `debug_node',
4159 `debug_node_list'. Update all descendants.
4160 (tag_node): New class for handling tags.
4161 (output_file): Add variable `state'.
4163 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
4165 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
4166 providing a minimal troff state machine to emit meta tags for the
4167 post-grohtml device driver.
4169 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
4172 2004-10-09 Werner LEMBERG <wl@gnu.org>
4174 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
4176 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
4178 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
4180 * src/roff/troff/div.h: Include `mtsm.h'.
4181 (diversion): New variables `any_chars_added', `needs_push',
4182 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
4183 `saved_suppress_next_eol', `modified_tag'.
4184 New virtual member function `is_diversion'. Update all descendants.
4186 * src/roff/troff/div.cpp (diversion::diversion,
4187 macro_diversion::macro_diversion): Updated.
4188 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
4189 `suppress_next_eol'.
4190 (top_level_diversion::space): Handle `curenv->seen_space'.
4191 (page_offset): Update tag handling.
4192 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4194 * src/roff/troff/env.h (environment): Make `tabs' public.
4195 Remove `ignore_next_eol', `emitted_node'.
4196 Update `output_line', `output'.
4197 New variables `seen_space', `seen_eol', `suppress_next_eol',
4199 New member functions `construct_state', `make_tag',
4200 `construct_format_state, `construct_new_line_state,
4202 Remove `add_html_tag', `make_html_tag'.
4204 * src/roff/troff/env.cpp: New externs `suppress_push',
4205 `get_diversion_state', `global_diverted_space'.
4206 (pending_output_line): New variable `was_centered'.
4207 Update constructor and all callers.
4208 (pending_output_line::output): Call `curenv->construct_format_state'.
4209 (environment::environment, environment::copy): Updated.
4210 (environment::output): Handle `was_centered'.
4211 (environment::add_char): Handle construct and diversion state.
4212 (environment::add_node): Handle construct state.
4213 (environment::newline): Handle `was_centered'.
4214 (environment::output_line): Updated.
4215 (environment::possibly_break_line): Updated.
4216 Update tag handling.
4217 (environment::add_html_tag): Replaced with...
4218 (environment::make_tag): New function.
4219 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4220 (environment::dump_troff_state): New debugging function.
4221 (environment::construct_state, environment::construct_format_state,
4222 environment::construct_new_line_state): New functions.
4223 (environment::do_break): Updated.
4224 Handle `global_diverted_space'.
4225 (environment::handle_tag): Update tag handling.
4226 (point_size, fill, do_break_request): Don't call `add_html_tag'.
4227 (no_fill): Don't call `add_html_tag'.
4228 Set `suppress_next_eol'.
4229 (center, right_justify, line_length, indent, temporary_indent,
4231 Update tag handling.
4233 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4234 (input_iterator): New variables `is_diversion', `diversion_state'.
4235 Update constructors.
4236 (input_stack): New member functions `get_div_level',
4237 `get_diversion_state', `check_end_diversion'.
4238 New variables `div_level', `diversion_state'. Initialize them.
4239 (suppress_push, global_diverted_space): New global variables.
4240 (input_stack::finish_get, input_stack::finish_peek,
4241 input_stack::remove_boundary, input_stack::end_file,
4242 input_stack::clear, input_stack::pop_macro): Call
4243 `check_end_diversion'.
4244 (input_stack::push): Handle `div_level' and `diversion_state'.
4245 (get_diversion_state): New function.
4246 (diverted_space_node::reread): Handle `global_diverted_space'.
4247 (macro::macro): Update constructors.
4248 (macro::is_diversion): New function.
4249 (macro::operator=): Set `is_a_diversion'.
4250 (string_iterator): New member function `is_diversion'.
4251 (string_iterator::string_iterator): Update constructors.
4252 (string_iterator::fill): Set `div_nest_level'.
4253 (macro_iterator): New member function `is_diversion'.
4254 (do_if_request): Handle `suppress_push'.
4255 (tag, taga): New functions.
4256 (init_input_requests): Add `tag' and `taga' requests.
4258 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
4260 * src/include/font.h (font): New member function
4261 `get_image_generator'.
4262 New variables `unscaled_charwidths' and `image_generator'.
4264 * src/libs/libgroff/font.cpp (font::get_width): Always return the
4265 character's unscaled width if `font::unscaled_charwidths' is set.
4266 (font::get_image_generator): New function.
4267 (font::load_desc): Check the `unscaled_charwidths' and
4268 `image_generator' keywords.
4270 * src/libs/libgroff/fontfile.cpp: Initialize
4271 `font::unscaled_charwidths' and `font::image_generator'.
4273 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4275 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4277 * man/groff_font.man: Document `unscaled_charwidths' and
4280 * src/preproc/html/pre-html.cpp: Include `device.h'.
4281 (image_gen): New global variable.
4282 (imageList::createPage): Use `image_gen'.
4283 (main): Use `image_generator' keyword.
4285 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4287 * tmac/html.tmac: Handle \[sqrtex].
4289 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4291 * src/include/printer.h (printer): New virtual method `round_width'.
4293 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4294 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4295 src/devices/grotty/tty.cpp (printer::round_width): New function
4298 * src/devices/grohtml/post-html.cpp (printer::round_width): New
4300 (html_printer::set_numbered_char): Use it.
4302 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
4304 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4306 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4308 * configure: Regenerated.
4310 * Makefile.in (GHOSTSCRIPT): New variable.
4311 (MDEFINES): Add GHOSTSCRIPT.
4313 2004-10-03 Werner LEMBERG <wl@gnu.org>
4315 * INSTALL.gen: Updated (taken from texinfo CVS).
4317 2004-09-28 Werner LEMBERG <wl@gnu.org>
4321 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4323 * tmac/groff_www.man: Revised and updated.
4325 2004-09-26 Werner LEMBERG <wl@gnu.org>
4327 Fix \$@ and \$* to handle any number of arguments.
4329 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4332 * src/roff/troff/input.cpp (input_iterator::internal_level):
4334 (input_stack): New member functions `increase_level' and
4336 (input_stack::get_level): Don't use `internal_level'.
4337 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4338 (end_quote_iterator): Completely removed.
4339 (interpolate_arg): Build string for \$@ and \$* which is then
4340 pushed onto the input stack.
4342 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
4344 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4345 Registers): Document changes from 2004-09-19.
4347 2004-09-23 Werner LEMBERG <wl@gnu.org>
4349 * tmac/an-old.tmac (ne): Using default scaling operator.
4351 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4353 This change implements the following features:
4356 New numeric register: Defines number of lines following LP, PP,
4357 QP, IP or XP, which must be kept together, before any automatic
4358 page break. If insufficient space remains on the current page, a
4359 page break is forced before the new paragraph begins.
4362 New numeric register: Sets number of lines of following paragraph
4363 which must be kept with a heading, defined by NH or SH, before any
4364 automatic page break. If insufficient space remains on the
4365 current page, a page break is forced before the heading.
4368 (Thanks to Joerg van den Hoff, for this idea).
4370 New numeric register: Sets the first level of heading (set with
4371 NH), which will keep the same point size as body text; e.g. if
4372 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4373 point size specified by \n[PS], but .NH 2 and .NH 1 will have
4374 progressively larger point sizes, determined by \n[PSINCR] (see
4378 New numeric register: Sets the point size increment for each level
4379 of heading, (set with NH), below the threshold level set by
4380 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4381 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4382 and all other levels will remain at 10pt, (because \n[PS] = 10).
4385 Existing macro now accepts a numeric argument, to make heading
4386 size match that of NH with same argument value, when the
4387 GROWPS/PSINCR feature is enabled.
4390 New string, set by NH macro, replaces the existing (undocumented)
4391 use of SN, to represent the assigned section number.
4394 New string, set by NH macro, represents the assigned section
4395 number, but omits the terminal period (periods at intermediate
4396 levels are retained).
4399 String set by NH macro, originally undocumented, now implemented
4400 as an alias for SN-DOT (which reproduces original behaviour).
4402 * tmac/s.tmac (PORPHANS): New register.
4403 (par*start): Use it.
4404 (HORPHANS, GROWPS, PSINCR): New registers.
4405 (SH-NO-TAG, @SH): Use them.
4408 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4410 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4411 Document the deletion of `Ds' and `De' macros.
4413 2004-09-10 Werner LEMBERG <wl@gnu.org>
4415 In tbl, handle \a as an interpreted leader character if in
4418 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4419 LEADER_CHAR): New macros.
4420 (compatible_flag): New declaration.
4422 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4423 LEADER_3, and LEADER_4 to `state'.
4424 (table_input::get): Handle `\a'.
4426 * src/preproc/tbl/table.cpp (PREFIX): Removed.
4427 (LEADER_REG): New macro.
4428 (table::init_output): Define LEADER_REG string register if in
4431 * src/preproc/tbl/tbl.man: Document it.
4433 2004-08-18 Werner LEMBERG <wl@gnu.org>
4435 * tmac/doc.tmac (An): Fix error message.
4437 2004-08-06 Werner LEMBERG <wl@gnu.org>
4439 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4440 file can't be opened. UNIX tbl has the same behaviour.
4442 2004-08-05 Y T <doarhop@hotmail.com>
4444 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4445 (DBRead): If in compatibility mode, take into account the text
4446 when computing figure boundaries.
4448 2004-08-05 Werner LEMBERG <wl@gnu.org>
4450 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
4451 from Tadziu Hoffmann.
4453 2004-08-03 Werner LEMBERG <wl@gnu.org>
4455 * doc/meref.me: Document `_M' register.
4457 2004-08-03 Martin Husemann <martin@duskware.de>
4459 Make hpftodit work correctly on big-endian systems.
4461 * src/utils/hpftodit/hpftodit.cpp (File): New method
4462 `get_uint32(char *)'.
4463 (entry): New member `orig_value'.
4464 (read_tags): Use new method.
4465 (output_font_name, read_and_output_pcltypeface, dump_ascii):
4468 2004-08-01 Werner LEMBERG <wl@gnu.org>
4470 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
4471 are already in X11's `macros.t' file.
4473 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
4475 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4477 (read_and_output_pcltypeface): Handle strings with length <= 4.
4479 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
4481 * tmac/s.tmac (pg@top): Don't save `PO' register.
4482 (pg*end-col, pg*end-page): Directly use `PO' register.
4484 2004-07-27 Werner LEMBERG <wl@gnu.org>
4486 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4488 * src/preproc/refer/refer.cpp (output_references): Check for
4490 * src/preproc/refer/refer.man: Improve documentation of
4491 `bibliography' command.
4493 2004-07-26 Werner LEMBERG <wl@gnu.org>
4495 Add requests `fcolor' and `gcolor'.
4497 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4499 (init_env_requests): Add `fcolor' and `gcolor'.
4501 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4503 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4504 (Colors): Document new requests.
4506 2004-07-24 Werner LEMBERG <wl@gnu.org>
4508 Add support for fractional point sizes in ms macros. A value for
4509 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4510 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4512 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4513 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4515 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4516 Registers), NEWS: Document it.
4518 2004-07-19 Werner LEMBERG <wl@gnu.org>
4520 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4522 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4523 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4525 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4527 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4528 * tmac/groff_mdoc.man: Updated.
4530 2004-07-05 Werner LEMBERG <wl@gnu.org>
4532 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4533 documentation of `hcode'.
4535 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4537 Improve appearance of arrows in pic.
4539 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4541 Use two line segments for drawing non-filled arrow head.
4542 (line_object::print, spline_object::print): Shorten line length to
4543 avoid arrow sticking.
4544 (arc_object::print): Take arrow direction into account.
4546 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4548 * tmac/groff_www.man: Update documentation of .MPIMG.
4550 2004-07-03 Werner LEMBERG <wl@gnu.org>
4552 * tmac/an-old.tmac (RI): Always start with font `R'.
4553 (RI, IR): Properly end with font `R'.
4555 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4557 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4558 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4559 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4560 Don't pass more than six arguments to .R, .I, .B, etc., for
4561 compatibility with traditional troff macros.
4563 2004-07-02 Werner LEMBERG <wl@gnu.org>
4565 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4566 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4568 (PUSH_COMP_MODE): New internal character constant.
4571 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4572 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4573 (token::next, macro::append): Handle PUSH_COMP_MODE.
4574 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4575 POP_GROFFCOMP after each of the decoded arguments to make them
4576 independent from the compatibility mode status.
4577 (comp_mode): Add `COMP_ENABLE'.
4578 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4579 (define_string, append_string, define_macro, define_indirect_macro,
4580 append_macro, append_indirect_macro): Handle `compatible_flag'.
4581 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4583 * man/groff_diff.man, doc/groff.texinfo: Updated.
4585 2004-07-01 Werner LEMBERG <wl@gnu.org>
4587 * doc/groff.texinfo: Improve documentation of `hcode'.
4588 Use @documentencoding and convert document to latin-1; to do that
4589 make latin characters active and assign proper macros (within a
4590 @tex...@end tex environment).
4591 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4592 * doc/Makefile.sub (groff): Ditto.
4594 2004-06-29 Werner LEMBERG <wl@gnu.org>
4596 Implement two new conditional operators `F <name>' and `S <name>'
4597 which check whether <name> is a valid font or style, respectively.
4599 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4600 (text_file::text_file): Updated.
4601 (text_file::error): Don't emit message if `silent' is set.
4602 (font::load_font): Add optional third argument (which is directly
4604 (font::load): Add optional second argument to check the header of
4605 a font only, without emitting warning or error messages.
4606 * src/include/font.h (font): Updated.
4608 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4610 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4611 fourth argument to check a font without mounting.
4612 (check_font, check_style): New functions.
4613 * src/roff/troff/node.h: Updated.
4615 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4618 2004-06-27 Werner LEMBERG <wl@gnu.org>
4620 Implement new string-valued register `.sty' to return the current
4623 * env.cpp (environment::get_style_name_string): New function.
4624 (init_env_requests): Add `.sty' register.
4625 * env.h (environment): Updated.
4626 * node.cpp (font_info): Make `get_style_name' a friend.
4627 (get_style_name): New function.
4630 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4633 2004-06-15 Werner LEMBERG <wl@gnu.org>
4635 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4638 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4640 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4641 and \n[mo] to avoid dependency on current date.
4643 2004-06-08 Werner LEMBERG <wl@gnu.org>
4645 * Makefile.sub (install_data): New target.
4647 2004-06-04 Werner LEMBERG <wl@gnu.org>
4649 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4651 2004-06-03 Werner LEMBERG <wl@gnu.org>
4653 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4655 (install_data): Add $(srcdir).
4657 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4660 2004-06-02 Werner LEMBERG <wl@gnu.org>
4662 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4663 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4664 Add test for Xmu library.
4665 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4666 GROFF_APPRESDIR_DEFAULT): New macros.
4668 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4669 and GROFF_APPRESDIR_DEFAULT.
4671 * configure: Regenerated.
4673 * Makefile.in (appresdir): New variable.
4674 (MDEFINES): Add appresdir.
4676 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4678 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4680 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4681 `$(srcdir)/eign', not `eign'.
4683 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4685 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4686 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4687 Protect (g)xditview with `\%' to avoid hyphenation.
4688 Other minor formatting.
4690 2004-06-01 Werner LEMBERG <wl@gnu.org>
4692 Integrate gxditview into groff's standard directory hierarchy.
4694 * src/xditview/*: Moved to ...
4695 * src/devices/xditview/*: Here.
4696 Moved DviChar.h and XFontName.h to src/include.
4697 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4698 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4699 Moved xtotroff.c to new directory src/utils/xtotroff.
4700 Provide proper Makefile.sub files (reusing the stuff from
4702 DESC renamed to DESC.in.
4703 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4704 Converted everything from K&R to ANSI C.
4705 Decorated with const where appropriate.
4706 Cast string constants with `String' and `char *' where appropriate.
4707 Made it compile with C++ (used as a C compiler).
4708 Removed other minor compiler warnings.
4710 * src/devices/xditview/device.c: Include config.h, string.h, and
4712 Don't declare `exit', `strtok', `strchr', and `getenv'.
4715 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4718 * src/devices/xditview/xditview.c: Include config.h.
4719 Include stdio.h earlier.
4720 Protect declaration of `popen' and `pclose' with
4721 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4722 Replace `caddr_t' with `XtPointer'.
4723 (MakePromptFunc): New typedef.
4724 (DoPrint): Use RETSIGTYPE.
4725 (promptfunction): Change type to MakePromptFunc.
4726 (MakePrompt): Use MakePromptFunc for third argument.
4729 * src/devices/xditview/ad2c: Add casts to `String'.
4731 * src/include/XFontName.h (XFontNameString): Don't use array
4733 Add prototypes for `XParseFontName', `XFormatFontName',
4734 `XCompareFontName', and `XCopyFontName'.
4736 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4739 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4740 Don't declare `XParseFontName' and `XFormatFontName'.
4742 (main): Remove `optind' and `optarg'.
4744 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4745 (to select programs which need X).
4746 Make XDEVIDIRS depend on `FORCE'.
4747 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4749 (MDEFINES): Updated.
4750 (LIBDIRS): Use XLIBDIRS.
4751 (CPROGDIRS): Use XPROGDIRS.
4752 (DEVDIRS): Remove font directories for gxditview.
4753 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4754 (EXTRADIRS): Remove src/xditview.
4756 * Makefile.sub (DISCLEANFILES): Updated.
4758 * Makefile.comm (LIBXUTIL): New variable.
4759 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4760 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4762 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4764 * aclocal.m4 (GROFF_X11): New function.
4766 * configure.ac: Call GROFF_X11.
4767 Don't create src/xditview/Imakefile.
4768 Don't emit notice how to build gxditview.
4770 * configure: Regenerated.
4772 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4774 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4776 * Makefile.in (CPPFLAGS): Define.
4777 (MDEFINES): Add CPPFLAGS.
4779 2004-05-27 Werner LEMBERG <wl@gnu.org>
4781 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4783 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4785 Fix problems with `friend name injections'.
4787 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4788 make_script_box), src/roff/troff/div.h (end_diversions),
4789 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4792 2004-05-25 Bernd Warken <bwarken@mayn.de>
4794 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4796 2004-05-25 Werner LEMBERG <wl@gnu.org>
4798 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4799 src/libs/libgroff/color.cpp: Include lib.h.
4801 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4803 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4804 through Forte 6u1, and for how to get GNU make on Solaris.
4806 2004-05-24 Werner LEMBERG <wl@gnu.org>
4808 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4811 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4813 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4816 2004-05-14 Werner LEMBERG <wl@gnu.org>
4818 * REVISION: Set to 2.
4820 * aclocal.m4 (GROFF_STDINT_H): Removed.
4821 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4823 * configure.ac: Updated.
4824 * configure, src/include/config.hin: Regenerated.
4826 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4827 inttypes.h conditionally.
4829 2004-05-13 Werner LEMBERG <wl@gnu.org>
4831 Version 1.19.1 released
4832 =======================
4834 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4836 * src/preproc/refer/label.y (same_author_last_name,
4837 same_author_name): Handle empty sort keys.
4839 2004-05-10 Werner LEMBERG <wl@gnu.org>
4841 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4844 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4845 doc-str-Lb-librt): Reset font.
4846 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4847 Provide `doc-str-Lb' to reset font.
4848 * tmac/groff_mdoc.man: Updated.
4850 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4852 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4853 snprintf versions which don't conform to ANSI C 99 (this is,
4854 counting the string's trailing null byte in the return value).
4856 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4858 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4859 that all implementations of sprintf handle null pointers correctly.
4861 2004-05-04 Werner LEMBERG <wl@gnu.org>
4863 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4864 Document `.U' register.
4866 * src/roff/troff/env.cpp (environment::mark_last_line)
4867 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4869 2004-05-04 Larry Kollar <kollar@alltel.net>
4871 New read-only register `.U'; it returns 1 in safer mode and 0
4874 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4877 2004-05-03 Werner LEMBERG <wl@gnu.org>
4879 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4881 2004-04-17 Werner LEMBERG <wl@gnu.org>
4883 * src/include/font.h (font): Use `int' for ch_index.
4884 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4885 font::compact): Updated.
4887 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4890 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4891 (hyphen_word): Fix compiler warnings.
4892 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4895 (get_delim_number, get_line_arg): Change second argument type to
4897 (macro_header::copy, token::next, do_define_string,
4898 do_define_character, substring_request, asciify_macro,
4899 unformat_macro, read_size, non_interpreted_node::interpret,
4900 while_request, main: Fix compiler warnings.
4901 (read_color_draw_node): Initialize `col'.
4903 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4904 `start_col' and `end_col' of type `int'.
4905 (vertical_rule): Make `col' of type `int'.
4907 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4910 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4912 (format_serial): Use them to remove dependency on ASCII.
4914 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4916 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4919 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4921 (glyph): Change type of `hpos' to `int'.
4923 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4924 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4926 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4928 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4930 2004-04-16 Werner LEMBERG <wl@gnu.org>
4932 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4933 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4934 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4935 `double' instead of `float' everywhere.
4936 * src/preproc/grn/main.cpp: Use `double' instead of `float'
4938 (main): Add return value.
4939 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4941 Update all user functions.
4943 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4944 src/preproc/eqn/box.h, src/preproc/pic/object.h,
4945 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4946 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4947 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4948 src/roff/troff/input.cpp, src/roff/troff/request.h,
4949 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4952 * src/utils/indxbib/signal.c: Include stdlib.h.
4954 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
4956 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4957 before the first page.
4959 2004-04-14 Thomas Klausner <wiz@netbsd.org>
4961 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4962 (doc-operating-system-*): Updated.
4963 * tmac/doc-syms (doc-str-St-*): Various small fixes.
4964 (doc-str-Lb-*): Add more library names.
4966 2004-04-10 Art Haas <ahaas@airmail.net>
4968 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4971 2004-04-09 Art Haas <ahaas@airmail.net>
4973 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4975 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
4977 * arch/misc/shdeps.sh: Generate better comment for sed script.
4979 2004-04-08 Art Haas <ahaas@airmail.net>
4981 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4982 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4983 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4984 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4985 (polyfill), src/preproc/grn/main.cpp (polyfill),
4986 src/preproc/refer/command.cpp (command_table),
4987 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4988 gcc 3.5 doesn't like).
4990 2004-04-08 Werner LEMBERG <wl@gnu.org>
4992 Removing many compiler warnings. groff should now compile with
4993 a C++ compiler used for C files also. [Simple variable renamings
4994 to avoid shadowing aren't logged in detail.]
4996 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4997 (draw_dvi_printer::draw) ['c']: Enclose in block.
4999 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
5000 (page::add_line): Fix typos.
5001 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
5003 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
5004 Some local variable renamings.
5005 * src/devices/grolbp/lbp.h: Some local variable renamings.
5007 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
5010 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
5011 Remove redundant local variable declaration.
5012 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
5013 Don't use `caddr_t' but `void *'.
5014 Enclose functions with `extern "C"' for C++.
5016 * src/libs/libdriver/input.cpp (remember_filename,
5017 remember_source_filename): Use cast for string constant.
5019 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
5020 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
5021 src/libs/libgroff/geometry.cpp: Some local variable renamings.
5022 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
5024 Enclose functions with `extern "C"' for C++.
5025 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
5026 (needs_quoting): Return `int'.
5027 (quote_arg): Add proper casts to malloc and realloc.
5028 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
5029 various MS Windows environments.
5030 (spawnvp_wrapper): Add proper cast to malloc.
5032 * src/preproc/eqn/box.h: Remove redundant declarations of
5033 `make_script_box', `make_mark_box' and `make_lineup_box'.
5034 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
5035 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
5038 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
5039 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
5040 (dx, dy): Renamed functions to...
5041 (deltax, deltay): This.
5042 * src/preproc/grn/main.cpp: Some local variable renamings.
5043 (deffont): Add `const'.
5044 (initpic, conv): Use cast for string constant.
5046 * src/preproc/html/pre-html.cpp: Some local variable renamings.
5047 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
5048 (char_buffer::run_output_filter): Second argument is unused.
5049 * src/preproc/html/pushback.cpp: Some local variable renamings.
5051 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
5052 * src/preproc/pic/object.cpp: Some local variable renamings.
5054 * src/preproc/refer/label.y (lookup_label): Remove redundant
5055 declaration of local variable.
5057 * src/preproc/soelim.cpp: Remove redundant declaration of
5058 `interpret_lf_args'.
5060 * src/preproc/tbl/main.cpp: Some local variable renamings.
5062 * src/roff/groff/groff.cpp (main): Use cast for string constant.
5063 * src/roff/groff/pipeline.c: Enclose declarations of `error',
5064 `c_fatal', and `i_to_a' with `extern "C"' for C++.
5065 Don't use C++-style comments.
5067 * src/roff/troff/env.h: Remove redundant declaration of `title'.
5068 * src/roff/troff/node.h, src/roff/troff/env.cpp,
5069 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
5071 * src/roff/troff/div.h: Remove redundant declaration of
5073 * src/roff/troff/troff.h: Remove redundant declaration of
5075 * src/roff/troff/input.cpp: Remove redundant declaration of
5076 `handle_first_page_transition' and `process_input_stack'.
5078 * src/utils/hpftodit.cpp: Some local variable renamings.
5080 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
5082 Don't define RETSIGTYPE.
5083 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
5085 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
5086 (error): Use `const' in argument.
5087 (main): Remove redundant declaration of `optind'.
5088 Move declaration of `Version_string' to top-level.
5090 * PROBLEMS: Document difficulties compiling signal.c if a C++
5091 compiler is used for C.
5093 2004-04-07 Werner LEMBERG <wl@gnu.org>
5095 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
5097 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
5099 Make scripts like nroff.sh and neqn.sh portable across various
5100 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
5101 non-POSIX path separators. The idea is to extend those scripts to
5102 decide at run-time (of the script) which path separator to use.
5104 * arch/misc/Makefile.sub: New file.
5105 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
5106 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
5107 a proper definition of the variable `GROFF_RUNTIME'.
5109 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
5110 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
5111 (PROGDEPDIRS): New variable.
5113 (PROGDIRS): Add PROGDEPDIRS.
5115 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
5116 Don't substitute @SEP@ and @BINDIR@.
5117 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
5118 (PATH): Use GROFF_RUNTIME.
5120 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
5121 Don't substitute @SEP@ and @BINDIR@.
5122 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
5123 (PATH): Use GROFF_RUNTIME.
5125 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5127 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
5128 Cygwin which doesn't handle stderr correctly.
5130 2004-03-08 Werner LEMBERG <wl@gnu.org>
5132 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
5133 against empty argument. Problem reported by <cgd@broadcom.com>.
5135 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5137 * Makefile.in (SEP): Replaced with...
5138 (RT_SEP, SH_SEP): Separators for the target platform's native path
5139 separator and the build environment, respectively.
5140 (fontpath, tmacpath): Use RT_SEP.
5141 (MDEFINES): Updated.
5143 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
5144 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
5145 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
5147 2004-03-05 Werner LEMBERG <wl@gnu.org>
5149 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
5150 reduce alignment problems with newer printers which use built-in
5151 TrueType fonts (instead of the older Intellifonts). The ideal
5152 solution is to provide a second set of groff metric files, but this
5153 is extremely time-consuming to produce, given that HP's metric
5154 files are very rudimentary.
5156 2004-03-01 Werner LEMBERG <wl@gnu.org>
5158 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
5159 s/operand/argument/ in error message.
5161 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5163 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
5166 2004-03-01 Antti Kantee <pooka@netbsd.org>
5168 * tmac/s.tmac (XE): Fix error message.
5170 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
5172 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
5175 * src/roff/groff/pipeline.c: Declare strcasecmp.
5176 (run_pipeline) [_WIN32]: Use function name variants which don't
5178 Fix stream handling.
5180 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
5182 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
5183 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
5184 for platforms which use the native Win32 runtime libraries.
5185 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
5187 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
5188 QUOTE_ARG_REALLOC_ERROR): Fix string.
5190 * src/preproc/html/pre-html.cpp: Remove declaration of
5192 Don't use __MINGW32__.
5193 s/DEBUG_FILE/DEBUG_FILE_DIR/.
5194 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5195 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5196 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5197 calls to `set_redirection' and `WAIT'.
5198 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5199 Fix calls to `set_redirection' and `save_and_redirect'.
5200 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5201 to `set_redirection' and `save_and_redirect'.
5202 (usage): Fix message.
5203 (makeTempFiles, main): Use `DEBUG_FILE'.
5205 2004-02-21 Werner LEMBERG <wl@gnu.org>
5207 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5209 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
5211 * src/libs/libgroff/quotearg.c: New file, providing proper argument
5212 quoting for MSVC's spawn* and exec* functions.
5213 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5214 spawnvp with proper quoting for MSVC.
5216 * src/libs/libgroff/assert.cpp (program_name),
5217 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5218 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5220 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5222 * src/include/error.h (program_name): Declare as `extern "C"'.
5223 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5225 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
5227 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5229 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5231 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
5233 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5235 (sbasename) [__MSDOS__ || ...]: New function.
5236 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5238 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5239 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5241 Use STDOUT_FILENO instead of hardcoded file handle.
5242 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5244 2004-02-19 Werner LEMBERG <wl@gnu.org>
5246 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5247 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5249 2004-02-18 Werner LEMBERG <wl@gnu.org>
5251 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5252 new font and mapping files.
5254 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
5255 Keith Marshall <keith.d.marshall@ntlworld.com>
5257 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5258 an input pipe. This is needed for the MSVC compiler to make troff's
5261 * src/roff/troff/div.cpp: Include nonposix.h.
5262 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5264 2004-02-17 Werner LEMBERG <wl@gnu.org>
5266 * font/devlj4/generate/special.awk: New script.
5267 * font/devlj4/generate/Makefile (S): Use special.awk.
5268 * font/devlj4/*: Regenerated, including the following new files:
5269 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5270 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5271 * NEWS: Document new lj4 fonts and revised hpftodit.
5273 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
5275 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5277 2004-01-25 Werner LEMBERG <wl@gnu.org>
5279 * src/libs/libgroff/progname.cpp: Replaced with...
5280 * src/libs/libgroff/progname.c: New file.
5281 * src/libs/libgroff/Makefile.sub: Updated accordingly.
5283 2004-01-17 Werner LEMBERG <wl@gnu.org>
5285 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5287 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
5289 * font/devlj4/generate/wingdings.map,
5290 font/devlj4/generate/symbol.map: Include unnamed glyphs.
5291 Use groff glyph names where possible.
5292 * src/devices/grolj4/lj4_font.man: Minor updates.
5294 2004-01-13 Werner LEMBERG <wl@gnu.org>
5296 * tmac/www.tmac (DC): Handle TTY devices.
5298 * doc/webpage.ms: Document viewCVS from ffii.org.
5299 * NEWS, README: Updated.
5301 * src/roff/groff/groff.man: Mention lj4_font man page.
5303 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5305 (FONTS): Add SYMBOL and WINGDINGS.
5306 (SYMBOL, WINGDINGS): New targets.
5308 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
5310 * src/devices/grolj4/lj4_font.man: New man page.
5311 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5312 * src/devices/grolj4.man: Mention lj4_font man page.
5314 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5315 * src/utils/hpftodit/hpftodit.man: Document it.
5317 Remove details about fonts (which are now in lj4_font.man).
5319 * font/devlj4/generate/symbol.map,
5320 font/devlj4/generate/wingdings.map: New files.
5322 2004-01-12 Werner LEMBERG <wl@gnu.org>
5324 * README: Mention ffii's viewcvs access.
5326 2004-01-09 Werner LEMBERG <wl@gnu.org>
5328 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5330 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
5332 Revert most of the change from 2004-01-03 to better control used
5335 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5336 (text_symbol_sets, special_symbol_sets): New arrays.
5337 (symbol_set_table): New global variable.
5338 (read_symbol_sets): Use search order given in the text_symbol_sets
5339 and special_symbol_sets arrays. If command line flag -a is not
5340 given, search both arrays.
5341 (output_charset): Require x_height_tag only for command line flag -i.
5343 2004-01-06 Werner LEMBERG <wl@gnu.org>
5345 Implement string-valued registers \n[.m] and \n[.M] to return the
5346 name of the current drawing and background color, respectively.
5348 * src/roff/troff/symbol.h: Moved to...
5349 * src/include/symbol.h: Here.
5350 Small fixes to make it work outside of the `troff' directory.
5351 * src/roff/troff/symbol.cpp: Moved to...
5352 * src/libs/libgroff/symbol.cpp: Here.
5353 Small fixes to make it work outside of the `troff' directory.
5355 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5356 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5359 * src/include/color.h: Include symbol.h.
5360 (color): Add new field `nm'.
5361 * src/libs/libgroff/color.cpp (color::color): Updated.
5363 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5364 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5365 src/roff/troff/reg.cpp: Don't include symbol.h.
5367 * src/roff/troff/env.cpp: Don't include symbol.h.
5368 (environment::get_glyph_color_string,
5369 environment_get_fill_color_string): New member functions.
5370 (init_env_requests): Handle `.m' and `.M' registers.
5371 * src/roff/troff/input.cpp: Don't include symbol.h.
5372 (default_symbol): Moved to symbol.cpp/symbol.h.
5373 (do_glyph_color, do_fill_color, define_color): Pass symbol name
5374 to color constructor.
5375 * src/roff/troff/env.h: Updated.
5377 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5378 Document new registers.
5380 2004-01-05 Werner LEMBERG <wl@gnu.org>
5382 * src/roff/troff/node.cpp (space_node::get_breakpoints,
5383 space_node::nbreaks): Protect against zero `next' field.
5385 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
5387 In hpftodit, use the symbol sets offered in the TFM.
5389 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5390 (symbol_set, text_symbol_sets, special_symbol_sets,
5391 symbol_set_table): Removed.
5392 (get_printcode): Removed.
5393 (read_symbol_sets): Initialize `symbol_set' field with
5395 Simplify code to just use the `kind' value.
5396 (output_charset): Improve output formatting.
5397 (dump_symbols): Simplified.
5399 2004-01-02 Werner LEMBERG <wl@gnu.org>
5401 * font/devlj4/generate/text.map: Add more MSL numbers.
5403 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
5405 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5406 (text_symbol_sets): Add more symbol sets.
5407 (debug_flag): New static variable (moved from `main').
5408 (get_printcode, show_symset): New functions.
5409 (main): Remove `debug_flag'.
5410 (output_charset): Use `show_symset'.
5411 (dump_symbols): Use `show_symset'.
5412 Print symsets for all glyphs.
5413 (read_map): Actually call `unicode_to_ucode_make' but this time
5416 2004-01-01 Werner LEMBERG <wl@gnu.org>
5418 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5419 Fix placement of comments.
5421 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
5423 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5424 option `-d' is given.
5425 (output_charset): Improve warning messages to give more information.
5426 (dump_symbols): Make information more precise.
5428 (read_map): Don't call unicode_to_ucode_name; the glyph names must
5429 appear as-is and shouldn't be decomposed.
5431 2003-12-31 Werner LEMBERG <wl@gnu.org>
5433 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5434 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5435 (FONTS): Add TrueType font families Arial and Times New Roman.
5436 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5437 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5440 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
5442 * test-groff.in (SEP): Quote value.
5443 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5444 `tem' to `char*' to avoid deallocation of a pointer to a constant
5445 object which some compilers don't like.
5447 2003-12-31 Werner LEMBERG <wl@gnu.org>
5449 * font/devlj4/generate (text.map, special.map): Rewritten to work
5450 with the new hpftodit version.
5452 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
5454 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5455 set and 8bit character code for all glyphs also.
5457 2003-12-30 Werner LEMBERG <wl@gnu.org>
5459 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5461 2003-12-29 Werner LEMBERG <wl@gnu.org>
5463 More fixes for MSVC compiler.
5465 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5467 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5468 STDERR_FILENO) [_MSC_VER]: Define conditionally.
5469 (getpid) [_MSC_VER]: Remove.
5470 Include direct.h and process.h conditionally.
5472 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5473 parentheses for a_delete.
5475 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5477 * test-groff: Replaced with...
5478 * test-groff.in: This new template to handle path separator
5481 * configure.ac: Check for direct.h and process.h.
5482 Generate test-groff script.
5483 * configure, src/include/config.hin: Regenerated.
5485 2003-12-28 Werner LEMBERG <wl@gnu.org>
5487 Add integral extension glyph.
5488 Add new option `-x' to afmtodit to suppress use of built-in AGL.
5490 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5492 * font/devps/generate/textmap: Provide entry for `integralex' to
5493 override (old) PUA value of the AGL.
5494 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5495 * font/devps/*: Regenerated.
5497 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5498 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5500 2003-12-27 Werner LEMBERG <wl@gnu.org>
5502 Add forgotten `coproduct' symbol (already available for DVI).
5504 * font/devhtml/R.proto, font/devps/generate/textmap,
5505 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5506 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5507 U+2210 (\[coproduct]).
5509 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5511 hpftodit has been extended to handle TrueType metric files and
5512 more glyphs. See hpftodit.man for more details.
5514 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5515 ctype.h, and unicode.h.
5516 s/msl/charcode/ everywhere since we now handle Unicode values also.
5517 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5518 Use it where appropriate.
5519 (MULTIPLIER): Replaced with...
5520 (multiplier): New global static variable.
5522 (tag_type): Add more TFM tags.
5523 (tag_name): New array.
5524 (ENUM_TYPE, FLOAT_TYPE): Removed.
5525 (BYTE_TYPE): New value assigned.
5526 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5527 (text_symbol_sets, special_symbol_sets): Extended to cover more
5529 (check_type): Add return value.
5530 (check_units): Add parameters to get ppi and upem values.
5531 Handle TrueType TFM data.
5532 (output_font_name): New function.
5533 (output_charset): Add parameter to handle TFM type.
5534 Handle TrueType TFMs also.
5535 (em_fract): New macro.
5536 (dump_tags): Be much more verbose and handle more tags.
5537 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5538 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5540 (read_map): Add parameter to handle TFM type.
5541 Handle both MSL and Unicode mappings.
5542 (main): Add two new command line options `-a' and `-q'.
5543 Updated to make use of new functions.
5546 * src/utils/hpftodit/hpuni.cpp: New file.
5548 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5551 2003-12-25 Werner LEMBERG <wl@gnu.org>
5553 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5555 2003-12-24 Werner LEMBERG <wl@gnu.org>
5557 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5558 by Michail Vidiassov <master@iaas.msu.ru>.
5560 2003-12-20 Werner LEMBERG <wl@gnu.org>
5562 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5564 Add missing latin-2 glyphs.
5565 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5567 * tmac/troffrc: Load `composite.tmac' earlier.
5569 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5570 u00{53,73}_0327, and u0049_0307.
5571 * tmac/X.tmac: Add u00{47,67}_0306.
5572 * tmac/tty-char.tmac: Use composite glyph names for readability.
5576 * src/include/unicode.h: Remove `extern' keywords.
5578 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5580 * tmac/latin5.tmac: New file.
5582 2003-12-19 Werner LEMBERG <wl@gnu.org>
5584 Add some glyphs needed for Turkish.
5586 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5589 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5590 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5591 u00{53,73}_0327, and u0049_0307.
5593 2003-12-18 Werner LEMBERG <wl@gnu.org>
5595 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5597 Remove trailing zeros.
5599 2003-12-17 Werner LEMBERG <wl@gnu.org>
5601 Make \? transparent to end-of-sentence recognition.
5603 * src/roff/troff/input.cc (non_interpreted_node): Add
5604 `ends_sentence' member function.
5606 2003-12-16 Werner LEMBERG <wl@gnu.org>
5608 * doc/groff.texinfo: Document `dt' request correctly.
5609 Other minor typographical improvements.
5611 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5613 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5615 2003-12-10 Richard Stallman <rms@gnu.org>
5617 * LICENSE: Better wording.
5619 2003-12-09 Werner LEMBERG <wl@gnu.org>
5621 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5622 * configure, NEWS: Updated.
5624 2003-12-08 Werner LEMBERG <wl@gnu.org>
5626 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5628 2003-12-07 Bernd Warken <bwarken@mayn.de>
5632 2003-12-07 Werner LEMBERG <wl@gnu.org>
5634 * INSTALL: Improved.
5636 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5638 Use path separator character of target platform for compiled-in
5641 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5642 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5643 * configure: Regenerated.
5644 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5646 2003-12-05 Werner LEMBERG <wl@gnu.org>
5648 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5649 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5651 2003-12-04 Bernd Warken <bwarken@mayn.de>
5653 * LICENSE: New file.
5655 2003-12-03 Werner LEMBERG <wl@gnu.org>
5657 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5658 ligatures present in AFM files since groff currently only
5659 understands some standard ligatures and nothing else.
5661 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5663 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5666 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5669 Don't use Unix wait flags.
5671 2003-12-02 Werner LEMBERG <wl@gnu.org>
5673 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5674 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5675 src/roff/troff/uniuni.cpp: Moved to...
5676 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5677 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5678 src/libs/libgroff/uniuni.cpp: Here.
5680 * src/include/Makefile.sub.old (HDRS),
5681 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5682 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5684 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5686 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5690 2003-12-01 Werner LEMBERG <wl@gnu.org>
5692 * groff.texinfo: Document special behaviour of `.vs 0'.
5693 Improve documentation of `cflags' request.
5696 2003-11-29 Werner LEMBERG <wl@gnu.org>
5698 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5699 * font/devlj4/CORONET: Regenerated.
5701 2003-11-24 Werner LEMBERG <wl@gnu.org>
5703 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5704 if processing hyphenation patterns in traditional mode.
5705 Improve error messages.
5707 2003-11-20 Werner LEMBERG <wl@gnu.org>
5709 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5710 troff_output_file::put_char): Fix type of local variable `c'.
5712 2003-11-19 Werner LEMBERG <wl@gnu.org>
5714 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5716 (i_to_a): Removed. libgroff already provides this function.
5717 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5719 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5721 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5724 2003-11-17 Werner LEMBERG <wl@gnu.org>
5726 * COPYING: Use correct version.
5728 2003-11-11 Werner LEMBERG <wl@gnu.org>
5730 LynxOS 4.0.0 doesn't declare vfprintf.
5732 * configure.ac: Check for vfprintf.
5733 * configure: Regenerated.
5734 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5735 * src/include/config.hin: Regenerated.
5737 2003-11-10 Werner LEMBERG <wl@gnu.org>
5739 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5741 * configure.ac: Check for vsnprintf.
5742 * configure: Regenerated.
5743 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5745 * src/include/config.hin: Regenerated.
5747 2003-11-09 Werner LEMBERG <wl@gnu.org>
5749 * aclocal.m4: Updated syntax to autoconf 2.59.
5750 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5751 Don't check for gsos2.
5752 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5753 working abs_top_srcdir and abs_top_builddir.
5755 * configure.ac: Updated syntax to autoconf 2.59.
5756 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5757 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5758 * configure: Regenerated.
5760 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5761 s/@groff_top_builddir@/@abs_top_builddir@/.
5763 * src/roff/groff/pipeline.c (xstrsignal):
5764 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5766 2003-11-07 Werner LEMBERG <wl@gnu.org>
5768 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5769 make start angle smaller than end angle to circumvent a bug in tpic
5770 handling of some versions of dvipdfm (and dvipdfmx).
5772 2003-10-30 Werner LEMBERG <wl@gnu.org>
5774 * src/devices/grops/grops.man: Improve section on creating EPS.
5776 2003-10-29 Werner LEMBERG <wl@gnu.org>
5778 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5781 2003-10-28 Werner LEMBERG <wl@gnu.org>
5783 * doc/groff.texinfo: Fix documentation of `.if'.
5785 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5787 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5788 the form `uniXXXX' also.
5790 2003-10-27 Werner LEMBERG <wl@gnu.org>
5792 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5793 contrib/pic2graph/pic2graph.sh: Implement secure management of
5795 Pass `-P-pletter' to groff to avoid data outside of the converted
5796 area -- some versions of `convert' (for example 5.3.8) don't check
5797 the bounding box of the image but always use a fixed image size
5798 (letter paper format).
5799 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5800 contrib/pic2graph/pic2graph.man: Updated.
5802 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5804 2003-10-26 Werner LEMBERG <wl@gnu.org>
5806 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5807 troff_output::simple_ellipse, troff_output::simple_arc,
5808 troff_output::simple_line, troff_output::simple_spline,
5809 troff_output::simple_polygon): Insert a space before arguments.
5810 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5811 latter doesn't produce a node, so the following `.sp -1' would do
5813 Don't emit `.sp -1' after \M. This also doesn't produce a token
5814 (and we don't have to care about compatibility mode).
5815 (troff_output::set_color, troff_output::reset_color): Don't emit
5816 `.sp -1' after \M and \m.
5818 * src/roff/troff/input.cpp (old_have_input): New global variable.
5819 (input_stack::get): Handle `old_have_input'.
5820 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5821 `trapping_blank_line' depending on `old_have_input', not
5824 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5826 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5827 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5828 default directory names for temporary files.
5829 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5831 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5832 [__MSDOS__] (run_pipeline): Honour environment variables.
5833 Don't use `tmpnam' but `tempnam' to work around messy
5836 * README.MinGW: New file.
5838 2003-10-16 Werner LEMBERG <wl@gnu.org>
5840 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5841 `(*t)->next' without testing validity of `*t'.
5842 (usage): Make it more readable.
5844 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5846 Make html device run under both MS-DOS and Win32.
5848 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5849 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5850 spawn or fork+exec has to be used, and whether parent must sleep
5851 until the child process terminates. Used in
5852 `char_buffer::run_output_filter'.
5853 (copyofstdoutfd): Removed.
5854 (char_buffer): Replace `write_file_html' and `write_file_troff'
5855 member functions with `emit_troff_output' and `run_output_filter'.
5856 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5858 (replaceFd): Replaced with...
5859 (set_redirection): New auxiliary function.
5860 (waitForChild): Replaced with...
5861 (save_and_redirect): New auxiliary function for.
5863 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5866 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5868 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5869 (GROFF_LIBC): New function.
5870 * configure.ac: Call GROFF_LIBC.
5872 * configure: Regenerated.
5874 * src/include/lib.h: Handle __MINGW32__.
5875 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5876 Add macro for `pipe'.
5879 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5882 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5885 2003-10-12 Werner LEMBERG <wl@gnu.org>
5887 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5888 src/roff/troff/input.cc (usage): Updated.
5890 * NEWS, doc/groff.texinfo: Updated.
5892 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5894 * src/libs/libgroff/searchpath.cpp
5895 (search_path::open_file_cautious): New function which also handles
5896 `-' as stdin and stdout depending on the access mode.
5897 * src/include/searchpath.h (search_path): Updated.
5899 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5900 * src/devices/grops/ps.h: Include `searchpath.h'.
5901 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5902 Open resource file with `include_search_path.open_file_cautious'.
5903 * src/devices/grops/grops.man: Document new `-I' switch.
5905 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5906 (main), src/devices/grolj4/lj4.cpp (main),
5907 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5909 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5911 (include_search_path): New global variable.
5912 (include_path_append): Removed.
5913 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5914 (do_file): Simplify, using new
5915 `include_search_path.open_file_cautious'.
5917 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5919 (main): Pass arguments to `-I' to both troff and devices.
5920 Improve handling of `-V'.
5921 * src/roff/groff/groff.man: Document changes to -I and -V.
5923 * src/roff/troff/input.cpp (include_search_path): New global
5925 (next_file, source, ps_bbox_request, transparent_file,
5926 process_input_file): Use new
5927 `include_search_path.open_file_cautious'.
5928 (main) Handle `-I' switch.
5929 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5930 Use new `include_search_path.open_file_cautious'.
5931 * src/roff/troff/node.h: New extern symbol `include_search_path'.
5932 * src/roff/troff/troff.man: Document new `-I' switch.
5934 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
5936 Support multiple calls of .Lb in LIBRARY section.
5938 * tmac/doc-common (doc-in-library-section): New register.
5939 (doc-section-library): New string.
5940 (Sh): Set `doc-in-library-section'.
5942 * tmac/doc-syms (Lb): Insert breaks before and after arguments
5943 if in LIBRARY section.
5944 * tmac/doc.tmac (doc-save-global-vars): Updated.
5945 * NEWS, tmac/groff_mdoc.man: Updated.
5947 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
5949 * tmac/doc-common (doc-default-operating-system): New variable.
5952 2003-09-08 Werner LEMBERG <wl@gnu.org>
5954 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5956 2003-08-31 Werner LEMBERG <wl@gnu.org>
5958 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5959 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5960 $(DEVFILES) are not empty.
5961 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5963 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
5965 * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5966 insert SORT_SEP. With certain combinations of sort specifications,
5967 refer sorted entries in the wrong order. In particular, entries
5968 with a missing field should be be sorted before all entries that
5969 have that field, before refer looks to the next field.
5971 2003-08-23 Werner LEMBERG <wl@gnu.org>
5973 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5974 g++ linker is used. Reported by Mark J. Reed
5975 <mark.reed@turner.com>.
5977 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5979 Add key character `x' to tbl which makes tbl call a user-defined
5980 macro on a table cell.
5982 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5983 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5984 `set_modifier' after printing the compatibility request.
5985 (set_modifier): Print call to `m->macro' if not empty.
5986 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5988 (process_format): Implement cases `x' and `X'.
5989 * src/preproc/tbl/tbl.man, NEWS: Updated.
5991 2003-08-15 Werner LEMBERG <wl@gnu.org>
5993 * doc/groff.texinfo: Minor fixes.
5995 2003-08-09 Werner LEMBERG <wl@gnu.org>
5997 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5999 2003-08-07 Werner LEMBERG <wl@gnu.org>
6001 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
6002 argument list to nothing if there is no file to match. Use `ls' as
6003 a protection, similar to autoconf.
6005 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
6006 empty argument lists.
6008 * doc/groff.texinfo: Improve documentation how vertical spacing
6009 and line breaks interact.
6012 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
6014 2003-08-03 Werner LEMBERG <wl@gnu.org>
6016 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
6017 EPS (using eps2eps or similar programs to compute the bounding box).
6019 2003-07-24 Werner LEMBERG <wl@gnu.org>
6021 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
6022 * doc/texinfo.tex: Updated from texinfo 4.6.
6023 * README.CVS: From now on we need texinfo 4.6.
6025 2003-07-23 Werner LEMBERG <wl@gnu.org>
6027 Add requests `dei1' and `ami1' for completeness.
6029 * src/roff/troff/input.cc (calling_mode): Remove
6030 CALLING_DISABLE_COMP.
6031 (comp_mode): New enumeration.
6032 (do_define_string, define_string, define_nocomp_string,
6033 append_string, append_nocomp_string): Updated.
6034 (do_define_macro): Add third parameter.
6035 (define_macro, define_nocomp_macro, define_indirect_macro,
6036 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
6037 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
6040 (init_input_requests): Add `dei1' and `ami1'.
6042 * tmac/trace.tmac: Handle de1 and am1.
6043 (de): Improve tracing message.
6044 (am): Add missing `do'.
6047 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6048 Document new requests.
6050 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
6052 Add option -G to .MPIMG to insert a gap between text and the image.
6054 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
6055 www-finish-left-ll): Updated.
6056 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
6057 (MPIMG): Make option -L and -R optional.
6058 Implement option -G.
6060 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
6062 * src/devices/grohtml/post-html.cpp
6063 (html_printer::do_file_components): Don't use `stdout' as lvalue
6064 since it can be a macro.
6066 2003-07-22 Werner LEMBERG <wl@gnu.org>
6068 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
6069 the corresponding test in aclocal.m4.
6071 2003-07-21 Werner LEMBERG <wl@gnu.org>
6073 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
6074 names but RGB values directly. Otherwise pnmtopng depends on
6075 an external file `rgb.txt' which maps colour names to values.
6077 2003-07-20 Werner LEMBERG <wl@gnu.org>
6079 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
6080 * configure, src/include/config.hin: Regenerated.
6082 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
6084 2003-07-19 Werner LEMBERG <wl@gnu.org>
6086 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
6088 2003-07-18 Werner LEMBERG <wl@gnu.org>
6090 * *.man: Switch to non-compatibility mode temporarily if GNU
6091 syntax extensions are used in the particular man page.
6093 * PROBLEMS: Add solutions for SGR problems.
6095 2003-07-17 Werner LEMBERG <wl@gnu.org>
6097 Don't ignore grotty's command line options if \X'tty: sgr ...' is
6098 used to change the drawing scheme.
6100 * src/devives/grotty/tty.cpp (bold_flag_option,
6101 underline_flag_option, italic_flag_option, reverse_flag_option,
6102 bold_underline_mode_option): New global variables.
6103 (update_options): New function.
6104 (tty_printer::special): Call update_options.
6105 (main): Don't set xxx_flag but xxx_flag_option, then call
6108 2003-07-14 Werner LEMBERG <wl@gnu.org>
6110 Make grotty emit proper Unicode box drawing characters for -Tutf8.
6112 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
6114 (hline_char, vline_char): New global variables.
6115 (tty_printer::tty_printer): Initialize them.
6116 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
6117 horizontal and vertical lines.
6118 (crossings): New global array.
6119 (tty_printer::end_page): Use it to determine the proper crossing
6120 character for -Tutf8.
6122 2003-07-12 Werner LEMBERG <wl@gnu.org>
6124 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
6125 (HTMLDOCFILES): Revert to `pic.html'.
6126 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
6128 2003-07-11 Werner LEMBERG <wl@gnu.org>
6130 * doc/pic.ms: Improve documentation of absolute coordinates.
6131 Document absolute positioning of pictures.
6133 * NEWS: Add new pic capability.
6135 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
6137 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
6140 2003-07-07 Werner LEMBERG <wl@gnu.org>
6142 Implement support for dashed and dotted ellipses in pic. Based on
6143 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
6145 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
6146 common_output::dashed_ellipse, common_output::dotted_ellipse): New
6147 functions. Ellipse arcs are approximated with circle arcs.
6148 * src/preproc/pic/common.h (common_output): Updated.
6149 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
6151 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
6153 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
6155 2003-07-06 Werner LEMBERG <wl@gnu.org>
6157 Make grotty work on platforms which have unsigned char as the
6158 default for char. Based on a patch by Thomas Klausner
6161 * src/devices/grotty/tty.cpp (schar): New typedef.
6162 Updated calls to declare_ptable and implement_ptable.
6163 (glyph): Use schar for back_color_idx and fore_color_idx.
6164 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
6165 (tty_printer::tty_color, tty_printer::tty_printer,
6166 tty_printer::color_to_idx, tty_printer::put_color): Updated.
6168 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6170 * src/roff/nroff/nroff.sh: Add option -d for completeness.
6171 * src/roff/nroff/nroff.man: Updated.
6173 2003-07-05 Werner LEMBERG <wl@gnu.org>
6175 * NEWS, tmac/groff_www.man: Updated.
6176 * doc/Makefile.sub: Updated.
6178 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
6180 Implement support for multiple HTML output files.
6182 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
6183 -j command line option.
6185 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
6187 (file): New fields `new_output_file', `require_links',
6189 (file::file): Updated.
6190 (files::set_file_name, files::set_links_required,
6191 files::are_links_required, files::is_new_output_file,
6192 files::file_name, files::next_file_name): New functions.
6193 (header_desc): New fields `no_of_level_one_headings',
6195 (header_desc::header_desc): Updated.
6196 (header_desc::write_headings): Handle multiple files.
6197 (html_printer::write_header): Save file name in which header occurs.
6198 (html_printer::determine_header_level): Possibly split files on
6200 (html_printer::do_links, html_printer::troff_tag): Updated.
6201 (html_printer::insert_split_file, html_printer::do_job_name,
6202 html_printer::emit_link, html_printer::write_navigation,
6203 html_printer::do_file_components): New functions.
6204 (html_printer::~html_printer): Handle multiple files.
6205 (main): Handle command line option `-j'.
6207 * src/devices/grohtml/grohtml.man: Updated.
6209 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6212 * tmac/www.tmac (JOBNAME): New macro.
6213 * tmac/s.tmac (SH-NO-TAG): New macro.
6214 (@SH): Call SH-NO-TAG.
6217 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6219 * tmac/groff_mdoc.man: Improve documentation of punctuation
6222 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
6224 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6226 2003-07-03 Werner LEMBERG <wl@gnu.org>
6228 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6230 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
6232 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6233 after `/*' and `*/'.
6235 (Fn, Fo): Reduce indentation in synopsis.
6237 * tmac/doc-common (doc-check-depth): New macro.
6238 (doc-end-macro, Sh, Ss): Use it.
6239 (Cd): Fix behaviour in synopsis.
6240 (In): Make it parsed and callable.
6241 If not in the synopsis, represent the C header file enclosed in
6243 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6244 Use minus, not hyphen.
6246 * tmac/groff_mdoc.man: Updated.
6248 2003-07-01 Werner LEMBERG <wl@gnu.org>
6250 Integrated grap2graph, contributed by Eric S. Raymond.
6252 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6254 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6255 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6257 2003-07-01 Colin Watson <cjwatson@debian.org>
6259 * src/xditview/*.c: Add prototypes, fix return types, add includes.
6260 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6262 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
6264 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6266 2003-06-31 Werner LEMBERG <wl@gnu.org>
6268 * doc/Makefile.sub (CLEANADD): Remove all files created by
6269 running `make groff.{pdf,dvi}'.
6271 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6274 2003-06-30 Werner LEMBERG <wl@gnu.org>
6276 * Makefile.in (SHELL): Define as @SHELL@.
6277 (mkinstalldirs): Use $(SHELL).
6278 (MDEFINES): Add $(SHELL).
6279 * Makefile.comm (SHELL): Removed.
6281 2003-06-29 Werner LEMBERG <wl@gnu.org>
6283 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6284 The X11 documentation files use them.
6285 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6287 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
6289 * tmac/e.tmac (@C): Handle .ad also.
6291 2003-06-12 Werner LEMBERG <wl@gnu.org>
6293 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6295 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6296 Assign `n' even here. It is possible to construct a node
6297 immediately following an escape character:
6305 2003-06-10 Werner LEMBERG <wl@gnu.org>
6307 * README.WIN32: Removed.
6308 * MANIFEST: Updated.
6310 2003-06-07 Werner LEMBERG <wl@gnu.org>
6312 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6314 2003-06-05 Werner LEMBERG <wl@gnu.org>
6316 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6317 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6319 2003-06-03 Werner LEMBERG <wl@gnu.org>
6321 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6322 is done by the calling function.
6324 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
6326 * tmac/X.tmac: Fix definition of `em'.
6328 2003-05-22 Werner LEMBERG <wl@gnu.org>
6330 * src/roff/troff/input.cc (return_macro_request): Fix detection of
6333 2003-05-18 Werner LEMBERG <wl@gnu.org>
6335 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6336 to make items work which consist only of a tag.
6338 2003-05-17 Werner LEMBERG <wl@gnu.org>
6340 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6341 aren't stretched in a tag (this can fail with unformatted boxes).
6342 Instead, insert a break and go back one line.
6344 2003-05-16 Werner LEMBERG <wl@gnu.org>
6346 * src/roff/troff/input.cc (return_macro_request): If called with
6347 argument pop macro twice. We need this to trace `return'.
6349 * tmac/trace.tmac: Handle `return'.
6352 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6355 2003-05-15 Larry Kollar <kollar@alltel.net>
6357 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6358 registers `FPS', `FVS', and `FPD'.
6360 2003-05-15 Werner LEMBERG <wl@gnu.org>
6362 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6365 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
6367 * tmac/groff_mdoc.man: Slight improvements.
6369 2003-05-03 Werner LEMBERG <wl@gnu.org>
6371 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6372 `doc-header-space' after header line if register `cR' is set.
6374 2003-05-02 Werner LEMBERG <wl@gnu.org>
6378 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
6380 * tmac/doc-common (Nd): Use \[em].
6382 2003-05-01 Werner LEMBERG <wl@gnu.org>
6384 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6385 doc-footer-space): Initialize to 0.5i.
6386 (doc-setup-page-layout): Don't set doc-header-space and
6389 2003-04-30 Werner LEMBERG <wl@gnu.org>
6391 * REVISION: Set to 1.
6393 * doc/pic.ms: Document possible problems with `figname'.
6395 2003-04-29 Werner LEMBERG <wl@gnu.org>
6397 Version 1.19 released
6398 =====================
6400 * VERSION: Set to 1.19.
6401 * REVISION: Set to 0.
6402 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6404 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6405 Define charset as `US-ASCII' in html output.
6407 * tmac/www.tmac (ULE): Add missing scaling indicator.
6409 * win32-diffs: Removed.
6411 2003-04-28 Werner LEMBERG <wl@gnu.org>
6413 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6415 Document how to insert discardable whitespace with `.ss'.
6417 2003-04-27 Werner LEMBERG <wl@gnu.org>
6419 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6420 work with plain TeX also.
6422 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6424 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
6426 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6429 2003-04-24 Werner LEMBERG <wl@gnu.org>
6431 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6432 vbox with positive height and zero depth if in TeX mode.
6434 * NEWS: Document glyph name changes for grodvi and grolj4.
6436 2003-04-23 Werner LEMBERG <wl@gnu.org>
6438 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6439 * doc/pic.ms: Fixed.
6441 2003-04-21 Werner LEMBERG <wl@gnu.org>
6443 HP-UX 10.20 has `snprintf' but it isn't declared.
6445 * configure.ac: Add declaration test for snprintf.
6446 * configure: Regenerated.
6447 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6448 * src/include/config.hin: Regenerated.
6450 2003-04-19 Werner LEMBERG <wl@gnu.org>
6452 Add keyword `figname' to pic, specifying the name of the picture
6453 box in TeX mode. Based on a patch from William J Poser
6454 <wjposer@unagi.cis.upenn.edu>.
6456 * src/preproc/pic/pic.y: New token `FIGNAME'.
6457 (macro_name): New rule of type <str>.
6458 (placeless_element): Handle `FIGNAME'.
6459 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6460 * src/preproc/pic/main.cpp (graphname): New global variable.
6461 (do_picture): Initialize `graphname'.
6462 * src/preproc/pic/pic.h: Updated.
6463 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6466 (tex_output::text): Beautify output.
6467 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6468 `shaded' and `outlined' unconditionally.
6469 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6472 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6473 greater is necessary.
6475 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
6477 Add option -r to soelim to avoid emission of `.lf' lines.
6478 Add option -t to produces TeX comment lines instead of `.lf' lines.
6480 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6483 (main): Handle `-r' and `-t'.
6484 (set_location): Handle `raw_flag' and `tex_flag'.
6485 * src/preproc/soelim/soelim.man, NEWS: Updated.
6487 2003-04-17 Werner LEMBERG <wl@gnu.org>
6489 * tmac/hyphenex.sh: Replaced with...
6490 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6493 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6494 if --quiet is used for the configure script.
6495 * configure: Regenerated.
6497 2003-04-16 Werner LEMBERG <wl@gnu.org>
6499 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6500 Add `const' to second argument.
6501 (html_printer::add_table_end): Add `const' to argument.
6502 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6503 `const' to arguments.
6504 * src/devices/grohtml/html-text.h: Updated.
6506 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6507 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6510 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6511 cast for integer constant.
6513 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6514 (writeNbytes): Add `const' to first argument.
6515 (writeString): Add `const' to argument.
6516 (char_buffer::can_see): Add `const' to third argument.
6517 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6518 `const' to argument.
6519 * src/preproc/html/pushback.h: Updated.
6521 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6522 (include_path_append): Add `const' to argument.
6525 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6527 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6528 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6530 (unicode_decompose_init::unicode_decompose_init): Updated.
6531 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6533 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6534 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6537 * tmac/hyphenex.sh: Make script more portable by using a here
6540 2003-04-15 Werner LEMBERG <wl@gnu.org>
6542 Renamed all `*.cc' files to `*.cpp'.
6543 Updated all configuration files, makefiles, and documentation.
6545 2003-04-14 Werner LEMBERG <wl@gnu.org>
6547 * tmac/hyphenex.sh: Slight improvements.
6549 2003-04-13 Werner LEMBERG <wl@gnu.org>
6551 * font/devascii/R.proto, font/devcp1037/R.proto,
6552 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6553 character slots with unnamed glyphs.
6555 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6556 (an-first): New global variable.
6557 (an-header): Emit vertical space between multiple man pages.
6559 2003-04-11 Werner LEMBERG <wl@gnu.org>
6561 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6564 2003-04-10 Werner LEMBERG <wl@gnu.org>
6566 * PROBLEMS: Revised.
6568 2003-04-10 Bernd Warken <bwarken@mayn.de>
6570 * doc/webpage.ms: Improved.
6572 2003-04-09 Werner LEMBERG <wl@gnu.org>
6574 Add register \n[.height] which returns the value of \H.
6575 Add register \n[.slant] which returns the value of \S.
6577 * src/roff/troff/env.cc (init_env_requests): Implement.
6578 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6581 2003-04-08 Werner LEMBERG <wl@gnu.org>
6583 * tmac/html.tmac: Move some of the data into html-end.tmac.
6584 Remove most of the character translations for eqn since html fonts
6585 now cover those characters.
6587 * tmac/html-end.tmac: New file.
6588 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6589 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6590 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6592 2003-04-07 Werner LEMBERG <wl@gnu.org>
6594 * man/groff_out.man: Document negative values of `N' if -Thtml is
6597 2003-04-06 Werner LEMBERG <wl@gnu.org>
6599 * Makefile.comm (depend.temp): Check location of YTABC.
6601 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6603 * doc/Makefile.in (TROFFBIN): New variable for troff
6605 (GROFFBIN): New variable for groff binary path.
6606 (groff_bin_path): Rename to GROFF_BIN_PATH.
6607 (TROFF): Use TROFFBIN.
6608 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6609 * doc/Makefile.sub (GROFFBIN): New variable for groff
6611 (groff_bin_path): Rename to GROFF_BIN_PATH.
6612 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6614 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6615 with INSTALL_SCRIPT.
6616 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6617 * Makefile.dev (all): Depend on DEVSCRIPTS.
6618 (install_dev): Likewise.
6619 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6621 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6622 (DEVGENSCRIPTS): New variable to hold generated scripts.
6624 2003-04-05 Werner LEMBERG <wl@gnu.org>
6626 * src/libs/libdriver/input.cc (IntArray::operator[],
6627 IntArray::get_data): Remove meaningless `const' in return value.
6629 * README.CVS: New file.
6631 2003-04-04 Werner LEMBERG <wl@gnu.org>
6633 Check for stdint.h in C++, not in C.
6635 * aclocal.m4 (GROFF_STDINT_H): New function,
6636 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6638 * configure, src/include/config.hin: Regenerated.
6639 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6642 Fix handling of in grohtml. To do this, troff emits `N'
6643 with a negative value, representing the width of the unbreakable
6644 space (only for -Thtml). grohtml then converts this back to
6645 and uses the value of N as its width.
6647 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6648 unbreakable_space_node::tprint): Emit `N-<width>'.
6649 * src/include/printer.h (printer::set_numbered_char): Make it
6651 Make members `font_table' and `nfonts' protected instead of private.
6652 * src/devices/grohtml/post-html.cc
6653 (html_printer::set_numbered_char): New member function.
6656 * src/libs/libgroff/maxfilename.cc:
6657 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6659 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6662 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6664 * man/roff.man: Small fixes.
6666 2003-04-03 Werner LEMBERG <wl@gnu.org>
6668 Make groff independent from locale's numeric settings.
6670 * configure.ac: Check for `setlocale'.
6671 * configure, src/include/config.hin: Regenerated.
6673 * src/include/lib.h: Handle HAVE_SETLOCALE.
6675 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6676 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6677 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6680 * doc/groff.texinfo: Change dir category to `Typesetting'.
6681 (Man font macros): Mention that there is no space between arguments
6684 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6685 (*printer::change_color, *printer::change_fill_color): Add missing
6688 2003-04-02 Werner LEMBERG <wl@gnu.org>
6690 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6691 html_table::is_gap): Compute table widths after converting border
6692 positions to avoid rounding errors.
6694 2003-04-01 Werner LEMBERG <wl@gnu.org>
6696 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6697 `space_emitted' properly.
6699 2003-03-31 Werner LEMBERG <wl@gnu.org>
6701 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6702 (html_table::set_linelength): Don't add 1.
6703 (html_table::add_indent): Don't subtract 1.
6705 * tmac/html.tmac: Set default page offset to zero.
6707 2003-03-30 Werner LEMBERG <wl@gnu.org>
6709 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6711 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6712 unbreakable_space_node::tprint): New functions.
6713 (troff_output_file): Make space_char_hmotion_mode::tprint and
6714 unbreakable_space_node::tprint to friends.
6715 * src/roff/troff/node.h: Updated.
6717 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6718 in the HTML standard).
6720 2003-03-29 Werner LEMBERG <wl@gnu.org>
6722 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6723 Otherwise, the following code
6732 produces `x a' instead of `xa'. This is a temporary fix, disabling
6733 font changes in diversions for -Thtml.
6735 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6737 (an-do-tag-html): Merge with ...
6738 (an-do-tag): This macro.
6739 Change code slightly to circumvent grohtml bug.
6740 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6742 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6743 html_table::is_gap): Round `width' properly.
6745 * tmac/html.tmac: Provide some default layout parameters for
6748 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6751 2003-03-28 Werner LEMBERG <wl@gnu.org>
6753 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6755 2003-03-27 Werner LEMBERG <wl@gnu.org>
6757 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6760 2003-03-20 Werner LEMBERG <wl@gnu.org>
6762 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6764 * doc/groff.texinfo: Updated.
6766 2003-03-19 Werner LEMBERG <wl@gnu.org>
6768 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6769 TOKEN_END_TRAP>: Reset `have_input'.
6771 2003-03-18 Werner LEMBERG <wl@gnu.org>
6773 * src/roff/groff/groff.man: Mention groff_trace man page.
6775 2003-03-16 Werner LEMBERG <wl@gnu.org>
6777 * Makefile.in (LIBEXT): New variable to indicate the file extension
6778 of library files. Computed heuristically from $(OBJEXT).
6779 (MDEFINES): Add $(LIBEXT).
6780 * Makefile.lib, Makefile.comm: Use it.
6782 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6783 overlong lines into smaller chunks.
6784 (get_binary): New function.
6786 * src/utils/pfbtops/pfbtops.man: Updated.
6788 2003-03-15 Colin Watson <cjwatson@debian.org>
6790 * src/roff/groff/groff.man: Minor syntax fix.
6792 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6794 * src/devices/grops/ps.cc (ps_printer::media_set,
6795 ps_printer::~ps_printer): Handle zero paper width and length.
6797 2003-03-13 Werner LEMBERG <wl@gnu.org>
6799 Add options -p and -l to grodvi.
6801 * src/devices/grodvi/dvi.cc: Include paper.h.
6802 (landscape_flag, user_paper_length, user_paper_width): New global
6804 (dvi_printer::begin_page): Emit `papersize' special.
6805 Set color after initialization of `cur_h' and `cur_v'.
6806 (main): Add options `-l' and `-p'.
6807 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6808 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6810 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6812 2003-03-12 Werner LEMBERG <wl@gnu.org>
6814 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6815 * man/groff_tmac.man: This man page.
6816 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6819 * tmac/X.tmac: Don't load pspic.tmac.
6821 2003-03-11 Werner LEMBERG <wl@gnu.org>
6823 Make variable `pr' local to libdriver/input.cc. Based on a patch
6824 by Bernd Warken <bwarken@mayn.de>.
6826 * src/include/driver.h (pr): Removed.
6828 * src/libs/libdriver/input.cc (pr): New global variable.
6829 (do_file): Deallocate `pr'.
6830 * src/libs/libdriver/printer.cc (pr): Removed.
6832 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6833 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6834 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6835 (main): Don't delete `pr'.
6837 2003-03-10 Werner LEMBERG <wl@gnu.org>
6839 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6840 * tmac/papersize.tmac: New file.
6841 * tmac/troffrc: Include `papersize.tmac'.
6842 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6843 * tmac/an-old.tmac: Set LT to LL by default.
6845 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6846 doc/groff.texinfo: Updated.
6848 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6849 bug which caused all odd iso papers to have wrong dimensions.
6851 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6852 (main) <'p'>: Set `user_paper_width' also.
6853 (ps_printer::media_width, ps_printer::media_height): Use values
6854 given with option `-p'.
6856 2003-03-09 Werner LEMBERG <wl@gnu.org>
6858 * src/include/nonposix.h: Provide default for SET_BINARY.
6860 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6861 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6864 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6865 (main): Treat \r\n as \n.
6867 2003-03-08 Werner LEMBERG <wl@gnu.org>
6869 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6870 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6872 2003-03-07 Werner LEMBERG <wl@gnu.org>
6874 Added support to access more than 256 glyphs in Type 1 fonts.
6876 * src/devices/grops/ps.cc (subencoding): New structure.
6877 (style): Add `sub' field.
6879 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6880 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6883 (ps_printer::set_char): Use `set_subencoding'.
6884 (make_subencoding_name): New function.
6885 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6886 (ps_printer::~ps_printer): Emit subencoding definitions.
6888 * src/devices/grops/psrm.cc (valid_input_table): New array to
6889 properly support EBCDIC.
6890 (white_space): Add `\f'.
6891 (ps_get_line): Change first argument to be of type `string &'.
6892 Updated all callers.
6893 This allows to get lines of arbitrary length.
6894 Use `valid_input_table'.
6895 Remove warning about non-conforming PS line length. This seems
6896 not to be of great importance -- for example, dvips don't emit
6898 (PS_LINE_MAX): Removed.
6899 (matches_comment): Change first argument to be of type `string &'.
6901 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6903 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6904 %AGL_to_unicode, %default_ligatures): New hash tables.
6905 Read all map entries.
6906 Add unencoded characters.
6907 Check for default ligatures if there are no `L' entries.
6908 Print all kern entries.
6909 Print all characters in charset.
6910 * src/utils/afmtodit/afmtodit.man: Updated.
6912 * font/devps/*: Regerated all fonts.
6914 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6915 of characters, just use `.trin'. Otherwise the mapping depends
6916 on the font encoding.
6917 * tmac/ps.tmac: Add `fi' and `fl'.
6918 Improve `Fi' and `Fl'.
6919 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6920 * tmac/Xps.tmac: Fix `em'.
6924 2003-03-04 Werner LEMBERG <wl@gnu.org>
6926 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6929 2003-03-03 Werner LEMBERG <wl@gnu.org>
6931 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6933 * font/devps/generate/textmap: Remove entry `similarequal'.
6934 * font/devps/symbolmap: Updated.
6936 2003-03-02 Werner LEMBERG <wl@gnu.org>
6938 * src/libs/libgroff/font.cc (font::load): Fix error message for
6941 * src/devices/grops/grops.man: Improve documentation of the -b
6944 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6945 `ascii' and `cp1047'.
6947 2003-03-01 Werner LEMBERG <wl@gnu.org>
6949 Document composite glyphs and the `composite' request.
6951 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6953 2003-02-28 Werner LEMBERG <wl@gnu.org>
6955 * font/devdvi/generate/ec.map: Add some more Unicode entities.
6956 * font/devdvi/*EC: Updated.
6958 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6959 * tmac/latin1 (latin1-tr): Undo any previous mapping.
6960 * tmac/troffrc: Load `composite.tmac'.
6961 * tmac/Makefile.sub (NORMALFILES): Updated.
6963 * doc/groff.texinfo (Input Encodings): New section.
6966 2003-02-27 Werner LEMBERG <wl@gnu.org>
6968 * doc/texinfo.tex: New version 2003-02-11.06.
6970 * tmac/doc-common (Dt): Don't emit warning for unknown section.
6971 * tmac/groff_mdoc.man: Fix description of `Dt'.
6973 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
6975 * font/devps/prologue.ps: Fix for included Postscript that does
6976 a setpagedevice -- which is now safely ignored.
6980 * src/devices/grops/ps.cc: Now sets the page size in the generated
6981 document. This is done in two ways: Via a %%-comment for gv and
6982 the like, and via a PageSize and setpagedevice for programs that
6983 understands Postscript proper, like ps2pdf.
6985 * src/devices/grops/ps.h: New broken-flag to avoid page size
6986 definition, if required.
6988 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6990 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6991 Not really necessary due to the fix in prologue.ps, but cleaner:
6992 Such information does not belong in an .eps file.
6994 * doc/Makefile.sub: See doc/Makefile.in.
6996 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
6998 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6999 instead of P1 since the latter is broken in some versions of netpbm.
7000 * configure: Updated.
7002 2003-02-26 Larry Kollar <kollar@alltel.net>
7004 Make man pages more customizable.
7006 * tmac/an-old.tmac (FT): New register holding footer distance from
7008 (HF): New string holding the default heading font.
7009 (TH): Handle registers `IN' and `SN' set on the command line.
7011 (PT, BT): New strings to customize header and footer lines.
7012 (an-header, an-footer): Use them.
7014 * tmac/groff_man.man: Document changes.
7016 * doc/groff.texinfo: Document man changes.
7017 Document Ultrix extensions of man.
7019 2003-02-26 Werner LEMBERG <wl@gnu.org>
7021 * src/roff/troff/input.cc (do_width, do_if_request): Reset
7022 `have_input' after changing back to old environment.
7024 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
7025 function up to be defined before first call. This is necessary to
7026 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
7028 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
7029 the default font directory also. Based on a patch from James
7030 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
7031 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
7032 * src/utils/afmtodit/afmtodit.man: Document it.
7036 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
7038 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
7040 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
7041 (GROFF_PNMTOPS_NOSETPAGE): New macro.
7042 * configure.ac: Use it.
7043 * configure: Regenerated.
7044 * Makefile.in: Updated.
7046 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
7047 (CLEANADD): Add www.tmac-sed.
7048 (pnmtops_nosetpage): Define default.
7049 (install_data): Handle www.tmac-sed and substitute
7050 @PNMTOPS_NOSETPAGE@.
7051 (stamp-sed): Add www.tmac.
7052 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
7053 It now breaks URLs at suitable places.
7054 (www:substring_ok): New register set by...
7055 (www:@test_substring): New macro.
7056 (www:error): New alias to www-error.
7057 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
7059 (URL): Use www:url_breaks.
7060 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
7061 (CDS, CDE): New macros.
7063 2003-02-25 Werner LEMBERG <wl@gnu.org>
7065 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
7068 2003-02-24 Werner LEMBERG <wl@gnu.org>
7070 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
7071 can be negative also.
7073 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
7075 (read_char_table): Avoid negative ascenders.
7076 (output_charset): Add cast.
7077 * font/devlj4/*: Regenerated.
7079 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
7082 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
7083 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
7085 * font/devdvi/*: Regenerated.
7087 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
7088 normal width, while the previously used characters (U+2329 and
7089 U+232A) are classified as wide due to canonical equivalence with the
7090 CJK punctuation characters U+3008 and U+3009.
7092 * font/devutf8/R.proto: Updated.
7093 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
7095 * man/groff_char.man: Simplify handling of table traps by
7096 introducing `start block' and `end block' macros.
7097 (Ns, Ne, 2s, 2e, Ds, De): New macros.
7098 (DL): Make it work with Unix troff also.
7099 Fix code values of `la' and `ra'.
7101 * tmac/dvi.tmac: Define `<>' for CW and CWI.
7103 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
7105 * src/devices/grohtml/post-html.cc (element_list::~element_list):
7106 New destructor, fixing a major memory leak.
7108 2003-02-22 Werner LEMBERG <wl@gnu.org>
7110 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
7111 to be in conformance with Unicode 3.0 and newer.
7113 * font/devlj4/generate/text.map: Add `Eu'.
7114 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
7115 * font/devlj4/S: Regenerated.
7117 * man/groff_char.man: Completely rewritten.
7119 * doc/groff.texinfo: Fix description of request and macro arguments.
7121 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
7125 * src/devices/grohtml/html-table.cc (html_table::~html_table):
7126 Deallocate `columns' list.
7127 * src/devices/grohtml/post-html.cc (char_block::~char_block):
7129 (text_glob::text_glob_html, text_glob::text_glob_special,
7130 text_glob::text_glob_line, text_glob::text_glob_auto_image,
7131 text_glob::text_glob_tag): Avoid memory leaks.
7132 (text_glob::remember_table): Free memory before reassigning.
7134 2003-02-19 Werner LEMBERG <wl@gnu.org>
7136 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
7137 alias `hbar'), the Planck constant over two pi.
7139 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
7140 `+e' for position 34.
7141 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
7142 `u2662' and `u2661'.
7143 * font/devdvi/{MI,S}: Regenerated.
7144 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
7145 * font/devlbp/*: Add `hbar' alias.
7146 * font/devlj4/generate/special.map: Ditto.
7147 * font/devlj4/S: Regenerated.
7148 * font/devps/generate/symbolchars: Add `+e'.
7149 * font/devps/generate/textmap: Fix PS name for `-h'.
7151 * font/devps/symbolmap: Regenerated.
7153 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
7155 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
7157 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
7160 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
7162 * tmac/tty-char.tmac: Add `+e'.
7164 2003-02-17 Werner LEMBERG <wl@gnu.org>
7166 Another round trying to really fix problems with `have_input'.
7168 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
7169 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
7171 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
7172 handling if both foreground and background colors are default.
7174 * doc/groff.texinfo (Debugging): Document .lf differences to
7177 2003-02-16 Werner LEMBERG <wl@gnu.org>
7179 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
7180 null-bytes in created string.
7182 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
7183 alias_macro, lookup_request): Improve warning messages.
7185 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
7187 Free `last_image_filename'.
7189 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
7191 (imageList::createPage, imageList::createImage): Use `free', not
7193 (imageItem::~imageItem): Free `imageName'.
7194 (addRegDef): Use `strsave', not `strdup'.
7195 (get_resolution): Free `pathp'.
7197 2003-02-15 Werner LEMBERG <wl@gnu.org>
7199 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7202 2003-02-14 Werner LEMBERG <wl@gnu.org>
7204 Add memory management for colors to deallocate unnamed colors
7207 * src/include/color.h (color): New members `free_list' and `next'.
7208 New member functions `new' and `delete'.
7210 * src/libs/libgroff/color.cc: Implement it.
7212 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7213 for array size of new operator.
7215 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7216 redundant comparison.
7218 * src/roff/troff/input.cc (word_space_node::reread,
7219 hmotion_node::reread): Avoid warning about unused parameter.
7220 (reset_output_registers): Remove redundant parameter.
7221 (define_color): Undo change 2003-02-12.
7223 * src/roff/troff/reg.h: Updated.
7225 * src/roff/troff/node.cc (troff_output_file::really_print_line,
7226 output_file::put_filename, real_output_file::really_put_filename,
7227 ascii_output_file::really_print_line,
7228 break_char_node::get_hyphen_list): Avoid warning about unused
7230 (suppress_node::tprint): Updated.
7232 * configure.ac: Check declaration for rand() and srand().
7233 * configure: Regenerated.
7235 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7237 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7240 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7241 to avoid compiler warnings.
7243 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7246 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7248 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7250 Updated all callers.
7252 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7254 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7255 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7257 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7258 Parameter is unused.
7259 (html_printer::add_table_end): Define parameter conditionally.
7260 * src/devices/grohtml/output.cc (simple_output::special): Parameter
7263 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7264 (lbp_printer::set_char): Last parameter is unused.
7266 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7268 2003-02-13 Werner LEMBERG <wl@gnu.org>
7270 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7271 Make \D'f ...' move horizontally again for backwards compatibility.
7272 Replace it with \D'Fg ...' where appropriate to avoid dependency
7273 on horizontal resolution.
7275 * src/roff/troff/input.cc (do_get_long_name): New function.
7276 (get_long_name): Call it.
7278 (read_draw_node): Handle `\D'Fx ...' by calling ...
7279 (read_color_draw_node): New function.
7281 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7283 Pass it to `do_get_long_name' which is used instead of
7286 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7287 unnecessary value guard.
7288 (parse_D_command) <'f'>: Add horizontal shift.
7290 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7291 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7292 (FILL_MAX): Removed.
7294 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7297 2003-02-12 Werner LEMBERG <wl@gnu.org>
7299 * src/roff/troff/input.cc (do_name_test, do_expr_test,
7300 do_zero_width): Push `\n' if closing delimiter is missing.
7302 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7303 <'F'>: Make \F non-transparent at the beginning of line.
7304 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7305 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7308 (define_color): Free color in case of reassignment.
7310 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7311 @DefescListEnd): Use @Var, not @var.
7314 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7316 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7317 `shaded' and `outlined' arrays.
7318 (object_spec::object_spec): Initialize `shaded' and `outlined'.
7319 (graphic_object::set_fill_color, graphic_object::set_outline_color):
7321 (closed_object::set_fill_color): Ditto.
7322 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7324 (troff_output::reset_color): Use a_delete instead of free.
7325 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7327 2003-02-11 Werner LEMBERG <wl@gnu.org>
7329 * doc/groff.texinfo: Improve documentation of `ad'.
7330 Document that \D'f...' is dependent on the horizontal resolution.
7331 * man/groff_diff.man: Improve documentation of \D'f...'.
7333 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7334 compensating \h'...' for \D'f ...' since the latter no longer moves
7336 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7338 2003-02-10 Werner LEMBERG <wl@gnu.org>
7340 Improve error messages for `x F' (and `F') commands.
7342 * src/include/error.h: Add declaration for
7343 `current_source_filename'.
7344 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7345 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7346 parameter for source file string.
7347 Updated all callers.
7349 * src/libs/libdriver/input.cc: Add `current_source_filename'.
7350 (remember_source_filename): New function.
7351 (parse_x_command <'F'>, do_file <'F'>): Use it.
7353 2003-02-09 Werner LEMBERG <wl@gnu.org>
7355 Make grotty not emit warnings about unknown colors more than
7358 * src/devices/grotty/tty.cc: Include `ptable.h'.
7359 (TTY_MAX_COLORS): Removed.
7360 (DEFAULT_COLOR_IDX): Defined to -1.
7361 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7362 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7363 Change `tty_colors' to be a ptable.
7364 First arg of `put_color' is now `char'.
7365 New functions `make_rgb_string' and `tty_color'.
7366 (tty_printer::tty_printer): Use `tty_color'.
7367 (tty_printer::color_to_idx): Return value is now `char'.
7370 * src/include/color.h (color): Add `print_color' member function.
7371 * src/libs/libgroff/color.cc (color::print_color): Implement it.
7373 2003-02-08 Werner LEMBERG <wl@gnu.org>
7377 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7380 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7381 assume that value has been allocated with `new[]', thus use
7382 `a_delete' for deallocation.
7384 * src/libs/libdriver/input.cc (get_integer_arg,
7385 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7388 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7389 * src/libs/libgroff/nametoindex.cc
7390 (character_indexer::named_char_index): Use `new <type>[1]'.
7392 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7394 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7395 (split_text): Use `a_delete'.
7397 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7400 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7401 harmless memory leak.
7402 (hyphen_trie::read_patterns_file): Initialize `buf'.
7403 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7404 Initialize `current_fill_color'and `current_glyph_color'.
7405 * src/roff/troff/glyphuni.cc
7406 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7407 * src/roff/troff/uniuni.cc
7408 (unicode_decompose_init::unicode_decompose_init): Ditto.
7409 * src/roff/troff/uniglyph.cc
7410 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7412 2003-01-26 Werner LEMBERG <wl@gnu.org>
7414 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7415 `access' before calling `unlink'.
7416 (do_file): Handle __EMX__.
7418 * src/include/nonposix.h: Handle __EMX__.
7420 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7421 (fontpath,tmacpath): Use it.
7423 Sorted alphabetically.
7425 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7427 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7430 2003-01-27 Werner LEMBERG <wl@gnu.org>
7432 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7433 New files, copied from gnulib.
7434 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7435 * configure.ac: Updated.
7436 * configure: Regenerated.
7438 * src/include/config.hin: Regenerated.
7439 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7440 Don't define `strcasecmp' as `strcmp'.
7441 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7442 Dont define `strncasecmp' as `strncmp'.
7444 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7447 2003-01-26 Werner LEMBERG <wl@gnu.org>
7449 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7452 2003-01-25 Werner LEMBERG <wl@gnu.org>
7454 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7456 2003-01-24 Werner LEMBERG <wl@gnu.org>
7458 Add US-english hyphenation exceptions (converted from Barbara
7459 Beeton's hyphenation exception log reports which appear irregularly
7462 * tmac/hyphen.us: Updated to latest version.
7463 * tmac/README: Updated.
7464 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7465 * tmac/troffrc: Load `hyphenex.us'.
7466 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7467 * doc/groff.texinfo: Updated.
7469 2003-01-23 Werner LEMBERG <wl@gnu.org>
7471 Improve hyphenation slightly. This is a first step in redesigning
7472 the hyphenation algorithm to make it more flexible (e.g. allowing
7473 kerns and ligatures between the hyphenation character and the
7474 following character -- while not used normally in English, other
7475 languages like German would benefit).
7477 * src/roff/troff/env.cc (environment::hyphenate_line): Use
7478 assertion instead of if-clause.
7479 Let `get_hyphen_list' return the number of involved characters in
7480 the hyphenation pattern instead of computing it directly (which
7481 often yields too small values).
7482 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7483 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7486 2003-01-22 Werner LEMBERG <wl@gnu.org>
7488 Fixing a bug which caused groff to hang if the hyphenation exception
7489 dictionary tried to grow.
7491 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7492 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7493 pointer to dictionary.
7495 2003-01-20 Werner LEMBERG <wl@gnu.org>
7497 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7498 negative left italic correction.
7499 * src/utils/afmtodit/afmtodit.man: Document it.
7501 * font/devps/generate/Makefile (RFLAG): Add `-m'.
7502 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7503 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7507 2003-01-16 Werner LEMBERG <wl@gnu.org>
7511 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7513 * src/preproc/refer/refer.man: Mention REFER environment variable.
7515 2003-01-05 Werner LEMBERG <wl@gnu.org>
7517 Similar to \[is], the square root glyph (\[sr]) and the square root
7518 extension glyph (\[radicalex]) are now text symbols. The new
7519 mathematical versions are called \[sqrt] and \[sqrtex],
7522 * font/devX*/S: Regenerated.
7523 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7524 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7525 * font/devdvi/EX, font/devdvi/S: Regenerated.
7526 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7527 * font/devlj4/generate/special.map: Add `sqrt'.
7528 * font/devlj4/S: Regenerated.
7529 * font/devps/generate/textmap: Add `sqrt'.
7530 * font/devps/S, font/devps/symbolmap: Regenerated.
7532 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7533 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7534 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7535 overlap horizontally.
7537 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7538 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7541 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7542 and `sqrtex' are overlapping glyphs.
7544 2003-01-04 Werner LEMBERG <wl@gnu.org>
7546 * font/devdvi/generate/texsy.map: Add `is'.
7547 * font/devps/symbolmap: Regenerated.
7548 * font/devdvi/*TC, MI, S: Regenerated.
7550 * tmac/dvi.tmac: Remove `is'.
7552 2003-01-03 Werner LEMBERG <wl@gnu.org>
7554 `is' is now a text symbol (only relevant for dvi). The math variant
7555 can be accessed with `integral'.
7557 * font/devX*/S: Regenerated.
7558 * font/devdvi/generate/texex.map: Remove `is'.
7559 * font/devdvi/EX: Updated.
7560 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7561 * font/devlj4/generate/special.map: Ditto.
7562 * font/devlj4/S: Regenerated.
7563 * font/devps/generate/textmap: Add `integral'.
7564 * font/devps/S: Regenerated.
7566 * tmac/dvi.tmac: Define `is'.
7568 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7570 * src/preproc/tbl/main.cc (process_format): Fix error message.
7572 2003-01-02 Werner LEMBERG <wl@gnu.org>
7574 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7575 * font/devps/textmap: Fix entries for `ne' and `nc'.
7576 * font/devps/symbolmap: Regenerated.
7578 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7579 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7580 `38', `58', `78', `-+', `|=', `nc', `ne'.
7582 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7583 Use `schar' for `aq'.
7584 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7585 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7586 * tmac/tty.tmac: Add `ne'.
7588 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7589 for fallback glyphs.
7591 2002-12-29 Werner LEMBERG <wl@gnu.org>
7595 * font/devX*/*: Regenerated.
7596 * font/devdvi/generate/ec.map: Remove `eq'.
7597 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7598 Assign `|=' to position 39.
7599 * font/devdvi/*EC, S: Regenerated.
7600 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7601 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7602 Assign `|=' to position 549.
7603 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7605 Add `uni2243' for `|='.
7607 * tmac/ec.tmac: Add `eq'.
7608 * tmac/dvi.tmac: Add `=~'.
7609 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7612 2002-12-21 Werner LEMBERG <wl@gnu.org>
7614 * font/devdvi/generate/tc.map: Remove `**'.
7615 * font/devdvi/*TC: Regenerated.
7616 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7618 * font/devutf8/NOTES: Updated.
7620 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7621 Don't give default parameter to `set_macro'.
7622 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7623 instead of `set_macro'.
7624 (charinfo::setx_macro): Implement it.
7625 (charinfo::set_macro): Don't change `mode'.
7627 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7628 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7629 * tmac/dvi.tmac: Define `!=' with `.schar'.
7631 2002-12-20 Werner LEMBERG <wl@gnu.org>
7633 * font/devX*/S: Regenerated.
7634 * font/devdvi/generate/ec.map: Remove `pl'.
7635 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7636 * font/devdvi/*{TC,EC}: Regenerated.
7637 * font/devhtml/R.proto: Add `-+'.
7638 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7639 * font/devlbp/*: Remove `or'.
7640 * font/devlj4/generate/special.map: Remove `or'.
7641 * font/devlj4/S: Regenerated.
7642 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7643 `seveneighths', `threeeighths'.
7645 Replace `minusplus' with `uni2213'.
7646 * font/devps/symbolmap: Regenerated.
7647 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7650 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7652 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7653 Call glyph_color and fill_color even if tcommand_flag isn't set.
7654 (make_node, node::add_char): Check not ci->is_fallback but
7657 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7658 * tmac/ec.tmac: Add .rchar entry for `f/'.
7659 Don't remove `12', `14', `34'.
7660 Define `pl' to be always roman.
7661 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7662 Define `18', `38', `58', `78'.
7663 * tmac/tty.tmac: Add `-+'.
7664 * tmac/dvi.tmac: Define `f/'.
7665 (dvi-frac): Use `f/'.
7666 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7667 Define `18', `38', `58', `78'.
7669 2002-12-15 Colin Watson <cjwatson@debian.org>
7671 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7673 2002-12-10 Werner LEMBERG <wl@gnu.org>
7675 Add glyph `tno', a textual variant of `no'.
7677 * font/devX*/*: Regenerated.
7678 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7679 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7680 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7681 * font/devdvi/*: Regenerated.
7682 * font/devlbp/*: Add `tno'.
7683 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7684 * font/devlj4/*: Regenerated.
7685 * font/devps/generate/textmap: Replace `no' with `tno'.
7686 * font/devps/generate/symbolchars: Add `no'.
7687 * font/devps/*: Regenerated.
7689 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7691 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7692 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7696 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7697 Add definition for `sd'.
7698 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7700 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7702 2002-12-08 Werner LEMBERG <wl@gnu.org>
7704 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7705 mode to avoid rounding errors.
7706 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7708 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7709 src/roff/troff/troff.man: Improve documentation of -T.
7711 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7713 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7714 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7716 2002-12-06 Werner LEMBERG <wl@gnu.org>
7718 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7719 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7720 Scaling Euro.sansserif glyphs down to have the same height as
7722 Removed unnecessary points; added some extrema.
7724 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7727 2002-12-04 Werner LEMBERG <wl@gnu.org>
7729 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7730 and `Euro.symbol.bold.slanted'.
7731 Improve some glyph offsets and widths.
7732 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7734 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7736 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7739 * tmac/europs.tmac: Updated to new glyph indices.
7740 Use Euro.symbol for font familiy `A'.
7742 * doc/groff.texinfo: Minor improvements.
7744 2002-12-02 Werner LEMBERG <wl@gnu.org>
7746 * font/devdvi/generate.tc.map: s/%O/%0/.
7747 * font/devdvi/*TC: Regenerated.
7749 * src/roff/troff/div.cc (init_div_requests): Sorted.
7751 * tmac/dvi.tmac: Remove `Ye'.
7752 * tmac/ec.tmac: Remove `Ye'.
7753 Add .rchar entry for `de'.
7755 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7756 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7759 2002-11-30 Werner LEMBERG <wl@gnu.org>
7761 Add PS font for various Euro glyphs.
7763 * font/devps/generate/freeeuro.sfd: New master font file for
7765 * font/devps/generate/sfdtopfa.pe: New conversion script for
7767 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7768 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7769 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7771 * font/devps/EURO: Generated from `freeeuro.afm'.
7772 * font/devps/download: Add `freeuro.pfa'.
7773 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7776 * tmac/europs.tmac: New file.
7777 * tmac/ps.tmac: Include `europs.tmac'.
7778 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7780 2002-11-29 Werner LEMBERG <wl@gnu.org>
7782 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7783 * font/devdvi/S: Regenerated.
7784 * font/devhtml/R.proto: Fix `CR' and `ci'.
7786 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7788 * font/devps/symbolmap: Regenerated.
7789 * font/devutf8/R.proto: Fix `CR' and `ci'.
7791 * font/devutf8/NOTES: Updated.
7793 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7796 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7798 * tmac/dvi.tmac: Add `lh' and `rh'.
7799 * tmac/Xps.tmac: Fix `lh' and `rh'.
7800 * tmac/X.tmac: Add `OK'.
7801 * tmac/lj4.tmac: Ditto.
7803 2002-11-24 Werner LEMBERG <wl@gnu.org>
7805 * font/devX*/S: Regenerated.
7806 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7807 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7808 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7809 * font/devdvi/S: Regenerated.
7810 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7811 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7812 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7813 `bracketleftbt', `bracketrighttp', `bracketrightex',
7814 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7815 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7816 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7818 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7819 * font/devutf8/NOTES: Updated.
7820 * font/devlj4/generate/special.map: Add glyph `braceex'.
7821 * font/devlj4/S: Regenerated.
7823 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7825 2002-11-14 Werner LEMBERG <wl@gnu.org>
7827 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7830 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7832 * doc/texinfo.tex: New version from texinfo 4.3.
7833 * doc/groff.texinfo: Updated for texinfo 4.3.
7834 Use @tie{} where appropriate.
7835 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7836 * font/devdvi/generate/tc.map: Remove `rn'.
7837 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7838 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7840 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7841 font/devX75-12/*: Regenerated.
7843 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7844 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7845 Improve definition of `an'.
7846 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7848 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7849 * tmac/X.tmac: Add definition for `or'.
7850 * tmac/Xps.tmac: Undo change 2002-11-05.
7851 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7853 2002-11-11 Werner LEMBERG <wl@gnu.org>
7855 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7858 2002-11-10 Werner LEMBERG <wl@gnu.org>
7860 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7861 defines a glyph which is searched after the check for fonts declared
7862 with `.special' (and before the check for all mounted special
7863 fonts). `fschar' defines a glyph for a particular font which is
7864 searched after the check for fonts declared with `.fspecial' (and
7865 before the check for fonts declared with `.special'). `rfschar'
7866 removes glyphs defined with `fschar'.
7868 * src/roff/troff/token.h (char_mode): New enum.
7869 Declare do_define_character.
7870 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7872 (charinfo::is_fallback): Updated.
7873 (charinfo::is_special): New method.
7874 * src/roff/troff/input.cc (do_define_character): Add and use
7875 optional second parameter used as a prefix for font-specific glyph
7877 (define_character, define_fallback_character): Updated.
7878 (define_special_character): New function.
7879 (init_input_requests): Add `schar'.
7880 (charinfo::charinfo, charinfo::set_macro): Updated.
7881 * src/roff/troff/node.cc: Include `stringclass.h'.
7882 (make_glyph_node): Handle special glyphs defined with `.schar' and
7884 (define_font_special_character, remove_font_special_character): New
7886 (init_node_requests): Sorted.
7887 Add `fschar' and `rfschar'.
7888 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7889 Document new requests.
7891 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7892 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7894 2002-11-08 Werner LEMBERG <wl@gnu.org>
7896 Added new font `SC' (cmtex10) to devdvi.
7898 * devdvi/generate/Makefile (FONTS): Add `SC'.
7900 * devdvi/generate/textex.map: New map file for cmtex.
7902 * devdvi/Makefile.sub (DEVFILES): Updated.
7903 * tmac/dvi.tmac: Add fspecial entries for SC.
7904 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7905 found before `S' since the font position of `SC' is lower due to the
7906 gaps in DESC's `font' line.
7907 * tmac/ec.tmac: Add a `special' call.
7910 * font/devhtml/R.proto: Remove double entry for `ti'.
7911 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7912 * tmac/tty-char.tmac: Remove entry for `bq'.
7913 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7914 * tmac/ec.tmac: Don't remove `aq' glyph.
7915 * tmac/X.tmac: Fix entry for `em'.
7916 Add entries for `fo' and `fc'.
7917 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7919 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7920 documentation of `special' and `fspecial' requests.
7922 2002-11-05 Werner LEMBERG <wl@gnu.org>
7924 * font/devascii/R.proto, font/devcp1047/R.proto,
7925 font/devlatin1/R.proto: Remove entry for `.i'.
7926 * font/devdvi/generate/textt.map: Add entry for `ad'.
7927 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7928 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7929 We need this for getting kerning values to compose `/l' and `/L'.
7930 * font/devdvi: Regenerated font definition files for CM fonts.
7931 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7932 * font/devutf8/R.proto: Ditto.
7933 Remove double entry for `ti'.
7935 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7936 for (groff) ligatures, `la', and `ra'.
7937 Add "'C", "'c", `IJ', and `ij'.
7938 Remove double entry for `ti'.
7939 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7941 Add "'C", "'c", `IJ', and `ij'.
7942 Fix entries for (groff) ligatures, `la', and `ra'.
7944 * tmac/ps.tmac (ps-achar): New macro.
7945 Define "'c" and "'C".
7946 * tmac/tty.tmac: Add entry for `.i'.
7947 * tmac/X.tmac (X-achar): New macro.
7948 Define "'c", "'C", and `:Y'.
7949 Add entries for `IJ' and `ij'.
7950 * tmac/Xps.tmac (Xps-achar): New macro.
7951 Define "'c" and "'C".
7952 Add entries for `IJ' and `ij'.
7953 * tmac/lbp.tmac (lbp-achar): New macro.
7954 Add fallback characters for all groff ligatures and many other
7956 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7957 Add entries for `/l' and `/L'.
7958 Define "'c" and "'C".
7959 Add entries for `IJ' and `ij'.
7961 2002-11-02 Larry Kollar <kollar@alltel.net>
7963 * PROBLEMS: Document how to solve Mac OS X compilation problems.
7965 2002-11-02 Werner LEMBERG <wl@gnu.org>
7967 Adding support for composite glyphs: \[xxx yyy ...] and the
7968 `composite' request.
7970 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7971 to Unicode-based glyph names.
7972 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7973 glyph names to groff glyph names.
7974 * src/roff/troff/uniuni.cc: New file for canonically decomposing
7975 Unicode-based glyph names.
7976 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7977 for handling Unicode glyph names.
7978 * src/roff/troff/input.cc: Include unicode.h.
7979 (composite_glyph_name): New function.
7980 (token::next) <'['>: Handle Unicode glyph names and composite
7982 (composite_dictionary): New dictionary for the `composite' request.
7983 (composite_request): Implement `composite' request.
7984 (init_input_requests): Add `composite'.
7985 Alphabetically sorted.
7986 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7988 (init_env_requests): Alphabetically sorted.
7989 Removed `tas' and `tar' (already commented out).
7990 * src/roff/troff/Makefile.sub: Updated.
7992 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
7994 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7997 2002-10-29 Werner LEMBERG <wl@gnu.org>
7999 Fix computation of .trunc register. Additionally, its value (and
8000 the value of the .ne register) is now always set before entering the
8003 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
8004 `needed_space' before calling `space'.
8005 (top_level_diversion::space): Remove special code for 'sp before the
8007 Call `begin_page' with the discarded space as a parameter.
8008 (top_level_diversion::begin_page): Add optional parameter to set
8010 * src/roff/troff/div.h: Updated.
8012 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
8015 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
8016 (LP): Remove superfluous call to `br'.
8017 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
8018 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8020 2002-10-26 Werner LEMBERG <wl@gnu.org>
8022 * tmac/doc-ditroff: Remove useless switch/variable -rC.
8023 (doc-setup-header): Don't set page register `%'.
8024 * tmac/doc-nroff: Remove variable `C'.
8025 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
8026 (doc-setup-header): Don't set page register `%'.
8028 * tmac/doc-common (doc-header): Call `ns'.
8029 (doc-paragraph): Protect .sp with .br so that it survives traps
8030 possibly set by the user.
8031 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
8033 * tmac/doc*: Replace ' with . for consistency if no effect.
8035 2002-10-26 Werner LEMBERG <wl@gnu.org>
8037 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
8038 so that it survives traps possibly set by the user.
8040 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
8041 (troff_output_file::set_font): Call flush_tbuf if necessary.
8042 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
8043 flush_tbuf and do_motion only if necessary.
8044 (troff_output_file::start_special,
8045 troff_output_file::put_char_width, troff_output_file::put_char,
8046 troff_output_file::draw): Updated.
8047 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8048 vmotion_node::tprint): Undo change 2002-10-23.
8050 2002-10-25 Werner LEMBERG <wl@gnu.org>
8052 * tmac/www.tmac (DC): Fix case of overlapping images.
8054 2002-10-23 Werner LEMBERG <wl@gnu.org>
8056 * src/roff/troff/node.cc (troff_output_file::fill_color,
8057 troff_output_file::glyph_color): Set current color before testing
8059 (troff_output_file::put_char_width, troff_output_file::put_char,
8060 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
8062 (troff_output_file::file_color, troff_output_file::glyph_color):
8064 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8065 vmotion_node::tprint): Move first, then call fill_color.
8067 2002-10-20 Werner LEMBERG <wl@gnu.org>
8069 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
8070 possible to use multiple main macro packages.
8072 2002-10-19 Werner LEMBERG <wl@gnu.org>
8074 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
8075 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
8076 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
8078 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
8079 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
8081 2002-10-16 Werner LEMBERG <wl@gnu.org>
8083 * NEWS, doc/webpage.ms: Updated.
8085 2002-10-14 Werner LEMBERG <wl@gnu.org>
8087 * src/roff/troff/node.cc (troff_output_file::put_char_width,
8088 troff_output_file::put_char, troff_output_file::fill_color,
8089 troff_output_file::glyph_color): Handle case where color pointer
8092 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
8094 Add the new -r option to grotty. It is similar to the -i option
8095 except it tells grotty(1) to use the `reverse video' attribute to
8096 render italic fonts.
8098 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
8099 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
8100 (tty_printer::make_underline, tty_printer::put_color,
8101 tty_printer::end_page): Use it.
8102 (main): Add -r switch.
8104 * src/devices/grotty/grotty.man: Document it.
8106 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
8108 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
8109 cast to `unsigned char' to properly read patterns with 8bit
8112 2002-10-08 Werner LEMBERG <wl@gnu.org>
8114 * REVISION: Increased to 2.
8116 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
8117 Free Software Foundation, Inc.
8119 Copying and distribution of this file, with or without modification,
8120 are permitted in any medium without royalty provided the copyright
8121 notice and this notice are preserved.
8124 version-control: never