head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.38 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.36 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.34 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.32 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.30 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.28 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.26 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.24 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.22 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.20 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.18 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.16 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.14 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.12 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.10 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.8 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.6 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.4 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.2 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.2 pkgsrc-2004Q2-base:1.1; locks; strict; comment @# @; 1.4 date 2005.12.07.17.51.51; author wiz; state dead; branches; next 1.3; 1.3 date 2005.03.14.04.36.53; author tv; state Exp; branches; next 1.2; 1.2 date 2004.07.11.13.40.06; author wiz; state dead; branches; next 1.1; 1.1 date 2004.05.08.03.21.57; author jschauma; state Exp; branches; next ; desc @@ 1.4 log @Update to 1.19.2. SunOS PLIST not updated, someone please merge it into the normal PLIST. VERSION 1.19.2 ============== Troff ----- o Analogously to the .ft and \f pair, two new requests `gcolor' and `fcolor' (which pair with \m and \M, respectively) have been added to set the glyph and background colours. o A new read-only, string-valued register `.sty' returns the name of the current style. o Two new conditional operators `F ' and `S ' have been added. `F' is true if a font exists. `S' is true if a style has been registered. o Cyrillic characters have been added to the `utf8' and `html' output devices. Pic --- o The `by' argument in a `for' loop can now be negative if it is additive. For the multiplicative case, it must be greater than zero. Eqn --- o The following keywords aren't new but haven't been documented previously: undef NAME (to undefine a macro) copy "FILE" (a synonym for `include') space n (to modify the vertical spacing before and after an equation) o The following macros aren't new but haven't been documented previously: Alpha, ..., Omega (the same as `ALPHA', ..., `OMEGA') ldots (three dots on the base line) dollar (a dollar glyph) o The following keywords have been extended. Again, this isn't new but hasn't been documented previously: col n { ... } lcol n { ... } rcol n { ... } ccol n { ... } pile n { ... } lpile n { ... } rpile n { ... } cpile n { ... } (set vertical spacing between rows to N) Grohtml ------- o This device driver has been raised to beta stage; its set of tags should be stable now. o New command line option `-s' to set the base point size. o New command line option `-S' to set the split level while generating multiple files. Grotty ------ o Experimental support for zero-width and double-width characters. Gxditview --------- o On platforms which have the X Window System this program is now built and installed automatically. Xtotroff -------- o This program to create font definition files for xditview isn't new but hasn't been installed previously. Groffer ------- o A security problem (reported as CAN-2004-0969) has been fixed. Gdiffmk ------- o A new script contributed by Mike Bianchi. It compares two groff, nroff, or troff documents and creates an output with added margin characters (using `.mc') to indicate the differences. Pdfroff ------- o A new wrapper script contributed by Keith Marshall to easily create PDF documents with groff. Macro packages -------------- o ms.tmac . Support for fractional point sizes: A value for the `PS', `VS', `FPS', and `VPS' register larger than or equal to 1000 is always divided by 1000. For example, `.nr PS 10250' sets the document's font size to 10.25 points. . The `Ds' and `De' macros provided in ms since groff version 1.19 have been removed; the equivalent `DS' and `DE' macros should be used instead. X11 documents which actually use `Ds' and `De' always load a specific macro file from the X11 distribution (`macros.t') which provides proper definitions for the two macros. . The following registers have been added for improving layout control: PORPHANS Defines number of lines following `LP', `PP', `QP', `IP' or `XP' which must be kept together, before any automatic page break. HORPHANS Sets number of lines of following paragraph which must be kept with a heading, defined by `NH' or `SH', before any automatic page break. GROWPS Sets the first level of heading (set with `NH') which will keep the same point size as body text. PSINCR Sets the point size increment for each level of heading (set with `NH'), below the threshold level set by `GROWPS'; e.g., if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p, then `.NH 1' will produce 14pt headings, `.NH 2' will produce 12pt, and all other levels will remain at 10pt (because \n[PS] = 10). . The `SH' macro now accepts a numeric argument, to make heading size match that of `NH' with same argument value when the `GROWPS'/`PSINCR' feature is enabled. Please refer to the documentation of the ms package for other, minor improvements. o me.tmac The section type set with the `++' request is available in the `_M' register. This isn't new but hasn't been documented before. o www.tmac The `HR' macro no longer causes an empty line for non-HTML devices. A new macro `HEAD' has been added to directly add data to the ... block. New macros `OLS' and `OLE' to start and end an ordered list. New macros `DLS' and `DLE' to start and end a definition list. Pdfmark ------- o A new macro package contributed by Keith Marshall which implements PDF marks. This is in alpha stage currently. Miscellaneous ------------- o Two new keywords to the DESC file have been added which are needed for grohtml: `image_generator' and `unscaled_charwidths'. The former gives the name of the program which creates PNG images, and the latter makes troff always use unscaled character widths. @ text @$NetBSD: patch-af,v 1.3 2005/03/14 04:36:53 tv Exp $ --- src/preproc/pic/object.cpp.orig Wed Apr 7 11:27:56 2004 +++ src/preproc/pic/object.cpp @@@@ -202,7 +202,15 @@@@ double operator*(const position &a, cons double hypot(const position &a) { - return hypot(a.x, a.y); + double result = hypot(a.x, a.y); + +#ifdef __INTERIX + /* prevents an endless loop that pops up particularly on Interix */ + if (isnan(result) && !isnan(a.x) && !isnan(a.y)) + return 0.0; +#endif + + return result; } struct arrow_head_type { @ 1.3 log @Make build/work on Interix. How ugly: a hypot(near0, near0) can result in a NaN if round-off error somehow makes the a^2+b^2 result negative. Work around it with an "#ifdef __INTERIX"-only fix. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 1.19.1: Groff ----- o The argument of the command line option `-I' is now also passed to troff and grops, specifying a directory to search for files on the command line, files named in `so' and `psbb' requests, and files named in \X'ps: file' and \X'ps: import' escapes. o If option `-V' is used more than once, the commands will be both printed on standard error and run. Troff ----- o Two new read-only, string-valued registers `.m' and `.M' return the name of the current drawing and background color, respectively. o New read-only register `.U' which is set to 1 if in safer mode and set to 0 if in unsafe mode. o An input encoding file for latin-5 (a.k.a. ISO 8859-9) has been added. Example use: groff -Tdvi -mlatin5 my_file > my_file.dvi Note that some output devices don't support all glyphs of this encoding. o If the `return' request is called with an argument, it exits twice, namely the current macro and the macro one level higher. This is used to define a wrapper macro for `return' in trace.tmac. o For completeness, two new requests have been added: `dei1' and `ami1'. They are equivalent to `dei' and `ami', respectively, but the macros are executed with compatibility mode off (similar to `de1' and `am1'). o New command line option `-I' to specify a directory for files (both those on the command line and those named in `psbb' requests). This is also handled by the groff wrapper program. o Since version 1.19 you can say `.vs 0'. Older versions emit a warning and convert this to `.vs \n[.V]'. This hasn't been documented properly. Note that `.vs 0' isn't saved in a diversion since it doesn't result in vertical motion. Pic ___ 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 cell. Patch by Heinz-Jürgen Oertel . Grap2graph ---------- o A new script contributed by Eric S. Raymond . It converts a grap diagram into a cropped image. Since it uses gs and the PNM library, virtually all graphics formats are available for output. [Note that the grap program itself isn't part of the groff package; see the file MORE.STUFF how to obtain grap.] Grohtml ------- o New option `-j' to emit output splitted into multiple files. Grops ----- o New command line option `-I' to specify a directory to search for files on the command line and files named in \X'ps: import' and \X'ps: file' escapes. This is also handled by the groff wrapper program. o The default value for the `broken' keyword in the DESC file is now 0. Grolj4 ------ o A new man page `lj4_font(5)' documents how fonts are accessed with grolj4. o The built-in fonts for LJ4 and newer PCL 5 devices have been completely revised, mainly to access as much glyphs as possible. The provided metric files should be compatible with recent PCL 5 printers also. Additionally, font description files have been added for the Arial and Times New Roman family, the MS symbol, and Wingdings fonts. Afmtodit -------- o New option `-x' to prevent use of built-in Adobe Glyph List. Hpftodit -------- o Completely revised to handle HP TrueType metric files also. See the hpftodit manual page for more details. Groffer ------- o This version is a rewrite of groffer in many parts, but it is kept in the old single script style. New options: --text, --mode text, --tty-viewer, --X, --mode X, --X-viewer, --html, --mode html, --html-view, --apropos-data, --apropos-devel, --apropos-progs. New documentation file: README_SH. Enhancement of the configuration files and the `apropos' handling. Macro Packages -------------- o www.tmac: New macro `JOBNAME' to split output into multiple files. o In mdoc, multiple calls to `.Lb' are now supported in the LIBRARY section. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2004/05/08 03:21:57 jschauma Exp $ d3 19 a21 20 --- ./src/preproc/html/pre-html.cpp.orig Fri May 7 17:51:50 2004 +++ ./src/preproc/html/pre-html.cpp Fri May 7 17:52:08 2004 @@@@ -263,7 +263,7 @@@@ n = vsnprintf (p, size, fmt, ap); va_end(ap); /* If that worked, return the string. */ - if (n > -1 && n < size) { + if (n > -1 && n < size-1) { if (size > n+1) { np = strsave(p); free(p); @@@@ -272,8 +272,6 @@@@ return p; } /* Else try again with more space. */ - if (n > -1) /* glibc 2.1 */ - size = n+1; /* precisely what is needed */ else /* glibc 2.0 */ size *= 2; /* twice the old size */ if ((np = (char *)realloc (p, size)) == NULL) { @ 1.1 log @Under Irix, vsnprintf(3) happily truncates longer strings and returns the number of size. This lead to some of the commands being truncated and not executing appropriately. (The function in questions was make_message in ./src/preproc/html/pre-html.cpp.) Patch this to also behave correctly with Irix' vsnprintf(3) family. This should address PR pkg/22563. @ text @d1 1 a1 1 $NetBSD: $ @