summaryrefslogtreecommitdiff
path: root/tmac
Commit message (Collapse)AuthorAgeFilesLines
* * tmac/groff_ms.man: Completely rewritten.wlemb2002-01-171-134/+810
|
* * tmac/an-old.tmac (TS): Force break, inserting some vertical space.wlemb2002-01-161-0/+1
|
* * tmac/groff_mdoc.man: Minor fixes.wlemb2002-01-151-7/+12
|
* * man/groff_out.man: Revised.wlemb2002-01-091-0/+6
| | | | | | | * man/roff.man: Minor fixes. * src/roff/troff/troff.man: Some reordering. * tmac/an-old.tmac: Add dummy macros for equation support.
* doc/groff.texinfo: Fix documentation of glyph searching algorithm.wlemb2002-01-072-21/+22
| | | | | | * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many man pages. * tmac/groff_man.man: Small improvements.
* * tmac/www.tmac: Remove extraneous backslash.wlemb2002-01-061-1/+1
| | | | * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
* *** empty log message ***wlemb2001-12-301-15/+15
|
* * tmac/www.tmac: Replace\\n[www-html] with \n[www-html] since thewlemb2001-12-302-86/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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'.
* * tmac/doc-common (Dt): Change output of architecture strings.wlemb2001-12-252-92/+88
| | | | | Do some syntax cleanup. * tmac/groff_mdoc.man: Updated.
* Adding an `itc' request (input line trap accepting \c).wlemb2001-12-221-7/+7
| | | | | | | | | | | | | | | | | | | * 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/doc-common, tmac/doc-syms: Small updates.wlemb2001-12-223-0/+6
| | | | | | | | | | * 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.
* *** empty log message ***wlemb2001-12-141-291/+0
|
* * src/preproc/eqn/main.cc (inline_equation): Fix typos.wlemb2001-12-121-9/+0
| | | | * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
* * src/roff/troff/input.cc (get_delim_file_name): Removed since nowlemb2001-12-069-1050/+1065
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Includewlemb2001-12-011-0/+1
| | | | | | | | | 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.
* Use macros of the official interface to test for reloading.wlemb2001-11-282-2/+2
|
* * tmac/an-old.tmac, tmac/doc.tmac, contrib/mm/m.tmac: Assure thatwlemb2001-11-283-4/+9
| | | | | | the macro package is loaded only once. * tmac/groff_man.man: Minor cosmetic fix.
* * src/roff/groff/groff.man, tmac/groff_tmac.man,wlemb2001-11-273-6/+3
| | | | tmac/groff_www.man: s/mwww/www/.
* * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.wlemb2001-11-263-5/+293
| | | | | | | | | | | * 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'.
* * tmac/an-old.tmac (an-header): Set header length equal to pagewlemb2001-11-211-0/+3
| | | | | | | width. * doc/groff.texinfo: Improve documentation of `ne' request. Other minor fixes. * NEWS: Small fix.
* * man/groff_differences.man: Renamed to ...wlemb2001-11-171-1/+1
| | | | | | | | | | | | | | | | | | * 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.
* * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.wlemb2001-11-162-2/+15
| | | | | | | | | | | | * 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.
* * src/roff/troff/troff.man: Revised and split into troff.man and...wlemb2001-11-151-0/+14
| | | | | | | * man/groff_differences.man: New file. * NEWS: Updated. * tmac/an-old.tmac (TS, TE): New macros for table support.
* * tmac/doc.tmac (doc-flag-recursion): Protect arguments againstwlemb2001-10-191-1/+1
| | | | being handled as end-of-sentence characters,
* * src/roff/troff/input.cc (file_iterator): New memberswlemb2001-10-102-1022/+1022
| | | | | | | | | | | | | | | | | | | | | | | | | `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.
* New files.wlemb2001-10-052-0/+1031
|
* Implementing color support in troff, pic, grops, and grohtml. Thesewlemb2001-10-054-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * src/roff/troff/troff.man: Remove superfluous line.wlemb2001-09-051-2/+3
| | | | | | * 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).
* * contrib/mm/groff_mm.man, man/groff.man, src/preproc/eqn/eqn.man,wlemb2001-09-041-1/+2
| | | | tmac/groff_mdoc.man: Don't use .ne for TTY devices.
* * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.wlemb2001-08-281-1/+1
| | | | | | | | | | | | | | * 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.tmac (Ex): New implementation.wlemb2001-08-143-3/+100
| | | | * tmac/doc-common, tmac/groff_tmac.man: Updated.
* * tmac/doc.tmac (Rv): Implement support for 0 or more than 1wlemb2001-08-142-14/+49
| | | | | argument. * tmac/groff_tmac.man: Updated.
* * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().wlemb2001-07-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added .cvsignore fileswlemb2001-07-191-0/+19
|
* * NEWS: Updated.wlemb2001-07-182-53/+98
| | | | | | * tmac/groff_mdoc.man: Document new -width and -column syntax. Some other minor fixes. * tmac/an-old.tmac: Add `AT' and `UC' macros.
* 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>wlemb2001-07-122-126/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * tmac/doc.tmac (Rv): Make `Rv' really not parseable.wlemb2001-07-072-17/+9
| | | | | Fix synopsis. * tmac/groff_mdoc.man: Fix synopsis.
* * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):wlemb2001-07-051-0/+12
| | | | Restore `doc-Pa-font'.
* * src/utils/indxbib/dirnamemax.c: Moved to ...wlemb2001-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * tmac/www.tmac: Disable hyphenation in normal text only if outputwlemb2001-07-032-20/+39
| | | | | | | | | | 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.
* * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,wlemb2001-07-032-4/+30
| | | | | doc-display-ps-stack): Implement font and font size stack for displays.
* Fix problems with preprocessor string for `man' program.wlemb2001-06-276-9/+30
| | | | | | | * *.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.
* Added two new options (-D and -I) to specify image names and awlemb2001-06-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix compatibility issues with man and mdocwlemb2001-05-082-6/+11
|
* Added two new requests `de1' and `am1' which are similar to `de' andwlemb2001-05-061-28/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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).
* Added `brp' request: This is p as a request.wlemb2001-05-022-15/+16
| | | | | | | | | | | | | | | | | * 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.
* minor installation fixwlemb2001-04-171-1/+1
|
* Removing the grohtml-old device driver which is now obsolete.wlemb2001-04-147-107/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * src/devices/grohtml/grohtml.man: Updated manual page regardingwlemb2001-04-133-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.wlemb2001-04-112-2/+2
| | | | | | | | | | | | | | | | | | | | * 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).