summaryrefslogtreecommitdiff
path: root/man
Commit message (Collapse)AuthorAgeFilesLines
* Added .cvsignore fileswlemb2001-07-191-0/+5
|
* Fix problems with preprocessor string for `man' program.wlemb2001-06-274-10/+22
| | | | | | | * *.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.
* * man/roff.man, mann/groff.man: Use '" instead of ." in the firstwlemb2001-06-112-2/+2
| | | | | | line to specify preprocessor options -- mandb 2.3.1 only recognizes the former. * src/preproc/grn/grn.man: Add proper '" string.
* The .ns and .rs requests are now honoured not only in the top-levelwlemb2001-05-071-1/+1
| | | | | | | | | | | | | | | | | | | but in all diversions (similar to UNIX troff). This change is based on a patch from Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>. * src/roff/troff/div.h (diversion): Add `no_space_mode' member. (top_level_diversion): Remove `no_space_mode' member. * src/roff/troff/div.cc (diversion::diversion, top_level_diversion::top_level_diversion): Updated. (macro_diversion::output): Reset `no_space_mode'. (no_space, restore_spacing): Use `curdiv' unconditionally. (space_request, blank_line): Check `curdiv->no_space_mode'. (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use `curdiv' unconditionally. * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo: Updated.
* Added two new requests `de1' and `am1' which are similar to `de' andwlemb2001-05-061-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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).
* Rename register .q to .nswlemb2001-05-051-3/+3
|
* Added `.q' number register: Returns 1 if in no-space mode (if inwlemb2001-05-051-0/+5
| | | | | | | | | top-level diversion), 0 otherwise. * src/roff/troff/div.cc (no_space_mode_reg): New class. (init_div_requests): Updated. * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo: Document it.
* Added `brp' request: This is p as a request.wlemb2001-05-021-4/+8
| | | | | | | | | | | | | | | | | * 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.
* Implement continuous underlining for nroff mode. To do that, a newwlemb2001-04-061-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | request in the ditroff language has been added: `x u N' (N is 0 or 1). X and Y are now transparent to end-of-sentence recognition. * src/include/printer.h (printer): Add `type' parameter to `special' method. * src/libs/libdriver/printer.cc (printer::special): Updated. * src/libs/libdriver/input.cc (do_file): Handle `x u N'. * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only specials of type `p'. * src/devices/grohtml/post-html.cc (html_printer::special): Ditto. * src/devices/grohtml-old/html.cc (html_printer::special): Ditto. * src/devices/grops/ps.cc (ps_printer::special): Ditto. * src/devices/grotty/tty.cc: Add new enum CU_MODE. (glyph::order): New method. (tty_printer::add_char): Use it. (tty_printer::special): New method. (tty_printer::end_page): Implement it. * src/roff/troff/node.h (special_node): Add `no_init_string' member. * src/roff/troff/node.cc (special_node::special_node): Add parameter to set `no_init_string'. (special_node::tprint_start): Use it. (special_node::same, special_node::copy): Updated. (special_node::ends_sentence): New method. (troff_output_file::start_special): Add parameter to include inititialization of special conditionally. * src/roff/troff/env.h (environment): New member `underline_spaces'. * src/roff/troff/env.cc (do_underline_special): New function. (environment::set_font): Use it. (do_underline): Use it. This was `underline()'. (underline): Call `do_underline()'. (continuous_underline): New function which calls `do_underline()'. (environment::newline): Use `do_underline_special()'. (init_env_requests): Updated. * NEWS, man/troff_out.man: Updated. * font/devutf8/R.proto: Fix code of 'shc'.
* * src/roff/troff/div.cc (save_vertical_space): Add default argumentwlemb2001-03-231-0/+3
| | | | | | | | | | to `sv' request. * src/roff/troff/env.cc (family_change): Make `.fam' accept no argument to restore previous font family. * src/roff/troff/troff.man, man/groff.man, NEWS: Updated. * doc/groff.texinfo: More fixes and additions (mainly for font manipulating commands).
* * man/groff_font.man: Document `prepro', `postpro', and `print'.wlemb2001-03-191-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'. * src/devices/grohtml/grohtml.man: Fixing typos. * tmac/s.tmac (@IP): Pass `.ip' html tag. * tmac/groff_mwww.man: Remove .LINE macro * tmac/www.tmac (LINE): Add `.ti'. * src/devices/grohtml/post-html.cc (html_printer): New member `indent'. (html_printer::emit_raw): Use it. (html_printer::do_linelength): Ditto. (html_printer::do_pageoffset): Ditto. (html_printer::do_indentation): Ditto. (html_printer::do_tempindent): Ditto. (html_printer::do_break): Ditto. (html_printer::begin_page): Ditto. (html_printer::do_indentedparagraph): New function. (html_printer::troff_tag): Handle `.ip'. * src/devices/grohtml/html-text.cc (html_text::issue_table_begin): Add `<td width=...>' handling. (html_text::do_table): Add parameter. (html_text::do_indent): Updated. * src/devices/groohtml/html-text.h: Updated.
* Added the `return' request to end a macro immediately. It simplywlemb2001-03-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | pops iterators from the input stack until a macro iterator is found. * src/roff/troff/input.cc (input_iterator::is_macro, macro_iterator::is_macro): New member. (input_return_boundary): New class to signal an immediate return to while_request(). (input_stack::add_return_boundary, input_stack::is_return_boundary): New functions. (input_stack::clear): Use it. (input_stack::pop_macro): New function. (while_request): Use `is_return_boundary()'. (return_macro_request): New function. (init_input_requests): Use it. * src/roff/troff/TODO: Updated. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * src/roff/troff/input.cc (input_iterator::is_boundary): Minor cleanup.
* Fixing a bug which prevented proper end-of-sentence recognitionwlemb2001-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | between an `unformatted' box and the following text. As a consequence, vertical line distances are no longer preserved in boxes after a call to `.unformat' -- because boxes aren't line-oriented (contrary to diversions), this doesn't make sense anyway. * src/roff/troff/node.cc (*node::set_unformat_flag): Add return value. (vertical_size_node::set_unformat_flag): New method. * src/roff/troff/node.hh: Updated. * src/roff/troff/input.cc (word_space_node::reread, hmotion_node::reread): Reset `unformat' flag after usage. (unformat_macro): Append only if `set_unformat_flag()' returns non-zero. * src/roff/troff/troff.man: Updated. * src/roff/troff/troff.man, NEWS, man/groff.man: Improved documentation of `asciify' and `unformat' requests.
* A new escape sequence `:', inserting a zero-width break point.wlemb2001-02-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/roff/troff/input.h: Adding `ESCAPE_COLON'. * src/roff/troff/input.cc (get_copy, token::next, asciify): Implement it. * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual method. (space_node): Add `was_escape_colon' member. Add `is_escape_colon()' and `asciify()' methods. * src/roff/troff/node.cc (space_node::space_node): Updated. (space_node::asciify): Handle `was_escape_colon'. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. Handle `~' similar to other comparable requests. * src/roff/troff/input.cc (process_input_stack): Remove now obsolete label. (token::next): Move creation of an unbreakable_space_node to... (token::add_to_node_list): Here. Fix a bug which sometimes prevented hyphenation of words connected with `~' or ` ' (and other escape sequences handled as TOKEN_NODE). This also fixes a hyphenation problem with boxes (after a call to the `unformat' request). * src/roff/troff/env.h (environment::possibly_break_line, environment::hyphenate_line): Introducing `start_here' parameter. * src/roff/troff/env.cc (environment::space_newline, environment::space): Use it. (environment::possibly_break_line, environment::hyphenate_line): Implement it. * src/roff/troff/input.cc (process_input_stack): Use it. * src/roff/troff/node.h (unbreakable_space_node, hmotion_node, space_char_hmotion_node, overstrike_node): Add `get_hyphenation_type()' method. * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify if `unformat_only' is active. Implemented new read-only number register `.linetabs' which returns 1 if in line-tabs mode, 0 otherwise. * src/roff/troff/env.h (environment): Add get_line_tabs() member. * src/roff/troff/env.cc (get_line_tabs): New function. (init_env_requests): Use it.
* Implemented new read-only number register `.linetabs' which returnswlemb2001-01-301-0/+4
| | | | | | | | | | | 1 if in line-tabs mode, 0 otherwise. * env.h (environment): Add get_line_tabs() member. * env.cc (get_line_tabs): New function. * init_env_requests: Use it. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * VERSION, REVISION: Changing to 1.17.0.
* Adding the `linetabs' request. If set, tab distances are notwlemb2001-01-251-43/+53
| | | | | | | | | | | | computed relative to the input line but relative to the output line. * src/roff/troff/env.h (environment): New member `line_tabs'. * src/roff/troff/env.cc (line_tabs_request): Implement request. (environment::environment, environment::copy): Updated. (environment::distance_to_next_tab): Use `line_tabs'. (init_env_requests): Register request. * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other fixes.
* Introducing a new read-only register `.int' which is set to awlemb2001-01-231-0/+3
| | | | | | | | | | | | | | positive value if the last output line is interrupted (i.e., if it contains `c'). * src/roff/troff/env.cc (init_env_requests): Add it. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'. * src/preproc/html/pre-html.cc (findPrefix): New function which generates the troff executable name via the system prefix. * src/preproc/eqn/main.cc: Modified warning message.
* troff's `box' and `boxa' requests didn't preserve temporarywlemb2001-01-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | indentation. * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and `saved_target_text_length' members. * src/roff/troff/div.cc (do_divert): Use them. Tabs (but not yet leaders and fields) are now handled correctly by `asciify' request. * node.h (hmotion_node): Add field `was_tab'. * env.cc (environment::make_tab_node): Set it. * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it. Added new request `unformat' which will, contrary to `asciify', preserve font information after unformatting (i.e., only nodes dealing with horizontal space are converted back to input characters). * input.cc (asciify_macro): Renamed to ... (do_asciify_macro): this, having a new parameter `unformat_only'. (asciify_macro, unformat_macro): New; using do_asciify_macro. (init_input_requests): Added `unformat'. * node.cc (*_node::asciify), asciify_reverse_node_list: Added parameter to control asciification process. * node.h (*_node::asciify): Ditto. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * doc/groff.texinfo: Minor improvement of `.in' documentation. * test-groff: Updated.
* First cut of the new html device driver. Changes to pre-html andwlemb2001-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the new grohtml are too numerous to be documented here. Stuff related to `html' has been renamed to `html-old' and `html2' stuff has been renamed to `html' (including directories). The new html device driver is therefore invoked as `-Thtml'. Added new `O' escape to suppress output (needed by html driver). Added functions and code to pass info about input-level commands (`.in', `.fl', etc.) to html driver. Three new functions (.html-begin, .html-end, and .html-image) for better html handling: `html-begin' will execute the remaining line if at the outermost nesting level, increasing an internal counter. `html-end' does the same but decreases the internal counter. `html_image' puts its arguments into a special node (suppress_node) to define an image region. The `output' request has been removed. * tmac/html-tags.tmac: Removed. * tmac/arkup.tmac: Updated and renamed to ... * tmac/www.tmac: New file. * tmac/markup.tmac Updated and renamed to ... * tmac/mwww.tmac: New file. * tmac/Makefile.sub: Updated. * tmac/an-old.tmac: Updated. * tmac/eqnrc: Updated. * tmac/groff_man.man * tmac/groff_markup.man: Updated and renamed to ... * tmac/groff_mwww.man: New file. * tmac/groff_tmac.man: Updated. * tmac/html-old.tmac: Updated and Renamed from html.tmac. * tmac/html.tmac: Updated and renamed from html2.tmac. * tmac/pspic.tmac: Updated html support. * tmac/s.tmac: Added html output support. * tmac/troffrc, tmac/troffrc-end: Updated. * Makefile.in, doc/Makefile: Updated. * doc/groff.texinfo: Added info about new `O' escape. * doc/homepage.ms: Use `MAILTO' macro. * font/devhtml/DESC.proto: Add `C' font. * font/devhtml/Makefile.sub: Updated. * font/devhtml/R.proto: Minor fixes. * font/devhtml-old/Makefile.sub: Updated. * src/devices/grohtml-old/Makefile.sub: Updated. * src/libs/libdriver/printer.cc (printer::get_font_from_index): New method. * src/libs/libgroff/htmlindicate.cc (html_begin_suppress, graphic_start): Add `inline' parameter. Update. (html_end_suppress, graphic_end): Update. * src/include/html-strings.h: New file. * src/include/htmlindicate.h: Comments updated. * src/include/printer.h: Updated. * src/preproc/eqn/main.cc (do_file, main): Updated. * src/preproc/pic/troff.cc (troff_output::start_picture, troff_output::finish_picture): Updated. * src/preproc/tbl/main.cc (process_input_file): Updated. * src/roff/groff/groff.cc (main): Updated. Pass device arguments to predrivers also. Use `ps' device for `eqn' preprocessor if `-Thtml' is given. * src/roff/troff/env.h (environment): Updated. New elements `need_eol' and `ignore_next_eol' (for html output). * src/roff/troff/env.cc (environment::environment): Add initializers for `need_eol' and `ignore_next_eol'. (environment::add_html_tag_eol, environment::add_html_tag_tabs): New functions. (point_size, fill, no_fill, center, right_justify, line_length, indent, temporary_indent, break_request, handle_tab): Use `add_html_tag()'. (set_tabs): Use `add_html_tag_tabs()'. (environment::add_html_tag): Updated. (environment::do_break): Updated. * src/roff/troff/div.cc (space_request, flush_output): Use `environment::add_html_tag()'. * src/roff/troff/input.cc: Updated. New variable `html_level' to indicate nested `html-begin' requests. (file_iterator::fill): Use `environment::add_html_tag_eol()'. (non_interpreted_char_node, token_node, non_interpreted_node): Add `force_tprint()' method. (token::next): Handle `O'. (do_suppress): Implement it. (html_begin, html_end, html_image): New functions. (init_output_requests): Renamed to ... (init_html_requests): this. (main): Use it. (macro::append_str, macro::append_unsigned, macro::append_int): New methods. New variable `output_low_mark_miny' to limit minimal value of y. (reset_output_registers): Use it. (output_request): Removed. (get_output_registers): New function. * src/roff/troff/node.h (node): Make `force_tprint()' virtual. (*_node): Added `force_tprint()' if necessary. (special_node): New elements `tf' and `get_tfont()'. (suppress_node): New class. * src/roff/troff/node.cc: New global variables `image_no' and `suppress_start_page'. (real_output_file): New method `is_on()'. (troff_output_file): New method `start_special(tfont)'. (troff_output_file::really_print_line): Use `tprint' conditionally. (real_output_file::print_line): Updated. (real_output_file::on): Updated. (*_node): Added `force_tprint()'. (special_node::special_node): Initializer updated. (special_node::same, special_node::copy, special_node::tprint_start): Updated. (get_reg_int, get_reg_str): New functions. (suppress_node::*): New methods. New global variables last_position, last_image_filename; (min): New inline function. * src/roff/troff/reg.h, src/roff/troff/request.h, src/roff/troff/troff.h: Updated.
* * src/roff/troff/input.cc: Move definition of special characterswlemb2001-01-122-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like `ESCAPE_TILDE' to ... * src/roff/troff/input.h: New file. * src/roff/troff/Makefile.sub (HDRS): Add it. Extending the .asciify request to `unformat' space characters also. * src/roff/troff/node.h (word_space_node): Add `num_spaces' element to count input space characters. Update constructors to take care of it. * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use `ESCAPE_SPACE' instead of normal space. (word_space_node::asciify): New method. (unbreakable_space_node::asciify): New method. (word_space_node::merge_space): New method. * src/roff/troff/env.cc (environment::space_newline, environment::space): Add code to initialize `num_spaces' (using the constructor of `word_space_node'). * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo: Document it. * man/groff_char.man: Use table header traps only conditionally. * man/groff_char.man: Add `ý' and `Ý' to the `acute' group. Ignore `ss' request if in compatibility mode. `ss' request in nroff mode. * tmac/e.tmac: Add `T&' macro. long page is created instead of multiple pages: All `ne' and `wh' be called with `em'.
* Introducing the `box' and `boxa' requests which are similar towlemb2001-01-081-0/+18
| | | | | | | | | | | | | | | | | | | | `di' resp. `da' but omitting a partially filled line (which is restored after ending the diversion). * src/roff/troff/div.h (diversion): Add elements to save partially filled line. * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save partially filled line. (divert, divert_append): Updated. (box, box_append): New functions. (init_div_requests): Use them. * src/roff/troff/env.h (environment): do_divert() is now a friend. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * doc/groff.texinfo: Fix documentation of `lf' request. * src/roff/troff/troff.man, NEWS: Document `writem' request.
* Fixing a bug which prevented hyphenation in words followedwlemb2000-12-021-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately by a TOKEN_NODE (e.g. ` ', `~', etc.). * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>): Adding possibly_break_line(). * src/roff/troff/env.h (environment): Make possibly_break_line() public. Make `~' usable in .tr request. * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE. (token): Add stretchable_space(). * src/roff/troff/input.cc (token::next, token::delimiter, token::description, process_input_stack, do_translate, add_to_node_list, token::process): Use it. * src/roff/troff/node.h (node): Add fourth parameter to add_char() for adjusting the space. * src/roff/troff/node.cc (node::add_char): Implement it. Add code for stretchable space. * src/roff/troff/input.cc (token::add_to_node_list): Use it. (make_node): Add code for stretchable space. * src/roff/troff/env.cc (environment::add_char): Use it. * src/roff/troff/input.cc: Add ESCAPE_TILDE special character. (get_copy, token::next, transparent_translate, asciify): Use it. * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO, doc/groff.texinfo: Updated. * man/groff.man: Small reorderings.
* Use safer path (except for config files) if -U isn't specified. Addwlemb2000-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a special macro path (without home and current directory) for config files. Add home directory to unsafe path for consistency. Don't include the home directory in the font path. * src/lib/libgroff/macropath.cc: Add `config_macro_path', change `macro_path'. * src/include/macropath.h: Add `config_macrp_path'. * src/lib/libgroff/fontfile.cc: Fix font path. * src/roff/troff/input.cc (process_startup_file): Use `config_macro_path'. (main): Select unsafe path if -U is given. * src/preproc/eqn/main.cc (main): Fixing search path for configuration file. * src/preproc/eqn/eqn.man: Updated. * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man: Updated. * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man, src/devices/grolj4/grolj4.man, src/devices/grops/grops.man, src/devices/grotty/grotty.man: Updated. * Makefile.in: Fix comments. src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
* For security reasons, don't use the current directory but the homewlemb2000-11-131-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directory while searching and scanning troffrc and troffrc-end. Similarly, replace the current directory with the home directory in the font path. * Makefile.in (fontpath, tmacpath): Remove current directory. * src/libs/libgroff/searchpath.cc (search_path::search_path): Add two parameters `add_home' and `add_current'. (search_path::~search_path, search_path::command_line_dir, search_path::open_file): Remove tests for `dirs' being zero. * src/include/searchpath.h: Adjust. * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add `safer_macro_path'. * src/libs/libgroff/fontfile.cc: Adjust `font_path'. * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'. * src/roff/troff/input.cc: Use `mac_path', initialized with `macro_path'. (process_startup_file): Set `mac_path' to `safer_macro_path'. * src/roff/troff/env.cc: Use `mac_path'. * src/preproc/eqn/main.cc (main): Use `safer_macro_path'. * NEWS, man/roff.man, src/roff/troff/troff.man, src/rof/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README: Updated. * src/include/lib.h: Don't include groff-getopt.h for OSF/1. * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++. * configure.in: Fix typo in comment. * configure: Regenerated. * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright dates.
* Add system tmac directory (/usr/local/lib/groff/site-tmac).wlemb2000-11-081-3/+5
| | | | | | | | | | | | | | | | | | | | * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir). (uninstall_dirs): Add $(libdir), $(libprogramdir), and $(systemtmacdir). Use @libdir@. * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@. * tmac/Makefile.sub (install_data): Create $(systemtmacdir) and $(localtmacdir). (uninstall_sub): Use $(systemtmacdir) for wrapper macros. * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man, NEWS, doc/groff.texinfo: Updated and minor fixes. * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again. * tmac/Makefile.sub: Added `wrap' stuff again, but installing into $(systemtmacdir) since the wrapper files are platform-dependent. * doc/groff.texinfo: Fix typo.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tmac.doc.old -> doc-old.tmac tmac.an.old -> an-old.tmac * tmac/tmac.*: Moved to ... * tmac/*.tmac: this. * tmac/man.local: Fix comment. * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man, tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. Added some `FILES' sections. More use of @...@ directives. Other minor updates. * arch/djgpp/README, font/devutf8/NOTES: Updated. * doc/homepage.ms, doc/groff.texinfo: Updated. * man/groff.man, man/roff.man: Updated. * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/devices/grops/grops.man, src/devices/grotty/grotty.man: Updated. * src/preproc/pic/pic.man: Updated. * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old instead of -mdoc.old. * src/roff/grog/grog.man: Document -mdoc and -mdoc-old. * src/roff/nroff/nroff.man: Updated. * NEWS: Updated. * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment. * tmac/mm.diff: Removed -- it has no use now since the mm package is part of groff. * tmac/*: Removed trailing spaces. * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac subdirectory also).
* Invert current behaviour: Search first FOOBAR.tmac, thenwlemb2000-10-252-7/+7
| | | | | | | | | | | | | | | | | tmac.FOOBAR. * src/roff/troff/input.cc: Introduce MACRO_POSTFIX. (open_mac_file, macro_source): Implement it. * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man, doc/groff.texinfo, NEWS: Document it. * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man: Small documentation improvements. * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac subdirectory also). * font/devps/Makefile.sub: Fix rules for dingbats.*map.
* Add local tmac directory (groff/site-tmac).wlemb2000-10-241-8/+15
| | | | | | | | | * Makefile.in: Add $(localtmacdir). (uninstall_dirs): Add $(localtmacdir). * Makefile.comm (.man.n): Add @LOCALMACRODIR@. * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local in $(localtmacdir). Create $(localtmacdir). * man/roff.man, src/roff/troff/troff.man, NEWS: Updated.
* * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.wlemb2000-10-231-3/+5
| | | | | | | * configure: Updated. * arch/djgpp/README, font/devutf8/NOTES: Use it. * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and @MACRODIR@ instead of hard-coded directories.
* Replace tmac.safer with a real secure solution.wlemb2000-10-141-2/+1
| | | | | | | | | | * src/roff/troff/input.cc (open_request, opena_request, pipe_source, system_request, pipe_output): Disable requests if in safer mode. * src/roff/groff/groff.cc (main): Remove reference to tmac.safer. * tmac/tmac.safer, tmac/groff_msafer.man: Removed. * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man, doc/groff.texinfo, src/roff/groff/groff.man, src/roff/troff/troff.man, arch/djgpp/README: Updated.
* Adding a new escape sequence B'...': If the string betweenwlemb2000-10-071-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the delimiters is a valid numeric expression, return the character `1', and `0' otherwise. This is an analogon to A. * src/roff/troff/input.cc (do_expr_test): Implement it. (token::next): Use it. * src/roff/troff/troff.man, NEWS, man/groff.man: Document it. * tmac/tmac.trace: Made independent from escape character. Adding a new request .dei: define indirect. The first and second parameter of .dei are taken from string registers instead directly; this very special request is needed to make tmac.trace independent from the escape character (which might even be disabled). * src/roff/troff/input.cc (do_define_macro): Implement it. (define_macro_indirect): New function. (init_input_requests): Use it. Adding two requests .ecs and .ecr: Save and restore the escape character. These two requests are needed to make tmac.trace independent from the escape character (which might even be disabled). * src/roff/troff/input.cc (save_escape_char, restore_escape_char): Implement it. (init_input_requests): Use it. * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
* Implementing two new requests .tm1 and .tmc: The former is similarwlemb2000-09-111-1/+22
| | | | | | | | | | | | | | | | | | to .tm but can output leading spaces; its syntax is similar to defining a string, i.e., a `"' can be used to mark the beginning of the string to be written to stderr: `.tm1 " test'. The latter is similar to .tm1 but doesn't write out a final newline character. * src/roff/troff/input.cc (terminal1, terminal_continue, do_terminal): New functions. (init_input_requests): Use them. * src/roff/troff/troff.man, NEWS, man/groff.man: Updated. * tmac/groff_mdoc.samples.man: Small fixes. * tmac/groff_mdoc.man: Fixing typo.
* Implementing a .nop request which does nothing.wlemb2000-09-021-0/+4
| | | | | | | | | * src/roff/troff/input.cc (nop_request): New function. (init_input_requests): Use it. * src/roff/troff/troff.man, NEWS, man/groff.man: Updated. * doc/groff.texinfo: Added some comments.
* * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,wlemb2000-08-251-1/+11
| | | | | | | | src/roff/troff/troff.man: Document Eli's latest changes. * src/roff/troff/input.cc (open_mac_file, macro_source): Support macro file names of the form NAME.tmac as well as tmac.NAME.
* * src/roff/nroff/nroff.sh: Fix infinite loop.wlemb2000-05-281-11/+0
| | | | | | | | | | | | * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp(). * man/roff.man: Removed unused macro. * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. This is needed e.g. if you do `make distclean; ./configure; make dist'.
* Adding font CWI (constant width italic) to devdvi.groff-1_16wlemb2000-05-231-150/+26
| | | | | | | | | | | | | | | | | | * font/devdvi/CWI: New file. * font/devdvi/generate/Makefile: Add generating rule. * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs, tmac/tmac.dvi: Use it. * NEWS: Announce it. * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph). * font/devlj4/generate/Makefile: Cosmetic changes only. * man/groff.man: Removed most of the redundant description of special characters (which is in groff_char.man). Added font translation CB->CR for devdvi. Other minor fixes. * tmac/tmac.dvi: Improved appearance of (co (copyright) and (rg (registered) symbols.
* * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can bewlemb2000-05-222-256/+305
| | | | | | | | | | | | | | | | | | | | 10, 11, or 12) to support output with 11pt and 12pt base font sizes. `.SS' now produces a heading with a smaller size than `.SH'. Completely formatted. * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it. * man/groff.man: Improved table appearance. Use of `eo' request to reduce number of doubled backslashes in macro definitions. Replacing `e' with `(rs'. Other minor fixes. * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf' to have correct line number. * INSTALL: Small improvement. * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by WL).
* * man/groff.man: Complete update (with a lot of corrections by WL).wlemb2000-05-191-867/+1526
|
* Adding `cq' (PS name `quoteright') glyph name as an alias for "'".wlemb2000-05-191-0/+1
| | | | | | | | | | | | * font/*/*: Implement it. * man/groff_char.man, NEWS: Document it. * src/include/unix.h: Removed. It isn't used. * doc/groff.texinfo: Slight improvements. * README, win32-diffs: Small fixes and improvements.
* * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minorwlemb2000-05-102-85/+92
| | | | | | | | | | | improvements. * doc/groff.texinfo: Extended history section. More conversion to @Deffn macros. More .tr documentation. * font/devcp1047/R.proto, font/devcp1047/Makefile.sub, font/devcp1047/DESC.proto: New files. * font/*/*: Change it.
* * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used inwlemb2000-05-051-14/+24
| | | | | | | | | LaTeX 2e). * NEWS: Document it. * man/troff.man: Minor optical improvements. * font/*/*: Implement it.
* Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.wlemb2000-05-041-0/+1
| | | | | * fonts/*/*: Implement it. * man/groff_char.man, NEWS: Document it.
* * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@wlemb2000-05-022-60/+45
| | | | | | | | | | expansion. * NEWS: Document the three new man pages. * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call. * configure: Updated. * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
* Added grap support to grog.wlemb2000-05-013-1/+2733
| | | | | | | | | | | | | | | | | | | | | | * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it. * src/roff/grog/grog.man: Document it. * doc/groff.texinfo, NEWS: Add info about grap support. Add new man pages comptributed by Bernd Warken <bwarken@mayn.de> (with slight fixes by me). * tmac/groff_tmac.man: New file documenting tmac mechanism. * tmac/Makefile.sub: Add groff_tmac.man. * man/roff.man: New file giving overview of roff system. * man/troff.man: A short reference of troff. * man/Makefile.sub: Add roff.man and troff.man. Added grap support to groff. * src/roff/groff/groff.cc: Implement it. * src/roff/groff/groff.man: Document it.
* * src/devices/grotty/grotty.man: Add cp1047 device.wlemb2000-04-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc: Ditto. * src/roff/groff/groff.man: Ditto. * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto. * doc/groff.texinfo: Ditto. * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space) for cp1047. * man/groff_char.man: Add `pc' glyph. * tmac/tmac.latin1: Replacing `md' glyph with `pc'. * tmac/tmac.tty: Add `pc' glyph. * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if we use cp1047 output device. * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since there are still hardcoded latin1->unicode values in utf8's font definition files. * configure: Updated. * NEWS: Minor clarification. Updated. * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390 Unix.
* * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document thewlemb2000-04-221-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `.T' string register and the incompatible definition of the `.T' number register (compared to Unix troff). * man/groff_char.man: Add some missing characters. * font/devutf8/NOTES: Update. * src/include/htmlindicate.h, src/include/lib.h, src/include/posix.h: Fix copyright. * src/include/Makefile.sub: Update. * src/roff/troff/input.cc (input_char_description): Removing superfluous space char. * tmac/tmac.X: Fix typo (bq -> (Bq. * doc/groff.texinfo: Document EBCDIC. Introducing `shc' as the glyph name for the soft hyphen character. * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html, font/devlatin1/R.proto: Use it. * NEWS: Updated. * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing dependency on ASCII order.
* * man/groff_out.man: Fix nroff mode activation (for emacs).wlemb2000-02-292-3/+9
| | | | * man/groff_font.man: Add missing ligature.
* * doc/groff.texinfo: Further checking/updating. Adding more indexwlemb2000-02-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | entries. Adapting groff to MS Visual C++ 6.0 compiler (tested with Windows NT 4.0). * src/devices/grodvi/dvi.cc: Making stdout a binary stream. * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'. * src/devices/grohtml/html.cc, src/devices/grops/ps.cc, src/include/lib.h, src/libs/libgroff/errarg.cc, src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc, src/preproc/refer/label.y, src/preproc/refer/label.cc, src/roff/groff/pipeline.c, src/roff/troff/column.cc, src/roff/troff/div.cc, src/roff/troff/env.cc, src/roff/troff/input.cc, src/roff/troff/node.cc, src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to if_to_a() to avoid name clashes. * src/include/posix.h: Don't use unistd.h. * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif' clause for integrating non-Unix xtmpfile() code. * src/roff/troff/input.cc: Adding `public' keyword to macro_header structure; use "rt" for popen() in pipe_source(); add getpid() dummy function. * src/roff/troff/node.cc: Use special versions of popen() in real_output_file() and pclose() in ~real_output_file(). * src/devices/grolbp/Makefile.sub: Adding $(srcdir). * man/groff_font.man: Adding info about obsolete DESC keywords. * src/devices/grolj4/grolj4.man: Documenting additional DESC keywords.
* Initial revisionwlemb2000-02-064-0/+1189