| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* man/roff.man: Minor fixes.
* src/roff/troff/troff.man: Some reordering.
* tmac/an-old.tmac: Add dummy macros for equation support.
|
|
|
|
|
|
| |
* tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
man pages.
* tmac/groff_man.man: Small improvements.
|
|
|
|
| |
* man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
device is already known at start-up.
Make all names of internal macros/registers/strings lowercase, and
prepend `www-'.
Other minor changes.
* src/roff/troff/troff.man: Add preprocessor string at BOF.
Implement option `-b' in grohtml to set the HTML background colour.
* src/devices/grohtml/post-html.cc (default_background): New global
variable.
(html_printer::html_printer): Initialize `background' to
`default_background'.
(main): Implement option `-b'.
(usage): Updated.
* src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
of `-b' option.
* src/devices/grohtml/grohtml.man: Updated.
* doc/Makefile (.ms.html): Use `-b'.
* tmac/html.tmac: Don't set background color.
Add new grohtml tag `.html-tl'.
* src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
member variable.
(title_desc::title_desc): Updated.
(html_printer::troff_tag): Handle `.html-tl'.
(html_printer::write_title): Use `with_h1'.
* tmac/www.tmac (www-end-nowhere): New auxiliary macro.
(HTML-TL): New macro.
Add support for unordered lists in HTML.
* tmac/www.tmac (www-level): New auxiliary register.
(www-level1, www-level2, www-level3): New auxiliary strings.
(www-push-level, www-pop-level): New auxiliary macros
(UL-BEGIN, UL-END, LI): User macros for unordered lists.
Miscellaneous.
* src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
(DEFAULT_VERTICAL_OFFSET): Removed.
(IMAGE_BOARDER_PIXELS): Set to 0.
(A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
(vertical_offset): Initialize with 0.
(gsPaper): New global variable.
(get_resolution): Scan for and return unsigned int.
(get_papersize): New function to get paper length from devps/DESC.
(determine_vertical_offset): New function.
(createAllPages): Produce gray-level images and use proper page
length.
(createImage): Use `-quiet' option of pnmcrop.
(addZ): Fix passing of `-Z'.
(scanArguments): Fix handling of `-o'.
(main): Call `determine_vertical_offset'.
* src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
code for `l'.
* src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
* src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
glyph descenders properly.
* doc/homepage.ms: Include `gnubw.eps'.
* doc/Makefile (gnubw.eps): New rule.
(homepage.html): Depend on `gnubw.eps'.
|
|
|
|
|
| |
Do some syntax cleanup.
* tmac/groff_mdoc.man: Updated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/roff/troff/env.h (environment): New member
`continued_input_trap'.
Make `do_input_trap' a friend function instead of `input_trap'.
* src/roff/troff/env.cc (environment::environment,
environment::copy): Updated.
(environment::newline): Implement it.
(do_input_trap): New function.
(input_trap): Call `do_input_trap'.
(input_trap_continued): New function.
(init_env_requests): Updated.
* src/roff/troff/TODO: Updated.
* tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
`.it'.
* src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
|
|
|
|
|
|
|
|
|
|
| |
* tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
* MANIFEST: New file.
* src/preproc/grn/grn.man: Updated.
* src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
(DBRead): Use it.
|
| |
|
|
|
|
| |
* tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
longer used.
* src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
order of initializers.
* NEWS: Updated.
* doc/groff.texinfo: Fix documentation of \O.
* src/devices/grohtml/html-text.cc (html_text::do_indent,
html_text::do_table, html_text::do_emittext, html_text::do_para):
Use `const' for first argument.
(html_text::do_table): Use cast.
* src/devices/grohtml/html-text.h: Updated.
* src/devices/grohtml/output.cc (simple_output::put_string): Add
method for `const string &s'.
* src/devices/grohtml/html.h: Updated.
* src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
(ANCHOR_TEMPLATE): Modified.
(manufacture_headings): New global variable to handle `-h' option.
(is_subsection): Removed.
(char_buffer::add_string): Add `const' to first argument.
Protect against invalid string argument.
Add method for `const string &s'.
(text_glob): Completely redesigned.
(page): Use `const' for strings and remove string length variable.
(page::add_html): Removed.
(page::add_end_encode): New member function.
(to_unicode): Moved upwards.
(title_desc, header_desc): Updated.
(header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
definition.
(html_printer::is_bold, html_printer::make_bold): New member
functions.
(html_printer::end_of_line): Updated.
(generate_img_src, html_printer::do_auto_image,
html_printer::do_title, html_printer::write_header,
html_printer::determine_header_level, html_printer::do_heading,
html_printer::do_linelength, html_printer::do_pageoffset,
html_printer::do_indentation, html_printer::do_tempindent,
html_printer::do_indentedparagraph, html_printer::do_break,
html_printer::flush_sbuf, get_html_translation,
html_printer::begin_page, html_printer::special): Rewritten to get
rid of static string length limit.
(html_printer::troff_tag): Added `.no-auto-rule'.
(html_printer::flush_globs): Small fix.
(html_printer::determine_space): Don't compute `space_width'.
(html_printer::translate_to_html): Renamed to ...
(html_printer::emit_html): This (with updates).
(html_printer::write_header): Implement `-h' option.
(html_printer::draw): Remove commented-out code. Handle `F'
command.
(html_printer::add_char_to_sbuf): Removed.
(html_printer::add_to_sbuf): Rewritten.
(html_printer::sbuf_continuation): Fixed.
(html_printer::seen_backwards_escape, reverse,
html_printer::remove_last_char_from_sbuf): Removed.
(char_translate_to_html, str_translate_to_html): Removed.
(html_printer::overstrike): New function member.
(html_printer::set_char): Use it.
(html_printer::do_body): New function member.
(html_printer::~html_printer): Use it.
(main): Handle `-h' option.
(usage): Updated.
* src/devices/grohtml/grohtml.man: Document -h switch.
* src/preproc/html/pre-html.cc: Include searchpath.h
Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
(get_resolution): New function.
(checkImageDir): Use `0777' permissions in mkdir()
(write_start_image): Rewritten to use `\O[5...]'.
(createImage, generateImages): Updated.
(main): Handle `F' and `h' options.
Use `get_resolution'.
* src/roff/troff/input.cc (begin, end, image): Removed.
(do_suppress): Take parameter.
Handle modified syntax of `\O'.
(token::next): Updated.
(init_markup_requests): Removed.
(main): Updated.
* src/roff/troff/div.h: Add declaration for begin_page().
* tmac/color-html.tmac: Removed. Contents moved to...
* tmac/html.tmac: Here. Set background color.
* tmac/color.tmac: Removed. Contents moved to...
* tmac/ps.tmac: Here.
* tmac/www.tmac: Remove the title command when generating images
for html.
(NO_AUTO_RULE): New macro.
(HTML_DO_IMAGE): Use revised `\O' escapes.
* tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
|
|
|
|
|
|
|
|
|
| |
stdlib.h.
* src/roff/troff/input.cc (read_draw_node): Emit error message if
more than one argument to \D'f ...'.
* tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
|
| |
|
|
|
|
|
|
| |
the macro package is loaded only once.
* tmac/groff_man.man: Minor cosmetic fix.
|
|
|
|
| |
tmac/groff_www.man: s/mwww/www/.
|
|
|
|
|
|
|
|
|
|
|
| |
* configure: Regenerated.
* win32-diffs: Updated.
* tmac/groff_mwww.tmac: Renamed to ...
* tmac/groff_www.tmac: This.
* tmac/mwww.tmac: Removed.
* NEWS, tmac/Makefile.sub: Updated.
* doc/groff.texinfo: Improve documentation of the `\v' escape.
Fix explanation of `\D' and `rt'.
|
|
|
|
|
|
|
| |
width.
* doc/groff.texinfo: Improve documentation of `ne' request. Other
minor fixes.
* NEWS: Small fix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* man/groff_diff.man: This. Updated.
* man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
* src/preproc/html/pushbackbuffer.cc: Renamed to ...
* src/preproc/html/pushback.cc: This. Updated.
* src/preproc/html/pushbackbuffer.h: Renamed to ...
* src/preproc/html/pushback.h: This.
* src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
Updated.
* src/libs/libgroff/htmlindicate.cc: Renamed to ...
* src/libs/libgroff/htmlhint.cc: This.
* src/libs/libgroff/Makefile.sub: Updated.
* tmac/an-old.tmac (an-end): Fix page length.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* man/Makefile.sub: Include groff_differences.man.
* VERSION: Set to 1.18.
* REVISION: Set to 0.
* src/roff/troff/input.cc (do_define_macro): Allow whitespace before
the second dot (or ending macro name) to end a macro.
* doc/groff.texinfo: Doc fix.
* tmac/doc-common (doc-header): Handle very long document titles
better.
* tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
|
|
|
|
|
|
|
| |
* man/groff_differences.man: New file.
* NEWS: Updated.
* tmac/an-old.tmac (TS, TE): New macros for table support.
|
|
|
|
| |
being handled as end-of-sentence characters,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`suppress_newline_flag' and `seen_escape'.
(file_iterator::next_file): Updated.
(file_iterator::fill): Use it.
(string_iterator): New member `suppress_newline_flag'.
(string_iterator::fill): Set it.
(get_color_element): Use MAX_COLOR_VAL.
* src/roff/troff/env.cc (environment): Remove `need_eol'.
(no_fill): Don't set `env->ignore_next_eol'.
(environment::newline): Handle `eol' tag properly.
Emit `eol.ce'.
(environment::add_html_tag): Set `env->ignore_next_eol'.
Don't handle `.ce'.
* src/roff/troff/env.h (environment): Updated.
* src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
member function.
(html_printer::outstanding_eol): New member function.
(html_printer::do_title): Use new functions.
(html_printer::troff_tag): Test `id_eol_ce'.
* tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
files work with -C also.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
changes are based on a major patch provided by Gaius Mulley
<gaius@glam.ac.uk>.
New request: `defcolor', supporting rgb, cmy, cmyk, and gray
definitions with both hex values and fractions.
New escapes: \m and \M for drawing and background color,
respectively. This corresponds to the troff output commands `m'
and `DF'.
groff and troff accept command line switch `-c' to disable color
output (which is automatically disabled in compatibility mode).
New scaling indicator `f' for fractions (1f = 65536u).
New conditional operator `m' to test for defined colors with `if'
and `ie'.
New keywords `color' (or `colour', `colored', `coloured'), `outline'
(or `outlined'), and `shaded' added to pic.
* src/include/color.h: New file.
* src/include/driver.h: Include it.
* src/include/printer.h: Include color.h.
(environment): New members `col' and `fill'.
(printer): Remove `adjust_arc_center' member function.
* src/include/Makefile.sub: Updated.
* src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
`env.fill'.
Handle `m' and `DF' troff commands.
* src/libs/libgroff/color.cc: New file.
* src/libs/libgroff/Makefile.sub: Updated.
* src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
(stop): Removed.
(createImage): Fix computation of `y2'.
Use `pnmcrop' also.
(buffer::write_file_html): Remove calls to `stop'.
* src/preproc/pic/common.h (common_output): New abstract function
members `set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
(object_spec): Add members `shaded' and `outlined'.
* src/preproc/pic/output.h (output): `command' is now abstract.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
* src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
`outline[d]', and `shaded'.
* src/preproc/pic/object.cc (output::command): Removed.
(output::set_location):Moved to output.h.
(graphic_object): Add protected members `outline_color' and
`color_fill'.
Add member functions `set_outline_color', `get_outline_color', and
`set_fill_color'.
(closed_object): Add member function `set_fill_color'.
Add member `color_fill'.
(graphic_object::print_text): Use `out->set_color' and
`out->reset_color'.
(box_object::print, ellipse_object::print, circle_object::print,
line_object::print, spline_object::print, arc_object::print): Ditto.
(object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
* src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
`SHADED', making them `%left'.
Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
* src/preproc/pic/tex.cc (tex_output): New dummy function members
`set_color', `reset_color', `get_last_filled', and
`get_outline_color'.
* src/preproc/pic/troff.cc (simple_output): New abstract function
members `set_color', `reset_color', and `get_last_filled'.
(simple_output::polygon, simple_output::circle,
simple_output::ellipse): Use `get_last_filled'.
(troff_output): New members `last_filled' and `last_outlined'.
New function members `set_color', `reset_color', `get_last_filled',
and `get_outline_color'.
(troff_output::finish_picture): Use `reset_color'.
(troff_output::set_fill): Test `last_filled'.
* src/preproc/pic/pic.man: Updated.
* src/roff/groff/groff.cc (main): Implement `-c' option.
(synopsis, help): Updated.
src/roff/groff/groff.man: Updated.
* src/roff/troff/troff.h: Include color.h.
(warning_type): Add WARN_COLOR.
* src/roff/troff/env.h (environment): New members
`{cur,prev}_{glyph,fill}_color'.
New member functions `get_{prev_,}{glyph,fill}_color'.
* src/roff/troff/env.cc: Initialize and implement them.
* src/roff/troff/input.cc: New global variable `disable_color_flag'.
Replace `NULL' with `0' everywhere for consistency.
(lookup_color, default_black, do_glyph_color, do_fill_color,
get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
define_color): New functions.
(token::next): Implement \M and \m escapes.
(do_if_request): Implement `m' operator.
(usage): Updated.
(main): Implement `-c' option.
(init_markup_requests): Add `defcolor' request.
(warning_table): Add `color' warning.
* src/roff/troff/node.h (glyph_color_node, fill_color_node): New
classes.
* src/roff/troff/node.cc (troff_output_file): New members
`current_{page,glyph}color'. New member functions `put_hex',
`glyph_color', and `fill_color'.
(glyph_color_node::*, fill_color_node::*): Implement it.
* src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
(parse_term): Add support for `f'.
* src/roff/troff/troff.man: Updated.
* src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
entry for `F'.
* src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
* src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
* src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
(tag_definition): Use `void *' for arg1.
(html_text): New member functions `do_color' and `done_color'.
Use `void *' for second parameter of `push_para' member function.
New `push_para' member function with a single parameter.
Use `char *' for parameter of `issue_table_begin' member funtion.
New `issue_color_begin' member function.
* src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
COLOR_TAG.
(html_text::issue_color_begin): New function.
(html_text::issue_table_begin): Use `char *' for parameter.
(html_text::start_tag, html_text::shutdown,
html_text::check_emit_text): Updated.
(html_text::push_para): Use `void *' for second parameter.
Add same function with only one parameter.
(html_text::do_*): Updated.
(html_text::do_color, html_text::done_color): New functions.
* src/devices/grohtml/post-html.cc (style): New member `col'.
Mew member `style' with 6 parameters.
(style::style, style::operator==): Updated.
(html_printer::do_font): Use it.
(html_printer::draw): Add dummy entry for `F'.
(html_printer::set_char): Updated.
* src/devices/grohtml/grohtml.man: Updated.
* src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
trailing zeroes removed.
(ps_printer): New members `sbuf_color', `fill_color', and
`output_color'.
Removed member `fill'.
New member function `set_color'.
(ps_printer::ps_printer, ps_printer::set_char): Updated.
(ps_printer::flush_sbuf, ps_printer::set_line_thickness,
ps_printer::fill_path, ps_printer::draw): Use `set_color'.
* tmac/color-html.tmac, tmac/color.tmac: New files.
* tmac/troffrc: Include them.
* tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
* tmac/Makefile.sub: Updated.
* NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
man/groff.man: Updated.
* font/devps/prologue.ps: Define FC and CO functions.
Fix incorrect cropping of images and incorrect handling of special
characters. Fix handling of file names in \O.
* src/include/geometry.h: New file.
* src/libs/libgroff/geometry.cc: New file.
* src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
to `geometry.cc'.
* src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
initial spaces.
(do_suppress): Updated.
* src/roff/troff/node.cc: Include geometry.h.
(troff_output_file::flush_tbuf): Fixed parameters to
`check_output_limits'.
(troff_output_file::check_charinfo): Ditto.
(troff_output_file::determine_line_limits): Add support for `Da'
and `Dl' commands.
* src/devices/grohtml/post-html.cc (str_translate_to_html):
Add new parameter `is_special' to decode special characters from
escape sequences.
(html_printer::do_title, html_printer::do_heading,
html_printer::do_indentedparagraph,
html_printer::translate_to_html, html_printer::special): Updated.
* Makefile.sub (DISTCLEANFILES): Add stamp-h.
Fix entry for config.h.
* test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
* tmac/troffrc: Translate nonbreakable space character to `\~'.
* src/preproc/eqn/eqn.man: Document -d command line option.
|
|
|
|
|
|
| |
* tmac/s.tmac, contrib/mm/m.tmac: Enable all warnings only if no -W
or -w option is given on the command line (or rather, if only the
default warnings are set).
|
|
|
|
| |
tmac/groff_mdoc.man: Don't use .ne for TTY devices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/roff/troff/input.cc (token::next): Return
TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
compatibility mode.
(token::description): Updated.
(process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
(token::add_to_node_list, token::process): Ignore
TOKEN_TRANSPARENT_ESCAPE.
* tmac/an-old.tmac: Fix `S' string.
* src/roff/troff/troff.man: Don't use .ne for TTY devices.
|
|
|
|
| |
* tmac/doc-common, tmac/groff_tmac.man: Updated.
|
|
|
|
|
| |
argument.
* tmac/groff_tmac.man: Updated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/libs/libgroff/mkstemp.cc: New file.
* src/libs/libgroff/mksdir.cc: New file.
* src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
(xtmpfile) [!HAVE_MKSTEMP]: Removed.
* src/libs/libgroff/Makefile.sub: Updated.
* src/include/lib.h: Add mksdir() prototype.
* src/include/posix.h: Define S_IXUSR if not yet defined.
* src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
(createAllPages): Use mksdir() instead of current code.
* src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
(main): [!HAVE_MKSTEMP]: Removed.
* aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
(GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
macros.
* configure.ac: Add tests for stdint.h, sys/time.h, and
gettimeofday().
Call new GROFF_xxx macros.
* configure: Regenerated.
* Makefile.in: Comments updated.
|
| |
|
|
|
|
|
|
| |
* tmac/groff_mdoc.man: Document new -width and -column syntax.
Some other minor fixes.
* tmac/an-old.tmac: Add `AT' and `UC' macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge -xwidth into -width. Add -xwidth functionality to -column
also.
* tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
avoid warning.
(doc-do-Bl-args): Merge -xwidth code with -width. Test whether
string immediately following a leading dot starts with a valid mdoc
argument.
Add similar code to the -column branch.
(doc-Bl-usage): Updated.
* groff_mdoc.man: s/-xwidth/-width/.
2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
* src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
running into centered or non-formatted text.
2001-07-11 Werner LEMBERG <wl@gnu.org>
Introduce short and long prefixes to have the selection at run-time
whether there is a 8+3 limit for names of temporary files.
* src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
(TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
(tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
variables.
(temp_init): New global structure to initialize above three
variables.
(xtmptemplate): Use two parameters for long and short prefix.
Simplify code use above three variables.
(xtmpfile): Use long and short prefixes as parameters.
* src/include/lib.h: Updated.
* src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
with ...
({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
(createAllPages, makeTempFiles): Updated.
2001-07-09 Werner LEMBERG <wl@gnu.org>
* REVISION: Increased to 3.
|
|
|
|
|
| |
Fix synopsis.
* tmac/groff_mdoc.man: Fix synopsis.
|
|
|
|
| |
Restore `doc-Pa-font'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/libs/libgroff/maxfilename.cc: Here.
s/dir_name_max/file_name_max/.
Add copyright.
* src/include/lib.h: Add file_name_max.
* src/utils/indxbib/indxbib.cc: Updated.
* src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
Updated.
* src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
as empty.
(xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
* src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
REGION_TEMPLATE): New macros.
(createAllPages, makeTempFiles): Use them.
Include `nonposix.h'.
(html_system): New function.
(createAllPages, createImage): Use it.
Use EXE_EXT.
* tmac/www.tmac: Fix typos.
|
|
|
|
|
|
|
|
|
|
| |
device is html.
(URL, FTP, MAILTO): Disable hyphenation of actual URL with `%'.
* tmac/groff_mwww.man, NEWS: Updated.
* tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
image location.
|
|
|
|
|
| |
doc-display-ps-stack): Implement font and font size stack for
displays.
|
|
|
|
|
|
|
| |
* *.man: Don't use `s' in preprocessor string -- it doesn't exist.
Updated/added copyright.
Moved Emacs's local variable to identify nroff mode to the end of
the file; add local variable if missing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
subdirectory to place the images in.
Change syntax from \Ox to \O[x].
* src/devices/grohtml/post-html.cc (main): Add options.
(usage): Updated.
* src/preproc/html/pre-html.cc: Include `stdarg.h'.
Use `NULL' instead of `0' for null string pointers.
(MAX_RETRIES): New macro.
(lengthOfintToStr, intToStr, make_message): New functions.
(makeFileName): Make function static.
Implement -D and -I options.
(checkImageDir): New function.
(write_end_image, write_start_image): Use new syntax of O.
(createAllPages, removeAllPages): Implement -D and -I options. Use
make_message().
(createImage): Use make_message().
(addps4html): Add guard for malloc().
(usage, scanArguments): Updated.
(makeTempFiles): Use mkstemp().
(removeTempFiles): Use unlink().
(findPrefix): Add guard for malloc().
(main): Updated.
* src/roff/troff/input.cc (get_delim_file_name): New function to
parse O.
(do_suppress): Updated to parse new syntax.
* src/devices/grohtml/grohtml.man: Updated.
* tmac/www.tmac: Updated to new syntax.
* NEWS: Updated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`am' with the difference that compatibility mode is saved on entry,
switched off during macro execution, and restored on exit.
* src/roff/troff/input.h: Added two new special characters
(COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
* src/roff/troff/input.cc (input_iterator): Added two member
functions `save_compatible_flag' and `get_compatible_flag'.
(input_stack): Ditto.
(string_iterator): Ditto. Also add private member
`saved_compatible_flag'.
(token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
(calling_mode): New enumeration.
(do_define_macro): Use it. Insert COMPATIBLE_SAVE and
COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
(define_macro, define_indirect_macro, append_macro, ignore): Use
`calling_mode'.
(define_nocomp_macro, append_nocomp_macro): New functions.
(init_input_requests): Updated.
(do_request): Rename local variable `saved_compatible_flag' to
`old_compatible_flag'.
* NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
* tmac/an-old.tmac: Use `de1' instead of `de' request for all
public and trap-invoked macros. As a consequence, the man macros
work in compatibility mode also.
* Makefile.in: Use $(mandir).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/roff/troff/env.cc (environment::do_break): Add parameter
`spread'.
(do_break_request): New function (was `break_request').
(break_request): Calls `do_break_request'.
(break_spread_request): New; calls `do_break_request'.
(init_env_requests): Updated.
* src/roff/troff/env.h: Updated.
* NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
* VERSION: Increased to 1.17.1.
* tmac/an-old.tmac: Fix minor compatibility mode issue.
* tmac/troffrc-end: Make it really work in compatibility mode.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/grohtml-old/*: Removed.
* font/devhtml-old/*: Removed.
* src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
comments.
* Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
* test-groff (PATH): Updated.
* tmac/Makefile.sub (NORMALFILES): Updated.
* tmac/an-old.tmac: Remove special code for html-old device.
Replace `html-or-html-old' register with `an-html'.
* tmac/eqnrc: Updated.
* tmac/html-old.tmac: Removed.
* tmac/troffrc, tmac/troffrc-end: Updated.
* tmac/www.tmac: Remove special code for html-old device.
Replace `html-or-html-old' register with `www-html'.
* src/libgroff/tmpfile.cc (remove_tmp_files),
src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
parameter if used as a single argument for consistency with rest of
source code.
* aclocal.m4, tmac/an-old.tmac: Fix copyright.
* src/roff/troff/troff.man: Fixing typos.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
simple anchor.
* src/preproc/html/pre-html.cc (createImage): Fixed right hand
cropping of images.
(removeTempFiles): New function to tidy up temporary files.
* src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
Many fixes to do with the new inline suppress node and image regions
are much tighter.
* src/devices/grohtml/post-html.cc: New method `is_auto_img'.
(generate_img_src): New function.
(html_printer::do_auto_image): Utilizes it.
(do_heading, do_title): Include inline images within their contents.
(html_printer::begin_page): Tidied up comments that are issued to
the html output file.
(html_printer::do_fill): Fixed so that `.nf' works with fonts other
than courier.
(text_glob::is_br): New method used by do_heading.
* tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
equivalent diversion.
* src/include/html-strings.h: Altered image tags to reflect the
inline image node.
* src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
parameter.
* src/preproc/eqn/main.cc: Will suppress generation of image tags if
it is already inside a pic image. Only emit tags if the argument
`-Tps:html' is present.
* src/preproc/tbl/main.cc: Changes to reflect additional
`html_end_suppress' parameter.
* src/roff/troff/env.cc: Only emit eol tag if a node has been
emitted since the last eol tag was written.
* src/roff/troff/env.h: New boolean `emitted_node'.
* src/roff/troff/input.cc (do_suppress): Handles extra suppress
nodes O3, O4, O5. No longer use `output_low_mark_miny'.
* src/roff/troff/node.cc (check_charinfo): New method.
(troff_output_file::determine_line_limits): Alterations to limit
checking.
* tmac/www.tmac: Changes to reflect new suppress nodes.
* src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
Escape the html_glyph in the buffer.
(str_translate_to_html): Output the unescaped escaped_char.
* src/devices/grohtml/html-text.cc (issue_table_begin): Set
`frame=void', not `frame=none'. Add `border=0'.
* contrib/mm/groff_mm.man: Fixing some typos.
* PROBLEMS: Add some words on how to avoid wrapper macros.
* doc/groff.texinfo: Improve documentation of troff's -a option.
Documentation for pic added (doc/pic.ms).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* font/devlbp/Makefile.sub (CLEANADD): Set it.
* tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
* Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
* Makefile.sub (DISTCLEANFILES): Here.
* libs/libgroff/new.cc: Include `nonposix.h'.
* win32-diffs: Updated.
When inside displays, an empty input line warning should be
suppressed. If another macro call is put inside a display,
all subsequent empty lines found in that display caused a
warning to be emitted.
(doc-empty-line): Check the `doc-display-depth' register to
determine whether we are inside display or not.
the only change is that `.Fn' and `.Fc' put a final semicolon after
a function declaration in the SYNOPSIS section).
|