summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* formattingwl2006-09-264-5/+9
|
* * src/roff/troff/input.cpp (read_size): Revert previous changewl2006-09-101-10/+3
| | | | | | w.r.t. `\s-[-...]'. * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
* * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that itwl2006-09-091-4/+14
| | | | | | behave the same as `\s-[\n[.s]]' (this is, emit a warning and set point size to 1). Reported by Gunnar Ritter. Also catch `\s-[-...]' and friends (causing an error).
* * src/roff/troff/env.cpp (environment::do_break): Insert zero-widthwl2006-09-061-2/+4
| | | | | | space only if there is no previous space. This fixes a bug which caused unwanted filling of the last line in a paragraph. Thanks to Gunnar Ritter for an analysis.
* * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.wl2006-09-031-3/+3
| | | | Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
* Add a request `pev' to print environment information (similar towl2006-09-022-2/+154
| | | | | | | | | | | | | | | `pnr' and `ptr' to print number registers and traps). * src/roff/troff/env.h (environment): Add member function print_env. * src/roff/troff/env.cpp: (environment::print_env): New function to print a given environment state. (print_env): New global function to iterate through the environments, printing each one. (init_env_requests): Register `pev'. * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man, NEWS: Document `pev' request.
* Fix soelim usage().bwarken2006-09-011-1/+1
|
* * src/preproc/pic/main.cpp (usage): Add missing options.wl2006-09-011-3/+3
|
* * src/preproc/soelim/soelim.man: Document how to insert `\' and ` 'wl2006-08-252-11/+33
| | | | in file names.
* * font/devps/prologue.ps: Add BPhook.wl2006-08-133-240/+302
| | | | | | | | | | | | * src/devices/grops/grops.man: Document BPHook. Reorder some sections for better readability. * src/include/lib.h (getlocale): New macro. (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as suggested by Bruno. * src/preproc/preconv/preconv.cpp (main): Use getlocale.
* Add new flag to .cflags to enable hyphenation without looking atwl2006-08-112-8/+21
| | | | | | | | | | | | | hcode values. * src/roff/troff/charinfo.h (charinfo): New enumeration value `IGNORE_HCODES'. New member function `ignore_hcodes'. * src/roff/troff/node.cpp (break_char_node::add_self, node::add_char): Updated. * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
* typos, grammar fixeswl2006-07-311-1/+1
|
* Add a request `.fzoom' and a number register `.zoom' to magnifywl2006-07-126-27/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fonts. * src/include/font.h (font): Add member variable `zoom'. Add member functions `set_zoom' and `get_zoom'. Remove `static' attribute from `scale' member function. * src/libs/libgroff/font.cpp (font::font): Updated. (scale_round): New version with three parameters to handle zoom factor. (font::scale, font::get_width): Handle zoom factor. (font::set_zoom, font::get_zoom): New functions. (font::load): Handle `zoom' while computing `space_width'. * src/roff/troff/env.h: Declare `env_get_zoom'. (environment): Add member function `get_zoom'. * src/roff/troff/env.cpp (environment::get_zoom): New function. (init_env_requests): Initialize `.zoom' register. * src/roff/troff/node.cpp (font_info): New member functions `set_zoom' and `get_zoom'. (tfont): New member function `get_zoom'. (env_get_zoom): New function. (troff_output_file::set_font): Handle zoom factor. (font_zoom_request): New function. (init_node_requests): Initialize `fzoom' request. * docs/groff.texinfo (Changing Fonts), man/groff.man, man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom' register. * src/roff/troff/TODO: Updated.
* * man/groff_tmac.man: Document usage of .PSPIC within diversions.wl2006-07-021-1/+1
|
* * src/roff/troff/input.cpp (interpolate_macro):wl2006-06-291-1/+1
| | | | s/probably/possibly/, as suggested by Keith.
* Add support for \D'p...' to grotty.wl2006-06-292-24/+83
| | | | | | | | | | | * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of its code to... (tty_printer::line): This function. (tty_printer::draw): Rewritten; just call either draw_line or draw_polygon. (tty_printer::draw_line, tty_printer::draw_polygon): New functions. * src/devices/grotty/grotty.man, NEWS: Document it.
* update copyright yearwl2006-06-281-2/+2
|
* * src/preproc/refer/command.h (have_bibliography): New variablewl2006-06-273-4/+8
| | | | | | | | | | | declaration. * src/preproc/refer/command.cpp (bibliography_command): Set `have_bibliography'. * src/preproc/refer/refer.cpp: Initialize `have_bibliography'. (output_references): Emit warning only if `have_bibliography' is set.
* Insignificant note in pre-html.h that refered to old .cc file.sinuhe2006-06-272-36/+39
|
* typoswl2006-06-201-3/+3
|
* * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within awl2006-06-161-0/+12
| | | | macro (as suggested by Tadziu Hoffmann).
* * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within awl2006-06-131-0/+33
| | | | macro (as suggested by Tadziu Hoffmann).
* * src/roff/troff/input.cpp (token::next) <\N>: Catch negative valueswl2006-05-311-0/+4
| | | | | | | here. * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to... (PROCESSEDEXAMPLEFILES): Here.
* * src/libs/libgroff/font.cpp (font::load): Reject fonts calledwl2006-05-303-13/+21
| | | | | | | | | | | | | | | | | | | | `DESC'. Reduce number of false positives for `.if F ...' conditionals. Improve warning messages. * tmac/Makefile.sub: Add copyright notice. (NORMALFILES): Add man.tmac and ms.tmac. (SPECIALFILES): Remove man.tmac and ms.tmac. (CLEANADD): Remove man.tmac-sed and ms.tmac-sed. (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac specially. (stamp-sed): Don't handle man.tmac and ms.tmac. Remove obsolete components in sed's regexp. * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps. * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
* * tmac/an-old.tmac (an-do-tag): Make margin characters work.wl2006-05-271-1/+2
| | | | | * src/roff/troff/env.cpp (environment::copy): Copy margin character node.
* * src/roff/groff/groff.man: Remove superfluous word `intermediate'.keithmarshall2006-05-111-1/+1
|
* * src/roff/groff/groff.man: Update copyright notice.keithmarshall2006-05-101-12/+9
| | | | Improved wording to describe effect of `-Z' option.
* * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don'twl2006-05-051-13/+9
| | | | | swallow character immediately after `\[...]'. Simplify code.
* * src/utils/afmtodit/afmtodit.pl: New option `-c' to add fontwl2006-05-012-8/+42
| | | | | information as a comment in output. * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
* * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_filewl2006-04-261-3/+3
| | | | | <'F'>): Use `get_extended_arg' to behave as documented. Reported by Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
* Surround the (pseudo) file name for the .pso request with `<' andwl2006-04-263-12/+16
| | | | | | | | | | | | | `>'. * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add second parameter to `really_put_filename' and `put_filename'. (troff_output_file::really_put_filename): Emit `<' and `>' around filename if second argument is set. * src/roff/troff/node.h: Updated. * src/roff/troff/input.cpp (file_iterator::file_iterator, file_iterator::set_location): Update to changes in node.cpp.
* * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):wl2006-04-261-1/+2
| | | | Handle current_paragraph only if it is non-NULL.
* * src/preproc/preconv/preconv.cpp (do_file): Fix conditionalwl2006-04-251-5/+5
| | | | | | preprocessor expression (I18N -> HAVE_ICONV). (main): Fix handling of option `-h'. Fix conditional preprocessor expression.
* Implement new number register `.br' which is set to 1 if a macro haswl2006-04-042-9/+26
| | | | | | | | | | | | | | | | | | | | | | been called as .foo and to 0 if called as 'bar. This is useful for -mtrace so that requests can be reliably traced too. * src/roff/troff/input.cpp (input_iterator): Add virtual function `get_break_flag'. (macro_iterator): Add `with_break' member and `get_break_flag' function. Update constructors. (input_stack): Add function `get_break_flag'. (break_flag_reg): New number register class. (input_init_requests): Register `.br'. * src/roff/troff/TODO: Updated. * tmac/trace.tmac: s/!!sp/!!!sp/. Modify definitions of `de', `de1', `am', and `am1' to use \n[.br]. * docs/groff.texinfo, man/groff.man, man/groff_diff.man, NEWS: Document it.
* * src/devices/grops/ps.cpp: s/must not/should not/ in warningwl2006-03-291-3/+3
| | | | messages where appropriate.
* * configure.ac: Call AC_PROG_EGREP.wl2006-03-282-4/+9
| | | | | | | | | | | | | * configure: Regenerated. * Makefile.in (EGREP): New variable. (MDEFINES): Add $(EGREP). * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly (bug reported by Robert Goulding <Goulding.2@nd.edu>). Use @EGREP@. * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
* Add two request `.device' and `.devicem' which are equivalent towl2006-03-271-0/+37
| | | | | | | | | | | `\X' and `\Y', respectively. * src/roff/troff/input.cpp (device_request, device_macro_request): New functions. (init_input_requests): Register them. * doc/groff.texinfo, man/groff_diff.man, man/groff.man, NEWS: Document them.
* * src/roff/troff/input.cpp (encode_char): Emit special characterswl2006-03-272-9/+8
| | | | | | | for -Thtml as `\[...]'. * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated. * doc/groff.texinfo (\X): Updated.
* * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missingwl2006-03-271-0/+3
| | | | files.
* * src/devices/grops/grops.man: Some clarifications regardingwl2006-03-261-3/+24
| | | | insertion of PostScript snippets.
* * src/preproc/pic/pic.y (expr <INT>): Fix code.wl2006-03-221-1/+1
|
* * src/preproc/pic/pic.y (object_spec THEN): For compatibility withwl2006-03-211-8/+21
| | | | | | | | | | | | | | | | | | | both DWB pic and dpic, make right; line then down; equal to right; line right then down; instead of right; line 0 then down; * doc/pic.ms: Document this.
* * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'wl2006-03-191-3/+27
| | | | | attribute in combination with `with'. Bug reported by Jennifer Sayers <jenjen@mail.usyd.edu.au>.
* * src/preproc/pic/pic.y (expr <INT>): Really return integer part.wl2006-03-191-2/+3
|
* * src/devices/grops/grops.man: Add section how to install fonts.wl2006-03-181-28/+169
|
* * LICENSE: Renamed to...wl2006-03-182-8/+19
| | | | | * LICENSES: This. Collect all licensing information in this file. * tmac/README, src/libs/snprintf/README: Removed.
* * src/preproc/tbl/tbl.man: Mention default length of text blocks.wl2006-03-131-1/+4
|
* * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,wl2006-03-091-12/+9
| | | | | ps_printer::do_mdef): Overlong lines now cause a warning message, not an error.
* Fix URLs for Adobe's documentation files.wl2006-03-081-1/+1
|
* * tmac/groff_ms.man: Document PT, HD, and BT.wl2006-03-051-3/+6
| | | | | * src/roff/troff/node.cpp (make_glyph_node): Improve warning message for single-letter glyph names.