summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * tmac/ptx.tmac: New file.wl2009-01-024-5/+67
| | | | * NEWS, man/groff_tmac: man: Document it.
* Formatting.wl2009-01-021-38/+62
| | | | Minor typos and simplifications.
* Minor update.wl2009-01-011-3/+0
|
* o Removed check for the register #PAGINATE from top of filePTPi2008-12-311-1/+0
|
* o Doc fixes in toc.htmlPTPi2008-12-314-6/+26
| | | | | o Control of null pagenumbering of covers passed to \n%; formerly handled by \n[#PAGE_NUM_ADJ]
* Fix more quoting issues.wl2008-12-302-16/+25
| | | | | | * tmac/www.tmac (BCL, BGIMG, PIMG, MPIMG, LNS): For the sake of XHTML, quote more arguments. (IMG): Fix quoting.
* Fix quoting issues in www.tmac.wl2008-12-302-58/+81
| | | | | | | | | | | | | | | | * tmac/www.tmac (www:url_breaks_splitted): Renamed to... (www:url_breaks_split): This. (www->): New string to close tag singletons like <img> or <hr>. In XHTML mode (not implemented yet), this has to be changed from `>' to `/>'. (IMG): Don't use </img> Use www->. (PIMG, MPIMG): Don't use </img> Use www->. Fix doublequote issues. (HR): Don't use </hr>. Use www->. (LNS): Fix doublequote issues.
* Avoid phantom line wrapping in pdfhref hot-spots.keithmarshall2008-12-282-2/+12
|
* s/legal/valid/, s/illegal/invalid/.wl2008-12-244-9/+9
|
* * tmac/doc-common: Add entries for Mac OS X and FreeBSD.wl2008-12-242-1/+8
|
* o Added a CAPS option to HDRFTR_RECTO and HDRFTR_VERSO to allowPTPi2008-12-2411-59/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | capitalization of reserved strings when designing recto and/or verso headers. Fixed docs accordingly. o Added .nr #DIVER_DEPTH 0 to end of PRINT_PAGE_NUMBER to ensure that #DIVER_DEPTH=0 o Moved string definition of $FONT in macro FT to top of macro. o Moved string definition of $FAMILY in macro FAMILY to top of macro. o Changed condition generating #NO_BREAK at top of macro COLLATE from .if ( \\n[.t] < \\n[.v] ) \{ .nr #NO_BREAK 1 \} to .if ( (\\n[.t]-1) <= \\n[.v] ) \{ .nr #NO_BREAK 1 \} (Bottom-of-page trap is tripped 1 unit below last legal baseline, not on it.) o Commented out what appears to be a superfluous and destructive resetting of #VARIABLE_FOOTER_POSITION at line 13347 in FOOTNOTE macro. For now, fixes the "vanishing first footnote with some overflow" bug. o Added a bit to .PP to accommodate .PP_FONT I when PRINTSTYLE is TYPEWRITE and ITALIC_MEANS_ITALIC o Removed spurious 'sp |\\n[MN-curr-pos]u from MNbottom-right, prior to re-invoking traps. Hopefully, fixes vanishing RH margin notes bug. o Added missing spaced paras bit in blockquotes.
* * contrib/groffer/perl/roff2.pl: Fix syntax error.wl2008-12-222-3/+6
|
* * NEWS: Mention `preconv'.wl2008-12-152-1/+21
|
* Clarify interaction of x, w, and e specifiers.wl2008-11-171-8/+23
| | | | Improve documentation of e specifier.
* Implement `x' specifier for expanded columns. Contrary to old DWBwl2008-11-166-195/+485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tbl, more than a single `x' specifier can be used. At the same time, remove most of the code from change 2007-02-09 which collides with the new implementation. * src/preproc/tbl/main.cpp (format): Add `expand' array. (format::format, format::~format): Updated. (input_entry_format): Add `expand' field. (input_entry_format::input_entry_format): Updated. (input_entry_format::debug_print): Handle `expand'. (process_format): Handle `x' specifier. (process_data): Updated. * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): Remove. (EXPAND_REG): New macro. (table_entry::divert, block_entry::divert, alphabetic_block_entry::divert): Add parameter to control whether expanded columns shall be handled. (block_entry::do_width): Remove. (block_entry::do_divert): Add parameter to control whether expanded columns shall be handled. Treat expanded columns like columns with a minimum width. Remove `experimental' code. (table::table, table::~table, table::allocate): Updated. (table::set_expand_column): New function. (table::count_block_columns): Replace with... (table::count_expand_columns): This function. (table::divide_span): Handle expanded columns the same as equal columns. (table::sum_columns): Add parameter to control whether expanded columns shall be handled. (table::compute_available_block_width): Replace with... (table::compute_expand_width): This function. (table::compute_total_separation): New function, taking code from `compute_separation_factor'. (table::compute_separation_factor): Simpler code. The check for the `EXPAND' flag has been moved to the caller. (table::compute_widths): Add `top-level' changes to handle expanded blocks. * src/preproc/tbl/table.h (table): New field `total_separation'. Remove `blockflag' array. Add `expand' array. Update member function declarations. * src/preproc/tbl/tbl.man: Document `x' specifier. Expand documentation to cover all aspects of Lesk's tbl reference. * NEWS: Document `x' specifier.
* Improve documentation of the width of text block spans.wl2008-11-081-5/+5
|
* Improve documentation of text block widths.wl2008-11-071-3/+8
|
* * src/preproc/tbl/table.cpp (table::compute_widths): Use defaultwl2008-11-072-1/+8
| | | | | | scaling operator for minimum width. Without this fix, `lw3' (or `lw(3)' would be handled as a column with a minimum width of 3u instead of 3n.
* * tmac/doc-common (Dt): Start a new page if necessary and set upwl2008-11-055-7/+24
| | | | | | | | | headers. * tmac/andoc.tmac (reload-doc): Simplify due to change in doc-common. * NEWS: Document it.
* Clarify meaning of `z' modifier.wl2008-10-271-1/+3
|
* * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' towl2008-10-187-181/+192
| | | | | | | `m' and `M', respectively. Sort entries in `switch' block. * src/preproc/tbl/tbl.man: Updated. Sort key entries; other minor improvements.
* * src/preproc/tbl/table.cpp (table::compute_available_block_width):wl2008-10-183-19/+40
| | | | | | | New function. (table::compute_widths): Replace some code with new function (shifted to a more appropriate place). * src/preproc/tbl/table.h: Updated.
* * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Addwl2008-10-163-4/+17
| | | | NetBSD 4.0.1.
* * man/roff.man, doc/groff.texinfo: Improve the history part. Thiswl2008-10-104-170/+119
| | | | | | | | | | is based on input from Tom Van Vleck <thvv@multicians.org>. * src/preproc/eqn/sqrt.cpp (sqrt_box::compute_metrics): Assure that value of `rst' register is not zero, as can happen for the HTML output device. Otherwise, there are too many loops, and we get a stack overflow because of recursion.
* * src/preproc/ref/ref.cpp (reference::compute_sort_key): Dowl2008-10-092-2/+11
| | | | | not insert SORT_SEP before the first field, so that sort_key has the same format as before the patch of 2003-08-23.
* s/with other words/in other words/wl2008-10-051-1/+1
|
* * tmac/andoc.tmac: Rewritten, based on a preliminary version fromwl2008-10-047-13/+111
| | | | | | | | Tadziu Hoffmann. It can now process multiple man pages with both man and mdoc formats intermixed. * NEWS, tmaca/groff_man.man, tmac/groff_mdoc.man, man/groff_tmac.man: Document it.
* * tmac/doc-common (doc-operating-system-*): Update releases.wl2008-10-042-13/+41
|
* More warnings w.r.t. `.als'.wl2008-10-041-0/+4
|
* s/with other words/in other words/wl2008-10-041-6/+6
|
* * doc/groff.texinfo: Improve documentation of `.als'.wl2008-10-042-4/+50
|
* * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting upwl2008-10-042-4/+27
| | | | default macros. This causes endless loops (at least for TE).
* * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], andwl2008-10-043-3/+13
| | | | | \O[5] non-transparent w.r.t. beginning-of-line recognition (similar to the other \O variants).
* * src/devices/grops/grops.man, src/roff/troff/troff.man,wl2008-10-035-71/+95
| | | | | | src/preproc/soelim/soelim.man: Correct documentation of -I switch. Reported by Larry Kollar. Other minor formatting issues.
* * tmac/trace.tmac: Much improved.wl2008-10-014-227/+244
| | | | | | | | | | | | | (trace-full): New register to be set on the command line; it controls whether number and string register assignments get traced also. (!!c): New macro for comments. (rm): New traced macro. (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to `!!xxx'; this makes doc.tmac completely traceable. Trace call of .de and friends also. * tmac/groff_tmac.man, NEWS: Update.
* Restore behaviour of \$0 if a macro is called with string syntaxwl2008-09-302-1/+29
| | | | | | | | (problem caused by change on 2008-09-29). * src/roff/troff/input.cpp (input_iterator, input_stack, macro_iterator): Add `get_macro_name' member function. (interpolate_string): Use it.
* Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work aswl2008-09-293-9/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expected. Without the patch, .de aaa \\*[bbb]\\ . tm \\$* .. .de bbb . shift .. .aaa 1 2 3 prints `2 3' instead of `1 2 3'. * src/roff/troff/input.cpp (input_iterator, input_stack, macro_iterator): Add `get_arg_list' member function. (macro): Add `is_a_string', `is_string', and `clear_string_flag' members. Update constructors and operators. (arg_list): Add copy constructor. (macro_iterator): Add optional argument to constructor to indicate whether arguments shall be inherited from calling macro. (interpolate_string): If string argument is a macro, push a macro iterator on the stack. (do_define_macro): Call clear_string_flag if macro data contains a newline. * src/roff/troff/request.h: Updated.
* Formatting.wl2008-09-292-32/+53
|
* Formatting.wl2008-09-291-83/+84
|
* Fix two swapped default values.esr2008-09-291-4/+4
|
* Merge in information about pic2plot.esr2008-09-292-21/+106
|
* Cope withnsaty convert(1) changes.esr2008-09-295-12/+60
|
* typowl2008-09-281-1/+1
|
* Formatting.wl2008-09-281-1/+1
|
* If a macro is called as a string, inherit value of \n[.br] from thewl2008-09-283-10/+72
| | | | | | | | | | | | caller. This is useful for `trace.tmac'. * src/roff/troff/input.cpp (string_iterator): New members `with_break' and `get_break_flag'. (string_iterator::string_iterator): Updated. * doc/groff.texinfo: Improve documentation of \$0 and string syntax calling of macros. Document behaviour of \n[.br] within strings.
* Don't use `.de1' for `.rn' and `.nr'.wl2008-09-261-11/+11
|
* * tmac/trace.tmac: Add copyright message.wl2008-09-262-110/+237
| | | | | | | Use `.de1' where possible to make source code more readable. (so, mso, als, rn): Restore escape character before executing the request. (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
* Formatting.wl2008-09-251-2375/+2289
|
* Fix incompatibility between `.de1' and `.do'. Without this change,wl2008-09-254-15/+49
| | | | | | | | | | | | | | | | | | | | | | | the following snippet .de1 xx . tm \\n(.C .. .cp 1 .do xx prints 1 instead of 0. * src/roff/troff/input.cc (do_request): If a macro gets processed, call tok.next(). (interpolate_macro): Add optional argument. Update callers. (request::invoke): Add optional argument. (macro::invoke): Add optional argument to delay call of tok.next(). * src/roff/troff/request.h (request_or_macro): Add argument to `invoke' member. Update all derived classes. * doc/groff.texinfo: Improve documentation of .do request.
* Fix typo.wl2008-09-221-3/+3
|