summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Import of mommomwlemb2002-05-230-0/+0
|
* Initial revisionwlemb2002-05-2331-0/+23337
|
* * added L, W and O in groff_mm.manjhaegg2002-05-235-10/+43
| | | | | | | * extra space in expression removed in EPIC * EPIC can leftadjust with -L * EPIC was drawing 1v down * forgot to add mmse.tmac and mm.tmac to cvs
* Change syntax of \O: \O[0] suppresses output, \O[1] enables outputwlemb2002-05-2214-199/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if at outer level; at start-up we are at outer level. * src/roff/troff/input.cc (do_suppress): Implement it. Simplify \O[3]. Add option -p to show progress information. pre-grohtml will now render only one page at a time, reducing the size of needed disk resources enormously. * src/preproc/html/pre-html.cc (imagePageStem): Replaced with... (imagePageName): New global variable. (psPageName, show_progress, currentPageNo): New global variables. (html_system): Close saved stderr and stdout handles. (write_end_image): Accept a parameter to control \O escape. (write_start_image): Adapted to new \O meaning. (char_buffer::write_upto_newline): Updated. (createAllPages): Replaced with... (createPage): This new function to create a single page for images. It uses `psselect' from the psutils package. (removeAllPages): Removed. (createImage): Updated. Handle progress display. (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed. (scanArguments): Add option -p. (makeTempFiles): Updated to create temp files for psPageName and imagePageName. (removeTempFiles): Removed. (main): Updated. * src/devices/grohtml/post-html.cc (header_desc::write_headings, html_printer::write_header): Append `\0' to `buffer'. (html_printer::do_eol): Depend on `current_paragraph->emitted_text'. (main): Handle -p. * src/devices/grohtml/html-text.cc (html_text::dump_stack_element): Handle `text_emitted'. (html_text::table_is_void): Slightly rewritten. (stop): New external symbol. (html_text::do_push) [DEBUGGING]: Use it and simplify. (html_text::shutdown): Call `dump_stack'. (html_text::do_space): Rewritten. * src/devices/grohtml/grohtml.man: Document -p and the need of `psselect'. * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to new \O syntax. Call \O[0] if `ps4html' is active. * tmac/s.tmac (@EQ, @EN): Handle html better. (@TS, TE): Ditto. * tmac/html.tmac: Don't use black for background colour. * src/roff/troff/node.cc: Include `div.h'. (troff_output_file::really_print_line): Don't use `is_on'. (troff_output_file::word_marker, troff_output_file::flush_tbuf troff_output_file::check_charinfo, troff_output_file::put_char_width, troff_output_file::put_char, troff_output_file::determine_line_limits, troff_output_file::draw, real_output_file::begin_page, glyph_color_node::tprintf, fill_color_node::tprint, hline_node::tprint, vline_node::tprint): Use `is_on'. (troff_output_file::really_on): Call `do_motion'. (suppress_node::tprint): Use `get_page_number' instead of `%' register. Call `reset_output_registers' conditionally on `is_on'. * doc/groff.texinfo: Document new syntax of \O. * NEWS, man/groff_diff.man: Updated.
* * MORE.STUFF: Add info about David Frey's deroff implementation.wlemb2002-05-222-1/+17
| | | | Mention troff.org.
* * Clarified manual about INITRjhaegg2002-05-227-24/+38
| | | | | | | * Added mm.tmac and mmse.tmac wrappers * Fixed bug in mmroff so a .qrf-file always will be created * .EQ mark was not correctly positioned anymore. * changed SP to sp in DS/DE to further correct .EQ
* Pic's `with' attribute now accepts positions.wlemb2002-05-176-418/+730
| | | | | | | | | | | | | | | * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE, ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce conflicts. (object_spec): Add rule for `WITH' and `position'. (relative_path): Give `corner' the precedence of `CHOP'. * src/preproc/pic/object.h (path): New members `pos' and `is_position'. * src/preproc/pic/object.cc: Updated initializers of `path'. (path::follow): Handle `is_position'. * doc/pic.ms: Completely updated grammar description. Many typographical improvements.
* Added keywords `north', `south', `east', and `west' for cornerswlemb2002-05-153-41/+118
| | | | | | | | | | in pic. * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST, and WEST. (yylex): Handle them. * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST. (corner): Handle them.
* * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (charwlemb2002-05-154-21/+40
| | | | | code of x in range 0-127) also. * doc/groff.texinfo, man/groff_diff.man: Updated.
* * src/devices/grops/grops.man: Clarify handling of `download' file.wlemb2002-05-142-1/+6
|
* Adding `warnscale' and `spreadwarn' requests, based on a patch fromwlemb2002-05-119-22/+244
| | | | | | | | | | | | | | | | | | | | | | Jeffrey Friedl <jfriedl@yahoo.com>. * src/roff/troff/input.cc (spread_limit, warn_scale, warn_scaling_indicator): New global variables. (warnscale_request, spreadwarn_requests): New functions. (main): Initialize `warn_scale' and `warn_scaling_indicator'. (init_input_requests): Updated. (error_type): Add `OUTPUT_WARNING'. (do_error): Handle it. (output_warning): New warning function which shows output location. * src/roff/troff/env.h (spread_limit): New external variable. * src/roff/troff/env.cc (environment::choose_breakpoint): Use `output_warning'. (distribute_space): Emit warning if added space is larger than `spread_limit'. (environment::possibly_break_line): Emit warning if a line can't be adjusted on both sides. * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
* * src/roff/troff/node.cc (special_node::special_node): Usewlemb2002-05-087-187/+361
| | | | | | | | | | | | | | | | | | | | env_definite_font(curenv) instead of curenv->get_font(). Otherwise \X''\% crashes, for example. * doc/groff.texinfo: Document \! and \? used at top-level. * src/preproc/pic/pic.man: Fix some keyword syntax. Other minor typographical fixes. * src/roff/groff/groff.man: Fix typos. * src/roff/groff/groff.man ([ShortOpt]): Renamed to... (ShortOpt[]): This to avoid problems with refer. * doc/pic.ms: Fix typo. Fix pic grammar description. * tmac/an-old.tmac (ne): Use de1, not de.
* * doc/groff.texinfo: Don't use the string `Appendix' for appendixwlemb2002-05-0310-38/+132
| | | | | | | | | | | | | | | | | | headers (both in the text and the table of contents). * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac directories. Use registers LL and LT (similar to -ms) for controlling the length of title and line, respectively, in the -man and -mdoc macro packages. * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff (doc-setup-page-layout): Use \n[LL] and \n[LT]. * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined. (TH): Use \n[LL]. (an-header, an-p-footer): Use \n[LT]. * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man, doc/groff.texinfo: Document it.
* * doc/groff.texinfo: Finished separation of glyphs and characters.wlemb2002-05-033-174/+585
|
* * doc/fdl.texi: New file.wlemb2002-05-0230-715/+405
| | | | | | | | | | | | | | | | | | | * doc/groff.texinfo: Include it. Define and use @copying. Starting with separating glyph, symbol, and character. * Makefile.in (EXEEXT): Set it. * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script programs. * src/include/nonposix.h: Define GS_NAME. * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME. Some preliminary changes for EMX support under OS/2. * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add __EMX__ similar to __MSDOS__. * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
* * doc/groff.texinfo: Integrated groff_out.man.wlemb2002-04-263-284/+1026
| | | | | | Some macro fixes. * man/groff_out.man: Minor fixes.
* * doc/groff.texinfo: Moving @cindex entries after @Def* to getwlemb2002-04-232-455/+502
| | | | | correct page references. Fixed many index entries.
* * man/roff.man: Enlarged.wlemb2002-04-232-211/+496
|
* * doc/groff.texinfo: More examples, other fixes.wlemb2002-04-223-129/+318
|
* * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'wlemb2002-04-206-62/+241
| | | | | | | | | | | | | | | | | | | | will now form a chain, e.g. .pi foo .pi bar is now the same as .pi foo | bar This is for compatibility with plan 9's troff. * tmac/tty.tmac: Set default tab values to 0.8i to be compatible with UNIX troff. * NEWS: Updated. * doc/groff.texinfo: Add documentation of remaining requests and registers.
* * doc/groff.texinfo: Add documentation of remaining escapes.wlemb2002-04-1914-12/+56
| | | | | * font/devdvi/generate/tc.map: Remove entry for `sr'. * font/devdvi/*TC: Regenerated.
* * src/roff/troff/input.cc (token::next): Make \H behave consistentlywlemb2002-04-183-6/+38
| | | | | | if not in compatibility mode, i.e., increment relative to the previous height. * doc/groff.texinfo: Updated accordingly.
* * doc/groff.texinfo: Document \\, \e, \E, \., and \c.wlemb2002-04-172-25/+217
|
* * src/roff/groff/groff.man: Improve documentation of -P option.wlemb2002-04-152-92/+147
| | | | Other minor fixes.
* Add new escape \F to switch font family.wlemb2002-04-1520-156/+244
| | | | | | | | | | | | | | | | | | * src/roff/troff/input.cc (token::next): Handle \F. * src/roff/troff/env.cc (environment::set_family): Handle `interrupted' flag. * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it. * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of spaces in tags. * tmac/Xps.tmac: Remove some redundant code. * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac, tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man, man/groff_out.man, man/groff.man, man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with \f[].
* Implement \f[] as an alternative to \fP. Change \mP and \MP towlemb2002-04-1417-114/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | \m[] and \M[], respectively. * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable. (symbol::symbol): Handle NULL string and empty string differently. * src/roff/troff/symbol.h (symbol::is_empty): New inline function. * src/roff/troff/input.cc (read_escape_name, read_long_escape_name): Add optional parameter. Updated calling functions. (get_copy, do_glyph_color, do_fill_color, token::next): Use `symbol::is_empty'. * src/roff/troff/env.cc (environment::set_font): Ditto. * src/preproc/pic/troff.cc (troff_output::set_fill, troff_output::reset_color: Updated. * tmac/www.tmac: Updated. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo, doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man: Updated. * src/include/printer.h, src/libs/libdriver/printer.cc (printer::change_fill_color): New member function. * src/libs/libdriver/input.cc (parse_D_command): Use it.
* * doc/groff.texinfo: Completed pass on gtroff reference.wlemb2002-04-122-50/+154
|
* * doc/groff.texinfo: More fixes.wlemb2002-04-1111-277/+632
| | | | | | | | | | | | | | | | | | | | | | | | | * src/include/color.h: Decorate with `const'. Use `size_t'. Include `stddef.h'. * src/libs/libgroff.color.cc: Decorate with `const'. Use `size_t'. (color::color): Initialize members. * src/libs/libdriver/input.cc (parse_D_command): Handle `f' command according to the documentation. * man/groff_out.man: Updated. Minor fixes. * src/preproc/html/pre-html.cc (write_start_image): Remove redundant output. * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto. * src/devices/grohtml/post-html.cc (page::add_and_encode): Using \C'hy' caused an assertion failure. * src/roff/troff/env.cc (environment::environment): Initialize `emitted_node'. (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
* * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:wlemb2002-04-105-172/+409
| | | | | | | Document pvs request and .pvs register. * doc/groff.texinfo: Improve and fix documentation of diversions and environments.
* * doc/groff.texinfo: Fix documentation of drawing functions.wlemb2002-04-082-142/+209
| | | | Other minor fixes.
* * doc/groff.texinfo: Better documentation of double quotes aswlemb2002-04-072-34/+98
| | | | | arguments. Other minor fixes.
* * doc/groff.texinfo: Minor improvements.wlemb2002-04-0777-6653/+623
| | | | | | | * tmac/lbp.tmac: Load latin1.tmac. * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac. * font/devX*/*: Regenerated (all chars > 0x80 removed).
* * man/groff_diff.man: Minor fixes.wlemb2002-04-0524-1527/+29
| | | | | | | | | | * font/devlbp/*: Remove all `charXXX' entities. * src/libs/libgroff/font.cc (font::~font): Deallocate `special_device_coding'. (font::load): Use `new' for allocating `special_device_coding'. * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char): Removed unused member.
* Fix typos.wlemb2002-04-051-2/+2
|
* * tmac/tty.tmac: Don't use shc request.wlemb2002-04-055-5/+16
| | | | | * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'. * NEWS: Updated.
* * tmac/tty.tmac: Add missing backslash.wlemb2002-04-052-1/+2
|
* * src/preproc/eqn/over.cc (over_box::output): Fix typo.wlemb2002-04-052-1/+3
|
* * src/drivers/grops/psrm.cc (skip_possible_newline): New function.wlemb2002-04-057-361/+817
| | | | | | | | | | | | | | | (resource_manager::do_begin_binary, resource_manager::do_begin_data): Use it. * doc/texinfo.tex: Updated to version 4.2. * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'. (token::zero_width_break): New inline function. * src/roff/troff/input.cc (token::next): Use it. (token::description): Updated. (encode_char): Ignore `\%', `\&', `\)', and `\:'. (token::add_to_node_list, token::process): Use it. * NEWS, doc/groff.texinfo: Updated.
* * src/preproc/eqn/box.cc (set_script_size, box::top_level): Usewlemb2002-04-047-39/+55
| | | | | | | | | | | | | | `.ps' register instead of `.s' to handle fractional point sizes. * src/preproc/eqn/limit.cc (limit_box::compute_metrics, limit_box::output): Ditto. * src/preproc/eqn/other.cc (size_box::compute_metrics, size_box::output): Ditto. * src/preproc/eqn/over.cc (over_box::compute_metrics, over_box::output): Ditto. * src/preproc/eqn/script.cc (script_box::compute_metrics, script_box::output): Ditto. * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics, sqrt_box::output): Ditto.
* Fix handling of colon.wlemb2002-04-042-18/+42
| | | | Fix `\' vs. `\\'.
* * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):wlemb2002-04-046-17/+51
| | | | | | | | | | | | | Fix typo. * doc/homepage.ms: Reduce title size. * doc/groff.texinfo: Fix documentation of .t register. * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR only if page length is positive to avoid a loop. * tmac/an-old.tmac (ne): Increase page length to avoid problems with tbl.
* * src/include/nonposix.h, src/roff/groff/pipeline.c:wlemb2002-04-023-4/+9
| | | | s/__CYGWIN32__/__CYGWIN__/.
* * doc/gnu.xpm: New image contributed by Emily Mulley.wlemb2002-03-295-138/+221
| | | | | | | | | | | * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth. (homepage.html): Be dependent on gnu.eps. * doc/homepage.ms: Updated to new image. * src/devices/grohtml/post-html.cc (html_printer): New member `sbuf_prev_hpos'. (html_printer::flush_sbuf, html_printer::set_char): Set it. (html_printer::sbuf_continuation): Use it.
* * src/libs/libgroff/getopt.c: Updated to latest version.wlemb2002-03-283-93/+140
| | | | * tmac/README: More on hyphen.tex license.
* Sync description of hcode with groff.texinfowlemb2002-03-271-3/+3
|
* * doc/groff.texinfo: Add documentation of most missing requests.wlemb2002-03-272-62/+539
|
* Add three glyphs `t+-', `tmu', and `tdi' which are textual variantswlemb2002-03-26181-621/+836
| | | | | | | | | | | | | | | | | | | | | of `+-', `mu', and `di', respectively. * font/devascii/R.proto, font/devutf8/R.proto, font/devlatin1/R.proto, font/devhtml/R.proto, font/devcp1047/R.proto, font/devlpb/*: Add them. * font/devps/generate/textmap: Ditto. * font/devps/*: Regenerated. * font/devlj4/generate/text.map: Add them. * font/devlj4/*: Regenerated. * font/devdvi/generate/tc.map: Use them. * font/devdvi/generate/texsy.map: Add them. * font/devdvi/*: Regenerated. * font/devX*/*: Regenerated. * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac, tmac/tty-char.tmac: Updated. * NEWS, man/groff_char.man: Updated.
* * tmac/README: New file.wlemb2002-03-242-0/+6
|
* * tmac/ps.tmac, tmac/html.tmac,wlemb2002-03-247-222/+228
| | | | | tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'. * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
* * tmac/dvi.tmac, tmac/X.tmac: Replace `.char' with `.fchar'.wlemb2002-03-246-149/+128
| | | | | | | | * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since we use `.fchar' in dvi.tmac. * tmac/Xps.tmac: Simplify some char definitions. Add definition for \[f/]. * man/groff_char.man: Updated for new X.tmac.