summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* More fixes for MSVC compiler.wlemb2003-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use $(SEP). * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO) [_MSC_VER]: Define conditionally. (getpid) [_MSC_VER]: Remove. Include direct.h and process.h conditionally. * src/roff/troff/node.cpp (suppress_node::tprint): Don't use parentheses for a_delete. * src/utils/lookbib/lookbib.cpp: Include nonposix.h. * test-groff: Replaced with... * test-groff.in: This new template to handle path separator properly. * configure.ac: Check for direct.h and process.h. Generate test-groff script. * configure, src/include/config.hin: Regenerated.
* * doc/groff.texinfo: Document `dt' request correctly.wlemb2003-12-161-31/+36
| | | | Other minor typographical improvements.
* * groff.texinfo: Document special behaviour of `.vs 0'.wlemb2003-12-021-11/+15
| | | | | Improve documentation of `cflags' request. * NEWS: Updated.
* LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.wlemb2003-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for vsnprintf. * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and `HAVE_VSNPRINTF'. * src/include/config.hin: Regenerated. * aclocal.m4: Updated syntax to autoconf 2.59. (GROFF_HTML_PROGRAMS): Use AC_FOREACH. Don't check for gsos2. (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides working abs_top_srcdir and abs_top_builddir. * configure.ac: Updated syntax to autoconf 2.59. Don't call GROFF_SRCDIR and GROFF_BUILDDIR. Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS. * configure: Regenerated. * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/, s/@groff_top_builddir@/@abs_top_builddir@/. * src/roff/groff/pipeline.c (xstrsignal): s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/. * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always make start angle smaller than end angle to circumvent a bug in tpic handling of some versions of dvipdfm (and dvipdfmx).
* * src/devices/grops/grops.man: Improve section on creating EPS.wlemb2003-10-311-1/+1
| | | | | * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter -> -P-pletter).
* * doc/groff.texinfo: Fix documentation of `.if'.wlemb2003-10-291-4/+5
|
* Fixing URL of Adobe Glyph List.wlemb2003-10-282-3/+3
|
* * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),wlemb2003-10-131-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/roff/troff/input.cc (usage): Updated. * NEWS, doc/groff.texinfo: Updated. * src/libs/libgroff/searchpath.cpp (search_path::open_file_cautious): New function which also handles `-' as stdin and stdout depending on the access mode. * src/include/searchpath.h (search_path): Updated. * src/devices/grops/ps.cpp (main): Handle new `-I' switch. * src/devices/grops/ps.h: Include `searchpath.h'. * src/devices/grops/psrm.cpp (resource_manager::supply_resource): Open resource file with `include_search_path.open_file_cautious'. * src/devices/grops/grops.man: Document new `-I' switch. * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp (main), src/devices/grolj4/lj4.cpp (main), src/devices/grotty/tty.cpp (main): Ignore new `-I' switch. * src/preproc/soelim/soelim.cpp (include_list_length, include_list): Replaced with... (include_search_path): New global variable. (include_path_append): Removed. (main): Use `include_search_path.command_line_dir' to handle `-I'. (do_file): Simplify, using new `include_search_path.open_file_cautious'. * src/roff/groff/groff.cpp (print_commands): Accept file handle as parameter. (main): Pass arguments to `-I' to both troff and devices. Improve handling of `-V'. * src/roff/groff/groff.man: Document changes to -I and -V. * src/roff/troff/input.cpp (include_search_path): New global variable. (next_file, source, ps_bbox_request, transparent_file, process_input_file): Use new `include_search_path.open_file_cautious'. (main) Handle `-I' switch. * src/roff/troff/node.cpp (troff_output_file::really_copy_file): Use new `include_search_path.open_file_cautious'. * src/roff/troff/node.h: New extern symbol `include_search_path'. * src/roff/troff/troff.man: Document new `-I' switch.
* * doc/groff.texinfo: Minor fixes.wlemb2003-08-161-20/+10
| | | | * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
* * doc/Makefile.sub: Not all shells expand wildcards in the `for'wlemb2003-08-082-20/+29
| | | | | | | | | | | | | argument list. Use `ls' to expand, similar to autoconf. * Makefile.comm (install_dev, uninstall_dev): Protect `for' against empty argument lists. * doc/groff.texinfo: Improve documentation how vertical spacing and line breaks interact. Other minor fixes. * tmac/www.tmac: Initialize `www-htmlimage-gap'.
* * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.wlemb2003-07-242-92/+168
| | | | | * doc/texinfo.tex: Updated from texinfo 4.6. * README.CVS: From now on we need texinfo 4.6.
* Add requests `dei1' and `ami1' for completeness.wlemb2003-07-241-2/+10
| | | | | | | | | | | | | | | | | | | | | | | * src/roff/troff/input.cc (calling_mode): Remove CALLING_DISABLE_COMP. (comp_mode): New enumeration. (do_define_string, define_string, define_nocomp_string, append_string, append_nocomp_string): Updated. (do_define_macro): Add third parameter. (define_macro, define_nocomp_macro, define_indirect_macro, append_macro, append_nocomp_macro, append_indirect_macro): Updated. (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New functions. (ignore): Updated. (init_input_requests): Add `dei1' and `ami1'. * tmac/trace.tmac: Handle de1 and am1. (de): Improve tracing message. (am): Add missing `do'. (return): Use de1. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document new requests.
* Add option -G to .MPIMG to insert a gap between text and the image.wlemb2003-07-231-1/+22
| | | | | | | | | | | | | | | * tmac/www.tmac (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): Updated. (www-image-just, www-image-gap, www-htmlimage-gap): New variables. (MPIMG): Make option -L and -R optional. Implement option -G. * src/devices/grohtml/post-html.cpp (html_printer::do_file_components): Don't use `stdout' as lvalue since it can be a macro. * src/libs/libgroff/strerror.c: Include errno.h to be in sync with the corresponding test in aclocal.m4.
* * doc/Makefilesub (HTMLDOCFILESALL): New macro.wlemb2003-07-131-3/+6
| | | | | (HTMLDOCFILES): Revert to `pic.html'. (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
* * doc/pic.ms: Improve documentation of absolute coordinates.wlemb2003-07-121-9/+67
| | | | Document absolute positioning of pictures.
* Make grotty work on platforms which have unsigned char as thewlemb2003-07-072-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default for char. Based on a patch by Thomas Klausner <wiz@netbsd.org>. * src/devices/grotty/tty.cpp (schar): New typedef. Updated calls to declare_ptable and implement_ptable. (glyph): Use schar for back_color_idx and fore_color_idx. (tty_printer): Use schar for curr_fore_idx and curr_back_idx. (tty_printer::tty_color, tty_printer::tty_printer, tty_printer::color_to_idx, tty_printer::put_color): Updated. * src/roff/nroff/nroff.sh: Add option -d for completeness. * src/roff/nroff/nroff.man: Updated. * NEWS, tmac/groff_www.man: Updated. * doc/Makefile.sub: Updated. Implement support for multiple HTML output files. * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for -j command line option. * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New global variables. (file): New fields `new_output_file', `require_links', `output_file_name'. (file::file): Updated. (files::set_file_name, files::set_links_required, files::are_links_required, files::is_new_output_file, files::file_name, files::next_file_name): New functions. (header_desc): New fields `no_of_level_one_headings', `header_filename'. (header_desc::header_desc): Updated. (header_desc::write_headings): Handle multiple files. (html_printer::write_header): Save file name in which header occurs. (html_printer::determine_header_level): Possibly split files on level one headings. (html_printer::do_links, html_printer::troff_tag): Updated. (html_printer::insert_split_file, html_printer::do_job_name, html_printer::emit_link, html_printer::write_navigation, html_printer::do_file_components): New functions. (html_printer::~html_printer): Handle multiple files. (main): Handle command line option `-j'. * src/devices/grohtml/grohtml.man: Updated. * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule which splits file. * tmac/www.tmac (JOBNAME): New macro. * tmac/s.tmac (SH-NO-TAG): New macro. (@SH): Call SH-NO-TAG. (@NH): Updated.
* * tmac/doc.tmac (Bd): Change to doc-Li-font later.wlemb2003-07-051-0/+3
| | | | * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
* * doc/Makefile.sub (CLEANADD): Remove all files created bywlemb2003-07-011-1/+4
| | | | | | | running `make groff.{pdf,dvi}'. * Makefile.sub (DISTCLEANFILES): Remove all non-source files from src/xditview also.
* * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.wlemb2003-07-011-0/+5
| | | | | The X11 documentation files use them. * tmac/groff_ms.man, doc/groff.texinfo: Document them.
* * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaceswlemb2003-05-181-1/+29
| | | | | | | | | | | | | | | | | aren't stretched in a tag (this can fail with unformatted boxes). Instead, insert a break and go back one line. * src/roff/troff/input.cc (return_macro_request): If called with argument pop macro twice. We need this to trace `return'. * tmac/trace.tmac: Handle `return'. Fix typos. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of registers `FPS', `FVS', and `FPD'.
* * tmac/doc-common (Nd): Use \[em].wlemb2003-05-021-2/+8
| | | | | | | | | | | * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space, doc-footer-space): Initialize to 0.5i. (doc-setup-page-layout): Don't set doc-header-space and doc-footer-space. * REVISION: Set to 1. * doc/pic.ms: Document possible problems with `figname'.
* * VERSION: Set to 1.19.wlemb2003-04-292-41/+364
| | | | | | | | | | * 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-281-4/+43
| | | | | `.da' and `.boxa'. Document how to insert discardable whitespace with `.ss'.
* * src/preproc/pic/tex.cpp (tex_output::start_picture): Make codewlemb2003-04-271-3/+2
| | | | | | 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-251-6/+30
| | | | | | | | | 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-241-2/+3
| | | | * doc/pic.ms: Fixed.
* Fix typo in example for `.length'.wlemb2003-04-221-1/+1
|
* Add keyword `figname' to pic, specifying the name of the picturewlemb2003-04-211-7/+81
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Renamed all `*.cc' files to `*.cpp'.wlemb2003-04-151-1/+1
| | | | Updated all configuration files, makefiles, and documentation.
* * doc/groff.texinfo, man/groff_out.man: \S only accepts integerwlemb2003-04-121-1/+1
| | | | values.
* * PROBLEMS: Revised.wlemb2003-04-111-11/+25
| | | | * doc/webpage.ms: Improved.
* Add register \n[.height] which returns the value of \H.wlemb2003-04-101-1/+9
| | | | | | | | | | | | | | | | | | | | 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.
* * contrib/mom/Makefile.sub (GROFFBIN): New variable for groffwlemb2003-04-052-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * doc/groff.texinfo: Change dir category to `Typesetting'.wlemb2003-04-041-1/+1
| | | | | | * 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-031-8/+14
| | | | | | | | | | | | | | | | | * 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/roff/troff/env.cc (vertical_spacing): Allow zero value forwlemb2003-03-201-1/+1
| | | | | `.vs'. * doc/groff.texinfo: Updated.
* Make variable `pr' local to libdriver/input.cc. Based on a patchwlemb2003-03-121-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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'.
* * tmac/an-old.tmac: Use register `HY' to control hyphenation.wlemb2003-03-101-26/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Document composite glyphs and the `composite' request.wlemb2003-03-021-42/+159
| | | | * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
* * font/devdvi/generate/ec.map: Add some more Unicode entities.wlemb2003-03-011-26/+109
| | | | | | | | | | | * font/devdvi/*EC: Updated. * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files. * tmac/latin1 (latin1-tr): Undo any previous mapping. * tmac/troffrc: Load `composite.tmac'. * tmac/Makefile.sub (NORMALFILES): Updated. * NEWS: Updated.
* * doc/texinfo.tex: New version 2003-02-11.06.wlemb2003-02-274-688/+896
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tmac/doc-common (Dt): Don't emit warning for unknown section. * tmac/groff_mdoc.man: Fix description of `Dt'. * font/devps/prologue.ps: Fix for included Postscript that does a setpagedevice -- which is now safely ignored. * NEWS: Updated. * src/devices/grops/ps.cc: Now sets the page size in the generated document. This is done in two ways: Via a %%-comment for gv and the like, and via a PageSize and setpagedevice for programs that understands Postscript proper, like ps2pdf. * src/devices/grops/ps.h: New broken-flag to avoid page size definition, if required. * src/devices/grops/grops.man: New broken-flag 16 mentioned. * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@). Not really necessary due to the fix in prologue.ps, but cleaner: Such information does not belong in an .eps file. * doc/Makefile.sub: See doc/Makefile.in. * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing instead of P1 since the latter is broken in some versions of netpbm. * configure: Updated.
* Make man pages more customizable.wlemb2003-02-261-28/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tmac/an-old.tmac (FT): New register holding footer distance from bottom. (HF): New string holding the default heading font. (TH): Handle registers `IN' and `SN' set on the command line. Use `FT'. (PT, BT): New strings to customize header and footer lines. (an-header, an-footer): Use them. (SH, SS): Use `HF'. * tmac/groff_man.man: Document changes. * doc/groff.texinfo: Document man changes. Document Ultrix extensions of man. * src/roff/troff/input.cc (do_width, do_if_request): Reset `have_input' after changing back to old environment. * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move function up to be defined before first call. This is necessary to avoid a compilation problem with Sun's WorkShop 6 C++ compiler. * src/utils/afmtodit/afmtodit.pl: Make script search for files in the default font directory also. Based on a patch from James J. Ramsey <jjramsey_6x9eq42@yahoo.com>. * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@. * src/utils/afmtodit/afmtodit.man: Document it. * NEWS: Updated. * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
* * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'wlemb2003-02-231-17/+22
| | | | | | | | | | | | to be conform with Unicode 3.0 and newer. * font/devlj4/generate/text.map: Add `Eu'. * font/devlj4/generate/special.map: Flip `*e' and `+e'. * font/devlj4/S: Regenerated. * man/groff_char.man: Completely rewritten. * doc/groff.texinfo: Fix description of request and macro arguments.
* Another round trying to really fix problems with `have_input'.wlemb2003-02-171-0/+5
| | | | | | | | | | | * src/roff/troff/input.cc (input_stack::get): Handle `have_input'. (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'. * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color handling if both foreground and background colors are default. * doc/groff.texinfo (Debugging): Document .lf differences to AT&T troff.
* New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.wlemb2003-02-141-38/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make \D'f ...' move horizontally again for backwards compatibility. Replace it with \D'Fg ...' where appropriate to avoid dependency on horizontal resolution. * src/roff/troff/input.cc (do_get_long_name): New function. (get_long_name): Call it. (read_draw_node): Handle `\D'Fx ...' by calling ... (read_color_draw_node): New function. (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument `end'. Pass it to `do_get_long_name' which is used instead of `get_long_name'. * src/libs/libdriver/input.cc (color_from_Df_command): Remove unnecessary value guard. (parse_D_command) <'f'>: Add horizontal shift. * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'. * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto. (FILL_MAX): Removed. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Updated. * src/roff/troff/input.cc (do_name_test, do_expr_test, do_zero_width): Push `\n' if closing delimiter is missing. (token::next) <ESCAPE_NEWLINE>, <'\n'>, <'\ '>: Reset `have_input'. <'F'>: Make \F non-transparent at the beginning of line. (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE, token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle `have_input'. (define_color): Free color in case of reassignment. * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem, @DefescListEnd): Use @Var, not @var. Fix all calls. * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo. * src/preproc/pic/object.cc (object_spec::~object_spec): Free `shaded' and `outlined' arrays. (object_spec::object_spec): Initialize `shaded' and `outlined'. (graphic_object::set_fill_color, graphic_object::set_outline_color): Use strsave. (closed_object::set_fill_color): Ditto. * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave instead of strdup. (troff_output::reset_color): Use a_delete instead of free. * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
* * doc/groff.texinfo: Improve documentation of `ad'.wlemb2003-02-111-2/+16
| | | | | | | | | | Document that \D'f...' is dependent on the horizontal resolution. * man/groff_diff.man: Improve documentation of \D'f...'. * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit compensating \h'...' for \D'f ...' since the latter no longer moves current position. * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
* * doc/groff.texinfo: Improve documentation of `ad'.wlemb2003-02-111-1/+6
|
* * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.wlemb2003-01-261-0/+4
|
* Add US-english hyphenation exceptions (converted from Barbarawlemb2003-01-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Beeton's hyphenation exception log reports which appear irregularly in TUGBoat). * tmac/hyphen.us: Updated to latest version. * tmac/README: Updated. * tmac/hyphenex.us, tmac/hyphenex.sh: New files. * tmac/troffrc: Load `hyphenex.us'. * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'. * doc/groff.texinfo: Updated. Improve hyphenation slightly. This is a first step in redesigning the hyphenation algorithm to make it more flexible (e.g. allowing kerns and ligatures between the hyphenation character and the following character -- while not used normally in English, other languages like German would benefit). * src/roff/troff/env.cc (environment::hyphenate_line): Use assertion instead of if-clause. Let `get_hyphen_list' return the number of involved characters in the hyphenation pattern instead of computing it directly (which often yields too small values). * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter. * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second parameter. Fixing a bug which caused groff to hang if the hyphenation exception dictionary tried to grow. * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation, hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use pointer to dictionary.
* Similar to \[is], the square root glyph (\[sr]) and the square rootwlemb2003-01-081-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | extension glyph (\[radicalex]) are now text symbols. The new mathematical versions are called \[sqrt] and \[sqrtex], respectively. * font/devX*/S: Regenerated. * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'. * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'. * font/devdvi/EX, font/devdvi/S: Regenerated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'. * font/devlj4/generate/special.map: Add `sqrt'. * font/devlj4/S: Regenerated. * font/devps/generate/textmap: Add `sqrt'. * font/devps/S, font/devps/symbolmap: Regenerated. * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR, SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'. * src/roff/troff/input.cc (init_charset_table): Make `sqrtex' overlap horizontally. * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'. * tmac/dvi.tmac: Add `sr', and `sqrtex'. Fix `radicalex'. * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex' and `sqrtex' are overlapping glyphs.