1 2007-12-29 Werner LEMBERG <wl@gnu.org>
3 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
4 contain additional glyphs (like some uppercase Greek letters).
6 2007-12-06 Werner LEMBERG <wl@gnu.org>
10 2007-12-06 Colin Watson <cjwatson@debian.org>
12 * src/roff/nroff/nroff.sh: Add options -w and -W.
13 * src/roff/nroff/nroff.man: Document them.
15 2007-12-06 Karl Berry <karl@freefriends.org>
17 * tmac/hyphenex.pl: Update header output.
19 2007-11-29 Werner LEMBERG <wl@gnu.org>
21 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
23 2007-11-20 Werner LEMBERG <wl@gnu.org>
25 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
27 2007-11-17 Werner LEMBERG <wl@gnu.org>
29 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
30 variable. Problem reported by Michael G Schwern
33 * src/roff/nroff/nroff.man: Document it.
36 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
38 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
39 `xslanted' and `yslanted'.
41 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
42 Initialize `xslanted' and `yslanted'.
43 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
44 (closed_object): Ditto.
45 Add members `xslanted' and `yslanted'.
46 (box_object::print): Use them.
47 (object_spec::make_object): Handle slant values.
48 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
50 (object_spec): Add members `xslanted' and `yslanted'.
51 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
55 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
58 2007-11-16 Werner LEMBERG <wl@gnu.org>
60 * tmac/hyphenex.pl: Generate copyright notice (this has been
61 approved by Barbara Beeton).
62 * tmac/hyphenex.us: Updated.
64 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
66 * tmac/doc-syms (doc-str-St--susv3): New string.
67 * tmac/groff_mdoc.man: Document it.
69 2007-11-08 Werner LEMBERG <wl@gnu.org>
71 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
72 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
73 (is_comment_line): Handle '\" and '\# also.
75 * src/preproc/preconv/preconv.man: Revise and make complete.
77 2007-10-25 Werner LEMBERG <wl@gnu.org>
79 * tmac/cs.tmac: New file holding Czech strings, contributed by
80 Marcela Maslanova <mmaslano@redhat.com>.
81 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
82 for Czech, taken from CTAN.
84 * tmac/Makefile (NORMALFILES): Add Czech stuff.
85 * doc/groff_tmac.man: Mention cs.tmac.
87 2007-10-21 Werner LEMBERG <wl@gnu.org>
89 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
90 comments correctly. Reported by Frank Jahnke
91 <jahnke@sonatabio.com>.
93 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
95 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
98 * tmac/doc-syms: Give better names for System V releases.
100 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
102 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
103 the production of html files.
105 Remove background colour switch.
106 (.SUFFIXES, clean): Handle *.xhtml files.
108 * src/devices/grohtml/grohtml.man: Document that -V option now
109 generates an HTML-4.01 validator or XHTML validator.
111 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
112 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
113 we are inside a <pre> block.
115 * src/devices/grohtml/post-html.cpp
116 (html_printer::handle_valid_flag): Add a parameter to indicate
117 whether it needs to generate a paragraph block.
118 (html_printer::write_navigation): Updated.
119 (html_printer::do_file_components): Generate an HTML-4.01 blue
120 validator button also.
122 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
124 * man/groff.man: Fix URL of CSTR 54.
126 2007-09-23 Werner LEMBERG <wl@gnu.org>
128 * man/groff_char.man: Normalize character set names as defined
129 by IANA. Based on a patch from Axel Kielhorn.
131 * src/preproc/refer/label.y: Undo change from 2007-09-19.
133 2007-09-19 Werner LEMBERG <wl@gnu.org>
135 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
138 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
139 Remove compiler warning.
141 * src/preproc/refer/label.y: Remove compiler warning.
143 * src/preproc/pic/pic.y: Remove doubled token entries.
145 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
147 * doc/groff.texinfo: Document new .O register and add cross
152 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
154 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
155 (html_table:: emit_colspan, html_table::emit_td): New methods.
156 (html_table::emit_col): Use html_table::emit_td.
157 (html_table::emit_table_header): Use html_table::emit_colspan if
158 dialect xhtml is specified.
159 (html_table::finish_row): Updated.
161 * src/devices/grohtml/html-table.h (html_table): Declare
162 emit_colspan, emit_td.
164 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
165 xhtml if this dialect was requested.
167 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
168 (html_text): Add new variable `dialect'.
170 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
172 (valid_flag, groff_sig, dialect): New global variables.
173 (html_printer::handle_valid_flag, html_printer::do_math,
174 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
175 html_printer::do_math, html_printer::handle_valid_flag): New
177 (html_printer::emit_line, html_printer::emit_raw,
178 html_printer::do_check_center, html_printer::write_title,
179 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
180 html_printer::begin_page): Altered to be XHTML compliant.
181 (html_printer::write_header): Updated.
182 (html_printer::troff_tag): Call do_math.
183 (html_printer::insert_split_file, html_printer::do_file_components,
184 html_printer::write_navigation): Create XHTML file components if
185 necessary and also produces a groff signature if requested.
186 (~html_printer): Call writeHeadMetaStyle at appropriate places
187 depending upon html_dialect.
188 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
189 (main): Added options -x, -V, and -y.
192 * src/preproc/eqn/box.cpp: Create a distinction between
193 the MathML device and the XHTML device.
194 (do_text): Issue a newline at the end of the equation if XHTML was
196 (box::top_level): Prefix the output of an equation by the .MATHML
198 (output_string): Suppress \n if XHTML was specified.
200 * src/preproc/eqn/main.cpp (xhtml): New global flag.
201 (inline_equation): Skip leading spaces after inline equation for
203 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
205 * src/preproc/eqn/eqn.h (xhtml): New external flag.
207 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
209 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
210 (dialect, eqn_flag): New global variables.
211 (html_system): Improve debugging support.
212 (alterDeviceTo): Test for -Txhtml when altering device to the image
213 device and reset to -Txhtml.
214 (addZ): Renamed to...
216 Introducea a general parameter.
217 (print_args): New debugging function.
218 (char_buffer::run_output_filter): Use print_args and addArg rather
220 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
221 line parameter as an argument to the html generation of text when
222 xhtml is needed. Include -e on the command line if mathml is
224 (scanArguments): Allow -e, -V, -y and -x options.
225 -V, -y are handled by the back end. -e sets `eqn_flag'.
226 -x determines HTML dialect.
228 * src/roff/groff/groff.cpp (possible_command): New method
230 (main): Set eflag if -e is present on command line.
231 Set is_xhtml if -Txhtml is present.
232 Pass `-x x' to the HTML pre and post processors.
233 Pass `-e' to the HTML pre processor if required.
234 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
236 * src/roff/troff/input.cpp (init_input_requests): Introduce new
237 number register `\n[.O]'.
239 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
240 (cov*ab-init) reformat.
241 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
242 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
243 <cite></cite> for the html device rather than generate images for
246 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
247 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
248 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
249 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
251 * tmac/www.tmac: (HTML<?p>): New macro.
252 (MATH<?p>): New macro.
253 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
254 (www-emit-ltag): New macro.
255 (www-push-li): Updated.
256 (ULS): Ensure that tags are balanced in order by use of
258 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
260 (OLS, OLE, DLS, DLE): Ditto.
261 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
263 (www-li-ul, www-li-ol, www-li-dl): Updated.
264 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
265 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
268 2007-09-17 Werner LEMBERG <wl@gnu.org>
270 * man/groff_font.man: Document `unicode' keyword.
271 * doc/groff.texinfo (DESC File Format): Synchronize with
274 2007-09-15 Werner LEMBERG <wl@nu.org>
276 * man/groff.man: Document `\_'.
277 * doc/groff.texinfo: Ditto.
278 Remove references to `\@' which isn't a valid escape sequence in
282 * tmac/unicode.tmac: Add ` and '.
283 * tmac/html.tmac: Load unicode.tmac.
285 2007-09-14 Werner LEMBERG <wl@gnu.org>
287 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
290 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
292 2007-09-11 Werner LEMBERG <wl@gnu.org>
294 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
297 * src/preproc/tbl/table.cpp (table::allocate): Initialize
300 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
302 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
303 defective GnuWin32 versions of netpbm/libpng.
305 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
307 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
310 2007-07-11 Werner LEMBERG <wl@gnu.org>
312 * gendef.sh: Add shebang.
314 2007-07-05 Werner LEMBERG <wl@gnu.org>
316 * tmac/papersize.tmac: Fix dimensions of executive paper format.
317 Reported by John Rupley <rupley@u.arizona.edu>.
319 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
321 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
322 top-level environment.
324 2007-06-12 Werner LEMBERG <wl@gnu.org>
326 * src/devices/xditview/TODO, NEWS: Updated.
327 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
328 Handle `GXditview-color'.
329 * src/devices/xditview/gxditview.man: Updated.
331 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
332 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
333 from `gnulib' git repository.
335 * configure.ac: Updated.
336 * configure: Regenerated (using autoconf 2.61).
338 * config.guess, config.sub: Updated from `config' CVS repository.
339 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
342 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
344 * src/devices/xditview/GXditview.ad: Split off color definitions
346 * src/devices/xditview/GXditview-color.ad: This new file.
348 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>.
350 * tmac/fr.tmac: Handle chapter system for `me'.
352 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
354 * src/devices/xditview/xditview.c (main): Add support for
357 * src/devices/xditview/GXditview.ad: Updated.
358 Make widget more colourful.
360 2007-05-30 Werner LEMBERG <wl@gnu.org>
362 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
363 Recommend `tbl' instead of `-column' lists for more complicated
366 2007-05-21 Werner LEMBERG <wl@gnu.org>
368 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
371 2007-04-10 Werner LEMBERG <wl@gnu.org>
373 In pic, make rounded boxes work with colors. Reported by Urs Eggli
374 <Urs.Eggli@zuerich.ch>.
376 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
377 (output): Add color parameter to `rounded_box' member function.
379 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
381 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
382 to `out->rounded_box'.
384 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
386 * font/devps/generate/textmap: Add Greek letters and some more.
388 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
389 `Omega', and `mu' to the ones from aglfn.txt.
391 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
393 * tmac/s.tmac (SN): Define unconditionally.
394 (SN-STYLE): New string; define.
396 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
398 2007-03-22 Werner LEMBERG <wl@gnu.org>
400 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
401 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
403 2007-03-20 Werner LEMBERG <wl@gnu.org>
405 * tmac/trace.tmac (rn): Added.
406 (nr, ds, ds1, as, as1, substring): Restore escape character while
408 (nr): Remove dead code.
410 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
411 definitions to make them traceable.
413 2007-03-19 Werner LEMBERG <wl@gnu.org>
415 * src/roff/troff/input.cpp (get_copy): Add third argument to control
416 whether \E shall be expanded.
417 (get_char_for_escape_name): Allow \E.
419 2007-03-15 Werner LEMBERG <wl@gnu.org>
421 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
422 par*define-font-macro, \[hooko]): Use \E to make it traceable.
424 (ref*field): Add argument to control the space between previous and
427 (ref*add-N): Fix handling of opening parenthesis. Problem reported
428 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
430 2007-03-14 Werner LEMBERG <wl@gnu.org>
432 * tmac/trace.tmac (als): Added.
433 (de, de1, am, am1): Make traced macros aliased with .als work.
435 2007-02-25 Werner LEMBERG <wl@gnu.org>
437 * src/devices/xditview/TODO: Add some more items.
439 * Makefile.comm (.man.n): Add @APPRESDIR@.
442 * src/devices/xditview/gxditview.man: Document GXditview resource
444 Other documentation enhancements based on a patch from Jörg.
446 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
447 Joerg van den Hoff <j.van_den_hoff@fzd.de>
449 * src/devices/xditview/GXditview.ad: Make all keys work regardless
450 of the current mouse position.
452 2007-02-20 Werner LEMBERG <wl@gnu.org>
454 * tmac/groff_man.man: Revised to improve visual appearance.
455 Reduce use of future tense.
457 * tmac/groff_trace.man: Revosed to improve visual appearance.
459 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
461 Make groff.man viewer-portable.
463 * tmac/groff.man: Eliminate use of .eo/.ec.
464 (.REQ): Surround args 2 through N with quotes. This will enable us
465 not to rely on the shift request, which is nonportable.
466 (ExecFF): Remove. The code is simpler without it.
468 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
470 * tmac/groff_www.man: Viewer-portability fixes.
472 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
474 * man/groff.man: Remove some unneeded code and a no-longer-used
475 inclusion of the www macros.
477 2007-02-12 Werner LEMBERG <wl@gnu.org>
479 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
481 (table::compute_widths): Simplify.
483 2007-02-11 Werner LEMBERG <wl@gnu.org>
485 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
486 (table): Replace `bool' type with `char' for orthogonality.
489 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
490 AVAILABLE_REG and COLCOUNT_REG.
491 (table::table): Fix order call of initializers.
492 (table::~table): Deallocate `blockflag'.
494 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
496 A try at the new rule for block column allocation is now enabled by
497 the new `experimental' global option: The horizontal space up to the
498 right margin which is not used by columns without text blocks is
499 evenly distributed to the columns with text blocks.
501 It doesn't work right as yet; there appears to be some error in the
502 computation of `3avail', the available line length. The purpose of
503 this patch is (a) to make experimenting with other formulas easy,
504 and (b) leave the infrastructure for flag `experimental' in place
505 for future experiments. Do not document any behavior associated
508 * src/preproc/tbl/table.h: Include `stdbool.h'.
509 (table): Make `flags' public.
510 Add `count_block_columns' function.
511 Add `blockflag' array.
512 Add `EXPERIMENTAL' enumeration value.
514 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
516 (table_entry): New member `parent' so that class and subclass
517 members can set a parent field. Update all users.
518 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
519 (block_entry::do_width): Set the parent's `blockflag'.
520 (table::allocate): Handle `blockflag'.
521 (table::count_block_columns): New function.
522 (compute_span_width): Adjust AVAILABLE_REG.
523 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
525 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
528 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
530 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
533 2007-02-08 Werner LEMBERG <wl@gnu.org>
535 * man/groff_out.man (offset): Make it work reliably.
537 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
539 * man/groff_out.man: Simplify some font changes so \fP is less
540 likely to do something surprising.
542 * man/groff_out.man: We can simplify the command macros still
543 further if we stop trying to hide structural requests inside them.
544 Also, fix some instances of \} at start of line without a dot, and
545 make some font changes explicit in strings.
547 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
550 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
551 calls and fix macros to do without them. File should now be
554 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
555 micromotions that produce the same visual result and can be lifted
558 * man/groff_out.man: Third step: Reduce Da-comand, fix a
559 call-sequence bug in the original.
561 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
562 move font-change escapes to portable form.
564 * man/groff_out.man: First step in macro simplification; eliminate
565 list1..n, simplify .offset and .index_offset so they no longer
566 require groff-specific features or eqn (instead, use troff
567 micromotions for subscripting).
569 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
571 * src/preproc/eqn/eqn.man: Minor corrections.
573 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
574 longer takes a second argument that is pasted to the end of the
575 generated text. Instead, the end macro takes an argument that does
578 * man/ditroff.man, man/groff_diff.man, man/groff.man,
579 man/groff_out.man, man/groff_tmac.man, man/roff.man,
580 src/roff/groff/groff.man, src/roff/grog/grog.man,
581 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
583 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
584 so we can use them here.
586 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
588 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
589 By popular demand, make ... set three lower dots again
590 and introduce a new predefined macro 'cdots' to set
593 2007-02-05 Werner LEMBERG <wl@gnu.org>
595 * src/preproc/eqn/eqn.man: Revised.
597 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
599 (spacing_type): Fix typo.
600 (special_to_entity): Use `const'.
601 Remove unused variable.
602 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
604 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
606 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
607 which is a shame as the effect was cute.
609 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
611 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
612 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
613 possible, remove preamble declarations and macros that are no
614 longer needed. Conversion checked using the protocol described in
617 2007-02-03 Werner LEMBERG <wl@gnu.org>
619 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
622 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
624 * tmac/groff_man.man: Documented the extension macros, and
625 added portability advice.
627 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
630 Add support for MathML output to eqn.
632 The strategy used is very simple and relies on the fact that the box
633 models of eqn and Presentation MathML differ in only trivial ways.
634 It leaves the grammar and existing internal object structures
635 unchanged. A new global, `output_format', is defined as an
636 enumerated type with values {troff, mathml}. Most of the functions
637 and methods that emit actual output acquire a top-level conditional,
638 dispatching on this global, which has one arm for troff mode and one
639 for MathML mode. In most cases the MathML arm is drastically
642 (This strategy could be easily generalized to support other output
643 formats. TeX is a possibility that leaps to mind.)
645 The only even moderately tricky changes are in the lexer. Some of
646 the predefined macros used constructs like `up', `down', `fwd',
647 `back', and `vcenter' that have no equivalents in MathML. I
648 attacked this problem in these ways:
650 1. I eliminated three uses of `back' to compose characters in favor
651 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
652 that did not exist when these macros were written. (This will be
653 a quality improvement for troff users.)
655 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
657 3. I then split the table of pre-definitions in three; one large
658 common table and two small troff-specific and MathML-specific
659 tables. Use of troff-only operations (up, down, back, fwd,
660 vcenter) is now confined to the former. The latter now uses
661 `size big' and drops out the explicit positioning operations,
662 counting on MathML processors to do them.
664 POTENTIAL TROUBLE SPOTS:
666 Here are notes for reviewers on places I'm not 100% sure I've done
669 * In the process of preparing the troff table, I translated three
670 definitions (dot_def, dotdot_def, and utilde def) that previously
671 used explicit \v escapes to use `up' and `down' instead. I
672 modeled the new definitions on the way `vec' and `dyad' work, but
673 it's possible I got something subtle wrong.
675 * I'm not certain the MathML implementation of font_box::output() is
676 right, because I don't quite get what the switcheroo between
677 `current_roman_font' and `old_roman_font' is supposed to
678 accomplish. It does seem to generare good MathML, though.
680 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
681 with an enum some magic numbers for spacing types that I thought
682 were too ugly to live.
686 The entirety of eqn is translated when `-TMathML' is specified,
687 with the following exceptions...
689 Limitations that cannot be fixed include non-support for special,
690 up/down/fwd/back, and vcenter.
692 Limitations that might be fixable include non-support for mark and
693 lineup. I will investigate further, but if these can be implemented
694 at all it's going to be in a very complicated and nasty way.
696 The way character boxes are output means that each digit of a
697 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
698 While this is not technically wrong for Presentation MathML, it is
699 ugly and inefficient. Fixing this will require implementing a
700 little state machine in the `text.cpp' output method.
702 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
703 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
704 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
705 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
706 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
707 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
708 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
709 src/preproc/eqn/eqn.man: MathML output mode.
713 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
715 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
716 and for cross-viewer portability. Conversion checked
717 using the protocol described in tmac/TESTING-HINTS.
719 2007-02-02 Werner LEMBERG <wl@gnu.org>
721 * tmac/an-ext.tmac (ME): Don't use `\:'.
723 * src/roff/grog/grog.man: Further refinements and normalizations.
725 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
727 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
728 cross-viewer portability. Conversion checked using the protocol
729 described in tmac/TESTING-HINTS.
731 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
733 * tmac/TESTING-HINTS: Added.
735 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
737 Enable the support for Bell archaisms on .SC, so the `-r bell'
738 switch is no longer needed to format old AT&T papers like
741 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
743 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
745 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
747 Add some Bell labs extensions to the -ms macros.
749 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
751 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
753 2007-01-30 Werner LEMBERG <wl@gnu.org>
755 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
756 (\n[mH]): New register (set if grohtml is used).
757 (\n[SY]): Rename to \n[mS].
758 (\n[a]): Rename to \n[mA].
759 (\n[i]): Rename to \n[mI].
760 (mU): New auxiliary input trap macro.
761 (UR, UE): Replace stub with real definition.
763 (MT, ME): New macros.
765 (EX, EE): Don't insert vertical space.
766 Use a register to store (and restore) the current font.
768 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
769 on patches from Eric Raymond.
772 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
774 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
776 2007-01-22 Werner LEMBERG <wl@gnu.org>
778 * tmac/an-ext.tmac: Protect against being sourced twice.
779 (URL, EE): Use always two backslashes.
782 2007-01-16 Werner LEMBERG <wl@gnu.org>
784 * tmac/an-ext.tmac: Remove code for grodvi.
786 Don't insert empty line.
787 (URL, TQ): Fix typos.
789 2007-01-14 Werner LEMBERG <wl@gnu.org>
791 * tmac/an-ext.tmac: New file, containing extension macros
792 for -man. See discussion on the groff mailing list for
793 background information.
794 * tmac/an-old.tmac: Load an-ext.tmac.
795 Decorate .ds and as with comment escapes where appropriate.
796 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
798 2007-01-05 Werner LEMBERG <wl@gnu.org>
800 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
802 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
804 Make -me macros ready for grohtml.
806 * tmac/e.tmac: Load devtag.tmac.
807 (need_eo_h, need_eo_tl, need_tl): New registers.
808 (check_need_title, (x-html, )x-html, xp-html): New macros.
809 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
810 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
811 (bp): Rename to @b only if output device is not html.
813 2007-01-01 Werner LEMBERG <wl@gnu.org>
815 * man/groff_font.man: Document empty lines.
817 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
818 the very beginning of the output.
821 * font/devps/*: Regenerate font definition files.
823 2007-01-01 Werner LEMBERG <wl@gnu.org>
825 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
827 * font/devps/*: Regenerate font definition files.
829 2006-12-31 Werner LEMBERG <wl@gnu.org>
831 * Makefile.in (oldfontdir): New variable.
832 (MDEFINES): Add $(oldfontdir).
833 (uninstall_dirs): Remove `current' link.
834 Remove $(oldfontdir).
836 * Makefile.comm (oldfontsubdir): New variable.
837 (install_dev): Install files collected in $(OLDDEVFILES) into
839 (uninstall_dev): Remove data in $(oldfontsubdir).
840 (.man.n): Handle @OLDFONTDIR@.
842 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
843 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
844 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
845 Document GROFF_FONT_PATH.
847 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
848 old font description files.
850 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
853 * font/devps/old/*: New directory, holding the previous version
854 of the 35 Adobe core font description files.
856 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
857 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
859 * NEWS: Document font update.
861 2006-12-31 Werner LEMBERG <wl@gnu.org>
863 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
865 * Makefile.comm (fonts): New (empty) target.
866 * Makefile.in (TARGETS): Add `fonts'.
868 * MANIFEST: Add `chem'.
870 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
873 2006-12-26 Werner LEMBERG <wl@gnu.org>
875 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
877 2006-12-19 Werner LEMBERG <wl@gnu.org>
879 Add support for German. For activation, simply use -mde or -mden
880 (for traditional and new orthgraphy, respectively) as the last
883 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
884 tmac/hyphenex.det: New files, partly taken from CTAN.
885 * LICENSES: Updated list of hyphenation patterns.
886 * man/groff_tmac.man: Mention de.tmac and den.tmac.
889 2006-12-11 Werner LEMBERG <wl@gnu.org>
891 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
894 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
895 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
896 limit of 9 arguments.
897 (process_body): Handle argument numbers with more than a single
899 (interpolate_macro_with_args): Protect against exceeding number of
902 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
904 2006-12-10 Werner LEMBERG <wl@gnu.org>
906 * Makefile.in (site.exp, docheck): Commented out. Not working
908 (check): Just emit dummy message.
910 2006-12-08 Werner LEMBERG <wl@gnu.org>
912 During installation, create soft link from <version> to `current' in
915 * Makefile.comm (install): Renamed to...
917 (prefix_must_exist): Removed. Code moved to Makefile.in.
919 * Makefile.in (TARGETS): Remove `install'.
921 (install): New target which first creates the directory given by
922 --prefix, then calling `make' to do the installation, and finishing
923 with the creation of the soft link.
925 2006-11-21 Werner LEMBERG <wl@gnu.org>
927 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
929 2006-11-18 Werner LEMBERG <wl@gnu.org>
931 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
932 information from Tom Van Vleck <thvv@multicians.org>.
934 2006-11-16 Werner LEMBERG <wl@gnu.org>
936 * tmac/62bit.tmac: New macro package.
937 * tmac/Makefile.sub (NORMALFILES): Add it.
940 * tmac/trace.tmac: Protect against being loaded again.
941 (nr): Always show result.
943 * doc/groff.texinfo (Input Encodings): Document latin-5.
945 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
947 2006-11-13 Werner LEMBERG <wl@gnu.org>
949 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
950 on negative trap positions.
952 2006-11-10 Werner LEMBERG <wl@gnu.org>
954 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
956 2006-11-09 Werner LEMBERG <wl@gnu.org>
958 * INSTALL: Move information about external installation from
959 INSTALL.gen into this file.
962 * INSTALL.gen: Update to new version (from texinfo CVS).
964 2006-11-09 Bernd Warken
966 * INSTALL.gen: Extend the file by information on `external
967 installation'. Reorder the installation instruction as `normal
970 2006-11-08 Werner LEMBERG <wl@gnu.org>
972 * doc/Makefile.sub (install_data): Take care of proper paths while
973 installing info files. Bug reported by Bernd Warken.
975 2006-11-06 Bernd Warken
977 * src/roff/grog/grog.pl: Rewrite.
978 - Call by `#! /usr/bin/env perl'. That isn't replaced.
979 - Rename usage() to version().
981 - For `use strict', start all global variables with an upper case
982 character. Use `my' for all variables. Use several new variables.
984 - Add copyright to GPL and Emacs comment.
985 - Handle several `-m*' options.
986 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
987 - Allow options after file names.
988 - Allow only one `-' parameter (standard input).
989 - Add option abbreviations.
990 - Expand the usage information.
992 - Add single quote "'" as additional first character and allow
993 arbitrary space after the first character.
995 * src/roff/grog/grog.sh: Rewrite.
996 - Remove option `-e' of `sed'.
997 - Allow file names with space characters.
999 - Add copyright to GPL.
1000 - Handle several `-m*' options.
1001 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1002 - Allow options after file names.
1003 - Allow only one `-' parameter (standard input).
1004 - Add option abbreviations.
1005 - Expand the usage information.
1007 - Add single quote "'" as additional first character and allow
1008 arbitrary space after the first character.
1010 * src/roff/grog/Makefile.sub:
1011 - Add copyright to GPL.
1012 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1013 fair chance to choose between the shell version and the Perl
1014 version of `grog'. This is now again comparable to grog in groff
1017 * src/roff/grog/grog.man: Rewrite.
1018 - Move the license to GPL.
1019 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1020 - Take over some setup and macros from `groffer'.
1021 - Add information on options.
1023 2006-10-28 Werner LEMBERG <wl@gnu.org>
1025 * tmac/trace.tmac: Improve tracing of `.nr'.
1026 Trace `.substring' also.
1030 2006-10-28 Bernd Warken
1032 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1033 of groff development site, fix fonts.
1035 * News: Add information on `chem' and `groffer'.
1037 2006-10-26 Bernd Warken
1039 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1041 2006-10-26 Werner LEMBERG <wl@gnu.org>
1043 Add `\%^' escape to handle the parameters to a macro as a string
1046 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1048 * src/roff/troff/input.cpp (input_iterator, input_stack,
1049 macro_iterator): Add `space_follows_arg' member function.
1050 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1052 (arg_list): Add member `space_follows'.
1053 Update constructor and all callers.
1054 (decode_args): Store discarded double quotes.
1055 (interpolate_args): Handle DOUBLE_QUOTE.
1057 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1059 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1061 * docs/groff.texinfo (Parameters), man/groff.man,
1062 man/groff_diff.man, NEWS: Document it.
1064 2006-10-24 Bernd Warken
1066 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1068 2006-10-24 Werner LEMBERG <wl@gnu.org>
1070 * tmac/groff_trace.man: Mention problem with `\\\\'.
1072 2006-10-23 Werner LEMBERG <wl@gnu.org>
1074 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1076 * tmac/trace.tmac (return): Don't call `substring'.
1078 2006-09-10 Werner LEMBERG <wl@gnu.org>
1080 * src/roff/troff/input.cpp (read_size): Revert previous change
1083 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1085 2006-09-09 Werner LEMBERG <wl@gnu.org>
1087 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1088 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1089 point size to 1). Reported by Gunnar Ritter.
1090 Also catch `\s-[-...]' and friends (causing an error).
1092 2006-09-06 Werner LEMBERG <wl@gnu.org>
1094 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1095 space only if there is no previous space. This fixes a bug which
1096 caused unwanted filling of the last line in a paragraph. Thanks to
1097 Gunnar Ritter for an analysis.
1099 2006-09-03 Werner LEMBERG <wl@gnu.org>
1101 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1102 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1104 2006-09-01 Nick Stoughton <nick@msbit.com>
1105 Werner LEMBERG <wl@gnu.org>
1107 Add a request `pev' to print environment information (similar to
1108 `pnr' and `ptr' to print number registers and traps).
1110 * src/roff/troff/env.h (environment): Add member function print_env.
1112 * src/roff/troff/env.cpp: (environment::print_env): New function to
1113 print a given environment state.
1114 (print_env): New global function to iterate through the
1115 environments, printing each one.
1116 (init_env_requests): Register `pev'.
1118 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1119 NEWS: Document `pev' request.
1121 2006-09-01 Bernd Warken
1123 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1126 2006-09-01 Werner LEMBERG <wl@gnu.org>
1128 * src/preproc/pic/main.cpp (usage): Add missing options.
1130 2006-08-25 Werner LEMBERG <wl@gnu.org>
1132 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1135 2006-08-19 Werner LEMBERG <wl@gnu.org>
1137 * configure: Regenerated.
1139 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1141 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1142 logic; it previously caused an `expr' syntax error, if no version of
1143 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1144 builds, if an up to date `groff.info' is present in either `builddir'
1147 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1149 * font/devps/prologue.ps: Add BPhook.
1151 * src/devices/grops/grops.man: Document BPHook.
1152 Reorder some sections for better readability.
1154 2006-08-12 Werner LEMBERG <wl@gnu.org>
1156 * src/include/lib.h (getlocale): New macro.
1157 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1160 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1162 2006-08-11 Werner LEMBERG <wl@gnu.org>
1164 Add new flag to .cflags to enable hyphenation without looking at
1167 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1169 New member function `ignore_hcodes'.
1171 * src/roff/troff/node.cpp (break_char_node::add_self,
1172 node::add_char): Updated.
1174 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1176 2006-08-09 Werner LEMBERG <wl@gnu.org>
1178 Support composite Unicode characters again. Reported by Colin.
1180 * font/devhtml/R.proto: Renamed to...
1181 * font/devhtml/R.in: This.
1183 * font/devutf8/R.proto: Renamed to...
1184 * font/devutf8/R.in: This.
1187 * font/make-Rproto: New script.
1188 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1190 2006-07-26 Werner LEMBERG <wl@gnu.org>
1192 * README: Fix description of CVS access. Reported by Joachim.
1194 2006-07-11 Werner LEMBERG <wl@gnu.org>
1196 Add a request `.fzoom' and a number register `.zoom' to magnify
1199 * src/include/font.h (font): Add member variable `zoom'.
1200 Add member functions `set_zoom' and `get_zoom'.
1201 Remove `static' attribute from `scale' member function.
1203 * src/libs/libgroff/font.cpp (font::font): Updated.
1204 (scale_round): New version with three parameters to handle zoom
1206 (font::scale, font::get_width): Handle zoom factor.
1207 (font::set_zoom, font::get_zoom): New functions.
1208 (font::load): Handle `zoom' while computing `space_width'.
1210 * src/roff/troff/env.h: Declare `env_get_zoom'.
1211 (environment): Add member function `get_zoom'.
1213 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1214 (init_env_requests): Initialize `.zoom' register.
1216 * src/roff/troff/node.cpp (font_info): New member functions
1217 `set_zoom' and `get_zoom'.
1218 (tfont): New member function `get_zoom'.
1219 (env_get_zoom): New function.
1220 (troff_output_file::set_font): Handle zoom factor.
1221 (font_zoom_request): New function.
1222 (init_node_requests): Initialize `fzoom' request.
1224 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1225 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1228 * src/roff/troff/TODO: Updated.
1230 2006-07-10 Werner LEMBERG <wl@gnu.org>
1232 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1235 2006-07-02 Werner LEMBERG <wl@gnu.org>
1237 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1239 2006-07-01 Werner LEMBERG <wl@gnu.org>
1241 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1242 Print image file name for devices which don't support PS image
1244 Handle multiple inclusions.
1245 Add lots of comments.
1247 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1250 * tmac/troffrc: Load pspic.tmac.
1252 * man/groff_tmac.man: Update .PSPIC documentation.
1256 2006-06-29 Werner LEMBERG <wl@gnu.org>
1258 * src/roff/troff/input.cpp (interpolate_macro):
1259 s/probably/possibly/, as suggested by Keith.
1261 2006-06-28 Werner LEMBERG <wl@gnu.org>
1263 Add support for \D'p...' to grotty.
1265 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1267 (tty_printer::line): This function.
1268 (tty_printer::draw): Rewritten; just call either draw_line or
1270 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1272 * src/devices/grotty/grotty.man, NEWS: Document it.
1274 2006-06-27 Werner LEMBERG <wl@gnu.org>
1276 * src/preproc/refer/command.h (have_bibliography): New variable
1279 * src/preproc/refer/command.cpp (bibliography_command): Set
1280 `have_bibliography'.
1282 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1283 (output_references): Emit warning only if `have_bibliography' is
1286 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1288 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1289 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1292 2006-06-15 Werner LEMBERG <wl@gnu.org>
1294 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1295 macro (as suggested by Tadziu Hoffmann).
1297 2006-06-12 Werner LEMBERG <wl@gnu.org>
1299 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1300 macro (as suggested by Tadziu Hoffmann).
1302 2006-06-05 Werner LEMBERG <wl@gnu.org>
1304 * tmac/strip.sed: Strip `\#' also.
1306 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1307 \? for string comparison.
1309 2006-06-04 Werner LEMBERG <wl@gnu.org>
1311 * doc/groff.texinfo: Add more index entries for copy-in mode.
1312 (Changing Fonts) <.ft>: Document that a font definition file must
1313 not be called `DESC'.
1315 2006-05-31 Werner LEMBERG <wl@gnu.org>
1317 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1320 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1321 (PROCESSEDEXAMPLEFILES): Here.
1323 2006-05-30 Werner LEMBERG <wl@gnu.org>
1325 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1327 Reduce number of false positives for `.if F ...' conditionals.
1328 Improve warning messages.
1330 2006-05-29 Werner LEMBERG <wl@gnu.org>
1332 * tmac/Makefile.sub: Add copyright notice.
1333 (NORMALFILES): Add man.tmac and ms.tmac.
1334 (SPECIALFILES): Remove man.tmac and ms.tmac.
1335 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1336 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1338 (stamp-sed): Don't handle man.tmac and ms.tmac.
1339 Remove obsolete components in sed's regexp.
1341 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1343 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1345 2006-05-28 Werner LEMBERG <wl@gnu.org>
1347 * doc/groff.texinfo (History): Correct death circumstances of Joe
1350 2006-05-27 Werner LEMBERG <wl@gnu.org>
1352 * tmac/an-old.tmac (an-do-tag): Simplify.
1354 2006-05-26 Werner LEMBERG <wl@gnu.org>
1356 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1357 (an-header, an-p-footer): Use named environment.
1359 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1362 2006-05-21 Werner LEMBERG <wl@gnu.org>
1364 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1367 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1369 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1371 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1373 * src/roff/groff/groff.man: Update copyright notice.
1374 Improved wording to describe effect of `-Z' option.
1376 2006-05-06 Werner LEMBERG <wl@gnu.org>
1378 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1379 Normalize handling of `"' in arguments.
1380 (PIMG): Remove debug message.
1383 2006-05-05 Werner LEMBERG <wl@gnu.org>
1385 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1386 swallow character immediately after `\[...]'.
1389 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1391 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1393 2006-05-02 Larry Kollar <kollar@alltel.net>
1395 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1398 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1400 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1401 information as a comment in output.
1402 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1404 2006-04-26 Werner LEMBERG <wl@gnu.org>
1406 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1407 Handle current_paragraph only if it is non-NULL.
1409 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1410 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1411 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1414 Surround the (pseudo) file name for the .pso request with `<' and
1417 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1418 second parameter to `really_put_filename' and `put_filename'.
1419 (troff_output_file::really_put_filename): Emit `<' and `>' around
1420 filename if second argument is set.
1421 * src/roff/troff/node.h: Updated.
1423 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1424 file_iterator::set_location): Update to changes in node.cpp.
1426 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
1428 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1429 preprocessor expression (I18N -> HAVE_ICONV).
1430 (main): Fix handling of option `-h'.
1431 Fix conditional preprocessor expression.
1433 2006-04-04 Werner LEMBERG <wl@gnu.org>
1435 Implement new number register `.br' which is set to 1 if a macro has
1436 been called as .foo and to 0 if called as 'bar. This is useful for
1437 -mtrace so that requests can be reliably traced too.
1439 * src/roff/troff/input.cpp (input_iterator): Add virtual function
1441 (macro_iterator): Add `with_break' member and `get_break_flag'
1443 Update constructors.
1444 (input_stack): Add function `get_break_flag'.
1445 (break_flag_reg): New number register class.
1446 (input_init_requests): Register `.br'.
1448 * src/roff/troff/TODO: Updated.
1450 * tmac/trace.tmac: s/!!sp/!!!sp/.
1451 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1453 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1456 2006-03-29 Werner LEMBERG <wl@gnu.org>
1458 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1459 messages where appropriate.
1461 2006-03-28 Werner LEMBERG <wl@gnu.org>
1463 * configure.ac: Call AC_PROG_EGREP.
1464 * configure: Regenerated.
1466 * Makefile.in (EGREP): New variable.
1467 (MDEFINES): Add $(EGREP).
1469 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1470 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1473 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1475 2006-03-27 Werner LEMBERG <wl@gnu.org>
1477 Add two requests `.device' and `.devicem' which are equivalent to
1478 `\X' and `\Y', respectively.
1480 * src/roff/troff/input.cpp (device_request, device_macro_request):
1482 (init_input_requests): Register them.
1484 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1485 man/groff.man, NEWS: Document them.
1487 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
1489 * src/roff/troff/input.cpp (encode_char): Emit special characters
1490 for -Thtml as `\[...]'.
1491 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1493 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1495 2006-03-27 Werner LEMBERG <wl@gnu.org>
1497 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1500 2006-03-26 Werner LEMBERG <wl@gnu.org>
1502 * doc/groff.texinfo (Writing Macros): More documentation on
1503 end-of-macro symbol of `.de'.
1504 (Diversions): Minor addition to `.di' description.
1506 * src/devices/grops/grops.man: Some clarifications regarding
1507 insertion of PostScript snippets.
1509 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
1511 Add rules to generate `symbolsl.afm'.
1513 * font/devps/generate/zapfdr.sed,
1514 font/devps/generate/symbolsl.awk: New files.
1516 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1518 (SS, clean): Updated.
1519 (freeeuro.afm): Use $(srcdir).
1520 (symbolsl.afm): New rule.
1521 (zapfdr.afm): Use zapfdr.sed.
1523 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
1525 * src/preproc/pic/pic.y (expr <INT>): Fix code.
1527 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
1529 * tmac/sv.tmac: Add missing translations and activate support for
1530 other macro packages.
1532 2006-03-21 Francis GUDIN <fgudin@nerim.net>
1534 * tmac/doc-syms (Dx): New macro to identify DragonFly.
1535 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1536 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1538 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1539 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1540 doc-operating-system-DragonFly-*): New operating system strings.
1542 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1544 2006-03-21 Werner LEMBERG <wl@gnu.org>
1546 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1547 both DWB pic and dpic, make
1555 line right then down;
1562 * doc/pic.ms: Document this.
1564 2006-03-20 Werner LEMBERG <wl@gnu.org>
1566 * doc/pic.ms: With permission of Eric Raymond, put it under the
1571 2006-03-19 Werner LEMBERG <wl@gnu.org>
1573 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
1575 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
1576 attribute in combination with `with'. Bug reported by Jennifer
1577 Sayers <jenjen@mail.usyd.edu.au>.
1579 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
1581 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
1584 2006-03-18 Werner LEMBERG <wl@gnu.org>
1586 * LICENSE: Renamed to...
1587 * LICENSES: This. Collect all licensing information in this file.
1588 * tmac/README, src/libs/snprintf/README: Removed.
1590 * src/devices/grops/grops.man: Add section how to install fonts.
1592 * src/utils/xtotroff/xtotroff.c: Add GPL.
1594 2006-03-17 Werner LEMBERG <wl@gnu.org>
1596 * Makefile.comm (.y.cpp): Fix #line arguments in output.
1598 2006-03-13 Werner LEMBERG <wl@gnu.org>
1600 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
1602 * tmac/doc-common (Os): Add more Darwin versions.
1603 * tmac/groff_mdoc.man: Document them.
1605 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
1606 works with \N'...' also.
1607 * man/groff_diff.man: Ditto. Remove use of future tense where
1610 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
1612 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
1613 font/devps/zapfdr.ps: Add `%%EndComments' line.
1615 2006-03-10 Larry Kollar <kollar@alltel.net>
1617 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
1619 2006-03-10 Werner LEMBERG <wl@gnu.org>
1621 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
1622 ps_printer::do_mdef): Overlong lines now cause a warning message,
1625 2006-03-09 Werner LEMBERG <wl@gnu.org>
1627 * font/devps/generate/make-zapfdr: New script for generating
1630 2006-03-08 Werner LEMBERG <wl@gnu.org>
1632 * doc/groff.css (pre): Fix `background-color' value.
1634 2006-03-04 Larry Kollar <kollar@alltel.net>
1636 * tmac/groff_ms.man: Document PT, HD, and BT.
1638 2006-03-04 Werner LEMBERG <wl@gnu.org>
1640 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
1641 for single-letter glyph names.
1643 2006-03-02 Werner LEMBERG <wl@gnu.org>
1645 * tmac/sv.tmac: New file; currently holding only the Swedish strings
1647 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
1649 * tmac/README: Updated.
1651 2006-02-27 Werner LEMBERG <wl@gnu.org>
1653 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
1654 * tmac/fr.tmac: Add French translations.
1656 * tmac/composite.tmac: Add entry for `:'.
1658 2006-02-26 Werner LEMBERG <wl@gnu.org>
1660 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
1662 (install_html, uninstall_sub): Updated.
1664 2006-02-26 Bruno Haible <bruno@clisp.org>
1666 Introduce Unicode fonts.
1668 * font/devhtml/DESC.proto: Mark as unicode.
1669 * font/devhtml/R.proto: Remove all charset entries that are already
1671 * font/devutf8/DESC.proto: Mark as unicode.
1672 * font/devutf8/R.proto: Remove all charset entries.
1673 * src/include/font.h (font): New static field `is_unicode'.
1674 Change order of fields.
1675 * src/libs/libgroff/font.cpp: Include unicode.h.
1676 (font::font): Update for changed order of fields.
1677 (font::contains, font::get_width, font::get_height, font::get_depth,
1678 font::get_italic_correction, font::get_left_italic_correction,
1679 font::get_subscript_correction, font::get_character_type,
1680 font::get_code, font::get_special_device_encoding): Handle both the
1681 explicitly enumerated glyphs and use general code for Unicode fonts.
1682 (font::load): Make the charset section optional when the font is
1684 (font::load_desc): Recognize the `unicode' attribute.
1685 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
1687 2006-02-26 Claudio Fontana <claudio@gnu.org>
1689 * Makefile.in: Add comment about DESTDIR.
1691 * Makefile.sub: Add DESTDIR to install and uninstall targets
1692 to support staged installations.
1693 * Makefile.comm: Likewise.
1694 * doc/Makefile.sub: Likewise.
1695 * contrib/eqn2graph/Makefile.sub: Likewise.
1696 * contrib/grap2graph/Makefile.sub: Likewise.
1697 * contrib/pic2graph/Makefile.sub: Likewise.
1698 * src/devices/xditview/Makefile.sub: Likewise.
1699 * src/preproc/eqn/Makefile.sub: Likewise.
1700 * src/roff/grog/Makefile.sub: Likewise.
1701 * src/roff/nroff/Makefile.sub: Likewise.
1702 * src/utils/afmtodit/Makefile.sub: Likewise.
1703 * src/utils/indxbib/Makefile.sub: Likewise.
1704 * tmac/Makefile.sub: Likewise.
1706 2006-02-24 Werner LEMBERG <wl@gnu.org>
1708 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1710 Remove commented out entries for \' and \` (there are no such glyph
1713 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1714 commented out entries for \' and \`.
1717 * */*: s/legal/valid/ where appropriate.
1719 2006-06-23 Werner LEMBERG <wl@gnu.org>
1721 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
1724 2006-02-22 Werner LEMBERG <wl@gnu.org>
1726 Remove all remaining traces from the `shc' glyph.
1728 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1729 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
1732 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
1733 entry with unnamed glyph.
1735 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
1737 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
1740 2006-02-22 Bruno Haible <bruno@clisp.org>
1742 Concretize the `glyph' datatype.
1744 * src/include/font.h (glyph): Remove class.
1745 (glyph): Renamed from struct `glyphinfo'.
1746 (glyph_to_index): New inline function.
1747 (glyph_to_name): Make extern, not inline.
1748 (glyph_to_number): Update.
1749 (font): Use `glyph *' instead of `glyph'.
1751 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
1752 `glyph'. Make `name' field public.
1753 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
1755 (glyph_to_name): Renamed from `glyph::glyph_name'.
1757 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
1758 Use `glyph *' instead of `glyph'.
1760 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
1761 `glyph *' instead of `glyph'.
1762 (glyph_to_name): Renamed from `glyph::glyph_name'.
1764 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
1765 and `glyph_to_index' instead of `glyph::glyph_index'.
1767 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
1768 * src/libs/libdriver/printer.cpp: Likewise.
1769 * src/devices/grodvi/dvi.cpp: Likewise.
1770 * src/devices/grohtml/post-html.cpp: Likewise.
1771 * src/devices/grolbp/lbp.cpp: Likewise.
1772 * src/devices/grolj4/lj4.cpp: Likewise.
1773 * src/devices/grops/ps.cpp: Likewise.
1774 * src/devices/grotty/tty.cpp: Likewise.
1776 2006-02-22 Werner LEMBERG <wl@gnu.org>
1778 * font/devdvi/generate/tc.map: Add `sr' glyph.
1779 * font/devdvi/*TC: Regenerated.
1781 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
1784 2006-02-21 Werner LEMBERG <wl@gnu.org>
1786 * man/groff_char.man: Explain `***' marker.
1788 2006-02-17 Bruno Haible <bruno@clisp.org>
1790 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
1791 methods and fields from *_index to *_glyph.
1792 (character_indexer::named_char_glyph): Test for `charNNN' name
1794 (name_to_glyph): ... not here.
1796 2006-02-17 Bruno Haible <bruno@clisp.org>
1798 * src/include/font.h (name_to_glyph): Renamed from
1799 font::name_to_index.
1800 (number_to_glyph): Renamed from font::number_to_index.
1801 (glyph_to_name): Renamed from font::index_to_name.
1802 (glyph_to_number): Renamed from font::index_to_number.
1803 * src/libs/libgroff/nametoindex.cpp: Likewise.
1804 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
1805 charinfo::get_index.
1807 * src/roff/troff/input.cpp: All callers changed.
1808 * src/roff/troff/node.cpp: Likewise.
1809 * src/libs/libgroff/font.cpp: Likewise.
1810 * src/devices/grops/ps.cpp: Likewise.
1811 * src/devices/grohtml/post-html.cpp: Likewise.
1812 * src/libs/libdriver/printer.cpp: Likewise.
1814 2006-02-17 Werner LEMBERG <wl@gnu.org>
1816 * src/include/ptable.h, src/include/itable.h
1817 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
1818 of external symbol `next_ptable_size' (used by both header files).
1820 2006-02-15 Bruno Haible <bruno@clisp.org>
1822 * src/include/font.h (glyphinfo): New class.
1823 (glyph): Change internal representation.
1824 Change constructor signature.
1825 New method glyph::glyph_number().
1826 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
1827 glyph::operator==, glyph::operator!=): Update.
1828 (font::index_to_name, font::index_to_number): New functions.
1830 * src/include/itable.h: New file, based on src/include/ptable.h.
1832 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
1833 (class charinfo): New class.
1834 (class character_indexer): Change table result type from `int' to
1836 Add table with integer key.
1837 (character_indexer::character_indexer): Update.
1838 (character_indexer::ascii_char_index): Update.
1839 (character_indexer::numbered_char_index): Use NULL as name, not a
1840 string starting with a space.
1841 (character_indexer::named_char_index): Update.
1842 (font::number_to_index, font::name_to_index): Remove no-op cast.
1843 (glyph::glyph_name): New method.
1844 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
1846 (NUMBERED): Remove flag bit.
1847 (charinfo::numbered, charinfo::get_index): Update.
1849 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
1850 (charinfo::set_number, charinfo::get_number): Update.
1851 (glyph::glyph_name): New method.
1853 2006-02-15 Werner LEMBERG <wl@gnu.org>
1855 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
1856 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
1858 2006-02-13 Werner LEMBERG <wl@gnu.org>
1860 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
1863 2006-02-11 Werner LEMBERG <wl@gnu.org>
1865 * src/include/font.h: s/glyph_t/glyph/.
1868 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
1869 s/output_character_t/output_character/.
1871 2006-02-11 Bruno Haible <bruno@clisp.org>
1873 New accessor method glyph_t::glyph_name().
1875 * src/include/ptable.h (declare_ptable): Add a return value to the
1876 `define' method, and declare a `lookupassoc' method.
1877 (implement_ptable): Return the stored key in `define'. Implement
1879 * src/include/font.h (glyph_t): Add `name' field. Add an argument
1881 (glyph_t::glyph_name): New method.
1883 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
1884 return type of methods and field member type to glyph_t.
1885 (character_indexer::character_indexer): Update.
1886 (character_indexer::ascii_char_index): Allocate a name for the
1888 Return a glyph_t with name.
1889 (character_indexer::numbered_char_index): Return a glyph_t without a
1891 (character_indexer::named_char_index): Return a glyph_t with a name.
1892 (font::number_to_index, font::name_to_index): Update.
1894 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
1897 2006-02-11 Bruno Haible <bruno@clisp.org>
1899 * src/devices/grotty/tty.cpp (output_character_t): New type.
1900 (tty_printer::make_bold, tty_printer::add_char,
1901 tty_printer::put_char): Change argument type to output_character_t.
1902 (crossings): Change element type to output_character_t.
1904 2006-02-11 Bruno Haible <bruno@clisp.org>
1906 Make the glyph data type abstract.
1908 * src/include/font.h (glyph_t): New class.
1909 (name_to_index, number_to_index): Change return type to glyph_t.
1910 (font::contains, font::get_width, font::get_height, font::get_depth,
1911 font::get_character_type, font::get_kern, font::get_skew,
1912 font::get_italic_correction, font::get_left_italic_correction,
1913 font::get_subscript_correction, font::get_code,
1914 font::get_special_device_encoding, font::add_entry,
1915 font::copy_entry, font::add_kern, font::hash_kern): Change argument
1918 * src/libs/libgroff/font.cpp (font_kern_list): Change members
1919 type and constructor argument types to glyph_t.
1920 (font::contains, font::get_width, font::get_height, font::get_depth,
1921 font::get_character_type, font::get_kern, font::get_skew,
1922 font::get_italic_correction, font::get_left_italic_correction,
1923 font::get_subscript_correction, font::get_code,
1924 font::get_special_device_encoding, font::add_entry,
1925 font::copy_entry, font::add_kern, font::hash_kern): Change argument
1927 (font::load): Use glyph_t variables.
1929 * src/libs/libgroff/nametoindex.cpp (name_to_index,
1930 number_to_index): Change return type to glyph_t.
1932 * src/roff/troff/charinfo.h (charinfo::index): Change type to
1934 (charinfo::get_index): Change return type to glyph_t.
1936 * src/roff/troff/env.cpp: Include font.h.
1938 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
1940 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
1941 (charinfo::charinfo): Update.
1942 (name_to_index, number_to_index): Change return type to glyph_t.
1944 * src/include/printer.h (printer::set_char_and_width): Change return
1947 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
1948 Change return type to glyph_t.
1950 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
1951 argument type to glyph_t.
1953 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
1954 (html_printer::space_glyph): Renamed from space_char_index.
1955 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
1956 html_printer::overstrike, html_printer::set_char): Change argument
1958 (html_printer::set_char_and_width): Change return type to glyph_t.
1960 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
1961 argument type to glyph_t.
1963 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
1964 argument type to glyph_t.
1966 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
1968 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
1971 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
1972 argument type to glyph_t.
1974 2006-02-11 Bruno Haible <bruno@clisp.org>
1976 * src/roff/troff/input.cpp (font::name_to_index): Never return a
1979 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
1980 font::name_to_index.
1982 2006-02-10 Werner LEMBERG <wl@gnu.org>
1984 * doc/groff.texinfo (Assigning Formats): Number registers are always
1986 Apply some rephrasing, contributed by Michael Burt.
1988 2006-02-07 Werner LEMBERG <wl@gnu.org>
1990 * tmac/fr.tmac <ms>: Set `HY' register.
1992 2006-02-07 Werner LEMBERG <wl@gnu.org>
1994 Add framework for simple adaptation of the main macro packages (mm,
1995 me, ms, mom) to different locales. In particular, add support for
1996 French. For activation, simply use `-mfr' as the last macro
1997 package. This feature has been contributed by Fabrice Ménard
1998 <menard.fabrice@wanadoo.fr>.
2000 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2002 * tmac/README: Mention hyphen.fr.
2003 * man/groff_tmac.man: Mention fr.tmac.
2006 2006-01-27 Werner LEMBERG <wl@gnu.org>
2008 * man/groff_font.man: Updated documentation of `entity_name' field.
2011 2006-01-27 Bruno Haible <bruno@clisp.org>
2013 * font/devhtml/R.proto: Remove the entity names from the font's
2014 special_encoding_encoding column.
2015 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2016 handling the entity names here.
2017 (get_html_translation): Use it. Change return type to `const
2019 (page::add_and_encode): Update, removing a useless cast.
2021 2006-01-26 Werner LEMBERG <wl@gnu.org>
2023 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2025 * src/include/device.h: Add comments.
2026 * src/include/font.h: Add comments.
2027 * src/include/unicode.h: Likewise.
2028 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2030 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2032 Suppress `.st' request emission by `grn'.
2034 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2037 2006-01-22 Werner LEMBERG <wl@gnu.org>
2039 * install-sh: New version; taken from texinfo CVS.
2041 2006-01-21 Werner LEMBERG <wl@gnu.org>
2043 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2044 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2046 2006-01-19 Bruno Haible <bruno@clisp.org>
2048 Let `make -k install' install more files.
2050 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2051 $(MAKE) and $(MDEFINES) are used.
2052 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2053 $(CPROGDIRS) everywhere.
2054 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2056 ($(OTHERDIRS)): Likewise.
2059 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2060 failure test for font::name_to_index -- it can never fail.
2062 2006-01-19 Werner LEMBERG <wl@gnu.org>
2064 * src/devices/grops/grops.man: Fix section on creating EPS files.
2065 Don't use future time in manual.
2068 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2070 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2071 various typographical URL attributes for non-HTML devices.
2073 * tmac/groff_www.man: Document LINKSTYLE.
2075 2006-01-11 Werner LEMBERG <wl@gnu.org>
2077 * configure.ac: Test for getc_unlocked (needed for localcharset).
2078 * configure, src/include/config.hin: Regenerated.
2080 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2083 * src/libs/libgroff/relocatable.h: New dummy header file for
2086 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2089 2006-01-10 Bruno Haible <bruno@clisp.org>
2091 Work around unportability of nl_langinfo(CODESET).
2093 * m4/glibc21.m4: New file, from gnulib.
2094 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2095 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2096 * Makefile.in (HOST, GLIBC21): New variables.
2097 (MDEFINES): Pass them to subdirectories.
2098 * src/include/relocate.h (relocatep): Define with C linkage.
2099 * src/include/localcharset.h: New file, from gnulib.
2100 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2101 modification for relocate().
2102 * src/libs/libgroff/config.charset: New file, from gnulib.
2103 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2104 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2105 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2106 (OBJS): Add localcharset.o.
2107 (CSRCS): Add localcharset.c.
2108 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2109 (charset.alias): New rule.
2110 (PACKAGE): New variable.
2111 (ref-add.sed, ref-del.sed): New rules.
2112 (MKINSTALLDIRS): New variable.
2113 (install_data): Depend on install_charset_data.
2114 (install_charset_data): New rule for creating or updating
2116 (uninstall_sub): Depend on uninstall_charset_data.
2117 (uninstall_charset_data): New rule for uninstalling or updating
2119 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2121 (main): Initialize default_encoding from locale_charset() instead of
2122 nl_langinfo(CODESET).
2124 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2126 2006-01-10 Werner LEMBERG <wl@gnu.org>
2128 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2129 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2131 2006-01-07 Werner LEMBERG <wl@gnu.org>
2133 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2135 Bump font version to 001.001.
2137 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2138 Call fontforge, not pfaedit.
2140 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2142 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2144 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2145 * tmac/groff_mdoc.man: Updated.
2147 2006-01-05 Werner LEMBERG <wl@gnu.org>
2149 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2150 (raw_flag): New global variable.
2151 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2152 Don't pass BOM to `conversion_utf8'.
2154 (main): Handle `-r' command line switch to set `raw_flag'.
2155 (get_BOM): Fix encodings in `BOM_table'.
2157 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2158 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2160 2006-01-04 Werner LEMBERG <wl@gnu.org>
2162 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2163 Bruno, comment out most encodings to support only a small set of
2164 coding tags, thus reducing potential problems with legacy encodings
2165 and character sets in the future.
2166 Add many XEmacs coding tags (now commented out).
2168 (check_encoding_tag): Renamed to...
2169 (check_coding_tag): This.
2170 (get_BOM): Return encoding as specified by BOM.
2171 Test for UTF32-LE too.
2172 (do_file): Don't check for coding tag if a BOM has been found.
2174 2006-01-03 Bruno Haible <bruno@clisp.org>
2176 * m4/groff.m4: Renamed from aclocal.m4.
2177 * m4/codeset.m4: New file, from gnulib.
2178 * m4/iconv.m4: New file, from gnulib.
2179 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2181 * config.rpath: New file, from gnulib.
2182 * config.guess, config.sub: New files, from gnulib.
2183 * Makefile.sub (M4MACROS): New variable.
2184 (configure): Fix typo.
2185 (aclocal.m4): New rule.
2186 (stamp-h.in): Depend on aclocal.m4.
2187 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2188 * Makefile.in (LIBICONV): New variable.
2189 (MDEFINES): Pass it to recursive makes.
2190 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2191 HAVE_ICONV instead of I18N macro.
2192 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2194 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2196 2006-01-03 Werner LEMBERG <wl@gnu.org>
2198 * doc/Makefile.in (webpage.html): Simplify.
2199 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2200 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2202 2006-01-01 Werner LEMBERG <wl@gnu.org>
2204 * tmac/doc-common (Os): Add some Darwin versions.
2205 * tmac/groff_mdoc.man: Document them.
2207 2006-01-01 Bruno Haible <bruno@clisp.org>
2209 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2211 . Don't map ascii to latin-1.
2212 . Don't use IBMxxx encodings but cpxxx for portability.
2213 . Map cp932, cp936, cp949, cp950 to itself.
2214 (emacs2mime): Protect calls to strcasecmp.
2215 (conversion_iconv): Add missing call to iconv_close.
2216 (do_file): Emit error message in case of unsupported encoding.
2218 2005-12-31 Werner LEMBERG <wl@gnu.org>
2220 Integrate preconv into the groff binary. Changes based on a patch
2221 from Michail Vidiassov.
2223 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2225 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2226 (SOELIM_INDEX): Updated.
2227 (help, synopsis): Updated.
2228 (main): Add command line options `-k' and `-K enc' to select
2230 Add support for GROFF_ENCODING environment variable.
2232 * src/roff/groff/groff.man: Updated and revised.
2235 Start with autoconf support for preconv.
2237 * configure.ac: Call AC_C_BIGENDIAN.
2238 * configure, src/include/config.hin: Regenerated.
2240 2005-12-30 Werner LEMBERG <wl@gnu.org>
2242 New preprocessor `preconv' to convert input encodings to something
2243 groff can understand. Not yet integrated within groff. Proper
2244 autoconf stuff is missing too.
2246 Tomohiro Kubota has written a first draft of this program, and some
2247 ideas have been reused (while almost no code has been taken
2250 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2253 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2254 (GROFF_BIN_PATH): Add preconv.
2256 2005-12-12 Werner LEMBERG <wl@gnu.org>
2258 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2259 In particular, don't use `\+' since it is a GNU sed extension.
2261 * configure: Regenerated.
2263 2005-12-09 Werner LEMBERG <wl@gnu.org>
2265 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2267 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2271 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2274 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2277 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2278 %AGL_to_unicode): Removed. Replace it with a tag.
2280 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2281 to replace tag with actual file contents.
2283 2005-12-08 Werner LEMBERG <wl@gnu.org>
2285 The change 2005-06-20 can indeed cause problems, so we follow the
2286 advice by using marks.
2288 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2289 (PEND): Use `cleartomark'.
2291 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2293 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2294 glyphs which have kern values but aren't handled (glyph variants,
2297 2005-12-02 Werner LEMBERG <wl@gnu.org>
2299 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2300 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2302 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2304 * doc/Makefile.in: Separate rule for webpage.html so that extra
2305 command line options can be passed to grohtml.
2306 * doc/groff.css: Change all margins to 0%.
2307 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2308 navigation is exploited. Also update webpage to contain new
2309 sections on licenses, mailing lists, cvs/ftp access, groff
2310 dependencies, and bug reports.
2311 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2312 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2314 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2316 * src/devices/grohtml/post-html.cpp
2317 (html_printer::do_file_components): Add fputs calls to emit the
2318 head contents and shut down the head tag whenever a new file
2319 component is generated.
2321 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2323 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2324 call to flush_text to flush any outstanding html tags on the
2327 2005-11-18 Werner LEMBERG <wl@gnu.org>
2329 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2330 Announce makeinfo version.
2331 * configure: Regenerated.
2333 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2335 * Makefile.in: Declare proper dependencies between make targets.
2337 * doc/Makefile.in: Rename groff info page to `groff.info'.
2338 * doc/Makefile.sub: Likewise.
2339 * doc/groff.texinfo: Likewise.
2341 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2343 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2344 definition of __GETOPT_PREFIX to the beginning of file to ensure
2345 that it is defined even on platforms where getopt.h is already
2346 included by other header files.
2348 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2350 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2351 Reset font to NULL to ensure that a font block is recreated during
2354 2005-11-04 Werner LEMBERG <wl@gnu.org>
2356 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2357 * configure: Regenerated.
2359 2005-10-27 Werner LEMBERG <wl@gnu.org>
2361 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2362 makeinfo 4.8 or newer is available.
2363 * configure.ac: Call GROFF_MAKEINFO.
2364 * configure: Regenerated.
2366 * Makefile.in (MAKEINFO): Use autoconf variable.
2367 (MDEFINES): Add MAKEINFO.
2369 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2370 * doc/Makefile.sub (MAKEINFO): Remove.
2372 2005-10-26 Werner LEMBERG <wl@gnu.org>
2374 * REVISION: Set to 3.
2376 2005-10-17 Werner LEMBERG <wl@gnu.org>
2378 Mention $MANPAGER variable used with some `man' systems.
2380 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2382 2005-09-13 Werner LEMBERG <wl@gnu.org>
2384 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2386 2005-09-04 Werner LEMBERG <wl@gnu.org>
2388 Version 1.19.2 released
2389 =======================
2391 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2393 * doc/webpage.ms: Updated.
2395 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2397 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2399 * tmac/groff_ms.man: Document `PO' better.
2401 2005-09-03 Werner LEMBERG <wl@gnu.org>
2403 * NEWS: Document grotty changes.
2405 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2407 Backward compatibility support for `man' program.
2409 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2410 assignment, prior `.ll' request and then package defaults, in this
2411 specified order of decreasing priority.
2413 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2414 altered `LL' register initialization priorities.
2416 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2418 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2419 section should look like.
2421 2005-08-29 Werner LEMBERG <wl@gnu.org>
2423 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2426 2005-08-27 Bernd Warken
2428 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2431 2005-08-11 Bernd Warken
2433 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2435 2005-08-09 Bernd Warken
2437 * tmac/www.tmac (URL, MTO): Use bold series if color support is
2440 2005-08-02 Bernd Warken
2442 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2443 as argument to $(INSTALL_INFO). The latter isn't portable.
2444 Remove $(HTMLEXAMPLEFILES) too.
2446 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2448 Suppress warning messages and return always true.
2450 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2452 2005-07-02 Bernd Warken
2454 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2455 * man/groff_out.man: More markup and minor improvements.
2456 * src/roff/groff/groff.man: Minor improvements.
2458 2005-06-28 Werner LEMBERG <wl@gnu.org>
2460 * ChangeLog: Split off older entries into...
2461 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2464 2005-06-26 Bernd Warken
2466 * src/devices/xditview/gxditview.man: More minor fixes.
2468 2005-06-24 Werner LEMBERG <wl@gnu.org>
2470 * src/preproc/pic/troff.cpp (troff_output::set_fill,
2471 troff_output::set_color, troff_output::reset_color): Use .bcolor and
2472 .fcolor instead of \m and \M, respectively.
2474 2005-06-23 Bernd Warken
2476 * src/devices/xditview/gxditview.man: More minor fixes.
2477 * README: Formatting issues.
2478 Mention some problems with Debian.
2480 2005-06-23 Bernd Warken
2482 * src/devices/xditview/gxditview.man: Revised and improved.
2484 2005-06-22 Werner LEMBERG <wl@gnu.org>
2486 Another round in fixing getopt problems. Hopefully the last one!
2487 This time we use the getopt stuff from gnulib and define a prefix
2488 unconditionally so that there are no collisions with any other
2489 getopt implementations. This is a slight waste of space in case
2490 we already use a GNU getopt implementation, but on
2491 the other hand it really simplifies life.
2493 * src/include/getopt.h: Use gnulib version.
2495 * src/include/getopt_int.h: Use gnulib version.
2497 * src/include/groff-getopt.h: Removed. Obsolete now.
2499 * src/include/lib.h: Regarding getopt, don't handle any platform
2500 specially; just include getopt.h.
2501 (__GETOPT_PREFIX): Define (before getopt.h).
2503 * src/include/Makefile.sub (HDRS): Updated.
2505 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2508 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2511 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2512 (__GETOPT_PREFIX): Define (before getopt.h).
2514 2005-06-21 Werner LEMBERG <wl@gnu.org>
2516 * src/include/lib.h: Provide a fix for Mac OS X to not include
2519 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
2521 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
2522 `bind' to define a procedure which contains `showpage' means that an
2523 invocation of `showpage' may execute wrongly (the exact effect
2524 depending on the interpreter). Not usually a problem except under
2525 transformations, such as combining pages.
2526 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
2527 of /PEND means that stack underflow will occur if the stack is
2528 deliberately non-empty before document inclusion. If included
2529 files are found to be generally badly behaved, we could replace the
2530 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2531 never found this necessary).
2533 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
2535 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2536 earlier to get correct error message.
2538 2005-06-16 Bernd Warken
2539 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2541 2005-06-15 Werner LEMBERG <wl@gnu.org>
2543 Another try to update getopt files. This time we add a dummy
2544 gettext.h file to satisfy the dependency.
2546 * src/include/getopt.h, src/libs/libgroff/getopt.c,
2547 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2549 * src/include/getopt_int.h: New file (from GNU libc CVS).
2551 * src/include/gettext.h: Dummy file which just defines a gettext()
2554 * src/include/groff-getopt.h: Updated.
2556 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
2559 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
2560 `const' keywords in return value.
2562 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
2563 Remove redundant variable `old'.
2564 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
2566 * src/preproc/tbl/main.cpp (process_table): Remove redundant
2570 Fix more friend name injection problems since modern C++ compilers
2571 fail otherwise. We simply provide (global) declarations for all
2572 functions declared as friends. This is not really necessary but
2575 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
2576 peek_char, and get_location.
2578 * src/preproc/refer/ref.h: Provide declarations for
2579 compare_reference, same_reference, same_year, same_date,
2580 same_author_last_name, and same_author_name.
2582 * src/roff/troff/div.h: Provide declarations for do_divert and
2585 * src/roff/troff/env.h: Provide declarations for title_length,
2586 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
2587 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
2588 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
2589 margin_character, no_number, number_lines, leader_character,
2590 tab_character, hyphenate_request, no_hyphenate,
2591 hyphen_line_max_request, hyphenation_space_request,
2592 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
2593 line_tabs_request, widow_control_request, and do_divert.
2595 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
2597 * src/roff/troff/node.cpp: Provide declarations for class
2599 Provide declaration for make_tfont.
2601 2005-05-29 Werner LEMBERG <wl@gnu.org>
2603 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
2605 2005-05-28 Werner LEMBERG <wl@gnu.org>
2607 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
2608 redundant semicolons.
2610 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
2611 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
2612 Define `MLIB'. Some compilers need this for linking with libgroff.
2614 2005-05-27 Werner LEMBERG <wl@gnu.org>
2616 * MANIFEST, README, doc/webpage.ms: Updated.
2618 2005-05-26 Werner LEMBERG <wl@gnu.org>
2620 * All affected files: Update postal address of FSF.
2622 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
2625 * README: More fixes.
2627 * README.CVS: Removed. Its contents is now part of the README file.
2629 2005-05-21 Werner LEMBERG <wl@gnu.org>
2631 * README: Updated. Based on a patch from Bernd Warken.
2633 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2635 Miscellaneous script portability enhancements.
2637 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
2638 generated conftest.sh script, conforming to portability
2639 recommendation in autoconf docs.
2640 * configure: Likewise, for code generated by GROFF_CSH_HACK.
2641 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
2642 to portability recommendation in autoconf docs.
2643 * contrib/grap2graph/grap2graph.sh: Likewise.
2644 * contrib/pic2graph/pic2graph.sh: Likewise.
2645 * font/devps/generate/afmname: Likewise.
2646 * src/devices/xditview/ad2c: Likewise.
2647 * src/preproc/eqn/neqn.sh: Likewise.
2648 * src/roff/grog/grog.pl: Likewise.
2649 * src/roff/grog/grog.sh: Likewise.
2650 * src/roff/nroff/nroff.sh: Likewise.
2651 * PROBLEMS: Likewise, in embedded script examples.
2653 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2655 Improve portability of `pdfroff' shell script.
2657 * arch/misc/shdeps.sh: Add space in shebang, conforming to
2658 portability guidelines in `autoconf' docs.
2659 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
2660 initialization code. Used by contrib/pdfmark/pdfroff.sh's
2661 `searchpath' function.
2663 2005-05-14 Werner LEMBERG <wl@gnu.org>
2665 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
2666 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
2667 needed for newer ImageMagick versions.
2669 2005-05-07 Werner LEMBERG <wl@gnu.org>
2671 * src/preproc/refer/refer.man: Many small typographic fixes.
2673 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
2675 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
2676 Use `char *' cast for a_delete.
2678 2005-05-03 Werner LEMBERG <wl@gnu.org>
2680 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
2681 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
2683 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
2685 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
2686 `a_delete' for `const char *'.
2688 2005-05-03 Werner LEMBERG <wl@gnu.org>
2690 * src/devices/grohtml/post-html.cpp,
2691 src/devices/grohtml/html-table.cpp,
2692 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
2693 Replace malloc/free with new/delete/a_delete.
2695 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
2696 are prohibited with ANSI C++.
2697 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
2698 function has a variable number of arguments).
2700 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
2701 Simplify function and update all callers.
2703 2005-05-02 Werner LEMBERG <wl@gnu.org>
2705 Undo getopt changes from 2005-04-30. We don't want a dependency
2708 * src/include/getopt_int.h: Removed.
2710 * src/include/getopt.h, src/include/groff-getopt.h,
2711 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
2712 src/libs/libgroff/getopt1.c: Revert to previous version.
2715 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
2717 * src/include/posix.h (F_OK): Define conditionally.
2719 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
2720 different variable name in second `for' loop to avoid MSVC compiler
2723 2005-04-30 Werner LEMBERG <wl@gnu.org>
2725 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
2727 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
2728 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
2729 * configure, src/include/config.hin: Regenerated.
2731 * PROBLEMS: Updated.
2734 Update getopt files.
2736 * src/include/getopt.h, src/libs/libgroff/getopt.c,
2737 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2739 * src/include/getopt_int.h: New file (from GNU libc CVS).
2741 * src/include/groff-getopt.h: Updated.
2743 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
2746 * font/devutf8/NOTES: Updated.
2748 2005-04-28 Werner LEMBERG <wl@gnu.org>
2750 Bug fix for Win32 relocatable code. Based on a patch from Keith
2753 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
2756 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
2757 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
2759 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
2761 Correct `gnu.eps' handling for build from distribution tarball, with
2762 separate source and build directories.
2764 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
2765 grnexmpl.g, groff.css and gnu.eps from source to build directory;
2766 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
2767 (prepare_examples): Make it depend on examples.stamp.
2768 (CLEANADD): Add examples.stamp.
2770 2005-04-27 Werner LEMBERG <wl@gnu.org>
2774 position: `(' position `)'
2778 * src/preproc/pic/pic.y (position, position_not_place): Handle
2779 additional parentheses.
2781 * doc/pic.ms: Updated.
2783 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
2785 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
2787 2005-04-18 Werner LEMBERG <wl@gnu.org>
2789 * src/roff/groff/pipeline.c: Don't include ctype.h.
2791 2005-04-13 Werner LEMBERG <wl@gnu.org>
2793 * src/roff/nroff/nroff.man: Document option `-M'.
2795 2005-04-13 Bruce Lilly <blilly@erols.com>
2797 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
2799 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
2800 Werner LEMBERG <wl@gnu.org>
2802 Add binary relocation support for Windows platforms.
2804 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
2806 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
2808 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
2809 (search_path::search_path, search_path::open_file_cautious): Use
2812 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2813 src/include/Makefile.sub (HDRS): Updated.
2815 2005-04-01 Werner LEMBERG <wl@gnu.org>
2817 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
2820 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
2822 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
2823 lib.h already does it.
2825 * src/libs/libgroff/maxpathname.cpp: New file, defining
2828 * src/include/lib.h: Add prototype for path_name_max.
2830 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
2832 * src/include/nonposix.h (PATH_EXT): New macro.
2834 2005-03-28 Werner LEMBERG <wl@gnu.org>
2836 Add support for double- and zero-width characters in grotty.
2838 * src/devices/grotty/tty.cpp (glyph): Add width.
2839 (tty_printer::make_underline, tty_printer::make_bold,
2840 tty_printer::add_character): Add parameter to pass character width.
2842 (tty_printer::end_page): Increase hpos by actual character width.
2844 * font/devutf8/R.proto: Specify zero width for non-spacing
2847 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
2849 * Makefile.comm (extraclean): Remove more junk files.
2851 2005-03-25 Werner LEMBERG <wl@gnu.org>
2853 * configure.ac: Undo change from 2005-03-24.
2854 * configure: Regenerated.
2856 2005-03-24 Werner LEMBERG <wl@gnu.org>
2858 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
2859 (dist): Search Makefile while descending into $(EXTRADIRS).
2861 * doc/Makefile.in (.PHONY): Add.
2862 (clean): Don't remove *.png and *.eps.
2864 (realclean): Remove *.png and *.eps.
2865 (extraclean): Depend on distclean.
2867 * configure.ac: Add copyright.
2868 Handle contrib/pdfmark/Makefile.
2870 * configure: Regenerated.
2872 2005-03-18 Larry Kollar <kollar@alltel.net>
2874 Add numbered and definition lists to www.tmac.
2876 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
2877 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
2878 auxiliary string registers.
2879 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
2880 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
2881 (www-level): Removed.
2882 (www-level1, www-level2, www-level3): Initialize to empty.
2883 (www-level0, www-level4, www-level5, www-level6, www-level7,
2884 www-level8, www-level9): New string registers.
2885 (www-push-li, www-pop-li): New macros.
2886 (www-push-level, www-pop-level): Renamed to...
2887 (www-push-ul-level, www-pop-ul-level): This.
2889 (www-push-ol-level, www-pop-ol-level): New macros.
2890 (ULS, ULE): Updated.
2891 (OLS, OLE, DLS, DLE): New user macros.
2892 (LI): Removed. It is aliased to one of...
2893 (www-li-ul, www-li-ol, www-li-dl): New macros.
2895 * tmac/groff_www.man: Document new macros.
2899 2005-03-18 Werner LEMBERG <wl@gnu.org>
2901 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
2902 doc-operating-system-NetBSD-2.0.2): New strings.
2904 * tmac/groff_mdoc.man: Updated.
2906 2005-03-17 Werner LEMBERG <wl@gnu.org>
2908 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
2910 2005-03-17 Werner LEMBERG <wl@gnu.org>
2912 * src/libs/libgroff/hypot.c: Renamed to...
2913 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
2915 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
2917 * src/include/lib.h: Updated.
2919 2005-03-16 Werner LEMBERG <wl@gnu.org>
2921 Add workaround for broken hypot() on Interix.
2923 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
2925 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
2926 (CSRCS): Add `hypot.c'.
2928 * src/include/lib.h: Declare `groff_hypot'.
2930 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
2933 * src/preproc/pic/pic.h: Don't declare `hypot'.
2935 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
2937 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
2939 * src/devices/grohtml/post-html.cpp
2940 (html_printer::lookahead_for_tables): End .ce properly to avoid a
2943 2005-03-15 Werner LEMBERG <wl@gnu.org>
2945 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
2947 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
2949 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
2951 2005-03-14 Werner LEMBERG <wl@gnu.org>
2953 Add Cyrillic support to devutf8 and devhtml.
2955 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
2957 * tmac/unicode.tmac: New file.
2959 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
2961 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
2965 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
2967 * src/libs/libdriver/printer.cpp (check_for_output_error): New
2968 function. It has been introduced to catch peculiar error contexts
2969 on MS-Windows platforms.
2971 2005-02-28 Werner LEMBERG <wl@gnu.org>
2973 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
2976 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
2978 * configure: Regenerated.
2982 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
2984 Integrate `pdfmark' into normal groff build system;
2985 install macro `pdfmark' packages, build and install `pdfroff',
2986 and PDF format documentation.
2988 * Makefile.comm: Add PDFDOCDIR.
2990 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
2991 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
2992 (unstall_dirs): Add pdfdocdir.
2994 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
2995 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
2996 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
2997 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
2998 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
2999 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3001 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3002 use of GROFF_AWK_PREFS.
3003 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3004 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3006 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3007 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3008 also by modified GROFF_HTML_PROGRAMS).
3010 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3012 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3014 (html_text::done_para): Unset `start_space'.
3015 (html_text::remove_para_align): Call `retrieve_para_space' for the
3018 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3020 (html_printer::do_check_center): Emit vertical space if necessary.
3022 * src/roff/troff/env.cpp (environment_switch): Preserve
3023 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3026 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3029 2005-02-20 Werner LEMBERG <wl@gnu.org>
3031 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3034 2005-02-17 Werner LEMBERG <wl@gnu.org>
3036 * doc/pic.ms, man/groff.man: Fix typos.
3038 * doc/groff.texinfo: Fix typos.
3039 (\LEmacro): Get proper mathematical spacing.
3041 2005-02-16 Werner LEMBERG <wl@gnu.org>
3043 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3044 * configure: Regenerated with autoconf 2.59b.
3046 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3048 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3049 html_printer::start_font): Fix handling of preformatted text.
3051 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3053 These patches modify the indentation implementation to use `<p
3054 style=margin-left: n%>'. Many thanks to Peter and Larry for
3055 suggesting this solution. Grohtml only uses tables for `.IP' and
3056 related tags when the first operand has a short width.
3058 Similarly, they modify all vertical space code. By default, grohtml
3059 sets up a style sheet which uses no vertical space between `table',
3060 `pre', and `p' tags. It forces spaces when it needs them using
3061 `style="margin-top: 1em"'.
3063 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3064 (html_table::emit_table_header, html_table::emit_new_row):
3066 (html_table::set_space): New function.
3067 (html_indent::html_indent): Don't set `is_used'.
3068 (html_indent::begin): Rewritten.
3069 (html_indent::end): Remove code in function.
3071 * src/devices/grohtml/html-table.h: Updated.
3072 (html_table): Make `out' public.
3074 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3075 Initialize `start_space' with FALSE.
3076 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3077 (html_text::issue_tag): Add argument to handle space style.
3078 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3079 (html_text::flush_text): Don't set `start_space'.
3080 (html_text::push_para): Don't set `p->really_issued'.
3081 (html_text::do_emittext): Updated.
3082 (html_text::do_para): Add paremeter to handle space.
3084 (html_text::retrieve_para_space): New function.
3086 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3087 (tag_definition): Remove `really_issued'.
3088 (html_text): Updated.
3090 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3091 `current_column' and `row_space'.
3093 (html_printer::emit_raw, html_printer::write_header,
3094 html_printer::do_indent, html_printer::do_check_center,
3095 html_printer::do_tab_ts): Handle vertical space.
3096 (html_printer:do_tab_te, html_printer::do_end_para): Call
3097 `remove_para_space'.
3098 (html_printer::do_col): Rewritten.
3099 (html_printer::flush_globs): Remove debugging code.
3100 (html_printer::is_line_start): New function.
3101 (html_printer::start_font): Use `is_line_start'.
3102 (html_printer::writeHeadMetaStyle): New function.
3103 (html_printer::do_file_components, html_printer::~html_printer):
3104 Call `writeHeadMetaStyle'.
3106 * tmac/www.tmac (www-handle-percent): New macro.
3107 (MPIMG): Handle percent values for width and height parameters.
3110 * tmac/groff_www.man: Updated.
3112 2005-02-14 Werner LEMBERG <wl@gnu.org>
3114 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3115 $psname and $italic_angle.
3116 Immediately restart file input loops if `split' returns an empty
3119 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3120 Werner LEMBERG <wl@gnu.org>
3122 Update afmtodit to better support Unicode (Michail).
3123 Update afmtodit to use Perl 5 syntax (Werner).
3125 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3127 Decorate variables with `my' where necessary.
3128 Use `defined' where necessary to avoid warnings.
3129 Don't use `do' for subroutine calls.
3130 Other minor syntax updates.
3131 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3132 Handle glyph variants properly.
3133 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3136 * src/utils/afmtodit/afmtodit.man: Updated.
3138 2005-02-13 Werner LEMBERG <wl@gnu.org>
3140 Make groff.texinfo work with texinfo 4.8.
3142 * doc/groff.texinfo (@Var): Use @r and @slanted.
3143 (@defdummy, @Def*): Use @c to avoid empty lines.
3144 (\angles): Replaced with...
3145 (\Langlemacro, \Ranglemacro): New TeX macros.
3146 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3147 (@angles): Use @Langlemacro and @Ranglemacro.
3148 (\LE): Replaced with...
3149 (\LEmacro): New TeX macro.
3150 (@LEmacro): New variable defined with @set.
3151 (@LE): Use @LEmacro.
3152 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3153 variables defined with @set.
3154 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3155 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3158 Other minor updates.
3160 * doc/texinfo.tex: Update to texinfo version 4.8.
3162 * README.CVS: Updated.
3164 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3166 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3167 and `FAM' registers.
3169 2005-02-05 Werner LEMBERG <wl@gnu.org>
3171 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3172 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3175 2005-02-01 Werner LEMBERG <wl@gnu.org>
3177 * src/roff/groff/groff.man: Add information about paper size.
3179 2005-01-25 Werner LEMBERG <wl@gnu.org>
3181 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3184 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3186 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3188 (Re): Emit a warning if called without `.Rs'.
3189 (doc-finish-reference): Use parameter for decreasing
3190 `doc-reference-count'.
3191 (doc-print-reference): Pass specific count parameters to
3192 `doc-finish-reference'.
3194 2005-01-21 Werner LEMBERG <wl@gnu.org>
3196 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3197 Reset pointers to zero after deallocation. This fixes a crash
3198 if a driver is called with multiple input files. Reported by
3199 Ken Chilton <ken@chiltonfamily.org>.
3201 * src/devices/grops/grops.man: Add more info on DSC.
3203 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3205 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3208 2005-01-17 Werner LEMBERG <wl@gnu.org>
3210 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3211 against division by zero.
3213 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3215 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3217 2004-12-19 Werner LEMBERG <wl@gnu.org>
3219 * install-sh: New version; taken from texinfo CVS.
3221 2004-12-17 Werner LEMBERG <wl@gnu.org>
3223 * tmac/devtag.tmac: Protect against loading twice.
3224 Protect agains compatibility mode.
3225 * tmac/www.tmac: Protect against loading twice.
3226 Load `devtag.tmac' before switching off compatibility mode.
3227 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3229 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3231 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3232 * configure: Updated.
3234 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3236 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3238 2004-12-15 Werner LEMBERG <wl@gnu.org>
3240 Make `test-groff' work again -- previously, wrong paths have been
3241 used. Additionally, it can now be called from anywhere.
3243 * test-groff.in: Don't test for groff binary. This is no longer
3244 necessary since the proper paths are determined by `configure'.
3245 (EXEEXT): Removed. No longer used.
3246 (srcdir, builddir): Use values provided by the configure script.
3247 (XENVIRONMENT): Updated.
3251 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3253 Make .tag and .taga work for all devices (but only grohtml actually
3256 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3257 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3258 html_printer::handle_assertion): Don't use hard-coded string
3260 (html_printer::lookahead_for_table): Reset `tbl' properly if
3262 (html_printer::devtag): New function, handling `devtag'.
3263 (html_printer::special): Don't handle `html-tag'.
3265 * src/include/printer.h, src/libs/libdriver/printer.cpp
3266 (printer::devtag): New virtual function.
3268 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3271 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3272 src/roff/troff/node.cpp: s/html-tag/devtag/.
3274 * src/roff/troff/input.cpp (tag, taga): Always call
3277 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3278 macros instead of HTML-TAG*.
3280 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3282 * tmac/www.tmac: Load devtag.tmac.
3283 Replace HTML-TAG* macros with DEVTAG* macros.
3284 (HTML, HTML-NS): Changed definitions.
3286 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3288 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3290 2004-12-10 Werner LEMBERG <wl@gnu.org>
3292 Import Mike's `gdiffmk' package.
3294 * contrib/gdiffmk/*: New files.
3295 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3298 2004-12-08 Werner LEMBERG <wl@gnu.org>
3300 Import Keith's `pdfmark' package. Integration is very preliminary.
3302 * contrib/pdfmark/*: New files.
3303 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3306 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3308 Fix a bug with title handling in HTML.
3310 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3311 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3313 (html_printer::handle_tag_within_title): New function.
3314 (html_printer::do_title): Use it.
3316 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3317 (cov*tl-au-print): Emit `.eo.tl' tag.
3319 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3321 * man/groff_char.man: Minor imrovements.
3323 2004-12-04 Werner LEMBERG <wl@gnu.org>
3325 * src/preproc/eqn/eqn.man: Revised.
3327 2004-11-25 Werner LEMBERG <wl@gnu.org>
3329 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3333 Remove X_NOT_STDC_ENV conditional.
3334 (Version_string, program_name): New global variables.
3335 (groff_flag): Removed.
3337 (usage): Take a stream as argument.
3340 (main): Add `long_options' array for `--help' and `--version'.
3341 Make `-g' a dummy option.
3342 Handle `-v' and unknown options.
3343 Remove unused `position' variable.
3345 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3346 (XLIBS): Add LIBGROFF.
3348 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3351 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3352 parts to avoid compiler warning.
3353 (resources): Don't initialize with `default_font_map'.
3354 (ClassInitialize): Initialize first element of `resources'.
3356 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3359 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3360 src/utils/pfbtops/pfbtops.man: Revised, updated.
3362 * configure.ac: Generate src/utils/xtotroff/Makefile.
3363 * configure: Regenerated.
3365 2004-11-24 Werner LEMBERG <wl@gnu.org>
3367 First fixes to get produce HTML.
3369 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3372 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3373 (HR, LI): Use `HTML</p>', not `HTML'.
3375 * doc/webpage.ms: Minor updates.
3377 2004-11-23 Larry Kollar <kollar@alltel.net>
3379 Add option -S grohtml to determine the file split level.
3381 * src/devices/grohtml/post-html.cpp (split_level): New global
3383 (html_header::determine_header_level): Use split_level.
3384 (main): Handle `-S' command line option.
3387 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3389 * src/devices/grohtml/grohtml.man: Document it.
3392 * NEWS: Document it.
3394 2004-11-23 Y T <doarhop@hotmail.com>
3396 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3397 the volume and number refer entries.
3399 2004-11-22 Werner LEMBERG <wl@gnu.org>
3401 * src/devices/grohtml/html-table.cpp
3402 (html_table::emit_table_header): Don't emit `cols' attribute which
3403 doesn't exist in HTML 4.0 and is thus invalid.
3405 * NEWS: More minor fixes and updates.
3407 2004-11-18 Werner LEMBERG <wl@gnu.org>
3409 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3410 (HTML</p>): Minor clean-up.
3412 * tmac/groff_www.man: Updated.
3414 * src/devices/grohtml/grohtml.man: Revised and updated.
3418 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3420 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3421 Fix space insertion.
3422 (html_printer::do_links): Fix rules generation around automatic
3425 * tmac/www.tmac (LK): Use HTML-TAG-NS.
3427 No longer emit empty line for non-HTML devices.
3429 2004-11-17 Werner LEMBERG <wl@gnu.org>
3431 * doc/Makefile.in (prepare_examples, webpage.html): Handle
3434 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3435 prepare_examples, webpage.html): Handle `groff.css'.
3437 2004-11-15 Werner LEMBERG <wl@gnu.org>
3439 * NEWS, README, doc/webpage.ms: Updated.
3441 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3443 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
3445 * src/include/printer.h (printer): Remove virtual function
3447 Update all source files.
3449 * src/devices/grohtml/post-html.cpp (html_printer): New member
3450 function `round_width'.
3452 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3454 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3455 column key letter suffix.
3457 2004-10-14 Werner LEMBERG <wl@gnu.org>
3459 * Makefile.in (check): Depend on `site.exp' and `docheck'.
3460 (docheck): Run dejagnu's `runtest' if it exists.
3461 (site.exp): Create dejagnu configuration file.
3463 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3465 2004-10-13 Werner LEMBERG <wl@gnu.org>
3467 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3468 src/devices/grohtml/post-html.cpp (make_val,
3469 html_printer::handle_state_assertion): Fix compiler warnings.
3471 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3472 (diversion::diversion): Fix order of initializers.
3474 * src/roff/troff/div.h: Don't include `mtsm.h'.
3476 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3477 (environment::environment): Fix order of initializers.
3478 (environment::make_tag, environment::construct_format_state): Fix
3481 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3482 (input_iterator::input_iterator, macro::macro): Fix order of
3485 * src/roff/troff/mtsm.cpp: Include only necessary header files.
3486 (state_set::add, state_set::val): Fix compiler warnings.
3488 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3489 (bool_value_state, int_value_state, units_value_state,
3490 string_value_state): Remove comma after last element which causes
3491 an error with g++ 3.3.3.
3493 * src/roff/troff/node.cpp: Include `stringclass.h'.
3494 (hline_node::hline_node, vline_node::vline_node,
3495 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3497 (zero_width_node::zero_width_node): Fix order of initializers.
3499 * src/roff/troff/node.h: Don't include `mtsm.h'.
3500 (hmotion_node): Fix compiler warnings.
3502 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3504 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
3506 * doc/groff.css: New file.
3508 * doc/webpage.ms: Use `groff.css'.
3511 * tmac/an-old.tmac (need_eo_h): New number register.
3512 (TH): Emit `.eo.tl' tag after title.
3513 (SH): Set `need_eo_h'.
3514 (an-trap): Handle `need_eo_h'.
3515 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3517 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3518 (TL): Always start diversion.
3520 (@AI): Always call `par@reset'.
3521 (@AB): Update code for -Thtml.
3522 (cov*tl-au-print): Handle -Thtml.
3523 (par@reset): Handle `need_eo_tl', `need_eo_h'.
3525 (@IT-html): Removed.
3526 (@SH): Set `need_eo_h' for -Thtml.
3527 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3529 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3530 Set `need_eo_h' for -Thtml.
3531 (@EQ, @EN): Don't handle -Thtml specially.
3532 (par@load-init): Don't handle -Thtml specially.
3534 * tmac/www.tmac (www:paraspace): New macro.
3535 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3536 (HTML</p>, HTML-TAG-NEXT): New macros.
3537 (HnE): Emit tag `.eo.h' instead of break.
3538 (HR): s/HTML-NS/HTML/.
3539 (www-end-nowhere): End diversion only if `www-html' not set.
3541 (ULS, ULE): s|HTML|HTML</p>|.
3542 (LI): Call `www:paraspace'.
3545 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
3547 * src/roff/troff/request.h (macro): Make `p' public.
3548 New variable `is_a_diversion'.
3549 New member function `is_diversion'.
3552 * src/devices/grohtml/html.h (simple_output): New member function
3555 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
3556 computation of `total'.
3557 (tabs::check_init): New function.
3558 (html_table::emit_table_header): Emit style data.
3559 (html_table::insert_column): Improved.
3561 * src/devices/grohtml/html-table.h: Updated.
3563 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3564 Initialize `start_space' with TRUE.
3565 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
3567 (html_text::flush_text): Set `start_space' flag.
3568 (html_text::uses_indent, html_text::remove_para_space,
3569 html_text::get_alignment): New functions.
3570 (html_text::push_para): Updated.
3571 (html_text::do_para): Check for empty argument.
3572 Don't set `space_emitted'.
3573 (html_text::do_space, html_text::emit_space): Updated.
3575 * src/devices/grohtml/html-text.h (tag_definition): New variable
3577 (html_text): New member function `uses_indent', `remove_para_space',
3580 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
3582 (simple_output:nl): Always emit `\n'.
3584 * src/devices/grohtml/post-html.cpp: Include `string.h'.
3585 (BASE_POINT_SIZE): Removed.
3586 (base_point_size, head_info): New global variables.
3587 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
3589 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
3591 (page::add_and_encode): Pass additional parameter for tag flag.
3592 (assert_pos): New structure.
3593 (assert_state): New class.
3594 (html_printer): Remove `indentation', `prev_indent'.
3595 Add variables `troff_indent', `device_indent', `temp_indent'.
3596 Add variables `seen_indent', `next_indent', `seen_pageoffset',
3597 `next_pageoffset', `seen_linelenght', `next_linelength',
3598 `seen_center', `next_center', `seen_space', `seen_break', `as'.
3599 Add member functions `do_check_center', `do_space', `do_head',
3600 `get_troff_indent', `restore_troff_indent', `handle_assertion',
3601 `handle_state_assertion', `do_end_para', `set_char_and_width'.
3602 Change argument to `do_fill' to `char *'.
3604 (html_printer::emit_raw): Call `shutdown_table'.
3606 (html_printer::do_center): Simplified.
3607 (html_printer::do_title): Improved.
3608 (html_printer::write_header): Emit one more newline.
3610 (html_printer::do_heading, html_printer::do_indent,
3611 html_printer::do_eol, html_printer::do_tab_ts,
3612 html_printer::do_tab, html_printer::do_tab0,
3613 html_printer::calc_po_in, html_printer::next_horiz_pos,
3614 html_printer::remove_courier_tabs,
3615 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
3617 (html_printer::do_linelength, html_printer::do_pageoffset,
3618 html_printer::do_indentation, html_printer::do_tempindent,
3619 html_printer::do_tab_te): Simplified.
3620 (html_printer::do_pointsize): Check whether point size is really
3621 associated a `.tl' tag.
3622 (html_printer::do_break): Rewritten.
3623 (html_printer::troff_tag): Improved.
3624 (html_printer::flush_globs): Updated.
3625 (html_printer::lookahead_for_tables): Handle `is_br'.
3627 (html_printer::set_char): Check `sbuf_style.f'.
3628 (html_printer::write_navigation): Use string comparison.
3629 (html_printer::~html_printer): Emit `head_info'.
3630 (html_printer::special): Rewritten.
3631 (get_str, make_val): New functions.
3632 (main): New option `s' to set the base point size.
3634 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
3636 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
3638 * src/roff/troff/node.cpp: New extern `debug_state'.
3639 Include `stringclass.h' and `mtsm.h'.
3640 Implement new classes and class members from `node.h'.
3641 (real_output_file): Make `fp' public.
3642 (troff_output_file): New variables `cur_div_level' and `tag_list'.
3643 Update constructors.
3644 (troff_output_file::really_print_line): Check whether we should push
3645 the current troff state and use the state at the start of the
3646 invocation of this diversion.
3647 (troff_output_file::add_to_tag_list): New member function.
3648 (node::add_char): Handle `glyph_comp_np'.
3650 * src/roff/troff/node.h: Include `mtsm.h'.
3651 (node): New variables `state', `push_state', `div_nest_level',
3652 `is_special'. Update constructors, all descendants.
3653 Pass additional argument to `add_char' member function.
3654 New virtual member functions `is_tag', `debug_node',
3655 `debug_node_list'. Update all descendants.
3656 (tag_node): New class for handling tags.
3657 (output_file): Add variable `state'.
3659 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
3661 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
3662 providing a minimal troff state machine to emit meta tags for the
3663 post-grohtml device driver.
3665 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
3668 2004-10-09 Werner LEMBERG <wl@gnu.org>
3670 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
3672 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
3674 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
3676 * src/roff/troff/div.h: Include `mtsm.h'.
3677 (diversion): New variables `any_chars_added', `needs_push',
3678 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
3679 `saved_suppress_next_eol', `modified_tag'.
3680 New virtual member function `is_diversion'. Update all descendants.
3682 * src/roff/troff/div.cpp (diversion::diversion,
3683 macro_diversion::macro_diversion): Updated.
3684 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
3685 `suppress_next_eol'.
3686 (top_level_diversion::space): Handle `curenv->seen_space'.
3687 (page_offset): Update tag handling.
3688 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
3690 * src/roff/troff/env.h (environment): Make `tabs' public.
3691 Remove `ignore_next_eol', `emitted_node'.
3692 Update `output_line', `output'.
3693 New variables `seen_space', `seen_eol', `suppress_next_eol',
3695 New member functions `construct_state', `make_tag',
3696 `construct_format_state, `construct_new_line_state,
3698 Remove `add_html_tag', `make_html_tag'.
3700 * src/roff/troff/env.cpp: New externs `suppress_push',
3701 `get_diversion_state', `global_diverted_space'.
3702 (pending_output_line): New variable `was_centered'.
3703 Update constructor and all callers.
3704 (pending_output_line::output): Call `curenv->construct_format_state'.
3705 (environment::environment, environment::copy): Updated.
3706 (environment::output): Handle `was_centered'.
3707 (environment::add_char): Handle construct and diversion state.
3708 (environment::add_node): Handle construct state.
3709 (environment::newline): Handle `was_centered'.
3710 (environment::output_line): Updated.
3711 (environment::possibly_break_line): Updated.
3712 Update tag handling.
3713 (environment::add_html_tag): Replaced with...
3714 (environment::make_tag): New function.
3715 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
3716 (environment::dump_troff_state): New debugging function.
3717 (environment::construct_state, environment::construct_format_state,
3718 environment::construct_new_line_state): New functions.
3719 (environment::do_break): Updated.
3720 Handle `global_diverted_space'.
3721 (environment::handle_tag): Update tag handling.
3722 (point_size, fill, do_break_request): Don't call `add_html_tag'.
3723 (no_fill): Don't call `add_html_tag'.
3724 Set `suppress_next_eol'.
3725 (center, right_justify, line_length, indent, temporary_indent,
3727 Update tag handling.
3729 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
3730 (input_iterator): New variables `is_diversion', `diversion_state'.
3731 Update constructors.
3732 (input_stack): New member functions `get_div_level',
3733 `get_diversion_state', `check_end_diversion'.
3734 New variables `div_level', `diversion_state'. Initialize them.
3735 (suppress_push, global_diverted_space): New global variables.
3736 (input_stack::finish_get, input_stack::finish_peek,
3737 input_stack::remove_boundary, input_stack::end_file,
3738 input_stack::clear, input_stack::pop_macro): Call
3739 `check_end_diversion'.
3740 (input_stack::push): Handle `div_level' and `diversion_state'.
3741 (get_diversion_state): New function.
3742 (diverted_space_node::reread): Handle `global_diverted_space'.
3743 (macro::macro): Update constructors.
3744 (macro::is_diversion): New function.
3745 (macro::operator=): Set `is_a_diversion'.
3746 (string_iterator): New member function `is_diversion'.
3747 (string_iterator::string_iterator): Update constructors.
3748 (string_iterator::fill): Set `div_nest_level'.
3749 (macro_iterator): New member function `is_diversion'.
3750 (do_if_request): Handle `suppress_push'.
3751 (tag, taga): New functions.
3752 (init_input_requests): Add `tag' and `taga' requests.
3754 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
3756 * src/include/font.h (font): New member function
3757 `get_image_generator'.
3758 New variables `unscaled_charwidths' and `image_generator'.
3760 * src/libs/libgroff/font.cpp (font::get_width): Always return the
3761 character's unscaled width if `font::unscaled_charwidths' is set.
3762 (font::get_image_generator): New function.
3763 (font::load_desc): Check the `unscaled_charwidths' and
3764 `image_generator' keywords.
3766 * src/libs/libgroff/fontfile.cpp: Initialize
3767 `font::unscaled_charwidths' and `font::image_generator'.
3769 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
3771 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
3773 * man/groff_font.man: Document `unscaled_charwidths' and
3776 * src/preproc/html/pre-html.cpp: Include `device.h'.
3777 (image_gen): New global variable.
3778 (imageList::createPage): Use `image_gen'.
3779 (main): Use `image_generator' keyword.
3781 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
3783 * tmac/html.tmac: Handle \[sqrtex].
3785 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
3787 * src/include/printer.h (printer): New virtual method `round_width'.
3789 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
3790 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
3791 src/devices/grotty/tty.cpp (printer::round_width): New function
3794 * src/devices/grohtml/post-html.cpp (printer::round_width): New
3796 (html_printer::set_numbered_char): Use it.
3798 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
3800 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
3802 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
3804 * configure: Regenerated.
3806 * Makefile.in (GHOSTSCRIPT): New variable.
3807 (MDEFINES): Add GHOSTSCRIPT.
3809 2004-10-03 Werner LEMBERG <wl@gnu.org>
3811 * INSTALL.gen: Updated (taken from texinfo CVS).
3813 2004-09-28 Werner LEMBERG <wl@gnu.org>
3817 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3819 * tmac/groff_www.man: Revised and updated.
3821 2004-09-26 Werner LEMBERG <wl@gnu.org>
3823 Fix \$@ and \$* to handle any number of arguments.
3825 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
3828 * src/roff/troff/input.cpp (input_iterator::internal_level):
3830 (input_stack): New member functions `increase_level' and
3832 (input_stack::get_level): Don't use `internal_level'.
3833 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
3834 (end_quote_iterator): Completely removed.
3835 (interpolate_arg): Build string for \$@ and \$* which is then
3836 pushed onto the input stack.
3838 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
3840 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
3841 Registers): Document changes from 2004-09-19.
3843 2004-09-23 Werner LEMBERG <wl@gnu.org>
3845 * tmac/an-old.tmac (ne): Using default scaling operator.
3847 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
3849 This change implements the following features:
3852 New numeric register: Defines number of lines following LP, PP,
3853 QP, IP or XP, which must be kept together, before any automatic
3854 page break. If insufficient space remains on the current page, a
3855 page break is forced before the new paragraph begins.
3858 New numeric register: Sets number of lines of following paragraph
3859 which must be kept with a heading, defined by NH or SH, before any
3860 automatic page break. If insufficient space remains on the
3861 current page, a page break is forced before the heading.
3864 (Thanks to Joerg van den Hoff, for this idea).
3866 New numeric register: Sets the first level of heading (set with
3867 NH), which will keep the same point size as body text; e.g. if
3868 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
3869 point size specified by \n[PS], but .NH 2 and .NH 1 will have
3870 progressively larger point sizes, determined by \n[PSINCR] (see
3874 New numeric register: Sets the point size increment for each level
3875 of heading, (set with NH), below the threshold level set by
3876 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
3877 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
3878 and all other levels will remain at 10pt, (because \n[PS] = 10).
3881 Existing macro now accepts a numeric argument, to make heading
3882 size match that of NH with same argument value, when the
3883 GROWPS/PSINCR feature is enabled.
3886 New string, set by NH macro, replaces the existing (undocumented)
3887 use of SN, to represent the assigned section number.
3890 New string, set by NH macro, represents the assigned section
3891 number, but omits the terminal period (periods at intermediate
3892 levels are retained).
3895 String set by NH macro, originally undocumented, now implemented
3896 as an alias for SN-DOT (which reproduces original behaviour).
3898 * tmac/s.tmac (PORPHANS): New register.
3899 (par*start): Use it.
3900 (HORPHANS, GROWPS, PSINCR): New registers.
3901 (SH-NO-TAG, @SH): Use them.
3904 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
3906 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
3907 Document the deletion of `Ds' and `De' macros.
3909 2004-09-10 Werner LEMBERG <wl@gnu.org>
3911 In tbl, handle \a as an interpreted leader character if in
3914 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
3915 LEADER_CHAR): New macros.
3916 (compatible_flag): New declaration.
3918 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
3919 LEADER_3, and LEADER_4 to `state'.
3920 (table_input::get): Handle `\a'.
3922 * src/preproc/tbl/table.cpp (PREFIX): Removed.
3923 (LEADER_REG): New macro.
3924 (table::init_output): Define LEADER_REG string register if in
3927 * src/preproc/tbl/tbl.man: Document it.
3929 2004-08-18 Werner LEMBERG <wl@gnu.org>
3931 * tmac/doc.tmac (An): Fix error message.
3933 2004-08-06 Werner LEMBERG <wl@gnu.org>
3935 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
3936 file can't be opened. UNIX tbl has the same behaviour.
3938 2004-08-05 Y T <doarhop@hotmail.com>
3940 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
3941 (DBRead): If in compatibility mode, take into account the text
3942 when computing figure boundaries.
3944 2004-08-05 Werner LEMBERG <wl@gnu.org>
3946 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
3947 from Tadziu Hoffmann.
3949 2004-08-03 Werner LEMBERG <wl@gnu.org>
3951 * doc/meref.me: Document `_M' register.
3953 2004-08-03 Martin Husemann <martin@duskware.de>
3955 Make hpftodit work correctly on big-endian systems.
3957 * src/utils/hpftodit/hpftodit.cpp (File): New method
3958 `get_uint32(char *)'.
3959 (entry): New member `orig_value'.
3960 (read_tags): Use new method.
3961 (output_font_name, read_and_output_pcltypeface, dump_ascii):
3964 2004-08-01 Werner LEMBERG <wl@gnu.org>
3966 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
3967 are already in X11's `macros.t' file.
3969 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
3971 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
3973 (read_and_output_pcltypeface): Handle strings with length <= 4.
3975 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
3977 * tmac/s.tmac (pg@top): Don't save `PO' register.
3978 (pg*end-col, pg*end-page): Directly use `PO' register.
3980 2004-07-27 Werner LEMBERG <wl@gnu.org>
3982 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
3984 * src/preproc/refer/refer.cpp (output_references): Check for
3986 * src/preproc/refer/refer.man: Improve documentation of
3987 `bibliography' command.
3989 2004-07-26 Werner LEMBERG <wl@gnu.org>
3991 Add requests `fcolor' and `gcolor'.
3993 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
3995 (init_env_requests): Add `fcolor' and `gcolor'.
3997 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
3999 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4000 (Colors): Document new requests.
4002 2004-07-24 Werner LEMBERG <wl@gnu.org>
4004 Add support for fractional point sizes in ms macros. A value for
4005 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4006 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4008 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4009 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4011 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4012 Registers), NEWS: Document it.
4014 2004-07-19 Werner LEMBERG <wl@gnu.org>
4016 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4018 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4019 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4021 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4023 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4024 * tmac/groff_mdoc.man: Updated.
4026 2004-07-05 Werner LEMBERG <wl@gnu.org>
4028 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4029 documentation of `hcode'.
4031 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4033 Improve appearance of arrows in pic.
4035 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4037 Use two line segments for drawing non-filled arrow head.
4038 (line_object::print, spline_object::print): Shorten line length to
4039 avoid arrow sticking.
4040 (arc_object::print): Take arrow direction into account.
4042 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4044 * tmac/groff_www.man: Update documentation of .MPIMG.
4046 2004-07-03 Werner LEMBERG <wl@gnu.org>
4048 * tmac/an-old.tmac (RI): Always start with font `R'.
4049 (RI, IR): Properly end with font `R'.
4051 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4053 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4054 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4055 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4056 Don't pass more than six arguments to .R, .I, .B, etc., for
4057 compatibility with traditional troff macros.
4059 2004-07-02 Werner LEMBERG <wl@gnu.org>
4061 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4062 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4064 (PUSH_COMP_MODE): New internal character constant.
4067 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4068 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4069 (token::next, macro::append): Handle PUSH_COMP_MODE.
4070 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4071 POP_GROFFCOMP after each of the decoded arguments to make them
4072 independent from the compatibility mode status.
4073 (comp_mode): Add `COMP_ENABLE'.
4074 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4075 (define_string, append_string, define_macro, define_indirect_macro,
4076 append_macro, append_indirect_macro): Handle `compatible_flag'.
4077 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4079 * man/groff_diff.man, doc/groff.texinfo: Updated.
4081 2004-07-01 Werner LEMBERG <wl@gnu.org>
4083 * doc/groff.texinfo: Improve documentation of `hcode'.
4084 Use @documentencoding and convert document to latin-1; to do that
4085 make latin characters active and assign proper macros (within a
4086 @tex...@end tex environment).
4087 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4088 * doc/Makefile.sub (groff): Ditto.
4090 2004-06-29 Werner LEMBERG <wl@gnu.org>
4092 Implement two new conditional operators `F <name>' and `S <name>'
4093 which check whether <name> is a valid font or style, respectively.
4095 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4096 (text_file::text_file): Updated.
4097 (text_file::error): Don't emit message if `silent' is set.
4098 (font::load_font): Add optional third argument (which is directly
4100 (font::load): Add optional second argument to check the header of
4101 a font only, without emitting warning or error messages.
4102 * src/include/font.h (font): Updated.
4104 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4106 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4107 fourth argument to check a font without mounting.
4108 (check_font, check_style): New functions.
4109 * src/roff/troff/node.h: Updated.
4111 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4114 2004-06-27 Werner LEMBERG <wl@gnu.org>
4116 Implement new string-valued register `.sty' to return the current
4119 * env.cpp (environment::get_style_name_string): New function.
4120 (init_env_requests): Add `.sty' register.
4121 * env.h (environment): Updated.
4122 * node.cpp (font_info): Make `get_style_name' a friend.
4123 (get_style_name): New function.
4126 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4129 2004-06-15 Werner LEMBERG <wl@gnu.org>
4131 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4134 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4136 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4137 and \n[mo] to avoid dependency on current date.
4139 2004-06-08 Werner LEMBERG <wl@gnu.org>
4141 * Makefile.sub (install_data): New target.
4143 2004-06-04 Werner LEMBERG <wl@gnu.org>
4145 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4147 2004-06-03 Werner LEMBERG <wl@gnu.org>
4149 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4151 (install_data): Add $(srcdir).
4153 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4156 2004-06-02 Werner LEMBERG <wl@gnu.org>
4158 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4159 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4160 Add test for Xmu library.
4161 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4162 GROFF_APPRESDIR_DEFAULT): New macros.
4164 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4165 and GROFF_APPRESDIR_DEFAULT.
4167 * configure: Regenerated.
4169 * Makefile.in (appresdir): New variable.
4170 (MDEFINES): Add appresdir.
4172 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4174 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4176 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4177 `$(srcdir)/eign', not `eign'.
4179 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4181 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4182 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4183 Protect (g)xditview with `\%' to avoid hyphenation.
4184 Other minor formatting.
4186 2004-06-01 Werner LEMBERG <wl@gnu.org>
4188 Integrate gxditview into groff's standard directory hierarchy.
4190 * src/xditview/*: Moved to ...
4191 * src/devices/xditview/*: Here.
4192 Moved DviChar.h and XFontName.h to src/include.
4193 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4194 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4195 Moved xtotroff.c to new directory src/utils/xtotroff.
4196 Provide proper Makefile.sub files (reusing the stuff from
4198 DESC renamed to DESC.in.
4199 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4200 Converted everything from K&R to ANSI C.
4201 Decorated with const where appropriate.
4202 Cast string constants with `String' and `char *' where appropriate.
4203 Made it compile with C++ (used as a C compiler).
4204 Removed other minor compiler warnings.
4206 * src/devices/xditview/device.c: Include config.h, string.h, and
4208 Don't declare `exit', `strtok', `strchr', and `getenv'.
4211 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4214 * src/devices/xditview/xditview.c: Include config.h.
4215 Include stdio.h earlier.
4216 Protect declaration of `popen' and `pclose' with
4217 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4218 Replace `caddr_t' with `XtPointer'.
4219 (MakePromptFunc): New typedef.
4220 (DoPrint): Use RETSIGTYPE.
4221 (promptfunction): Change type to MakePromptFunc.
4222 (MakePrompt): Use MakePromptFunc for third argument.
4225 * src/devices/xditview/ad2c: Add casts to `String'.
4227 * src/include/XFontName.h (XFontNameString): Don't use array
4229 Add prototypes for `XParseFontName', `XFormatFontName',
4230 `XCompareFontName', and `XCopyFontName'.
4232 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4235 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4236 Don't declare `XParseFontName' and `XFormatFontName'.
4238 (main): Remove `optind' and `optarg'.
4240 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4241 (to select programs which need X).
4242 Make XDEVIDIRS depend on `FORCE'.
4243 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4245 (MDEFINES): Updated.
4246 (LIBDIRS): Use XLIBDIRS.
4247 (CPROGDIRS): Use XPROGDIRS.
4248 (DEVDIRS): Remove font directories for gxditview.
4249 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4250 (EXTRADIRS): Remove src/xditview.
4252 * Makefile.sub (DISCLEANFILES): Updated.
4254 * Makefile.comm (LIBXUTIL): New variable.
4255 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4256 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4258 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4260 * aclocal.m4 (GROFF_X11): New function.
4262 * configure.ac: Call GROFF_X11.
4263 Don't create src/xditview/Imakefile.
4264 Don't emit notice how to build gxditview.
4266 * configure: Regenerated.
4268 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4270 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4272 * Makefile.in (CPPFLAGS): Define.
4273 (MDEFINES): Add CPPFLAGS.
4275 2004-05-27 Werner LEMBERG <wl@gnu.org>
4277 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4279 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4281 Fix problems with `friend name injections'.
4283 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4284 make_script_box), src/roff/troff/div.h (end_diversions),
4285 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4288 2004-05-25 Bernd Warken <bwarken@mayn.de>
4290 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4292 2004-05-25 Werner LEMBERG <wl@gnu.org>
4294 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4295 src/libs/libgroff/color.cpp: Include lib.h.
4297 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4299 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4300 through Forte 6u1, and for how to get GNU make on Solaris.
4302 2004-05-24 Werner LEMBERG <wl@gnu.org>
4304 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4307 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4309 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4312 2004-05-14 Werner LEMBERG <wl@gnu.org>
4314 * REVISION: Set to 2.
4316 * aclocal.m4 (GROFF_STDINT_H): Removed.
4317 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4319 * configure.ac: Updated.
4320 * configure, src/include/config.hin: Regenerated.
4322 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4323 inttypes.h conditionally.
4325 2004-05-13 Werner LEMBERG <wl@gnu.org>
4327 Version 1.19.1 released
4328 =======================
4330 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4332 * src/preproc/refer/label.y (same_author_last_name,
4333 same_author_name): Handle empty sort keys.
4335 2004-05-10 Werner LEMBERG <wl@gnu.org>
4337 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4340 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4341 doc-str-Lb-librt): Reset font.
4342 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4343 Provide `doc-str-Lb' to reset font.
4344 * tmac/groff_mdoc.man: Updated.
4346 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4348 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4349 snprintf versions which don't conform to ANSI C 99 (this is,
4350 counting the string's trailing null byte in the return value).
4352 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4354 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4355 that all implementations of sprintf handle null pointers correctly.
4357 2004-05-04 Werner LEMBERG <wl@gnu.org>
4359 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4360 Document `.U' register.
4362 * src/roff/troff/env.cpp (environment::mark_last_line)
4363 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4365 2004-05-04 Larry Kollar <kollar@alltel.net>
4367 New read-only register `.U'; it returns 1 in safer mode and 0
4370 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4373 2004-05-03 Werner LEMBERG <wl@gnu.org>
4375 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4377 2004-04-17 Werner LEMBERG <wl@gnu.org>
4379 * src/include/font.h (font): Use `int' for ch_index.
4380 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4381 font::compact): Updated.
4383 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4386 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4387 (hyphen_word): Fix compiler warnings.
4388 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4391 (get_delim_number, get_line_arg): Change second argument type to
4393 (macro_header::copy, token::next, do_define_string,
4394 do_define_character, substring_request, asciify_macro,
4395 unformat_macro, read_size, non_interpreted_node::interpret,
4396 while_request, main: Fix compiler warnings.
4397 (read_color_draw_node): Initialize `col'.
4399 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4400 `start_col' and `end_col' of type `int'.
4401 (vertical_rule): Make `col' of type `int'.
4403 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4406 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4408 (format_serial): Use them to remove dependency on ASCII.
4410 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4412 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4415 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4417 (glyph): Change type of `hpos' to `int'.
4419 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4420 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4422 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4424 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4426 2004-04-16 Werner LEMBERG <wl@gnu.org>
4428 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4429 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4430 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4431 `double' instead of `float' everywhere.
4432 * src/preproc/grn/main.cpp: Use `double' instead of `float'
4434 (main): Add return value.
4435 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4437 Update all user functions.
4439 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4440 src/preproc/eqn/box.h, src/preproc/pic/object.h,
4441 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4442 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4443 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4444 src/roff/troff/input.cpp, src/roff/troff/request.h,
4445 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4448 * src/utils/indxbib/signal.c: Include stdlib.h.
4450 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
4452 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4453 before the first page.
4455 2004-04-14 Thomas Klausner <wiz@netbsd.org>
4457 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4458 (doc-operating-system-*): Updated.
4459 * tmac/doc-syms (doc-str-St-*): Various small fixes.
4460 (doc-str-Lb-*): Add more library names.
4462 2004-04-10 Art Haas <ahaas@airmail.net>
4464 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4467 2004-04-09 Art Haas <ahaas@airmail.net>
4469 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4471 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
4473 * arch/misc/shdeps.sh: Generate better comment for sed script.
4475 2004-04-08 Art Haas <ahaas@airmail.net>
4477 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4478 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4479 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4480 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4481 (polyfill), src/preproc/grn/main.cpp (polyfill),
4482 src/preproc/refer/command.cpp (command_table),
4483 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4484 gcc 3.5 doesn't like).
4486 2004-04-08 Werner LEMBERG <wl@gnu.org>
4488 Removing many compiler warnings. groff should now compile with
4489 a C++ compiler used for C files also. [Simple variable renamings
4490 to avoid shadowing aren't logged in detail.]
4492 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4493 (draw_dvi_printer::draw) ['c']: Enclose in block.
4495 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4496 (page::add_line): Fix typos.
4497 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4499 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4500 Some local variable renamings.
4501 * src/devices/grolbp/lbp.h: Some local variable renamings.
4503 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4506 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4507 Remove redundant local variable declaration.
4508 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4509 Don't use `caddr_t' but `void *'.
4510 Enclose functions with `extern "C"' for C++.
4512 * src/libs/libdriver/input.cpp (remember_filename,
4513 remember_source_filename): Use cast for string constant.
4515 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4516 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4517 src/libs/libgroff/geometry.cpp: Some local variable renamings.
4518 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4520 Enclose functions with `extern "C"' for C++.
4521 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4522 (needs_quoting): Return `int'.
4523 (quote_arg): Add proper casts to malloc and realloc.
4524 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4525 various MS Windows environments.
4526 (spawnvp_wrapper): Add proper cast to malloc.
4528 * src/preproc/eqn/box.h: Remove redundant declarations of
4529 `make_script_box', `make_mark_box' and `make_lineup_box'.
4530 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4531 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4534 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4535 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4536 (dx, dy): Renamed functions to...
4537 (deltax, deltay): This.
4538 * src/preproc/grn/main.cpp: Some local variable renamings.
4539 (deffont): Add `const'.
4540 (initpic, conv): Use cast for string constant.
4542 * src/preproc/html/pre-html.cpp: Some local variable renamings.
4543 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4544 (char_buffer::run_output_filter): Second argument is unused.
4545 * src/preproc/html/pushback.cpp: Some local variable renamings.
4547 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4548 * src/preproc/pic/object.cpp: Some local variable renamings.
4550 * src/preproc/refer/label.y (lookup_label): Remove redundant
4551 declaration of local variable.
4553 * src/preproc/soelim.cpp: Remove redundant declaration of
4554 `interpret_lf_args'.
4556 * src/preproc/tbl/main.cpp: Some local variable renamings.
4558 * src/roff/groff/groff.cpp (main): Use cast for string constant.
4559 * src/roff/groff/pipeline.c: Enclose declarations of `error',
4560 `c_fatal', and `i_to_a' with `extern "C"' for C++.
4561 Don't use C++-style comments.
4563 * src/roff/troff/env.h: Remove redundant declaration of `title'.
4564 * src/roff/troff/node.h, src/roff/troff/env.cpp,
4565 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
4567 * src/roff/troff/div.h: Remove redundant declaration of
4569 * src/roff/troff/troff.h: Remove redundant declaration of
4571 * src/roff/troff/input.cpp: Remove redundant declaration of
4572 `handle_first_page_transition' and `process_input_stack'.
4574 * src/utils/hpftodit.cpp: Some local variable renamings.
4576 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
4578 Don't define RETSIGTYPE.
4579 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
4581 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
4582 (error): Use `const' in argument.
4583 (main): Remove redundant declaration of `optind'.
4584 Move declaration of `Version_string' to top-level.
4586 * PROBLEMS: Document difficulties compiling signal.c if a C++
4587 compiler is used for C.
4589 2004-04-07 Werner LEMBERG <wl@gnu.org>
4591 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
4593 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
4595 Make scripts like nroff.sh and neqn.sh portable across various
4596 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
4597 non-POSIX path separators. The idea is to extend those scripts to
4598 decide at run-time (of the script) which path separator to use.
4600 * arch/misc/Makefile.sub: New file.
4601 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
4602 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
4603 a proper definition of the variable `GROFF_RUNTIME'.
4605 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
4606 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
4607 (PROGDEPDIRS): New variable.
4609 (PROGDIRS): Add PROGDEPDIRS.
4611 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
4612 Don't substitute @SEP@ and @BINDIR@.
4613 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
4614 (PATH): Use GROFF_RUNTIME.
4616 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
4617 Don't substitute @SEP@ and @BINDIR@.
4618 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
4619 (PATH): Use GROFF_RUNTIME.
4621 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
4623 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
4624 Cygwin which doesn't handle stderr correctly.
4626 2004-03-08 Werner LEMBERG <wl@gnu.org>
4628 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4629 against empty argument. Problem reported by <cgd@broadcom.com>.
4631 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
4633 * Makefile.in (SEP): Replaced with...
4634 (RT_SEP, SH_SEP): Separators for the target platform's native path
4635 separator and the build environment, respectively.
4636 (fontpath, tmacpath): Use RT_SEP.
4637 (MDEFINES): Updated.
4639 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
4640 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
4641 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
4643 2004-03-05 Werner LEMBERG <wl@gnu.org>
4645 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
4646 reduce alignment problems with newer printers which use built-in
4647 TrueType fonts (instead of the older Intellifonts). The ideal
4648 solution is to provide a second set of groff metric files, but this
4649 is extremely time-consuming to produce, given that HP's metric
4650 files are very rudimentary.
4652 2004-03-01 Werner LEMBERG <wl@gnu.org>
4654 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
4655 s/operand/argument/ in error message.
4657 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
4659 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
4662 2004-03-01 Antti Kantee <pooka@netbsd.org>
4664 * tmac/s.tmac (XE): Fix error message.
4666 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
4668 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
4671 * src/roff/groff/pipeline.c: Declare strcasecmp.
4672 (run_pipeline) [_WIN32]: Use function name variants which don't
4674 Fix stream handling.
4676 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
4678 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
4679 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
4680 for platforms which use the native Win32 runtime libraries.
4681 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
4683 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
4684 QUOTE_ARG_REALLOC_ERROR): Fix string.
4686 * src/preproc/html/pre-html.cpp: Remove declaration of
4688 Don't use __MINGW32__.
4689 s/DEBUG_FILE/DEBUG_FILE_DIR/.
4690 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
4691 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
4692 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
4693 calls to `set_redirection' and `WAIT'.
4694 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
4695 Fix calls to `set_redirection' and `save_and_redirect'.
4696 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
4697 to `set_redirection' and `save_and_redirect'.
4698 (usage): Fix message.
4699 (makeTempFiles, main): Use `DEBUG_FILE'.
4701 2004-02-21 Werner LEMBERG <wl@gnu.org>
4703 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
4705 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
4707 * src/libs/libgroff/quotearg.c: New file, providing proper argument
4708 quoting for MSVC's spawn* and exec* functions.
4709 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
4710 spawnvp with proper quoting for MSVC.
4712 * src/libs/libgroff/assert.cpp (program_name),
4713 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
4714 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
4716 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
4718 * src/include/error.h (program_name): Declare as `extern "C"'.
4719 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
4721 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
4723 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
4725 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
4727 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
4729 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4731 (sbasename) [__MSDOS__ || ...]: New function.
4732 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
4734 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
4735 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
4737 Use STDOUT_FILENO instead of hardcoded file handle.
4738 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
4740 2004-02-19 Werner LEMBERG <wl@gnu.org>
4742 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
4743 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
4745 2004-02-18 Werner LEMBERG <wl@gnu.org>
4747 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
4748 new font and mapping files.
4750 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
4751 Keith Marshall <keith.d.marshall@ntlworld.com>
4753 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
4754 an input pipe. This is needed for the MSVC compiler to make troff's
4757 * src/roff/troff/div.cpp: Include nonposix.h.
4758 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
4760 2004-02-17 Werner LEMBERG <wl@gnu.org>
4762 * font/devlj4/generate/special.awk: New script.
4763 * font/devlj4/generate/Makefile (S): Use special.awk.
4764 * font/devlj4/*: Regenerated, including the following new files:
4765 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
4766 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
4767 * NEWS: Document new lj4 fonts and revised hpftodit.
4769 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
4771 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
4773 2004-01-25 Werner LEMBERG <wl@gnu.org>
4775 * src/libs/libgroff/progname.cpp: Replaced with...
4776 * src/libs/libgroff/progname.c: New file.
4777 * src/libs/libgroff/Makefile.sub: Updated accordingly.
4779 2004-01-17 Werner LEMBERG <wl@gnu.org>
4781 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
4783 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
4785 * font/devlj4/generate/wingdings.map,
4786 font/devlj4/generate/symbol.map: Include unnamed glyphs.
4787 Use groff glyph names where possible.
4788 * src/devices/grolj4/lj4_font.man: Minor updates.
4790 2004-01-13 Werner LEMBERG <wl@gnu.org>
4792 * tmac/www.tmac (DC): Handle TTY devices.
4794 * doc/webpage.ms: Document viewCVS from ffii.org.
4795 * NEWS, README: Updated.
4797 * src/roff/groff/groff.man: Mention lj4_font man page.
4799 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
4801 (FONTS): Add SYMBOL and WINGDINGS.
4802 (SYMBOL, WINGDINGS): New targets.
4804 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
4806 * src/devices/grolj4/lj4_font.man: New man page.
4807 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
4808 * src/devices/grolj4.man: Mention lj4_font man page.
4810 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
4811 * src/utils/hpftodit/hpftodit.man: Document it.
4813 Remove details about fonts (which are now in lj4_font.man).
4815 * font/devlj4/generate/symbol.map,
4816 font/devlj4/generate/wingdings.map: New files.
4818 2004-01-12 Werner LEMBERG <wl@gnu.org>
4820 * README: Mention ffii's viewcvs access.
4822 2004-01-09 Werner LEMBERG <wl@gnu.org>
4824 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
4826 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
4828 Revert most of the change from 2004-01-03 to better control used
4831 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
4832 (text_symbol_sets, special_symbol_sets): New arrays.
4833 (symbol_set_table): New global variable.
4834 (read_symbol_sets): Use search order given in the text_symbol_sets
4835 and special_symbol_sets arrays. If command line flag -a is not
4836 given, search both arrays.
4837 (output_charset): Require x_height_tag only for command line flag -i.
4839 2004-01-06 Werner LEMBERG <wl@gnu.org>
4841 Implement string-valued registers \n[.m] and \n[.M] to return the
4842 name of the current drawing and background color, respectively.
4844 * src/roff/troff/symbol.h: Moved to...
4845 * src/include/symbol.h: Here.
4846 Small fixes to make it work outside of the `troff' directory.
4847 * src/roff/troff/symbol.cpp: Moved to...
4848 * src/libs/libgroff/symbol.cpp: Here.
4849 Small fixes to make it work outside of the `troff' directory.
4851 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
4852 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
4855 * src/include/color.h: Include symbol.h.
4856 (color): Add new field `nm'.
4857 * src/libs/libgroff/color.cpp (color::color): Updated.
4859 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
4860 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
4861 src/roff/troff/reg.cpp: Don't include symbol.h.
4863 * src/roff/troff/env.cpp: Don't include symbol.h.
4864 (environment::get_glyph_color_string,
4865 environment_get_fill_color_string): New member functions.
4866 (init_env_requests): Handle `.m' and `.M' registers.
4867 * src/roff/troff/input.cpp: Don't include symbol.h.
4868 (default_symbol): Moved to symbol.cpp/symbol.h.
4869 (do_glyph_color, do_fill_color, define_color): Pass symbol name
4870 to color constructor.
4871 * src/roff/troff/env.h: Updated.
4873 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4874 Document new registers.
4876 2004-01-05 Werner LEMBERG <wl@gnu.org>
4878 * src/roff/troff/node.cpp (space_node::get_breakpoints,
4879 space_node::nbreaks): Protect against zero `next' field.
4881 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
4883 In hpftodit, use the symbol sets offered in the TFM.
4885 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
4886 (symbol_set, text_symbol_sets, special_symbol_sets,
4887 symbol_set_table): Removed.
4888 (get_printcode): Removed.
4889 (read_symbol_sets): Initialize `symbol_set' field with
4891 Simplify code to just use the `kind' value.
4892 (output_charset): Improve output formatting.
4893 (dump_symbols): Simplified.
4895 2004-01-02 Werner LEMBERG <wl@gnu.org>
4897 * font/devlj4/generate/text.map: Add more MSL numbers.
4899 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
4901 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
4902 (text_symbol_sets): Add more symbol sets.
4903 (debug_flag): New static variable (moved from `main').
4904 (get_printcode, show_symset): New functions.
4905 (main): Remove `debug_flag'.
4906 (output_charset): Use `show_symset'.
4907 (dump_symbols): Use `show_symset'.
4908 Print symsets for all glyphs.
4909 (read_map): Actually call `unicode_to_ucode_make' but this time
4912 2004-01-01 Werner LEMBERG <wl@gnu.org>
4914 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
4915 Fix placement of comments.
4917 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
4919 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
4920 option `-d' is given.
4921 (output_charset): Improve warning messages to give more information.
4922 (dump_symbols): Make information more precise.
4924 (read_map): Don't call unicode_to_ucode_name; the glyph names must
4925 appear as-is and shouldn't be decomposed.
4927 2003-12-31 Werner LEMBERG <wl@gnu.org>
4929 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
4930 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
4931 (FONTS): Add TrueType font families Arial and Times New Roman.
4932 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
4933 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
4936 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
4938 * test-groff.in (SEP): Quote value.
4939 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
4940 `tem' to `char*' to avoid deallocation of a pointer to a constant
4941 object which some compilers don't like.
4943 2003-12-31 Werner LEMBERG <wl@gnu.org>
4945 * font/devlj4/generate (text.map, special.map): Rewritten to work
4946 with the new hpftodit version.
4948 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
4950 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
4951 set and 8bit character code for all glyphs also.
4953 2003-12-30 Werner LEMBERG <wl@gnu.org>
4955 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
4957 2003-12-29 Werner LEMBERG <wl@gnu.org>
4959 More fixes for MSVC compiler.
4961 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
4963 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
4964 STDERR_FILENO) [_MSC_VER]: Define conditionally.
4965 (getpid) [_MSC_VER]: Remove.
4966 Include direct.h and process.h conditionally.
4968 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
4969 parentheses for a_delete.
4971 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
4973 * test-groff: Replaced with...
4974 * test-groff.in: This new template to handle path separator
4977 * configure.ac: Check for direct.h and process.h.
4978 Generate test-groff script.
4979 * configure, src/include/config.hin: Regenerated.
4981 2003-12-28 Werner LEMBERG <wl@gnu.org>
4983 Add integral extension glyph.
4984 Add new option `-x' to afmtodit to suppress use of built-in AGL.
4986 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
4988 * font/devps/generate/textmap: Provide entry for `integralex' to
4989 override (old) PUA value of the AGL.
4990 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
4991 * font/devps/*: Regenerated.
4993 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
4994 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
4996 2003-12-27 Werner LEMBERG <wl@gnu.org>
4998 Add forgotten `coproduct' symbol (already available for DVI).
5000 * font/devhtml/R.proto, font/devps/generate/textmap,
5001 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5002 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5003 U+2210 (\[coproduct]).
5005 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5007 hpftodit has been extended to handle TrueType metric files and
5008 more glyphs. See hpftodit.man for more details.
5010 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5011 ctype.h, and unicode.h.
5012 s/msl/charcode/ everywhere since we now handle Unicode values also.
5013 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5014 Use it where appropriate.
5015 (MULTIPLIER): Replaced with...
5016 (multiplier): New global static variable.
5018 (tag_type): Add more TFM tags.
5019 (tag_name): New array.
5020 (ENUM_TYPE, FLOAT_TYPE): Removed.
5021 (BYTE_TYPE): New value assigned.
5022 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5023 (text_symbol_sets, special_symbol_sets): Extended to cover more
5025 (check_type): Add return value.
5026 (check_units): Add parameters to get ppi and upem values.
5027 Handle TrueType TFM data.
5028 (output_font_name): New function.
5029 (output_charset): Add parameter to handle TFM type.
5030 Handle TrueType TFMs also.
5031 (em_fract): New macro.
5032 (dump_tags): Be much more verbose and handle more tags.
5033 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5034 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5036 (read_map): Add parameter to handle TFM type.
5037 Handle both MSL and Unicode mappings.
5038 (main): Add two new command line options `-a' and `-q'.
5039 Updated to make use of new functions.
5042 * src/utils/hpftodit/hpuni.cpp: New file.
5044 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5047 2003-12-25 Werner LEMBERG <wl@gnu.org>
5049 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5051 2003-12-24 Werner LEMBERG <wl@gnu.org>
5053 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5054 by Michail Vidiassov <master@iaas.msu.ru>.
5056 2003-12-20 Werner LEMBERG <wl@gnu.org>
5058 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5060 Add missing latin-2 glyphs.
5061 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5063 * tmac/troffrc: Load `composite.tmac' earlier.
5065 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5066 u00{53,73}_0327, and u0049_0307.
5067 * tmac/X.tmac: Add u00{47,67}_0306.
5068 * tmac/tty-char.tmac: Use composite glyph names for readability.
5072 * src/include/unicode.h: Remove `extern' keywords.
5074 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5076 * tmac/latin5.tmac: New file.
5078 2003-12-19 Werner LEMBERG <wl@gnu.org>
5080 Add some glyphs needed for Turkish.
5082 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5085 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5086 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5087 u00{53,73}_0327, and u0049_0307.
5089 2003-12-18 Werner LEMBERG <wl@gnu.org>
5091 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5093 Remove trailing zeros.
5095 2003-12-17 Werner LEMBERG <wl@gnu.org>
5097 Make \? transparent to end-of-sentence recognition.
5099 * src/roff/troff/input.cc (non_interpreted_node): Add
5100 `ends_sentence' member function.
5102 2003-12-16 Werner LEMBERG <wl@gnu.org>
5104 * doc/groff.texinfo: Document `dt' request correctly.
5105 Other minor typographical improvements.
5107 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5109 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5111 2003-12-10 Richard Stallman <rms@gnu.org>
5113 * LICENSE: Better wording.
5115 2003-12-09 Werner LEMBERG <wl@gnu.org>
5117 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5118 * configure, NEWS: Updated.
5120 2003-12-08 Werner LEMBERG <wl@gnu.org>
5122 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5124 2003-12-07 Bernd Warken <bwarken@mayn.de>
5128 2003-12-07 Werner LEMBERG <wl@gnu.org>
5130 * INSTALL: Improved.
5132 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5134 Use path separator character of target platform for compiled-in
5137 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5138 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5139 * configure: Regenerated.
5140 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5142 2003-12-05 Werner LEMBERG <wl@gnu.org>
5144 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5145 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5147 2003-12-04 Bernd Warken <bwarken@mayn.de>
5149 * LICENSE: New file.
5151 2003-12-03 Werner LEMBERG <wl@gnu.org>
5153 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5154 ligatures present in AFM files since groff currently only
5155 understands some standard ligatures and nothing else.
5157 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5159 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5162 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5165 Don't use Unix wait flags.
5167 2003-12-02 Werner LEMBERG <wl@gnu.org>
5169 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5170 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5171 src/roff/troff/uniuni.cpp: Moved to...
5172 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5173 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5174 src/libs/libgroff/uniuni.cpp: Here.
5176 * src/include/Makefile.sub.old (HDRS),
5177 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5178 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5180 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5182 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5186 2003-12-01 Werner LEMBERG <wl@gnu.org>
5188 * groff.texinfo: Document special behaviour of `.vs 0'.
5189 Improve documentation of `cflags' request.
5192 2003-11-29 Werner LEMBERG <wl@gnu.org>
5194 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5195 * font/devlj4/CORONET: Regenerated.
5197 2003-11-24 Werner LEMBERG <wl@gnu.org>
5199 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5200 if processing hyphenation patterns in traditional mode.
5201 Improve error messages.
5203 2003-11-20 Werner LEMBERG <wl@gnu.org>
5205 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5206 troff_output_file::put_char): Fix type of local variable `c'.
5208 2003-11-19 Werner LEMBERG <wl@gnu.org>
5210 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5212 (i_to_a): Removed. libgroff already provides this function.
5213 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5215 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5217 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5220 2003-11-17 Werner LEMBERG <wl@gnu.org>
5222 * COPYING: Use correct version.
5224 2003-11-11 Werner LEMBERG <wl@gnu.org>
5226 LynxOS 4.0.0 doesn't declare vfprintf.
5228 * configure.ac: Check for vfprintf.
5229 * configure: Regenerated.
5230 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5231 * src/include/config.hin: Regenerated.
5233 2003-11-10 Werner LEMBERG <wl@gnu.org>
5235 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5237 * configure.ac: Check for vsnprintf.
5238 * configure: Regenerated.
5239 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5241 * src/include/config.hin: Regenerated.
5243 2003-11-09 Werner LEMBERG <wl@gnu.org>
5245 * aclocal.m4: Updated syntax to autoconf 2.59.
5246 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5247 Don't check for gsos2.
5248 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5249 working abs_top_srcdir and abs_top_builddir.
5251 * configure.ac: Updated syntax to autoconf 2.59.
5252 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5253 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5254 * configure: Regenerated.
5256 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5257 s/@groff_top_builddir@/@abs_top_builddir@/.
5259 * src/roff/groff/pipeline.c (xstrsignal):
5260 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5262 2003-11-07 Werner LEMBERG <wl@gnu.org>
5264 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5265 make start angle smaller than end angle to circumvent a bug in tpic
5266 handling of some versions of dvipdfm (and dvipdfmx).
5268 2003-10-30 Werner LEMBERG <wl@gnu.org>
5270 * src/devices/grops/grops.man: Improve section on creating EPS.
5272 2003-10-29 Werner LEMBERG <wl@gnu.org>
5274 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5277 2003-10-28 Werner LEMBERG <wl@gnu.org>
5279 * doc/groff.texinfo: Fix documentation of `.if'.
5281 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5283 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5284 the form `uniXXXX' also.
5286 2003-10-27 Werner LEMBERG <wl@gnu.org>
5288 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5289 contrib/pic2graph/pic2graph.sh: Implement secure management of
5291 Pass `-P-pletter' to groff to avoid data outside of the converted
5292 area -- some versions of `convert' (for example 5.3.8) don't check
5293 the bounding box of the image but always use a fixed image size
5294 (letter paper format).
5295 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5296 contrib/pic2graph/pic2graph.man: Updated.
5298 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5300 2003-10-26 Werner LEMBERG <wl@gnu.org>
5302 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5303 troff_output::simple_ellipse, troff_output::simple_arc,
5304 troff_output::simple_line, troff_output::simple_spline,
5305 troff_output::simple_polygon): Insert a space before arguments.
5306 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5307 latter doesn't produce a node, so the following `.sp -1' would do
5309 Don't emit `.sp -1' after \M. This also doesn't produce a token
5310 (and we don't have to care about compatibility mode).
5311 (troff_output::set_color, troff_output::reset_color): Don't emit
5312 `.sp -1' after \M and \m.
5314 * src/roff/troff/input.cpp (old_have_input): New global variable.
5315 (input_stack::get): Handle `old_have_input'.
5316 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5317 `trapping_blank_line' depending on `old_have_input', not
5320 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5322 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5323 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5324 default directory names for temporary files.
5325 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5327 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5328 [__MSDOS__] (run_pipeline): Honour environment variables.
5329 Don't use `tmpnam' but `tempnam' to work around messy
5332 * README.MinGW: New file.
5334 2003-10-16 Werner LEMBERG <wl@gnu.org>
5336 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5337 `(*t)->next' without testing validity of `*t'.
5338 (usage): Make it more readable.
5340 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5342 Make html device run under both MS-DOS and Win32.
5344 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5345 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5346 spawn or fork+exec has to be used, and whether parent must sleep
5347 until the child process terminates. Used in
5348 `char_buffer::run_output_filter'.
5349 (copyofstdoutfd): Removed.
5350 (char_buffer): Replace `write_file_html' and `write_file_troff'
5351 member functions with `emit_troff_output' and `run_output_filter'.
5352 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5354 (replaceFd): Replaced with...
5355 (set_redirection): New auxiliary function.
5356 (waitForChild): Replaced with...
5357 (save_and_redirect): New auxiliary function for.
5359 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5362 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5364 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5365 (GROFF_LIBC): New function.
5366 * configure.ac: Call GROFF_LIBC.
5368 * configure: Regenerated.
5370 * src/include/lib.h: Handle __MINGW32__.
5371 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5372 Add macro for `pipe'.
5375 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5378 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5381 2003-10-12 Werner LEMBERG <wl@gnu.org>
5383 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5384 src/roff/troff/input.cc (usage): Updated.
5386 * NEWS, doc/groff.texinfo: Updated.
5388 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5390 * src/libs/libgroff/searchpath.cpp
5391 (search_path::open_file_cautious): New function which also handles
5392 `-' as stdin and stdout depending on the access mode.
5393 * src/include/searchpath.h (search_path): Updated.
5395 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5396 * src/devices/grops/ps.h: Include `searchpath.h'.
5397 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5398 Open resource file with `include_search_path.open_file_cautious'.
5399 * src/devices/grops/grops.man: Document new `-I' switch.
5401 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5402 (main), src/devices/grolj4/lj4.cpp (main),
5403 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5405 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5407 (include_search_path): New global variable.
5408 (include_path_append): Removed.
5409 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5410 (do_file): Simplify, using new
5411 `include_search_path.open_file_cautious'.
5413 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5415 (main): Pass arguments to `-I' to both troff and devices.
5416 Improve handling of `-V'.
5417 * src/roff/groff/groff.man: Document changes to -I and -V.
5419 * src/roff/troff/input.cpp (include_search_path): New global
5421 (next_file, source, ps_bbox_request, transparent_file,
5422 process_input_file): Use new
5423 `include_search_path.open_file_cautious'.
5424 (main) Handle `-I' switch.
5425 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5426 Use new `include_search_path.open_file_cautious'.
5427 * src/roff/troff/node.h: New extern symbol `include_search_path'.
5428 * src/roff/troff/troff.man: Document new `-I' switch.
5430 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
5432 Support multiple calls of .Lb in LIBRARY section.
5434 * tmac/doc-common (doc-in-library-section): New register.
5435 (doc-section-library): New string.
5436 (Sh): Set `doc-in-library-section'.
5438 * tmac/doc-syms (Lb): Insert breaks before and after arguments
5439 if in LIBRARY section.
5440 * tmac/doc.tmac (doc-save-global-vars): Updated.
5441 * NEWS, tmac/groff_mdoc.man: Updated.
5443 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
5445 * tmac/doc-common (doc-default-operating-system): New variable.
5448 2003-09-08 Werner LEMBERG <wl@gnu.org>
5450 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5452 2003-08-31 Werner LEMBERG <wl@gnu.org>
5454 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5455 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5456 $(DEVFILES) are not empty.
5457 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5459 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
5461 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
5462 insert SORT_SEP. With certain combinations of sort specifications,
5463 refer sorted entries in the wrong order. In particular, entries
5464 with a missing field should be be sorted before all entries that
5465 have that field, before refer looks to the next field.
5467 2003-08-23 Werner LEMBERG <wl@gnu.org>
5469 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5470 g++ linker is used. Reported by Mark J. Reed
5471 <mark.reed@turner.com>.
5473 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5475 Add key character `x' to tbl which makes tbl call a user-defined
5476 macro on a table cell.
5478 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5479 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5480 `set_modifier' after printing the compatibility request.
5481 (set_modifier): Print call to `m->macro' if not empty.
5482 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5484 (process_format): Implement cases `x' and `X'.
5485 * src/preproc/tbl/tbl.man, NEWS: Updated.
5487 2003-08-15 Werner LEMBERG <wl@gnu.org>
5489 * doc/groff.texinfo: Minor fixes.
5491 2003-08-09 Werner LEMBERG <wl@gnu.org>
5493 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5495 2003-08-07 Werner LEMBERG <wl@gnu.org>
5497 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5498 argument list to nothing if there is no file to match. Use `ls' as
5499 a protection, similar to autoconf.
5501 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5502 empty argument lists.
5504 * doc/groff.texinfo: Improve documentation how vertical spacing
5505 and line breaks interact.
5508 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5510 2003-08-03 Werner LEMBERG <wl@gnu.org>
5512 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5513 EPS (using eps2eps or similar programs to compute the bounding box).
5515 2003-07-24 Werner LEMBERG <wl@gnu.org>
5517 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5518 * doc/texinfo.tex: Updated from texinfo 4.6.
5519 * README.CVS: From now on we need texinfo 4.6.
5521 2003-07-23 Werner LEMBERG <wl@gnu.org>
5523 Add requests `dei1' and `ami1' for completeness.
5525 * src/roff/troff/input.cc (calling_mode): Remove
5526 CALLING_DISABLE_COMP.
5527 (comp_mode): New enumeration.
5528 (do_define_string, define_string, define_nocomp_string,
5529 append_string, append_nocomp_string): Updated.
5530 (do_define_macro): Add third parameter.
5531 (define_macro, define_nocomp_macro, define_indirect_macro,
5532 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5533 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5536 (init_input_requests): Add `dei1' and `ami1'.
5538 * tmac/trace.tmac: Handle de1 and am1.
5539 (de): Improve tracing message.
5540 (am): Add missing `do'.
5543 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5544 Document new requests.
5546 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5548 Add option -G to .MPIMG to insert a gap between text and the image.
5550 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
5551 www-finish-left-ll): Updated.
5552 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
5553 (MPIMG): Make option -L and -R optional.
5554 Implement option -G.
5556 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
5558 * src/devices/grohtml/post-html.cpp
5559 (html_printer::do_file_components): Don't use `stdout' as lvalue
5560 since it can be a macro.
5562 2003-07-22 Werner LEMBERG <wl@gnu.org>
5564 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
5565 the corresponding test in aclocal.m4.
5567 2003-07-21 Werner LEMBERG <wl@gnu.org>
5569 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
5570 names but RGB values directly. Otherwise pnmtopng depends on
5571 an external file `rgb.txt' which maps colour names to values.
5573 2003-07-20 Werner LEMBERG <wl@gnu.org>
5575 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
5576 * configure, src/include/config.hin: Regenerated.
5578 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
5580 2003-07-19 Werner LEMBERG <wl@gnu.org>
5582 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
5584 2003-07-18 Werner LEMBERG <wl@gnu.org>
5586 * *.man: Switch to non-compatibility mode temporarily if GNU
5587 syntax extensions are used in the particular man page.
5589 * PROBLEMS: Add solutions for SGR problems.
5591 2003-07-17 Werner LEMBERG <wl@gnu.org>
5593 Don't ignore grotty's command line options if \X'tty: sgr ...' is
5594 used to change the drawing scheme.
5596 * src/devives/grotty/tty.cpp (bold_flag_option,
5597 underline_flag_option, italic_flag_option, reverse_flag_option,
5598 bold_underline_mode_option): New global variables.
5599 (update_options): New function.
5600 (tty_printer::special): Call update_options.
5601 (main): Don't set xxx_flag but xxx_flag_option, then call
5604 2003-07-14 Werner LEMBERG <wl@gnu.org>
5606 Make grotty emit proper Unicode box drawing characters for -Tutf8.
5608 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
5610 (hline_char, vline_char): New global variables.
5611 (tty_printer::tty_printer): Initialize them.
5612 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
5613 horizontal and vertical lines.
5614 (crossings): New global array.
5615 (tty_printer::end_page): Use it to determine the proper crossing
5616 character for -Tutf8.
5618 2003-07-12 Werner LEMBERG <wl@gnu.org>
5620 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
5621 (HTMLDOCFILES): Revert to `pic.html'.
5622 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
5624 2003-07-11 Werner LEMBERG <wl@gnu.org>
5626 * doc/pic.ms: Improve documentation of absolute coordinates.
5627 Document absolute positioning of pictures.
5629 * NEWS: Add new pic capability.
5631 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
5633 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
5636 2003-07-07 Werner LEMBERG <wl@gnu.org>
5638 Implement support for dashed and dotted ellipses in pic. Based on
5639 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
5641 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
5642 common_output::dashed_ellipse, common_output::dotted_ellipse): New
5643 functions. Ellipse arcs are approximated with circle arcs.
5644 * src/preproc/pic/common.h (common_output): Updated.
5645 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
5647 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
5649 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
5651 2003-07-06 Werner LEMBERG <wl@gnu.org>
5653 Make grotty work on platforms which have unsigned char as the
5654 default for char. Based on a patch by Thomas Klausner
5657 * src/devices/grotty/tty.cpp (schar): New typedef.
5658 Updated calls to declare_ptable and implement_ptable.
5659 (glyph): Use schar for back_color_idx and fore_color_idx.
5660 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
5661 (tty_printer::tty_color, tty_printer::tty_printer,
5662 tty_printer::color_to_idx, tty_printer::put_color): Updated.
5664 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
5666 * src/roff/nroff/nroff.sh: Add option -d for completeness.
5667 * src/roff/nroff/nroff.man: Updated.
5669 2003-07-05 Werner LEMBERG <wl@gnu.org>
5671 * NEWS, tmac/groff_www.man: Updated.
5672 * doc/Makefile.sub: Updated.
5674 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
5676 Implement support for multiple HTML output files.
5678 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
5679 -j command line option.
5681 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
5683 (file): New fields `new_output_file', `require_links',
5685 (file::file): Updated.
5686 (files::set_file_name, files::set_links_required,
5687 files::are_links_required, files::is_new_output_file,
5688 files::file_name, files::next_file_name): New functions.
5689 (header_desc): New fields `no_of_level_one_headings',
5691 (header_desc::header_desc): Updated.
5692 (header_desc::write_headings): Handle multiple files.
5693 (html_printer::write_header): Save file name in which header occurs.
5694 (html_printer::determine_header_level): Possibly split files on
5696 (html_printer::do_links, html_printer::troff_tag): Updated.
5697 (html_printer::insert_split_file, html_printer::do_job_name,
5698 html_printer::emit_link, html_printer::write_navigation,
5699 html_printer::do_file_components): New functions.
5700 (html_printer::~html_printer): Handle multiple files.
5701 (main): Handle command line option `-j'.
5703 * src/devices/grohtml/grohtml.man: Updated.
5705 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
5708 * tmac/www.tmac (JOBNAME): New macro.
5709 * tmac/s.tmac (SH-NO-TAG): New macro.
5710 (@SH): Call SH-NO-TAG.
5713 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
5715 * tmac/groff_mdoc.man: Improve documentation of punctuation
5718 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
5720 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
5722 2003-07-03 Werner LEMBERG <wl@gnu.org>
5724 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
5726 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
5728 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
5729 after `/*' and `*/'.
5731 (Fn, Fo): Reduce indentation in synopsis.
5733 * tmac/doc-common (doc-check-depth): New macro.
5734 (doc-end-macro, Sh, Ss): Use it.
5735 (Cd): Fix behaviour in synopsis.
5736 (In): Make it parsed and callable.
5737 If not in the synopsis, represent the C header file enclosed in
5739 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
5740 Use minus, not hyphen.
5742 * tmac/groff_mdoc.man: Updated.
5744 2003-07-01 Werner LEMBERG <wl@gnu.org>
5746 Integrated grap2graph, contributed by Eric S. Raymond.
5748 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
5750 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
5751 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
5753 2003-07-01 Colin Watson <cjwatson@debian.org>
5755 * src/xditview/*.c: Add prototypes, fix return types, add includes.
5756 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
5758 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
5760 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
5762 2003-06-31 Werner LEMBERG <wl@gnu.org>
5764 * doc/Makefile.sub (CLEANADD): Remove all files created by
5765 running `make groff.{pdf,dvi}'.
5767 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
5770 2003-06-30 Werner LEMBERG <wl@gnu.org>
5772 * Makefile.in (SHELL): Define as @SHELL@.
5773 (mkinstalldirs): Use $(SHELL).
5774 (MDEFINES): Add $(SHELL).
5775 * Makefile.comm (SHELL): Removed.
5777 2003-06-29 Werner LEMBERG <wl@gnu.org>
5779 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
5780 The X11 documentation files use them.
5781 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
5783 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
5785 * tmac/e.tmac (@C): Handle .ad also.
5787 2003-06-12 Werner LEMBERG <wl@gnu.org>
5789 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
5791 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
5792 Assign `n' even here. It is possible to construct a node
5793 immediately following an escape character:
5801 2003-06-10 Werner LEMBERG <wl@gnu.org>
5803 * README.WIN32: Removed.
5804 * MANIFEST: Updated.
5806 2003-06-07 Werner LEMBERG <wl@gnu.org>
5808 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
5810 2003-06-05 Werner LEMBERG <wl@gnu.org>
5812 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
5813 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
5815 2003-06-03 Werner LEMBERG <wl@gnu.org>
5817 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
5818 is done by the calling function.
5820 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
5822 * tmac/X.tmac: Fix definition of `em'.
5824 2003-05-22 Werner LEMBERG <wl@gnu.org>
5826 * src/roff/troff/input.cc (return_macro_request): Fix detection of
5829 2003-05-18 Werner LEMBERG <wl@gnu.org>
5831 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
5832 to make items work which consist only of a tag.
5834 2003-05-17 Werner LEMBERG <wl@gnu.org>
5836 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
5837 aren't stretched in a tag (this can fail with unformatted boxes).
5838 Instead, insert a break and go back one line.
5840 2003-05-16 Werner LEMBERG <wl@gnu.org>
5842 * src/roff/troff/input.cc (return_macro_request): If called with
5843 argument pop macro twice. We need this to trace `return'.
5845 * tmac/trace.tmac: Handle `return'.
5848 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5851 2003-05-15 Larry Kollar <kollar@alltel.net>
5853 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
5854 registers `FPS', `FVS', and `FPD'.
5856 2003-05-15 Werner LEMBERG <wl@gnu.org>
5858 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
5861 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
5863 * tmac/groff_mdoc.man: Slight improvements.
5865 2003-05-03 Werner LEMBERG <wl@gnu.org>
5867 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
5868 `doc-header-space' after header line if register `cR' is set.
5870 2003-05-02 Werner LEMBERG <wl@gnu.org>
5874 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
5876 * tmac/doc-common (Nd): Use \[em].
5878 2003-05-01 Werner LEMBERG <wl@gnu.org>
5880 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
5881 doc-footer-space): Initialize to 0.5i.
5882 (doc-setup-page-layout): Don't set doc-header-space and
5885 2003-04-30 Werner LEMBERG <wl@gnu.org>
5887 * REVISION: Set to 1.
5889 * doc/pic.ms: Document possible problems with `figname'.
5891 2003-04-29 Werner LEMBERG <wl@gnu.org>
5893 Version 1.19 released
5894 =====================
5896 * VERSION: Set to 1.19.
5897 * REVISION: Set to 0.
5898 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
5900 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5901 Define charset as `US-ASCII' in html output.
5903 * tmac/www.tmac (ULE): Add missing scaling indicator.
5905 * win32-diffs: Removed.
5907 2003-04-28 Werner LEMBERG <wl@gnu.org>
5909 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
5911 Document how to insert discardable whitespace with `.ss'.
5913 2003-04-27 Werner LEMBERG <wl@gnu.org>
5915 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
5916 work with plain TeX also.
5918 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
5920 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
5922 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
5925 2003-04-24 Werner LEMBERG <wl@gnu.org>
5927 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
5928 vbox with positive height and zero depth if in TeX mode.
5930 * NEWS: Document glyph name changes for grodvi and grolj4.
5932 2003-04-23 Werner LEMBERG <wl@gnu.org>
5934 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
5935 * doc/pic.ms: Fixed.
5937 2003-04-21 Werner LEMBERG <wl@gnu.org>
5939 HP-UX 10.20 has `snprintf' but it isn't declared.
5941 * configure.ac: Add declaration test for snprintf.
5942 * configure: Regenerated.
5943 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
5944 * src/include/config.hin: Regenerated.
5946 2003-04-19 Werner LEMBERG <wl@gnu.org>
5948 Add keyword `figname' to pic, specifying the name of the picture
5949 box in TeX mode. Based on a patch from William J Poser
5950 <wjposer@unagi.cis.upenn.edu>.
5952 * src/preproc/pic/pic.y: New token `FIGNAME'.
5953 (macro_name): New rule of type <str>.
5954 (placeless_element): Handle `FIGNAME'.
5955 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
5956 * src/preproc/pic/main.cpp (graphname): New global variable.
5957 (do_picture): Initialize `graphname'.
5958 * src/preproc/pic/pic.h: Updated.
5959 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
5962 (tex_output::text): Beautify output.
5963 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
5964 `shaded' and `outlined' unconditionally.
5965 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
5968 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
5969 greater is necessary.
5971 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
5973 Add option -r to soelim to avoid emission of `.lf' lines.
5974 Add option -t to produces TeX comment lines instead of `.lf' lines.
5976 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
5979 (main): Handle `-r' and `-t'.
5980 (set_location): Handle `raw_flag' and `tex_flag'.
5981 * src/preproc/soelim/soelim.man, NEWS: Updated.
5983 2003-04-17 Werner LEMBERG <wl@gnu.org>
5985 * tmac/hyphenex.sh: Replaced with...
5986 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
5989 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
5990 if --quiet is used for the configure script.
5991 * configure: Regenerated.
5993 2003-04-16 Werner LEMBERG <wl@gnu.org>
5995 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
5996 Add `const' to second argument.
5997 (html_printer::add_table_end): Add `const' to argument.
5998 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
5999 `const' to arguments.
6000 * src/devices/grohtml/html-text.h: Updated.
6002 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6003 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6006 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6007 cast for integer constant.
6009 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6010 (writeNbytes): Add `const' to first argument.
6011 (writeString): Add `const' to argument.
6012 (char_buffer::can_see): Add `const' to third argument.
6013 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6014 `const' to argument.
6015 * src/preproc/html/pushback.h: Updated.
6017 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6018 (include_path_append): Add `const' to argument.
6021 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6023 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6024 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6026 (unicode_decompose_init::unicode_decompose_init): Updated.
6027 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6029 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6030 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6033 * tmac/hyphenex.sh: Make script more portable by using a here
6036 2003-04-15 Werner LEMBERG <wl@gnu.org>
6038 Renamed all `*.cc' files to `*.cpp'.
6039 Updated all configuration files, makefiles, and documentation.
6041 2003-04-14 Werner LEMBERG <wl@gnu.org>
6043 * tmac/hyphenex.sh: Slight improvements.
6045 2003-04-13 Werner LEMBERG <wl@gnu.org>
6047 * font/devascii/R.proto, font/devcp1037/R.proto,
6048 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6049 character slots with unnamed glyphs.
6051 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6052 (an-first): New global variable.
6053 (an-header): Emit vertical space between multiple man pages.
6055 2003-04-11 Werner LEMBERG <wl@gnu.org>
6057 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6060 2003-04-10 Werner LEMBERG <wl@gnu.org>
6062 * PROBLEMS: Revised.
6064 2003-04-10 Bernd Warken <bwarken@mayn.de>
6066 * doc/webpage.ms: Improved.
6068 2003-04-09 Werner LEMBERG <wl@gnu.org>
6070 Add register \n[.height] which returns the value of \H.
6071 Add register \n[.slant] which returns the value of \S.
6073 * src/roff/troff/env.cc (init_env_requests): Implement.
6074 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6077 2003-04-08 Werner LEMBERG <wl@gnu.org>
6079 * tmac/html.tmac: Move some of the data into html-end.tmac.
6080 Remove most of the character translations for eqn since html fonts
6081 now cover those characters.
6083 * tmac/html-end.tmac: New file.
6084 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6085 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6086 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6088 2003-04-07 Werner LEMBERG <wl@gnu.org>
6090 * man/groff_out.man: Document negative values of `N' if -Thtml is
6093 2003-04-06 Werner LEMBERG <wl@gnu.org>
6095 * Makefile.comm (depend.temp): Check location of YTABC.
6097 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6099 * doc/Makefile.in (TROFFBIN): New variable for troff
6101 (GROFFBIN): New variable for groff binary path.
6102 (groff_bin_path): Rename to GROFF_BIN_PATH.
6103 (TROFF): Use TROFFBIN.
6104 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6105 * doc/Makefile.sub (GROFFBIN): New variable for groff
6107 (groff_bin_path): Rename to GROFF_BIN_PATH.
6108 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6110 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6111 with INSTALL_SCRIPT.
6112 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6113 * Makefile.dev (all): Depend on DEVSCRIPTS.
6114 (install_dev): Likewise.
6115 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6117 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6118 (DEVGENSCRIPTS): New variable to hold generated scripts.
6120 2003-04-05 Werner LEMBERG <wl@gnu.org>
6122 * src/libs/libdriver/input.cc (IntArray::operator[],
6123 IntArray::get_data): Remove meaningless `const' in return value.
6125 * README.CVS: New file.
6127 2003-04-04 Werner LEMBERG <wl@gnu.org>
6129 Check for stdint.h in C++, not in C.
6131 * aclocal.m4 (GROFF_STDINT_H): New function,
6132 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6134 * configure, src/include/config.hin: Regenerated.
6135 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6138 Fix handling of in grohtml. To do this, troff emits `N'
6139 with a negative value, representing the width of the unbreakable
6140 space (only for -Thtml). grohtml then converts this back to
6141 and uses the value of N as its width.
6143 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6144 unbreakable_space_node::tprint): Emit `N-<width>'.
6145 * src/include/printer.h (printer::set_numbered_char): Make it
6147 Make members `font_table' and `nfonts' protected instead of private.
6148 * src/devices/grohtml/post-html.cc
6149 (html_printer::set_numbered_char): New member function.
6152 * src/libs/libgroff/maxfilename.cc:
6153 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6155 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6158 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6160 * man/roff.man: Small fixes.
6162 2003-04-03 Werner LEMBERG <wl@gnu.org>
6164 Make groff independent from locale's numeric settings.
6166 * configure.ac: Check for `setlocale'.
6167 * configure, src/include/config.hin: Regenerated.
6169 * src/include/lib.h: Handle HAVE_SETLOCALE.
6171 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6172 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6173 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6176 * doc/groff.texinfo: Change dir category to `Typesetting'.
6177 (Man font macros): Mention that there is no space between arguments
6180 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6181 (*printer::change_color, *printer::change_fill_color): Add missing
6184 2003-04-02 Werner LEMBERG <wl@gnu.org>
6186 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6187 html_table::is_gap): Compute table widths after converting border
6188 positions to avoid rounding errors.
6190 2003-04-01 Werner LEMBERG <wl@gnu.org>
6192 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6193 `space_emitted' properly.
6195 2003-03-31 Werner LEMBERG <wl@gnu.org>
6197 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6198 (html_table::set_linelength): Don't add 1.
6199 (html_table::add_indent): Don't subtract 1.
6201 * tmac/html.tmac: Set default page offset to zero.
6203 2003-03-30 Werner LEMBERG <wl@gnu.org>
6205 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6207 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6208 unbreakable_space_node::tprint): New functions.
6209 (troff_output_file): Make space_char_hmotion_mode::tprint and
6210 unbreakable_space_node::tprint to friends.
6211 * src/roff/troff/node.h: Updated.
6213 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6214 in the HTML standard).
6216 2003-03-29 Werner LEMBERG <wl@gnu.org>
6218 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6219 Otherwise, the following code
6228 produces `x a' instead of `xa'. This is a temporary fix, disabling
6229 font changes in diversions for -Thtml.
6231 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6233 (an-do-tag-html): Merge with ...
6234 (an-do-tag): This macro.
6235 Change code slightly to circumvent grohtml bug.
6236 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6238 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6239 html_table::is_gap): Round `width' properly.
6241 * tmac/html.tmac: Provide some default layout parameters for
6244 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6247 2003-03-28 Werner LEMBERG <wl@gnu.org>
6249 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6251 2003-03-27 Werner LEMBERG <wl@gnu.org>
6253 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6256 2003-03-20 Werner LEMBERG <wl@gnu.org>
6258 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6260 * doc/groff.texinfo: Updated.
6262 2003-03-19 Werner LEMBERG <wl@gnu.org>
6264 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6265 TOKEN_END_TRAP>: Reset `have_input'.
6267 2003-03-18 Werner LEMBERG <wl@gnu.org>
6269 * src/roff/groff/groff.man: Mention groff_trace man page.
6271 2003-03-16 Werner LEMBERG <wl@gnu.org>
6273 * Makefile.in (LIBEXT): New variable to indicate the file extension
6274 of library files. Computed heuristically from $(OBJEXT).
6275 (MDEFINES): Add $(LIBEXT).
6276 * Makefile.lib, Makefile.comm: Use it.
6278 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6279 overlong lines into smaller chunks.
6280 (get_binary): New function.
6282 * src/utils/pfbtops/pfbtops.man: Updated.
6284 2003-03-15 Colin Watson <cjwatson@debian.org>
6286 * src/roff/groff/groff.man: Minor syntax fix.
6288 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6290 * src/devices/grops/ps.cc (ps_printer::media_set,
6291 ps_printer::~ps_printer): Handle zero paper width and length.
6293 2003-03-13 Werner LEMBERG <wl@gnu.org>
6295 Add options -p and -l to grodvi.
6297 * src/devices/grodvi/dvi.cc: Include paper.h.
6298 (landscape_flag, user_paper_length, user_paper_width): New global
6300 (dvi_printer::begin_page): Emit `papersize' special.
6301 Set color after initialization of `cur_h' and `cur_v'.
6302 (main): Add options `-l' and `-p'.
6303 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6304 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6306 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6308 2003-03-12 Werner LEMBERG <wl@gnu.org>
6310 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6311 * man/groff_tmac.man: This man page.
6312 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6315 * tmac/X.tmac: Don't load pspic.tmac.
6317 2003-03-11 Werner LEMBERG <wl@gnu.org>
6319 Make variable `pr' local to libdriver/input.cc. Based on a patch
6320 by Bernd Warken <bwarken@mayn.de>.
6322 * src/include/driver.h (pr): Removed.
6324 * src/libs/libdriver/input.cc (pr): New global variable.
6325 (do_file): Deallocate `pr'.
6326 * src/libs/libdriver/printer.cc (pr): Removed.
6328 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6329 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6330 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6331 (main): Don't delete `pr'.
6333 2003-03-10 Werner LEMBERG <wl@gnu.org>
6335 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6336 * tmac/papersize.tmac: New file.
6337 * tmac/troffrc: Include `papersize.tmac'.
6338 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6339 * tmac/an-old.tmac: Set LT to LL by default.
6341 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6342 doc/groff.texinfo: Updated.
6344 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6345 bug which caused all odd iso papers to have wrong dimensions.
6347 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6348 (main) <'p'>: Set `user_paper_width' also.
6349 (ps_printer::media_width, ps_printer::media_height): Use values
6350 given with option `-p'.
6352 2003-03-09 Werner LEMBERG <wl@gnu.org>
6354 * src/include/nonposix.h: Provide default for SET_BINARY.
6356 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6357 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6360 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6361 (main): Treat \r\n as \n.
6363 2003-03-08 Werner LEMBERG <wl@gnu.org>
6365 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6366 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6368 2003-03-07 Werner LEMBERG <wl@gnu.org>
6370 Added support to access more than 256 glyphs in Type 1 fonts.
6372 * src/devices/grops/ps.cc (subencoding): New structure.
6373 (style): Add `sub' field.
6375 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6376 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6379 (ps_printer::set_char): Use `set_subencoding'.
6380 (make_subencoding_name): New function.
6381 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6382 (ps_printer::~ps_printer): Emit subencoding definitions.
6384 * src/devices/grops/psrm.cc (valid_input_table): New array to
6385 properly support EBCDIC.
6386 (white_space): Add `\f'.
6387 (ps_get_line): Change first argument to be of type `string &'.
6388 Updated all callers.
6389 This allows to get lines of arbitrary length.
6390 Use `valid_input_table'.
6391 Remove warning about non-conforming PS line length. This seems
6392 not to be of great importance -- for example, dvips don't emit
6394 (PS_LINE_MAX): Removed.
6395 (matches_comment): Change first argument to be of type `string &'.
6397 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6399 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6400 %AGL_to_unicode, %default_ligatures): New hash tables.
6401 Read all map entries.
6402 Add unencoded characters.
6403 Check for default ligatures if there are no `L' entries.
6404 Print all kern entries.
6405 Print all characters in charset.
6406 * src/utils/afmtodit/afmtodit.man: Updated.
6408 * font/devps/*: Regerated all fonts.
6410 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6411 of characters, just use `.trin'. Otherwise the mapping depends
6412 on the font encoding.
6413 * tmac/ps.tmac: Add `fi' and `fl'.
6414 Improve `Fi' and `Fl'.
6415 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6416 * tmac/Xps.tmac: Fix `em'.
6420 2003-03-04 Werner LEMBERG <wl@gnu.org>
6422 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6425 2003-03-03 Werner LEMBERG <wl@gnu.org>
6427 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6429 * font/devps/generate/textmap: Remove entry `similarequal'.
6430 * font/devps/symbolmap: Updated.
6432 2003-03-02 Werner LEMBERG <wl@gnu.org>
6434 * src/libs/libgroff/font.cc (font::load): Fix error message for
6437 * src/devices/grops/grops.man: Improve documentation of the -b
6440 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6441 `ascii' and `cp1047'.
6443 2003-03-01 Werner LEMBERG <wl@gnu.org>
6445 Document composite glyphs and the `composite' request.
6447 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6449 2003-02-28 Werner LEMBERG <wl@gnu.org>
6451 * font/devdvi/generate/ec.map: Add some more Unicode entities.
6452 * font/devdvi/*EC: Updated.
6454 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6455 * tmac/latin1 (latin1-tr): Undo any previous mapping.
6456 * tmac/troffrc: Load `composite.tmac'.
6457 * tmac/Makefile.sub (NORMALFILES): Updated.
6459 * doc/groff.texinfo (Input Encodings): New section.
6462 2003-02-27 Werner LEMBERG <wl@gnu.org>
6464 * doc/texinfo.tex: New version 2003-02-11.06.
6466 * tmac/doc-common (Dt): Don't emit warning for unknown section.
6467 * tmac/groff_mdoc.man: Fix description of `Dt'.
6469 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
6471 * font/devps/prologue.ps: Fix for included Postscript that does
6472 a setpagedevice -- which is now safely ignored.
6476 * src/devices/grops/ps.cc: Now sets the page size in the generated
6477 document. This is done in two ways: Via a %%-comment for gv and
6478 the like, and via a PageSize and setpagedevice for programs that
6479 understands Postscript proper, like ps2pdf.
6481 * src/devices/grops/ps.h: New broken-flag to avoid page size
6482 definition, if required.
6484 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6486 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6487 Not really necessary due to the fix in prologue.ps, but cleaner:
6488 Such information does not belong in an .eps file.
6490 * doc/Makefile.sub: See doc/Makefile.in.
6492 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
6494 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6495 instead of P1 since the latter is broken in some versions of netpbm.
6496 * configure: Updated.
6498 2003-02-26 Larry Kollar <kollar@alltel.net>
6500 Make man pages more customizable.
6502 * tmac/an-old.tmac (FT): New register holding footer distance from
6504 (HF): New string holding the default heading font.
6505 (TH): Handle registers `IN' and `SN' set on the command line.
6507 (PT, BT): New strings to customize header and footer lines.
6508 (an-header, an-footer): Use them.
6510 * tmac/groff_man.man: Document changes.
6512 * doc/groff.texinfo: Document man changes.
6513 Document Ultrix extensions of man.
6515 2003-02-26 Werner LEMBERG <wl@gnu.org>
6517 * src/roff/troff/input.cc (do_width, do_if_request): Reset
6518 `have_input' after changing back to old environment.
6520 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6521 function up to be defined before first call. This is necessary to
6522 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6524 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6525 the default font directory also. Based on a patch from James
6526 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6527 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6528 * src/utils/afmtodit/afmtodit.man: Document it.
6532 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6534 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
6536 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6537 (GROFF_PNMTOPS_NOSETPAGE): New macro.
6538 * configure.ac: Use it.
6539 * configure: Regenerated.
6540 * Makefile.in: Updated.
6542 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6543 (CLEANADD): Add www.tmac-sed.
6544 (pnmtops_nosetpage): Define default.
6545 (install_data): Handle www.tmac-sed and substitute
6546 @PNMTOPS_NOSETPAGE@.
6547 (stamp-sed): Add www.tmac.
6548 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6549 It now breaks URLs at suitable places.
6550 (www:substring_ok): New register set by...
6551 (www:@test_substring): New macro.
6552 (www:error): New alias to www-error.
6553 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
6555 (URL): Use www:url_breaks.
6556 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
6557 (CDS, CDE): New macros.
6559 2003-02-25 Werner LEMBERG <wl@gnu.org>
6561 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
6564 2003-02-24 Werner LEMBERG <wl@gnu.org>
6566 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
6567 can be negative also.
6569 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
6571 (read_char_table): Avoid negative ascenders.
6572 (output_charset): Add cast.
6573 * font/devlj4/*: Regenerated.
6575 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
6578 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
6579 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
6581 * font/devdvi/*: Regenerated.
6583 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
6584 normal width, while the previously used characters (U+2329 and
6585 U+232A) are classified as wide due to canonical equivalence with the
6586 CJK punctuation characters U+3008 and U+3009.
6588 * font/devutf8/R.proto: Updated.
6589 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
6591 * man/groff_char.man: Simplify handling of table traps by
6592 introducing `start block' and `end block' macros.
6593 (Ns, Ne, 2s, 2e, Ds, De): New macros.
6594 (DL): Make it work with Unix troff also.
6595 Fix code values of `la' and `ra'.
6597 * tmac/dvi.tmac: Define `<>' for CW and CWI.
6599 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
6601 * src/devices/grohtml/post-html.cc (element_list::~element_list):
6602 New destructor, fixing a major memory leak.
6604 2003-02-22 Werner LEMBERG <wl@gnu.org>
6606 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
6607 to be in conformance with Unicode 3.0 and newer.
6609 * font/devlj4/generate/text.map: Add `Eu'.
6610 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
6611 * font/devlj4/S: Regenerated.
6613 * man/groff_char.man: Completely rewritten.
6615 * doc/groff.texinfo: Fix description of request and macro arguments.
6617 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
6621 * src/devices/grohtml/html-table.cc (html_table::~html_table):
6622 Deallocate `columns' list.
6623 * src/devices/grohtml/post-html.cc (char_block::~char_block):
6625 (text_glob::text_glob_html, text_glob::text_glob_special,
6626 text_glob::text_glob_line, text_glob::text_glob_auto_image,
6627 text_glob::text_glob_tag): Avoid memory leaks.
6628 (text_glob::remember_table): Free memory before reassigning.
6630 2003-02-19 Werner LEMBERG <wl@gnu.org>
6632 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
6633 alias `hbar'), the Planck constant over two pi.
6635 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
6636 `+e' for position 34.
6637 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
6638 `u2662' and `u2661'.
6639 * font/devdvi/{MI,S}: Regenerated.
6640 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
6641 * font/devlbp/*: Add `hbar' alias.
6642 * font/devlj4/generate/special.map: Ditto.
6643 * font/devlj4/S: Regenerated.
6644 * font/devps/generate/symbolchars: Add `+e'.
6645 * font/devps/generate/textmap: Fix PS name for `-h'.
6647 * font/devps/symbolmap: Regenerated.
6649 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
6651 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
6653 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
6656 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
6658 * tmac/tty-char.tmac: Add `+e'.
6660 2003-02-17 Werner LEMBERG <wl@gnu.org>
6662 Another round trying to really fix problems with `have_input'.
6664 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
6665 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
6667 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
6668 handling if both foreground and background colors are default.
6670 * doc/groff.texinfo (Debugging): Document .lf differences to
6673 2003-02-16 Werner LEMBERG <wl@gnu.org>
6675 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
6676 null-bytes in created string.
6678 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
6679 alias_macro, lookup_request): Improve warning messages.
6681 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
6683 Free `last_image_filename'.
6685 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
6687 (imageList::createPage, imageList::createImage): Use `free', not
6689 (imageItem::~imageItem): Free `imageName'.
6690 (addRegDef): Use `strsave', not `strdup'.
6691 (get_resolution): Free `pathp'.
6693 2003-02-15 Werner LEMBERG <wl@gnu.org>
6695 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
6698 2003-02-14 Werner LEMBERG <wl@gnu.org>
6700 Add memory management for colors to deallocate unnamed colors
6703 * src/include/color.h (color): New members `free_list' and `next'.
6704 New member functions `new' and `delete'.
6706 * src/libs/libgroff/color.cc: Implement it.
6708 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
6709 for array size of new operator.
6711 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
6712 redundant comparison.
6714 * src/roff/troff/input.cc (word_space_node::reread,
6715 hmotion_node::reread): Avoid warning about unused parameter.
6716 (reset_output_registers): Remove redundant parameter.
6717 (define_color): Undo change 2003-02-12.
6719 * src/roff/troff/reg.h: Updated.
6721 * src/roff/troff/node.cc (troff_output_file::really_print_line,
6722 output_file::put_filename, real_output_file::really_put_filename,
6723 ascii_output_file::really_print_line,
6724 break_char_node::get_hyphen_list): Avoid warning about unused
6726 (suppress_node::tprint): Updated.
6728 * configure.ac: Check declaration for rand() and srand().
6729 * configure: Regenerated.
6731 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
6733 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
6736 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
6737 to avoid compiler warnings.
6739 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
6742 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
6744 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
6746 Updated all callers.
6748 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
6750 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
6751 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
6753 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
6754 Parameter is unused.
6755 (html_printer::add_table_end): Define parameter conditionally.
6756 * src/devices/grohtml/output.cc (simple_output::special): Parameter
6759 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
6760 (lbp_printer::set_char): Last parameter is unused.
6762 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
6764 2003-02-13 Werner LEMBERG <wl@gnu.org>
6766 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
6767 Make \D'f ...' move horizontally again for backwards compatibility.
6768 Replace it with \D'Fg ...' where appropriate to avoid dependency
6769 on horizontal resolution.
6771 * src/roff/troff/input.cc (do_get_long_name): New function.
6772 (get_long_name): Call it.
6774 (read_draw_node): Handle `\D'Fx ...' by calling ...
6775 (read_color_draw_node): New function.
6777 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
6779 Pass it to `do_get_long_name' which is used instead of
6782 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
6783 unnecessary value guard.
6784 (parse_D_command) <'f'>: Add horizontal shift.
6786 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
6787 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6788 (FILL_MAX): Removed.
6790 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6793 2003-02-12 Werner LEMBERG <wl@gnu.org>
6795 * src/roff/troff/input.cc (do_name_test, do_expr_test,
6796 do_zero_width): Push `\n' if closing delimiter is missing.
6798 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
6799 <'F'>: Make \F non-transparent at the beginning of line.
6800 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
6801 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
6804 (define_color): Free color in case of reassignment.
6806 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
6807 @DefescListEnd): Use @Var, not @var.
6810 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
6812 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
6813 `shaded' and `outlined' arrays.
6814 (object_spec::object_spec): Initialize `shaded' and `outlined'.
6815 (graphic_object::set_fill_color, graphic_object::set_outline_color):
6817 (closed_object::set_fill_color): Ditto.
6818 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
6820 (troff_output::reset_color): Use a_delete instead of free.
6821 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
6823 2003-02-11 Werner LEMBERG <wl@gnu.org>
6825 * doc/groff.texinfo: Improve documentation of `ad'.
6826 Document that \D'f...' is dependent on the horizontal resolution.
6827 * man/groff_diff.man: Improve documentation of \D'f...'.
6829 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
6830 compensating \h'...' for \D'f ...' since the latter no longer moves
6832 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
6834 2003-02-10 Werner LEMBERG <wl@gnu.org>
6836 Improve error messages for `x F' (and `F') commands.
6838 * src/include/error.h: Add declaration for
6839 `current_source_filename'.
6840 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
6841 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
6842 parameter for source file string.
6843 Updated all callers.
6845 * src/libs/libdriver/input.cc: Add `current_source_filename'.
6846 (remember_source_filename): New function.
6847 (parse_x_command <'F'>, do_file <'F'>): Use it.
6849 2003-02-09 Werner LEMBERG <wl@gnu.org>
6851 Make grotty not emit warnings about unknown colors more than
6854 * src/devices/grotty/tty.cc: Include `ptable.h'.
6855 (TTY_MAX_COLORS): Removed.
6856 (DEFAULT_COLOR_IDX): Defined to -1.
6857 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
6858 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
6859 Change `tty_colors' to be a ptable.
6860 First arg of `put_color' is now `char'.
6861 New functions `make_rgb_string' and `tty_color'.
6862 (tty_printer::tty_printer): Use `tty_color'.
6863 (tty_printer::color_to_idx): Return value is now `char'.
6866 * src/include/color.h (color): Add `print_color' member function.
6867 * src/libs/libgroff/color.cc (color::print_color): Implement it.
6869 2003-02-08 Werner LEMBERG <wl@gnu.org>
6873 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
6876 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
6877 assume that value has been allocated with `new[]', thus use
6878 `a_delete' for deallocation.
6880 * src/libs/libdriver/input.cc (get_integer_arg,
6881 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
6884 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
6885 * src/libs/libgroff/nametoindex.cc
6886 (character_indexer::named_char_index): Use `new <type>[1]'.
6888 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
6890 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
6891 (split_text): Use `a_delete'.
6893 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
6896 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
6897 harmless memory leak.
6898 (hyphen_trie::read_patterns_file): Initialize `buf'.
6899 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
6900 Initialize `current_fill_color'and `current_glyph_color'.
6901 * src/roff/troff/glyphuni.cc
6902 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
6903 * src/roff/troff/uniuni.cc
6904 (unicode_decompose_init::unicode_decompose_init): Ditto.
6905 * src/roff/troff/uniglyph.cc
6906 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
6908 2003-01-26 Werner LEMBERG <wl@gnu.org>
6910 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
6911 `access' before calling `unlink'.
6912 (do_file): Handle __EMX__.
6914 * src/include/nonposix.h: Handle __EMX__.
6916 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
6917 (fontpath,tmacpath): Use it.
6919 Sorted alphabetically.
6921 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
6923 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
6926 2003-01-27 Werner LEMBERG <wl@gnu.org>
6928 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
6929 New files, copied from gnulib.
6930 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
6931 * configure.ac: Updated.
6932 * configure: Regenerated.
6934 * src/include/config.hin: Regenerated.
6935 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
6936 Don't define `strcasecmp' as `strcmp'.
6937 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
6938 Dont define `strncasecmp' as `strncmp'.
6940 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
6943 2003-01-26 Werner LEMBERG <wl@gnu.org>
6945 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
6948 2003-01-25 Werner LEMBERG <wl@gnu.org>
6950 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
6952 2003-01-24 Werner LEMBERG <wl@gnu.org>
6954 Add US-english hyphenation exceptions (converted from Barbara
6955 Beeton's hyphenation exception log reports which appear irregularly
6958 * tmac/hyphen.us: Updated to latest version.
6959 * tmac/README: Updated.
6960 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
6961 * tmac/troffrc: Load `hyphenex.us'.
6962 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
6963 * doc/groff.texinfo: Updated.
6965 2003-01-23 Werner LEMBERG <wl@gnu.org>
6967 Improve hyphenation slightly. This is a first step in redesigning
6968 the hyphenation algorithm to make it more flexible (e.g. allowing
6969 kerns and ligatures between the hyphenation character and the
6970 following character -- while not used normally in English, other
6971 languages like German would benefit).
6973 * src/roff/troff/env.cc (environment::hyphenate_line): Use
6974 assertion instead of if-clause.
6975 Let `get_hyphen_list' return the number of involved characters in
6976 the hyphenation pattern instead of computing it directly (which
6977 often yields too small values).
6978 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
6979 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
6982 2003-01-22 Werner LEMBERG <wl@gnu.org>
6984 Fixing a bug which caused groff to hang if the hyphenation exception
6985 dictionary tried to grow.
6987 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
6988 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
6989 pointer to dictionary.
6991 2003-01-20 Werner LEMBERG <wl@gnu.org>
6993 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
6994 negative left italic correction.
6995 * src/utils/afmtodit/afmtodit.man: Document it.
6997 * font/devps/generate/Makefile (RFLAG): Add `-m'.
6998 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
6999 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7003 2003-01-16 Werner LEMBERG <wl@gnu.org>
7007 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7009 * src/preproc/refer/refer.man: Mention REFER environment variable.
7011 2003-01-05 Werner LEMBERG <wl@gnu.org>
7013 Similar to \[is], the square root glyph (\[sr]) and the square root
7014 extension glyph (\[radicalex]) are now text symbols. The new
7015 mathematical versions are called \[sqrt] and \[sqrtex],
7018 * font/devX*/S: Regenerated.
7019 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7020 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7021 * font/devdvi/EX, font/devdvi/S: Regenerated.
7022 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7023 * font/devlj4/generate/special.map: Add `sqrt'.
7024 * font/devlj4/S: Regenerated.
7025 * font/devps/generate/textmap: Add `sqrt'.
7026 * font/devps/S, font/devps/symbolmap: Regenerated.
7028 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7029 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7030 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7031 overlap horizontally.
7033 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7034 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7037 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7038 and `sqrtex' are overlapping glyphs.
7040 2003-01-04 Werner LEMBERG <wl@gnu.org>
7042 * font/devdvi/generate/texsy.map: Add `is'.
7043 * font/devps/symbolmap: Regenerated.
7044 * font/devdvi/*TC, MI, S: Regenerated.
7046 * tmac/dvi.tmac: Remove `is'.
7048 2003-01-03 Werner LEMBERG <wl@gnu.org>
7050 `is' is now a text symbol (only relevant for dvi). The math variant
7051 can be accessed with `integral'.
7053 * font/devX*/S: Regenerated.
7054 * font/devdvi/generate/texex.map: Remove `is'.
7055 * font/devdvi/EX: Updated.
7056 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7057 * font/devlj4/generate/special.map: Ditto.
7058 * font/devlj4/S: Regenerated.
7059 * font/devps/generate/textmap: Add `integral'.
7060 * font/devps/S: Regenerated.
7062 * tmac/dvi.tmac: Define `is'.
7064 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7066 * src/preproc/tbl/main.cc (process_format): Fix error message.
7068 2003-01-02 Werner LEMBERG <wl@gnu.org>
7070 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7071 * font/devps/textmap: Fix entries for `ne' and `nc'.
7072 * font/devps/symbolmap: Regenerated.
7074 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7075 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7076 `38', `58', `78', `-+', `|=', `nc', `ne'.
7078 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7079 Use `schar' for `aq'.
7080 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7081 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7082 * tmac/tty.tmac: Add `ne'.
7084 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7085 for fallback glyphs.
7087 2002-12-29 Werner LEMBERG <wl@gnu.org>
7091 * font/devX*/*: Regenerated.
7092 * font/devdvi/generate/ec.map: Remove `eq'.
7093 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7094 Assign `|=' to position 39.
7095 * font/devdvi/*EC, S: Regenerated.
7096 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7097 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7098 Assign `|=' to position 549.
7099 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7101 Add `uni2243' for `|='.
7103 * tmac/ec.tmac: Add `eq'.
7104 * tmac/dvi.tmac: Add `=~'.
7105 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7108 2002-12-21 Werner LEMBERG <wl@gnu.org>
7110 * font/devdvi/generate/tc.map: Remove `**'.
7111 * font/devdvi/*TC: Regenerated.
7112 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7114 * font/devutf8/NOTES: Updated.
7116 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7117 Don't give default parameter to `set_macro'.
7118 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7119 instead of `set_macro'.
7120 (charinfo::setx_macro): Implement it.
7121 (charinfo::set_macro): Don't change `mode'.
7123 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7124 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7125 * tmac/dvi.tmac: Define `!=' with `.schar'.
7127 2002-12-20 Werner LEMBERG <wl@gnu.org>
7129 * font/devX*/S: Regenerated.
7130 * font/devdvi/generate/ec.map: Remove `pl'.
7131 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7132 * font/devdvi/*{TC,EC}: Regenerated.
7133 * font/devhtml/R.proto: Add `-+'.
7134 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7135 * font/devlbp/*: Remove `or'.
7136 * font/devlj4/generate/special.map: Remove `or'.
7137 * font/devlj4/S: Regenerated.
7138 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7139 `seveneighths', `threeeighths'.
7141 Replace `minusplus' with `uni2213'.
7142 * font/devps/symbolmap: Regenerated.
7143 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7146 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7148 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7149 Call glyph_color and fill_color even if tcommand_flag isn't set.
7150 (make_node, node::add_char): Check not ci->is_fallback but
7153 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7154 * tmac/ec.tmac: Add .rchar entry for `f/'.
7155 Don't remove `12', `14', `34'.
7156 Define `pl' to be always roman.
7157 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7158 Define `18', `38', `58', `78'.
7159 * tmac/tty.tmac: Add `-+'.
7160 * tmac/dvi.tmac: Define `f/'.
7161 (dvi-frac): Use `f/'.
7162 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7163 Define `18', `38', `58', `78'.
7165 2002-12-15 Colin Watson <cjwatson@debian.org>
7167 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7169 2002-12-10 Werner LEMBERG <wl@gnu.org>
7171 Add glyph `tno', a textual variant of `no'.
7173 * font/devX*/*: Regenerated.
7174 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7175 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7176 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7177 * font/devdvi/*: Regenerated.
7178 * font/devlbp/*: Add `tno'.
7179 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7180 * font/devlj4/*: Regenerated.
7181 * font/devps/generate/textmap: Replace `no' with `tno'.
7182 * font/devps/generate/symbolchars: Add `no'.
7183 * font/devps/*: Regenerated.
7185 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7187 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7188 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7192 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7193 Add definition for `sd'.
7194 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7196 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7198 2002-12-08 Werner LEMBERG <wl@gnu.org>
7200 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7201 mode to avoid rounding errors.
7202 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7204 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7205 src/roff/troff/troff.man: Improve documentation of -T.
7207 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7209 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7210 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7212 2002-12-06 Werner LEMBERG <wl@gnu.org>
7214 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7215 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7216 Scaling Euro.sansserif glyphs down to have the same height as
7218 Removed unnecessary points; added some extrema.
7220 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7223 2002-12-04 Werner LEMBERG <wl@gnu.org>
7225 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7226 and `Euro.symbol.bold.slanted'.
7227 Improve some glyph offsets and widths.
7228 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7230 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7232 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7235 * tmac/europs.tmac: Updated to new glyph indices.
7236 Use Euro.symbol for font familiy `A'.
7238 * doc/groff.texinfo: Minor improvements.
7240 2002-12-02 Werner LEMBERG <wl@gnu.org>
7242 * font/devdvi/generate.tc.map: s/%O/%0/.
7243 * font/devdvi/*TC: Regenerated.
7245 * src/roff/troff/div.cc (init_div_requests): Sorted.
7247 * tmac/dvi.tmac: Remove `Ye'.
7248 * tmac/ec.tmac: Remove `Ye'.
7249 Add .rchar entry for `de'.
7251 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7252 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7255 2002-11-30 Werner LEMBERG <wl@gnu.org>
7257 Add PS font for various Euro glyphs.
7259 * font/devps/generate/freeeuro.sfd: New master font file for
7261 * font/devps/generate/sfdtopfa.pe: New conversion script for
7263 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7264 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7265 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7267 * font/devps/EURO: Generated from `freeeuro.afm'.
7268 * font/devps/download: Add `freeuro.pfa'.
7269 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7272 * tmac/europs.tmac: New file.
7273 * tmac/ps.tmac: Include `europs.tmac'.
7274 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7276 2002-11-29 Werner LEMBERG <wl@gnu.org>
7278 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7279 * font/devdvi/S: Regenerated.
7280 * font/devhtml/R.proto: Fix `CR' and `ci'.
7282 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7284 * font/devps/symbolmap: Regenerated.
7285 * font/devutf8/R.proto: Fix `CR' and `ci'.
7287 * font/devutf8/NOTES: Updated.
7289 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7292 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7294 * tmac/dvi.tmac: Add `lh' and `rh'.
7295 * tmac/Xps.tmac: Fix `lh' and `rh'.
7296 * tmac/X.tmac: Add `OK'.
7297 * tmac/lj4.tmac: Ditto.
7299 2002-11-24 Werner LEMBERG <wl@gnu.org>
7301 * font/devX*/S: Regenerated.
7302 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7303 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7304 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7305 * font/devdvi/S: Regenerated.
7306 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7307 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7308 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7309 `bracketleftbt', `bracketrighttp', `bracketrightex',
7310 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7311 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7312 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7314 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7315 * font/devutf8/NOTES: Updated.
7316 * font/devlj4/generate/special.map: Add glyph `braceex'.
7317 * font/devlj4/S: Regenerated.
7319 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7321 2002-11-14 Werner LEMBERG <wl@gnu.org>
7323 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7326 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7328 * doc/texinfo.tex: New version from texinfo 4.3.
7329 * doc/groff.texinfo: Updated for texinfo 4.3.
7330 Use @tie{} where appropriate.
7331 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7332 * font/devdvi/generate/tc.map: Remove `rn'.
7333 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7334 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7336 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7337 font/devX75-12/*: Regenerated.
7339 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7340 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7341 Improve definition of `an'.
7342 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7344 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7345 * tmac/X.tmac: Add definition for `or'.
7346 * tmac/Xps.tmac: Undo change 2002-11-05.
7347 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7349 2002-11-11 Werner LEMBERG <wl@gnu.org>
7351 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7354 2002-11-10 Werner LEMBERG <wl@gnu.org>
7356 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7357 defines a glyph which is searched after the check for fonts declared
7358 with `.special' (and before the check for all mounted special
7359 fonts). `fschar' defines a glyph for a particular font which is
7360 searched after the check for fonts declared with `.fspecial' (and
7361 before the check for fonts declared with `.special'). `rfschar'
7362 removes glyphs defined with `fschar'.
7364 * src/roff/troff/token.h (char_mode): New enum.
7365 Declare do_define_character.
7366 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7368 (charinfo::is_fallback): Updated.
7369 (charinfo::is_special): New method.
7370 * src/roff/troff/input.cc (do_define_character): Add and use
7371 optional second parameter used as a prefix for font-specific glyph
7373 (define_character, define_fallback_character): Updated.
7374 (define_special_character): New function.
7375 (init_input_requests): Add `schar'.
7376 (charinfo::charinfo, charinfo::set_macro): Updated.
7377 * src/roff/troff/node.cc: Include `stringclass.h'.
7378 (make_glyph_node): Handle special glyphs defined with `.schar' and
7380 (define_font_special_character, remove_font_special_character): New
7382 (init_node_requests): Sorted.
7383 Add `fschar' and `rfschar'.
7384 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7385 Document new requests.
7387 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7388 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7390 2002-11-08 Werner LEMBERG <wl@gnu.org>
7392 Added new font `SC' (cmtex10) to devdvi.
7394 * devdvi/generate/Makefile (FONTS): Add `SC'.
7396 * devdvi/generate/textex.map: New map file for cmtex.
7398 * devdvi/Makefile.sub (DEVFILES): Updated.
7399 * tmac/dvi.tmac: Add fspecial entries for SC.
7400 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7401 found before `S' since the font position of `SC' is lower due to the
7402 gaps in DESC's `font' line.
7403 * tmac/ec.tmac: Add a `special' call.
7406 * font/devhtml/R.proto: Remove double entry for `ti'.
7407 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7408 * tmac/tty-char.tmac: Remove entry for `bq'.
7409 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7410 * tmac/ec.tmac: Don't remove `aq' glyph.
7411 * tmac/X.tmac: Fix entry for `em'.
7412 Add entries for `fo' and `fc'.
7413 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7415 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7416 documentation of `special' and `fspecial' requests.
7418 2002-11-05 Werner LEMBERG <wl@gnu.org>
7420 * font/devascii/R.proto, font/devcp1047/R.proto,
7421 font/devlatin1/R.proto: Remove entry for `.i'.
7422 * font/devdvi/generate/textt.map: Add entry for `ad'.
7423 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7424 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7425 We need this for getting kerning values to compose `/l' and `/L'.
7426 * font/devdvi: Regenerated font definition files for CM fonts.
7427 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7428 * font/devutf8/R.proto: Ditto.
7429 Remove double entry for `ti'.
7431 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7432 for (groff) ligatures, `la', and `ra'.
7433 Add "'C", "'c", `IJ', and `ij'.
7434 Remove double entry for `ti'.
7435 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7437 Add "'C", "'c", `IJ', and `ij'.
7438 Fix entries for (groff) ligatures, `la', and `ra'.
7440 * tmac/ps.tmac (ps-achar): New macro.
7441 Define "'c" and "'C".
7442 * tmac/tty.tmac: Add entry for `.i'.
7443 * tmac/X.tmac (X-achar): New macro.
7444 Define "'c", "'C", and `:Y'.
7445 Add entries for `IJ' and `ij'.
7446 * tmac/Xps.tmac (Xps-achar): New macro.
7447 Define "'c" and "'C".
7448 Add entries for `IJ' and `ij'.
7449 * tmac/lbp.tmac (lbp-achar): New macro.
7450 Add fallback characters for all groff ligatures and many other
7452 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7453 Add entries for `/l' and `/L'.
7454 Define "'c" and "'C".
7455 Add entries for `IJ' and `ij'.
7457 2002-11-02 Larry Kollar <kollar@alltel.net>
7459 * PROBLEMS: Document how to solve Mac OS X compilation problems.
7461 2002-11-02 Werner LEMBERG <wl@gnu.org>
7463 Adding support for composite glyphs: \[xxx yyy ...] and the
7464 `composite' request.
7466 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7467 to Unicode-based glyph names.
7468 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7469 glyph names to groff glyph names.
7470 * src/roff/troff/uniuni.cc: New file for canonically decomposing
7471 Unicode-based glyph names.
7472 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7473 for handling Unicode glyph names.
7474 * src/roff/troff/input.cc: Include unicode.h.
7475 (composite_glyph_name): New function.
7476 (token::next) <'['>: Handle Unicode glyph names and composite
7478 (composite_dictionary): New dictionary for the `composite' request.
7479 (composite_request): Implement `composite' request.
7480 (init_input_requests): Add `composite'.
7481 Alphabetically sorted.
7482 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7484 (init_env_requests): Alphabetically sorted.
7485 Removed `tas' and `tar' (already commented out).
7486 * src/roff/troff/Makefile.sub: Updated.
7488 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
7490 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7493 2002-10-29 Werner LEMBERG <wl@gnu.org>
7495 Fix computation of .trunc register. Additionally, its value (and
7496 the value of the .ne register) is now always set before entering the
7499 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7500 `needed_space' before calling `space'.
7501 (top_level_diversion::space): Remove special code for 'sp before the
7503 Call `begin_page' with the discarded space as a parameter.
7504 (top_level_diversion::begin_page): Add optional parameter to set
7506 * src/roff/troff/div.h: Updated.
7508 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7511 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7512 (LP): Remove superfluous call to `br'.
7513 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7514 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7516 2002-10-26 Werner LEMBERG <wl@gnu.org>
7518 * tmac/doc-ditroff: Remove useless switch/variable -rC.
7519 (doc-setup-header): Don't set page register `%'.
7520 * tmac/doc-nroff: Remove variable `C'.
7521 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7522 (doc-setup-header): Don't set page register `%'.
7524 * tmac/doc-common (doc-header): Call `ns'.
7525 (doc-paragraph): Protect .sp with .br so that it survives traps
7526 possibly set by the user.
7527 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7529 * tmac/doc*: Replace ' with . for consistency if no effect.
7531 2002-10-26 Werner LEMBERG <wl@gnu.org>
7533 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7534 so that it survives traps possibly set by the user.
7536 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7537 (troff_output_file::set_font): Call flush_tbuf if necessary.
7538 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7539 flush_tbuf and do_motion only if necessary.
7540 (troff_output_file::start_special,
7541 troff_output_file::put_char_width, troff_output_file::put_char,
7542 troff_output_file::draw): Updated.
7543 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7544 vmotion_node::tprint): Undo change 2002-10-23.
7546 2002-10-25 Werner LEMBERG <wl@gnu.org>
7548 * tmac/www.tmac (DC): Fix case of overlapping images.
7550 2002-10-23 Werner LEMBERG <wl@gnu.org>
7552 * src/roff/troff/node.cc (troff_output_file::fill_color,
7553 troff_output_file::glyph_color): Set current color before testing
7555 (troff_output_file::put_char_width, troff_output_file::put_char,
7556 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
7558 (troff_output_file::file_color, troff_output_file::glyph_color):
7560 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7561 vmotion_node::tprint): Move first, then call fill_color.
7563 2002-10-20 Werner LEMBERG <wl@gnu.org>
7565 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
7566 possible to use multiple main macro packages.
7568 2002-10-19 Werner LEMBERG <wl@gnu.org>
7570 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
7571 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
7572 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
7574 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
7575 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
7577 2002-10-16 Werner LEMBERG <wl@gnu.org>
7579 * NEWS, doc/webpage.ms: Updated.
7581 2002-10-14 Werner LEMBERG <wl@gnu.org>
7583 * src/roff/troff/node.cc (troff_output_file::put_char_width,
7584 troff_output_file::put_char, troff_output_file::fill_color,
7585 troff_output_file::glyph_color): Handle case where color pointer
7588 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
7590 Add the new -r option to grotty. It is similar to the -i option
7591 except it tells grotty(1) to use the `reverse video' attribute to
7592 render italic fonts.
7594 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
7595 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
7596 (tty_printer::make_underline, tty_printer::put_color,
7597 tty_printer::end_page): Use it.
7598 (main): Add -r switch.
7600 * src/devices/grotty/grotty.man: Document it.
7602 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
7604 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
7605 cast to `unsigned char' to properly read patterns with 8bit
7608 2002-10-08 Werner LEMBERG <wl@gnu.org>
7610 * REVISION: Increased to 2.
7612 Copyright 2002, 2003, 2004, 2005, 2006, 2007
7613 Free Software Foundation, Inc.
7615 Copying and distribution of this file, with or without modification,
7616 are permitted in any medium without royalty provided the copyright
7617 notice and this notice are preserved.
7620 version-control: never