summaryrefslogtreecommitdiff
path: root/src/preproc
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace.wl2013-02-021-2/+2
|
* [grohtml] Don't ignore return value of `dup'.wl2013-02-021-1/+6
| | | | | * src/preproc/html/pushback.cpp (pushBackBuffer::pushBackBuffer, pushBackBuffer::~pushBackBuffer): Abort if `dup' fails.
* Oops, missed a line.wl2013-01-131-1/+1
|
* [eqn] Fix display of matrices in nroff output.wl2013-01-131-2/+2
| | | | | | | Problem reported by Andy Spencer <andy753421@gmail.com>. * src/preproc/eqn/pile.cpp (pile_box::compute_metrics): Fix rounding.
* [tbl] Allow characters #, `, and ' as eqn delimiters.wl2013-01-073-31/+68
| | | | | | | | | | | | | | | | While problems ` and ' have been unintentionally introduced rather recently, the limitation regarding # was there from the beginning. At the same time, fix a small bug causing `.lf' requests not starting a line. * src/preproc/tbl/table.cpp (table::init_output, table::compute_expand_width, table::compute_separation_factor, table::define_bottom_macro, table::do_bottom): Temporarily switch off eqn delimiters, wrapping the code into a `.ig' block. This uses the new functionality just added to eqn. * src/preproc/eqn/eqn.man, src/preproc/tbl/tbl.man: Updated.
* Revert previous change.wl2013-01-071-8/+4
|
* Whitespace.wl2013-01-071-4/+4
|
* [eqn] Handle border cases of `delim on' and `delim off'.wl2013-01-071-4/+8
| | | | | * src/preproc/eqn/lex.cpp (do_delim): Handle multiple sequences of `delim on' gracefully (ditto for `delim off').
* [eqn] Add `delim on'.wl2013-01-062-3/+31
| | | | | | | | | * src/preproc/eqn/lex.cpp (start_delim_saved, end_delim_saved): New global variables. (do_delim): Handle `delim on' to restore previous start and end delimiters. * src/preproc/eqn/eqn.man, NEWS: Document it.
* * src/preproc/tbl/tbl.man: Better document `d' column specifier.wl2012-09-111-2/+57
|
* Make this page translatable to DocBook.esr2012-07-201-6/+4
|
* Eliminate running test in Synopsis, it makes mechanical parsing too hard.esr2012-07-071-3/+3
|
* Eliminate running test in Synopsis, it makes mechanical parsing too hard.esr2012-07-071-4/+4
|
* Fix compiler warnings.wl2012-03-102-3/+4
| | | | | | | | | | | | | | | * src/preproc/html/pre-html.cpp (alterDeviceTo): Avoid ambiguous if-else clause. * src/preproc/grn/main.cpp (sccsid): Comment out. * src/roff/troff/number.cpp (parse_expr) <case '*'>: Add cast. * src/devices/xditview/Makefile.sub (EXTRA_CFLAGS): Add `-Dlint' so that unused static ID arrays don't cause a warning. (Some) problems reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
* * src/preproc/pic/main.cpp (do_file): Check for invalid characters.wl2012-02-081-1/+5
| | | | Problem reported by Doug McIlroy <doug@cs.dartmouth.edu>.
* * src/preproc/tbl/tbl.man: Improve documentation of `_' and friends.wl2011-11-141-0/+4
|
* Fix compiler warnings.wl2011-10-311-3/+3
| | | | | | | | | | | | | | | * src/preproc/eqn/main.cpp (do_file), src/roff/troff/env.cpp (environment::print_env), src/roff/troff/mtsm.cpp (statem::display_state): Add syntactical sugar. * src/utils/tfmtodit/tfmtodit.cpp (char_info_word): Use `unsigned char' for all members. * src/devices/grohtml/html-text.cpp (html_text::remove_def): Remove unused variable `q'. * src/devices/grohtml/post-html.cpp (html_printer::lookahead_for_tables): Remove unused variable `left' and `seen_text'.
* Add new output device `gropdf'.wl2011-07-261-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devpdf/*: New device files for gropdf. * src/devices/gropdf/*: New device. * Makefile.comm (install_dev, uninstall_dev): Handle more subdirectories. * Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Add directories related to gropdf. * MANIFEST: Updated. * test-groff.in (GROFF_BIN_PATH): Updated. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/pdf.tmac: New file. * tmac/troffrc: Updated. * doc/groff.texinfo: Document it. * doc/Makefile.in, doc/Makefile.sub (groff_bin_dirs): Udpated. * doc/pic.ms: Updated. * man/groff_out.man, src/devices/grops/grops.man, src/preproc/pic/pic.man, src/roff/groff/groff.man, src/utils/afmtodit/afmtodit.man, src/utils/pfbtops/pfbtops.man: Updated. * contrib/pdfmark/pdfmark.ms: Updated.
* Improve line numbering support in tbl and with me macros.wl2011-07-201-8/+61
| | | | | | | | | | | | | | | | | * tmac/e.tmac (n1, n2, TH, PS): Implement it. (@h, @n, @o, @t, @k, )b, (c, (q, )q, (l, )l, (f, @q, PE): Updated. * doc/meref.me: Document changes. * src/preproc/tbl/table.cpp (ROW_START_LINE_REG, ROW_SAVE_LINE_REG, ROW_MAX_LINE_REG, REPEATED_NM_SET_MACRO, REPEATED_NM_SUS_MACRO): New macros. (table::init_output): Define REPEATED_NM_SET_MACRO and REPEATED_NM_SUS_MACRO. (table::print_single_hline, table::print_double_hline, table::define_bottom_macro, table::do_row, table::do_top, table::do_bottom): Updated. * doc/webpage.ms: Updated.
* * src/preproc/tbl/tbl.man: Mention trick to get abutting rules.wl2011-07-121-0/+42
|
* Typo.wl2011-04-111-3/+2
|
* * src/preproc/html/Makefile.sub: Add $(LIBGNU).wl2011-01-311-1/+1
|
* * src/preproc/grn/Makefile.sub: Add $(LIBGNU).wl2011-01-311-1/+1
|
* * src/preproc/pic/pic.man: Add pic manual to `SEE ALSO' section.wl2011-01-191-4/+13
|
* tbl: Add `nowarn' option.wl2010-02-164-14/+28
| | | | | | | | | | * src/preproc/tbl/table.h (table): Add `NOWARN' enumeration value. * src/preproc/tbl/main.cpp (process_options), src/preprox/tbl/table.cpp (table::compute_expand_width, table::compute_separation_factor): Handle `NOWARN'. * src/preproc/tbl/tbl.man, NEWS: Document it.
* Improve `tbl' warnings.wl2010-02-041-4/+7
| | | | | | * src/preproc/tbl/table.cpp (table::compute_expand_width, table::compute_separation_factor): Add file name strings to warnings.
* Refer to groff(1) for the location of temporary files.wl2010-01-201-1/+7
|
* Don't hardcode `ps' device.wl2010-01-021-1/+1
| | | | | | This is needed for cooperation with gropdf. * src/preproc/pic/troff.cpp (troff_output::text): Use GROPS_REG.
* Minor fixes suggested by Keith.wl2009-10-282-3/+3
|
* Document limitations with `#' characters, tbl, and eqn.wl2009-10-282-1/+22
| | | | | | Problem reported by Michael Kain <mcain6925@comcast.net>. * src/preproc/eqn/eqn.man, src/preproc/tbl/tbl.man: Do it.
* [pic] Fix a border case for arc computation.wl2009-09-011-2/+2
| | | | | | | | | | | | | * src/preproc/pic/object.cpp (object_spec::make_arc): It can happen that test `radius < d' in the loop is satisfied, but the difference in the two values is on the order of 1e-10. If `radius' is small, doubling the value can lead to a fairly gross error. The original code appears to have been intended to deal with the situation when radius is orders of magnitude less than `d'. The replacement code simply assigns `radius' the smallest value that avoids problems with the floating point code further on in the routine.
* pic: Fix handling of nested positions.wl2009-06-161-5/+18
| | | | | | | | | | | | Reported by Doug McIlroy <doug@cs.dartmouth.edu>. * src/preproc/pic/pic.y: Split `expr' into `expr_lower_than' and `expr_not_lower_than' so that we can handle (1/3)<(1/2)<foo,bar>,baz> correctly. Without the patch, `(1/3)<(1/2)' is handled prematurely as a comparison.
* * */Makefile.* (CLEANADD, CLEANNOTSRCDIRADD, CLEANDIRADD): Renamedgroff-1_20_1wl2009-01-081-1/+1
| | | | | to... (MOSTLYCLEANADD, MOSTLYCLEANNOTSRCDIRADD, MOSTLYCLEANDIRADD): This.
* Update copyright year.wl2009-01-0556-56/+73
|
* * */*: Update GPL2 to GPL3.wl2009-01-0449-239/+192
|
* * src/preproc/tbl/table.cpp (table::compute_expand_width,wl2009-01-031-7/+12
| | | | | table::compute_separation_factor): In warning messages, don't refer to pages but to input line numbers.
* 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-164-191/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-071-1/+1
| | | | | | 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.
* Clarify meaning of `z' modifier.wl2008-10-271-1/+3
|
* * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' towl2008-10-182-173/+178
| | | | | | | `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-182-19/+32
| | | | | | | New function. (table::compute_widths): Replace some code with new function (shifted to a more appropriate place). * src/preproc/tbl/table.h: Updated.
* * man/roff.man, doc/groff.texinfo: Improve the history part. Thiswl2008-10-101-2/+3
| | | | | | | | | | 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-091-2/+5
| | | | | 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
|
* * src/devices/grops/grops.man, src/roff/troff/troff.man,wl2008-10-031-26/+39
| | | | | | src/preproc/soelim/soelim.man: Correct documentation of -I switch. Reported by Larry Kollar. Other minor formatting issues.
* * src/preproc/tbl/tbl.man: Document computation of element widths.wl2008-08-201-0/+45
|
* Add default encoding option -D to preconv and groff.wl2008-08-202-9/+24
| | | | | | | | | | | | | * src/preproc/preconv/preconv.cpp (default_encoding): Make it an array. Update all users. (main): Handle new option -D. (usage): Updated. * src/preproc/preconv/preconv.man: Updated. * src/roff/groff/groff.cpp (main): Handle new option -D. (synopsis, help): Updated. * src/roff/groff/groff.man: Updated.