|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/roff/troff/input.cc (usage): Updated.
* NEWS, doc/groff.texinfo: Updated.
* src/libs/libgroff/searchpath.cpp
(search_path::open_file_cautious): New function which also handles
`-' as stdin and stdout depending on the access mode.
* src/include/searchpath.h (search_path): Updated.
* src/devices/grops/ps.cpp (main): Handle new `-I' switch.
* src/devices/grops/ps.h: Include `searchpath.h'.
* src/devices/grops/psrm.cpp (resource_manager::supply_resource):
Open resource file with `include_search_path.open_file_cautious'.
* src/devices/grops/grops.man: Document new `-I' switch.
* src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
(main), src/devices/grolj4/lj4.cpp (main),
src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
* src/preproc/soelim/soelim.cpp (include_list_length, include_list):
Replaced with...
(include_search_path): New global variable.
(include_path_append): Removed.
(main): Use `include_search_path.command_line_dir' to handle `-I'.
(do_file): Simplify, using new
`include_search_path.open_file_cautious'.
* src/roff/groff/groff.cpp (print_commands): Accept file handle as
parameter.
(main): Pass arguments to `-I' to both troff and devices.
Improve handling of `-V'.
* src/roff/groff/groff.man: Document changes to -I and -V.
* src/roff/troff/input.cpp (include_search_path): New global
variable.
(next_file, source, ps_bbox_request, transparent_file,
process_input_file): Use new
`include_search_path.open_file_cautious'.
(main) Handle `-I' switch.
* src/roff/troff/node.cpp (troff_output_file::really_copy_file):
Use new `include_search_path.open_file_cautious'.
* src/roff/troff/node.h: New extern symbol `include_search_path'.
* src/roff/troff/troff.man: Document new `-I' switch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tmac/doc-common (Dt): Don't emit warning for unknown section.
* tmac/groff_mdoc.man: Fix description of `Dt'.
* font/devps/prologue.ps: Fix for included Postscript that does
a setpagedevice -- which is now safely ignored.
* NEWS: Updated.
* src/devices/grops/ps.cc: Now sets the page size in the generated
document. This is done in two ways: Via a %%-comment for gv and
the like, and via a PageSize and setpagedevice for programs that
understands Postscript proper, like ps2pdf.
* src/devices/grops/ps.h: New broken-flag to avoid page size
definition, if required.
* src/devices/grops/grops.man: New broken-flag 16 mentioned.
* doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
Not really necessary due to the fix in prologue.ps, but cleaner:
Such information does not belong in an .eps file.
* doc/Makefile.sub: See doc/Makefile.in.
* aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
instead of P1 since the latter is broken in some versions of netpbm.
* configure: Updated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Complete revision of color support:
Adapt programs to the new libdriver/input.cc.
Color spaces are no longer converted to RGB but transferred as-is
in the troff intermediate output format.
Handle default color gracefully. troff now supports a `default'
color (which can't be changed).
grops will now use the proper color space functions if available.
Update pic.
Note that currently grohtml doesn't handle colors properly. This
has to be fixed.
* src/libgroff/itoa.c (UINT_DIGITS): New macro.
(ui_to_a): New function.
* src/include/lib.h: Updated.
* src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
(color): Simplified; removed all `double' members and methods.
A new array `components' now holds the color parameters.
(color::is_default, color::get_components): New methods.
(color::operator==, color:operator!=): New.
(Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
to make access to the `components' array more comprehensible.
* src/libgroff/color.cc: Implement new color support.
(atoh): Small fixes.
(color::read_encoding): Simplified for new troff intermediate color
output format.
(default_color): New global variable.
* src/roff/troff/input.cc (default_symbol): New global variable.
(lookup_color): Use it.
(default_black): Removed.
(do_glyph_color, do_fill_color): Simplified.
(define_color): Handle default color.
Improve warnings.
(do_if_request): Handle default color.
* src/roff/troff/env.cc (environment::environment): Initialize
colors with `default_color'.
* src/roff/troff/node.cc (troff_output_file::put): Add method
for `unsigned int'.
(troff_output_file::hex): Removed.
(troff_output_file::fill_color, troff_output_file::glyph_color):
Updated to include/color.h and libdriver/input.cc.
* src/preproc/pic/object.cc (draw_arrow): New parameter to set
fill color properly (identically to the outline color). \D'f...'
doesn't work any more.
All function calls to it updated.
* src/devices/grohtml/post-html.cc (html_printer::do_body, main):
Updated.
* src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
Updated.
* src/devices/grops/ps.cc (ps_output::put_color): New method.
(ps_printer::sbuf_color): Make a real member instead of pointer.
(ps_printer::fill_color, ps_printer::output_color): Removed.
(ps_printer::ps_printer): Updated.
(ps_printer::set_char): Ditto.
(ps_printer::set_color): Use various color schemes.
Use `put_color' method.
(ps_printer::flush_sbuf): Don't set color.
(ps_printer::fill_path): Take `environment' as parameter.
Simplify color handling.
(ps_printer::set_line_thickness): Renamed to ...
(ps_printer::set_line_thickness_and_color): This (and updated).
(ps_printer::set_color): Change second parameter from `complete'
to `fill' which better describes what it does.
(ps_printer::draw): Call `flush_sbuf' to output graphic commands
and text in the right order.
Updated.
Remove branches for `f' and `F'; this is handled by
libdriver/input.cc.
* src/devices/grops/ps.h: Updated.
* font/devps/prologue (FL): Redefined
({F,C}r,k,g: New color functions (with and without filling).
* doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
* man/groff_diff.man, man/groff.man, man/groff_out.man,
doc/groff.texinfo, NEWS: Updated.
* src/libs/libdriver/input.cc: Completely rewritten. See comments
in this file for what has been changed.
|