summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * win32-diffs: Removed.groff-1_19wlemb2003-04-292-2708/+2
|
* * VERSION: Set to 1.19.wlemb2003-04-299-49/+389
| | | | | | | | | | * REVISION: Set to 0. * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated. * src/devices/grohtml/post-html.cpp (html_printer::~html_printer): Define charset as `US-ASCII' in html output. * tmac/www.tmac (ULE): Add missing scaling indicator.
* * doc/groff.texinfo: Document `dn' and `dl' registers if used withwlemb2003-04-282-4/+49
| | | | | `.da' and `.boxa'. Document how to insert discardable whitespace with `.ss'.
* * src/preproc/pic/tex.cpp (tex_output::start_picture): Make codewlemb2003-04-274-12/+18
| | | | | | work with plain TeX also. * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
* * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):wlemb2003-04-255-20/+94
| | | | | | | | | Use a loose DTD. * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a vbox with positive height and zero depth if in TeX mode. * NEWS: Document glyph name changes for grodvi and grolj4.
* * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code (again).wlemb2003-04-243-4/+7
| | | | * doc/pic.ms: Fixed.
* * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.wlemb2003-04-232-1/+5
|
* HP-UX 10.20 has `snprintf' but it isn't declared.wlemb2003-04-236-1/+96
| | | | | | | * configure.ac: Add declaration test for snprintf. * configure: Regenerated. * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'. * src/include/config.hin: Regenerated.
* Fix typo in example for `.length'.wlemb2003-04-221-1/+1
|
* Add keyword `figname' to pic, specifying the name of the picturewlemb2003-04-2112-29/+181
| | | | | | | | | | | | | | | | | | | | | | | | box in TeX mode. Based on a patch from William J Poser <wjposer@unagi.cis.upenn.edu>. * src/preproc/pic/pic.y: New token `FIGNAME'. (macro_name): New rule of type <str>. (placeless_element): Handle `FIGNAME'. * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'. * src/preproc/pic/main.cpp (graphname): New global variable. (do_picture): Initialize `graphname'. * src/preproc/pic/pic.h: Updated. * src/preproc/pic/tex.cpp (tex_output::start_picture): Use `graphname'. Simplify TeX code. (tex_output::text): Beautify output. * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate `shaded' and `outlined' unconditionally. * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated. Minor improvements. * PROBLEMS, README.CVS: Mention that bison version 1.875b or greater is necessary.
* Add option -r to soelim to avoid emission of `.lf' lines.wlemb2003-04-184-5/+56
| | | | | | | | | | | Add option -t to produces TeX comment lines instead of `.lf' lines. * src/preproc/soelim/soelim.cpp: New global variables `raw_flag' and `tex_flag'. (usage): Updated. (main): Handle `-r' and `-t'. (set_location): Handle `raw_flag' and `tex_flag'. * src/preproc/soelim/soelim.man, NEWS: Updated.
* * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning messagewlemb2003-04-173-25/+115
| | | | | if --quiet is used for the configure script. * configure: Regenerated.
* Add comments.wlemb2003-04-171-2/+16
| | | | Remove nested paired braces also.
* * tmac/hyphenex.sh: Replaced with...wlemb2003-04-163-88/+70
| | | | | * tmac/hyphenex.pl: This perl script to avoid sed compatibility nightmares.
* * src/devices/grohtml/post-html.cpp (text_glob::text_glob):wlemb2003-04-1615-31/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `const' to second argument. (html_printer::add_table_end): Add `const' to argument. * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add `const' to arguments. * src/devices/grohtml/html-text.h: Updated. * src/devices/grolbp/charset.h (symset): Use `unsigned char'. * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for argument. * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use cast for integer constant. * src/preproc/html/pre-html.cpp (image_device): Use `const'. (writeNbytes): Add `const' to first argument. (writeString): Add `const' to argument. (char_buffer::can_see): Add `const' to third argument. * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add `const' to argument. * src/preproc/html/pushback.h: Updated. * src/preproc/soelim/soelim.cpp (include_list): Add `const'. (include_path_append): Add `const' to argument. (do_file): Updated. * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const' for `value'. (unicode_to_glyph_init::unicode_to_glyph_init): Updated. * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const' for `value'. (unicode_decompose_init::unicode_decompose_init): Updated. * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const' for `value'. (glyph_to_unicode_init::glyph_to_unicode_init): Updated. * src/roff/troff/input.cc (process_startup_file): Add `const' to argument.
* * tmac/hyphenex.sh: Make script more portable by using a herewlemb2003-04-162-56/+64
| | | | document.
* Renamed all `*.cc' files to `*.cpp'.wlemb2003-04-15149-176/+185
| | | | Updated all configuration files, makefiles, and documentation.
* * tmac/hyphenex.sh: Slight improvements.wlemb2003-04-151-1/+13
|
* * font/devascii/R.proto, font/devcp1037/R.proto,wlemb2003-04-156-1/+257
| | | | | | | | | font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining character slots with unnamed glyphs. * tmac/an-old.tmac: Fix hyphenation value if `cR' is active. (an-first): New global variable. (an-header): Emit vertical space between multiple man pages.
* * doc/groff.texinfo, man/groff_out.man: \S only accepts integerwlemb2003-04-123-3/+8
| | | | values.
* * PROBLEMS: Revised.wlemb2003-04-113-42/+64
| | | | * doc/webpage.ms: Improved.
* Add register \n[.height] which returns the value of \H.wlemb2003-04-1013-195/+112
| | | | | | | | | | | | | | | | | | | | Add register \n[.slant] which returns the value of \S. * src/roff/troff/env.cc (init_env_requests): Implement. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/html.tmac: Move some of the data into html-end.tmac. Remove most of the character translations for eqn since html fonts now cover those characters. Load www.tmac. * tmac/html-end.tmac: New file. * tmac/troffrc: Load html.tmac not www.tmac for -Thtml. * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml. * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac. * man/groff_out.man: Document negative values of `N' if -Thtml is used.
* * Makefile.comm (depend.temp): Check location of YTABC.wlemb2003-04-073-2/+11
|
* Fix typo.wlemb2003-04-051-1/+1
|
* * contrib/mom/Makefile.sub (GROFFBIN): New variable for groffwlemb2003-04-0510-34/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.in (TROFFBIN): New variable for troff binary path. (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (TROFF): Use TROFFBIN. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.sub (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS with INSTALL_SCRIPT. (uninstall_dev): Uninstall scripts from DEVSCRIPTS. * Makefile.dev (all): Depend on DEVSCRIPTS. (install_dev): Likewise. * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold scripts. * font/devps/Makefile.sub (DEVSCRIPTS): Likewise. (DEVGENSCRIPTS): New variable to hold generated scripts. * src/libs/libdriver/input.cc (IntArray::operator[], IntArray::get_data): Remove meaningless `const' in return value. * README.CVS: New file.
* Fix handling of &nbsp; in grohtml. To do this, troff emits `N'wlemb2003-04-044-16/+78
| | | | | | | | | | | | | | with a negative value, representing the width of the unbreakable space (only for -Thtml). grohtml then converts this back to &nbsp; and uses the value of N as its width. * src/roff/troff/node.cc (space_char_hmotion_node::tprint, unbreakable_space_node::tprint): Emit `N-<width>'. * src/include/printer.h (printer::set_numbered_char): Make it virtual. Make members `font_table' and `nfonts' protected instead of private. * src/devices/grohtml/post-html.cc (html_printer::set_numbered_char): New member function.
* Check for stdint.h in C++, not in C.wlemb2003-04-049-11/+91
| | | | | | | | | | | | | | | * aclocal.m4 (GROFF_STDINT_H): New function, * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of AC_CHECK_HEADERS. * configure, src/include/config.hin: Regenerated. * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H. * src/libs/libgroff/maxfilename.cc: s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/. * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't emit word marker.
* * doc/groff.texinfo: Change dir category to `Typesetting'.wlemb2003-04-044-11/+17
| | | | | | * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc (*printer::change_color, *printer::change_fill_color): Add missing `const'.
* Make groff independent from locale's numeric settings.wlemb2003-04-0313-17/+62
| | | | | | | | | | | | | | | | | * configure.ac: Check for `setlocale'. * configure, src/include/config.hin: Regenerated. * src/include/lib.h: Handle HAVE_SETLOCALE. * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc (main), src/preproc/pic/main.cc (main): Call `setlocale'. * doc/groff.texinfo (Man font macros): Mention that there is no space between arguments of .BI and friends. * man/roff.man: Small fixes.
* * src/devices/grohtml/html-table.cc (html_table::emit_col,wlemb2003-04-033-7/+29
| | | | | | | | html_table::is_gap): Compute table widths after converting border positions to avoid rounding errors. * src/devices/grohtml/html-text.cc (html_text::do_space): Handle `space_emitted' properly.
* * the footer was not adjusted by VM due to a missingjhaegg2003-04-022-6/+12
| | | | pg*extra-footer-size in the calculation of pg*last-pos
* * space adjustments in 4.MT to make it more likejhaegg2003-04-022-6/+11
| | | | the original
* * src/devices/grohtml/html-table.cc: Fix column width calculation.wlemb2003-04-016-8/+58
| | | | | | | | | | | | | | | | | | (html_table::set_linelength): Don't add 1. (html_table::add_indent): Don't subtract 1. * tmac/html.tmac: Set default page offset to zero. Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used. * src/roff/troff/node.cc (space_char_hmotion_node::tprint, unbreakable_space_node::tprint): New functions. (troff_output_file): Make space_char_hmotion_mode::tprint and unbreakable_space_node::tprint to friends. * src/roff/troff/node.h: Updated. * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined in the HTML standard).
* * src/roff/troff/env.cc (point_size): Fix emission of html tag.wlemb2003-03-319-47/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, the following code .di xxx .ps 10 a .br .di x\*[xxx] produces `x a' instead of `xa'. This is a temporary fix, disabling font changes in diversions for -Thtml. * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of `HTML-TAG'. (an-do-tag-html): Merge with ... (an-do-tag): This macro. Change code slightly to circumvent grohtml bug. * tmac/troffrc-end: Define dummy for HTML-TAG-NS. * src/devices/grohtml/html-table.cc (html_table::emit_col, html_table::is_gap): Round `width' properly. * tmac/html.tmac: Provide some default layout parameters for grohtml. * font/devhtml/DESC.proto: Don't use discrete values for `sizes' command. src/devices/grops/ps.cc (ps_printer::do_import): Fix error message. * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is defined.
* * removed error check i 4.MT, .AF is not mandatory anymorejhaegg2003-03-302-4/+9
|
* * cov*firm now defined only if arg to AF is non-emptyjhaegg2003-03-292-3/+9
| | | | | That will also enable cov*default-firm from the mm locale-file to work.
* * added .ll in pg@set-env to initialize thejhaegg2003-03-292-2/+8
| | | | header environment properly
* * src/roff/troff/env.cc (vertical_spacing): Allow zero value forwlemb2003-03-203-3/+9
| | | | | `.vs'. * doc/groff.texinfo: Updated.
* * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,wlemb2003-03-202-0/+7
| | | | TOKEN_END_TRAP>: Reset `have_input'.
* * src/roff/groff/groff.man: Mention groff_trace man page.wlemb2003-03-193-5/+10
|
* * groff_mm.man: Some fixes from Robert D. Gouldingwlemb2003-03-192-6/+11
| | | | <goulding@Princeton.EDU>.
* s,`,\`,gwlemb2003-03-181-2/+2
|
* * Makefile.in (LIBEXT): New variable to indicate the file extensionwlemb2003-03-177-63/+154
| | | | | | | | | | | | | | of library files. Computed heuristically from $(OBJEXT). (MDEFINES): Add $(LIBEXT). * Makefile.lib, Makefile.comm: Use it. * src/utils/pfbtops/pfbtops.c (get_text): New function. Split overlong lines into smaller chunks. (get_binary): New function. (main): Use them. * src/utils/pfbtops/pfbtops.man: Updated. * src/roff/groff/groff.man: Minor syntax fix.
* * src/devices/grops/ps.cc (ps_printer::media_set,wlemb2003-03-152-12/+25
| | | | ps_printer::~ps_printer): Handle zero paper width and length.
* Add options -p and -l to grodvi.wlemb2003-03-1411-159/+277
| | | | | | | | | | | | | | | | | | | | * src/devices/grodvi/dvi.cc: Include paper.h. (landscape_flag, user_paper_length, user_paper_width): New global variables. (dvi_printer::begin_page): Emit `papersize' special. Set color after initialization of `cur_h' and `cur_v'. (main): Add options `-l' and `-p'. * font/devdvi/Makefile.sub (DESC): Set `papersize'. * src/devices/grodvi/grodvi.man, NEWS: Updated. * src/devices/grops/psrm.cc (valid_input_table): Fixed. * src/devices/grops/grops.man: Move documentation of .PSPIC to... * man/groff_tmac.man: This man page. * man/groff_font.man: Declare `paperwidth' and `paperlength' as deprecated. * tmac/X.tmac: Don't load pspic.tmac.
* *** empty log message ***wlemb2003-03-121-0/+146
|
* Make variable `pr' local to libdriver/input.cc. Based on a patchwlemb2003-03-1221-83/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by Bernd Warken <bwarken@mayn.de>. * src/include/driver.h (pr): Removed. * src/libs/libdriver/input.cc (pr): New global variable. (do_file): Deallocate `pr'. * src/libs/libdriver/printer.cc (pr): Removed. * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc (main): Don't delete `pr'. * tmac/a4.tmac, tmac/composite.tmac: Use `.do'. * tmac/papersize.tmac: New file. * tmac/troffrc: Include `papersize.tmac'. * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'. * tmac/an-old.tmac: Set LT to LL by default. * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man, doc/groff.texinfo: Updated. * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing bug which caused all odd iso papers to have wrong dimensions. * src/devices/grops/ps.cc (user_paper_width): New global variable. (main) <'p'>: Set `user_paper_width' also. (ps_printer::media_width, ps_printer::media_height): Use values given with option `-p'.
* * src/include/nonposix.h: Provide default for SET_BINARY.wlemb2003-03-117-69/+70
| | | | | | | | | * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc, src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY unconditionally. * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally. (main): Treat \r\n as \n.
* * tmac/an-old.tmac: Use register `HY' to control hyphenation.wlemb2003-03-1058-8876/+15390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it. Added support to access more than 256 glyphs in Type 1 fonts. * src/devices/grops/ps.cc (subencoding): New structure. (style): Add `sub' field. Updated all users. (ps_printer): Add `subencodings' and `next_subencoding_index' fields. Add `set_subencoding', `get_subfont' and `encode_subfont' member functions. Updated all users. (ps_printer::set_char): Use `set_subencoding'. (make_subencoding_name): New function. (ps_printer::set_style): Handle case where `sty.sub' is not zero. (ps_printer::~ps_printer): Emit subencoding definitions. * src/devices/grops/psrm.cc (valid_input_table): New array to properly support EBCDIC. (white_space): Add `\f'. (ps_get_line): Change first argument to be of type `string &'. Updated all callers. This allows to get lines of arbitrary length. Use `valid_input_table'. Remove warning about non-conforming PS line length. This seems not to be of great importance -- for example, dvips don't emit a warning either. (PS_LINE_MAX): Removed. (matches_comment): Change first argument to be of type `string &'. * src/devices/grops/grops.man, src/devices/grops/TODO: Updated. * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed, %AGL_to_unicode, %default_ligatures): New hash tables. Read all map entries. Add unencoded characters. Check for default ligatures if there are no `L' entries. Print all kern entries. Print all characters in charset. * src/utils/afmtodit/afmtodit.man: Updated. * font/devps/*: Regerated all fonts. * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence of characters, just use `.trin'. Otherwise the mapping is depending on the font encoding. * tmac/ps.tmac: Add `fi' and `fl'. Improve `Fi' and `Fl'. * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'. * tmac/Xps.tmac: Fix `em'. * NEWS: Updated.
* * src/roff/troff/input.cc (charinfo_to_node_list): Resetwlemb2003-03-052-0/+6
| | | | `have_input'.