summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* * src/preproc/pic/pic.cc: Removed.wlemb2001-07-252-6/+7
| | | | | | | | | | | | | * src/preproc/pic/pic_tab.h: Removed. * src/preproc/refer/label.cc: Removed. * doc/Makefile (.ms.html): Don't use a file name extension in argument to grohtml's -I option. * Makefile.in (dist): Remove CVS directories. Call `distfiles' target. * doc/groff.texinfo: Minor fixes.
* * doc/Makefile (.ms.html): Put image files into a subdirectory.wlemb2001-07-202-2/+3
| | | | (clean): Updated.
* * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().wlemb2001-07-201-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()wlemb2001-07-201-0/+6
| | | | | | | | | | instead of current code. * src/devices/grohtml/post-html.cc (main): Handle `-d' option. * src/roff/groff/groff.cc (possible_command::insert_args): New function. (main): Use it for predriver handling instead of insert_arg(). * src/include/posix.h: Define S_IWUSR if not yet defined.
* * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalledwlemb2001-07-191-1/+25
| | | | groff also.
* Replace call to `troff' with `groff -Z' to make it aware ofwlemb2001-07-171-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | GROFF_BIN_PATH. * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro. (troff_command, command_prefix): Removed. (alterDeviceTo): Use groff. (addZ): New function. (char_buffer::do_html): Use it. (scanArguments): Use TROFF_COMMAND. (findPrefix): Removed. (main): Updated. * src/roff/groff/groff.cc (main): Handle zflag for preprocessors. * doc/pic.ms: Documentation fixes. Replace atexit() with global destructor. * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor. (xtmpfile_list_init): New global structure to deallocate xtmpfile_list on exit. Its destructor inherits most code from remove_tmp_files(). (remove_tmp_files): Deleted. (add_tmp_file): Simplified.
* * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)wlemb2001-06-242-5/+5
| | | | | but www.tmac. * doc/pic.ms: Fix typos.
* The .ns and .rs requests are now honoured not only in the top-levelwlemb2001-05-071-10/+3
| | | | | | | | | | | | | | | | | | | 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.
* Rename register .q to .nswlemb2001-05-051-3/+3
|
* Added `.q' number register: Returns 1 if in no-space mode (if inwlemb2001-05-051-2/+3
| | | | | | | | | 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.
* * doc/groff.texinfo: More info on conditionals.groff-1_17wlemb2001-04-161-579/+699
|
* * doc/groff.texinfo: Added some info about groff internals.wlemb2001-04-151-65/+257
|
* * doc/pic.ms: Fixing many font switches.wlemb2001-04-132-72/+113
| | | | | * doc/groff.texinfo: Fixes, additions. * MORE.STUFF: Updated.
* * NEWS: Updated.wlemb2001-04-101-266/+524
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/groff.texinfo: Many fixes, additions, clarifications, etc. * src/devices/grodvi/dvi.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/devices/grohtml/post-html.cc (main): Accept --help and --version. Write --version output to stdout, not stderr. (usage): Add stream argument. Don't exit. * src/devices/grohtml-old/html.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h constants. (usage): Add stream argument. Don't exit. (main): Write --help output to stdout, not stderr. * src/devices/grolj4/lj4.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/devices/grops/ps.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/devices/grotty/tty.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/preproc/html/pre-html.cc (usage): Add stream argument. (scanArguments): Accept --help and --version. * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/preproc/refer/refer.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/roff/groff/groff.cc (main): Accept --help and --version. (synopsis): Add stream argument. (help): Write --help output to stdout, not stderr. (usage): Add stream argument. Don't exit. * src/roff/grog/grog.pl: Accept --help and --version. (help): New sub. * src/roff/grog/grog.sh: Accept --help and --version. * src/roff/nroff/nroff.sh: Accept --help and --version. * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro. (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version. (usage): New function with stream argument, doesn't exit. * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version. (usage): New function with stream argument, doesn't exit. * src/utils/indxbib/indxbib.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit. * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit. (main): Accept --help and --version. * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version. (usage): Add stream argument. Don't exit.
* * doc/groff.texinfo: Fixed and improved documentation of fonts.wlemb2001-03-261-48/+79
|
* * src/roff/troff/div.cc (save_vertical_space): Add default argumentwlemb2001-03-231-168/+263
| | | | | | | | | | 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).
* * doc/groff.texinfo: Added many @noindent.wlemb2001-03-221-799/+860
| | | | | | Replaced @end_Example -> @endExample. Added info whether registers are r/o. Many other additions and fixes.
* * doc/groff.texinfo: Added macro @Var (and some hacks due to bugswlemb2001-03-211-269/+354
| | | | | | | | in makeinfo of texinfo 4.0) to be used in @Def* macros. Improved @Def* macros: Now the exact syntax of request, register, and escapes is shown. Added macros for parentheses and brackets to be used in @Def*. Many fixes and improvements of the documentation.
* * doc/groff.texinfo: Added new index: `st' (for strings).wlemb2001-03-201-516/+551
| | | | | | | | | | Added macros @Defstr(x). Added macro @Example (adding @group). Other minor improvements. * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page number with name of man page.
* * doc/groff.texinfo: Added two new indices: `es' (for escapes) andwlemb2001-03-191-1416/+1735
| | | | | | | | | | `rq' for requests. `fn' is no longer used. Added macros @Defreq(x), @Defreg(x), and @Defesc(x). Removed @Deffn(x). * doc/groff.texinfo: Complete revision. Added many @Deffn to gain consistency.
* * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax ofwlemb2001-02-281-2/+2
| | | | | | | constructor. * doc/meref.me: Fixing some typos.
* troff's `box' and `boxa' requests didn't preserve temporarywlemb2001-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-173-17/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fixwlemb2001-01-131-2/+2
| | | | documentation of `asciify' request.
* * src/roff/troff/input.cc: Move definition of special characterswlemb2001-01-121-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | | | `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.
* Ignore `.ss' request if in compatibility mode.wlemb2000-12-211-3/+6
| | | | | | | | | | | | | | * src/roff/troff/input.cc: Make `compatible_flag' non-static. * src/roff/troff/env.h: Added extern `compatible_flag' declaration. * src/roff/troff/env.cc (space_size): Use it. * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of `.ss' request in nroff mode. * tmac/an-old.tmac: Fixed some serious bugs introduced with latest changes. documentation of -rcR switch.
* * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy thewlemb2000-12-061-4/+4
| | | | | | | | | | | `alloca' symbol . * MORE.STUFF: Added info about deroff for djgpp. * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix documentation of -rcR switch if -rcR=1 (which is now the default in nroff mode), a single, very
* * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);wlemb2000-12-031-3/+7
| | | | | | | | | | | if -rcR1 (which is now the default in nroff mode), a single, very long page is created instead of multiple pages: All `.ne' and `.wh' requests are put into conditionals; a new macro `an-end' is added to be called with `.em'. Some other minor cleanups. * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
* Fixing a bug which prevented hyphenation in words followedwlemb2000-12-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* In all programs, make -v return immediately with exit status 0 towlemb2000-11-151-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be compliant with the GNU standard. * src/devices/grodvi/dvi.cc (main), src/devices/grohtml2/post-html.cc (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc (main), src/preproc/html2/pre-html.cc (main), src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main), src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc (main): Implement it. * NEWS: Updated. * src/roff/groff/groff.cc (main): Add copyright notice. Add refer and postprocessors to the -v option. * src/roff/grog/grog.pl: Implement -v. * src/roff/grog/Makefile.sub (grog): Use @VERSION@. * src/roff/grog/grog.man, doc/groff.texinfo: Updated. * src/roff/nroff/nroff.sh: Implement -v. * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@. * src/roff/nroff/nroff.man: Updated. * src/preproc/eqn/main.cc (main): Fix comment typo. * MORE.STUFF: Added info about djgpp port of grap.
* * src/preproc/pic/depend: Removed. Unnecessary.wlemb2000-11-141-3/+1
| | | | | | | | | | Implemented dummy keyword `solid' in pic for compatibility with AT&T pic. * lex.cc (lookup_keyword): Added `solid'. * pic.y: Added SOLID with dummy rule. * pic.cc, pic_tab.h: Regenerated. * doc/pic.ms: Updated.
* * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibilitywlemb2000-11-141-4/+8
| | | | | mode (or rather, implemented non-compatibility mode). * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
* * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead ofwlemb2000-11-141-2/+3
| | | | | replacing it -- we don't find gxditview otherwise. * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
* Add system tmac directory (/usr/local/lib/groff/site-tmac).wlemb2000-11-081-2/+6
| | | | | | | | | | | | | | | | | | | | * 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.
* * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.wlemb2000-10-261-3/+1
| | | | | | | * tmac/Makefile.sub: Adapted to new macro names; removed `wrap' stuff since it is no longer needed. * README, PROBLEMS: Updated.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-262-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-251-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.
* * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:wlemb2000-10-241-5/+6
| | | | | | | | Updated and minor fixes. Rename font/devps/generate/dingbats[r]map to dingbats.[r]map. * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
* Move hyphen.us to tmac directory.wlemb2000-10-231-1/+1
| | | | | | | | | | | | | | | | * src/roff/troff/hyphen.us: Removed. * src/tmac/hyphen.us: Added. * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated. Change installation structure for data files from .../groff/... to .../groff/<version><revision>/... to be conform with other GNU programs. * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub, doc/Makefile, src/xditview/Imakefile.in: Implement it. * NEWS: Document it. * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
* Implement $GROFF_BIN_PATH environment variable (which defaults towlemb2000-10-221-4/+14
| | | | | | | | | | | | | | | | | $bindir) used for child programs of groff and similar wrappers. * gendefs.sh: Improve documentation. * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h), src/preproc/eqn/Makefile.sub (neqn), src/roff/nroff/Makefile.sub (nroff): Add $(bindir). * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement $GROFF_BIN_PATH. * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and $GROFF_PATH__ (the latter for communication with troff). * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if set. * src/roff/nroff/nroff.man, src/roff/groff/groff.man, doc/groff.texinfo: Document it.
* Replace tmac.safer with a real secure solution.wlemb2000-10-141-5/+6
| | | | | | | | | | * 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.
* * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,wlemb2000-10-091-6/+20
| | | | | | | | | | | | | src/libs/libgroff/strtol.c, src/preproc/html2/image.cc, src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc, src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid compilation errors with some compilers. It seems that this code is no longer necessary -- if yes, it is easy to add some #ifdef's for that particular old-fashioned compiler. * MORE.STUFF: Added info about Meta-tbl. * doc/groff.texinfo: Added more info about `.if "..."..."'.
* Implementing two new requests .tm1 and .tmc: The former is similarwlemb2000-09-111-1/+3
| | | | | | | | | | | | | | | | | | 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-1/+16
| | | | | | | | | * 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.
* * doc/groff.texinfo: Fix comment how to compile the DVI file.wlemb2000-08-261-4/+3
|
* * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,wlemb2000-08-251-7/+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.
* * doc/texinfo.tex: Update to latest version.wlemb2000-07-301-8/+15
|
* * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.wlemb2000-06-181-400/+527
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tfm::load, gf::load): Open tfm and gf files in binary mode: these are binary files. (main): Support non-Posix systems with several different styles of slash characters in file names. * src/utils/pfbtops/pfbtops.c: #include nonposix.h. (main) [SET_BINARY]: Switch stdin into binary mode. * src/utils/indxbib/indxbib.cc: #include nonposix.h. (main): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (main) [__MSDOS__]: If renaming the temporary index file fails because it has more than one dot in its trunk, replace the dot with an underscore and try again. (do_file): Use FOPEN_RB instead of "r". Skip every CR before a Newline. [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character. * src/utils/hpftodit/hpftodit.cc: #include nonposix.h. (File::File): Open the input file in binary mode. Strip CR characters from each CR-LF pair. (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. * src/include/Makefile.sub (HDRS): Add nonposix.h. * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>. (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG) [!_POSIX_VERSION]: Define for traditional Unix systems. (real_output_file::real_output_file): Remove the MSVC-specific call to popen, use instead POPEN_WT, appropriately defined on nonposix.h. #include nonposix.h. (real_output_file::~real_output_file): Remove the MSVC-specific call to pclose, a suitable macro is now defined on nonposix.h. Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG and WEXITSTATUS instead of assuming traditional Unix interpretation of the status returned by pclose. * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific call to popen, use POPEN_RT instead (appropriately defined on nonposix.h). #include nonposix.h. (ps_bbox_request): Open the PostScript file in binary mode. Close the file after processing it. (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on nonposix.h. * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]: A version of run_pipeline that doesn't use `fork'. (signal_catcher) [__MSDOS__ || _WIN32]: New function. (system_shell_name, system_shell_dash_c) (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide the ugliness of testing DOS/Windows file names for equality, and support both stock shells and ports of Unix shells. * src/roff/groff/groff.cc: #include nonposix.h. (BSHELL): Definition moved to nonposix.h. (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C instead of a literal "-c". (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead of literal strings. * src/preproc/soelim/soelim.cc: #include nonposix.h. (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'. * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to pic_tab.h. * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h. * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to eqn_tab.h. * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h. * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If P_tmpdir is defined, use it instead of the literal "/tmp". (remove_tmp_files, add_tmp_file): New functions. (xtmpfile): Record temporary files and register an atexit function to delete them explicitly, instead of relying on the OS to do that, which doesn't work on non-Unix systems. * src/libs/libgroff/searchpath.cc: #include nonposix.h. (search_path::search_path): Use PATH_SEP instead of a literal colon. (search_path::command_line_dir): Ditto. (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS, to support non-Posix systems. * src/libc/libbib/search.cc: #include nonposix.h. (search_list::add_file): Open the file in binary mode. * src/libs/libbib/linear.cc: #include nonposix.h. (file_buffer::load): Remove r characters preceding n from the loaded buffer. * src/libs/libbib/index.cc: #include nonposix.h. (make_index_search_item): Open index_filename in O_BINARY mode. (index_search_item_iterator::get_tag): Ditto. Remove r characters before n characters. (index_search_item::check_files): Open files in binary mode. (index_search_item::munge_filename): Support DOS-style file names with backslashes and drive letters, use IS_ABSOLUTE. * src/devices/grops/ps.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolj4/lj4.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolbp/lbp.cc: #include nonposix.h (fill_pattern) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grodvi/dvi.cc: #include nonposix.h. [_MSC_VER]: Remove inclusion of Windows-specific headers (done by nonposix.h). (main) [SET_BINARY]: Switch stdout to binary mode. [_MSC_VER]: Remove an explicit call to _setmode. * src/include/nonposix.h: New file. * Makefile.in (ENVSETUP): New variable, to set up case-sensitive operation when building with DJGPP. ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS)) ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use ENVSETUP. * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on MS-DOS. (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH, etc. can include a semi-colon on DOS/Windows. (depend.temp): Use depend1.temp instead of depend.temp1, to prevent files from overerwiting each other on 8+3 filesystems. * gendef.sh (t): Change definition to work with DOS/Windows. doc/groff.texinfo: Apart of some typo corrections, I also changed some index entris, to make them more non-ambiguous, and also put @ignore around some parts that are not yet written, to allow the Info output be readable.
* * src/roff/nroff/nroff.sh: Fix infinite loop.wlemb2000-05-281-4/+21
| | | | | | | | | | | | * 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'.