diff options
author | wl <wl> | 2008-11-16 17:22:21 +0000 |
---|---|---|
committer | wl <wl> | 2008-11-16 17:22:21 +0000 |
commit | 53d40d589acd73b6f2a8d90d33e42819833abf5a (patch) | |
tree | b6f919a37f3672298c111ec088d230b372060e0d /NEWS | |
parent | 4653e270802862dccbe36bf7d56387290f94ac47 (diff) | |
download | groff-53d40d589acd73b6f2a8d90d33e42819833abf5a.tar.gz |
Implement `x' specifier for expanded columns. Contrary to old DWB
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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -96,6 +96,16 @@ o Heinz-Jürgen Örtel contributed code for two new keywords, `xslanted' and `yslanted', which can change the shape of boxes into arbitrary parallelograms. +Tbl +--- + +o Latest versions of DWB tbl introduced an `x' column specifier for a single + column expanded to the line width. GNU tbl has now been extended to + support even multiple `x' specifiers within a table. + +o To avoid collision with the new `x' specifier, a block formatting macro + must now be selected with specifier letter `m'. + Eqn --- @@ -440,7 +450,7 @@ o Dashed and dotted ellipses have been implemented. Tbl --- -o New key character `x' to make tbl call a user-defined macro on a table +o New specifier `x' to make tbl call a user-defined macro on a table cell. Patch by Heinz-Jürgen Oertel <hj.oertel@surfeu.de>. Grap2graph |