[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: src/preproc/pic/*: Improve the license information.
From: |
Bernd Warken |
Subject: |
[groff] 01/01: src/preproc/pic/*: Improve the license information. |
Date: |
Wed, 17 Sep 2014 23:05:22 +0000 |
bwarken pushed a commit to branch master
in repository groff.
commit 11eaa8d62e4a1183823a20bd9b51864ceda636ff
Author: Bernd Warken <address@hidden>
Date: Thu Sep 18 01:03:41 2014 +0200
src/preproc/pic/*: Improve the license information.
---
ChangeLog | 4 +
src/preproc/pic/Makefile.sub | 5 +-
src/preproc/pic/common.cpp | 3 +-
src/preproc/pic/common.h | 3 +-
src/preproc/pic/lex.cpp | 4 +-
src/preproc/pic/main.cpp | 3 +-
src/preproc/pic/object.cpp | 4 +-
src/preproc/pic/object.h | 3 +-
src/preproc/pic/output.h | 3 +-
src/preproc/pic/pic.h | 3 +-
src/preproc/pic/pic.man | 276 ++++++++++++++++++++++++++++++++++++------
src/preproc/pic/pic.y | 4 +-
src/preproc/pic/position.h | 3 +-
src/preproc/pic/tex.cpp | 3 +-
src/preproc/pic/text.h | 2 +-
src/preproc/pic/troff.cpp | 4 +-
16 files changed, 258 insertions(+), 69 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b9ab59c..491aeaf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-18 Bernd Warken <address@hidden>
+
+ * src/preproc/pic/*: Improve the license information.
+
2014-09-17 Bernd Warken <address@hidden>
* src/preproc/grn/*: Improve the license information.
diff --git a/src/preproc/pic/Makefile.sub b/src/preproc/pic/Makefile.sub
index 2c7e65f..4bd3dba 100644
--- a/src/preproc/pic/Makefile.sub
+++ b/src/preproc/pic/Makefile.sub
@@ -2,10 +2,7 @@
#
# File position: <groff-source>/src/preproc/pic/Makefile.sub
#
-# Copyright (C) 2014
-# Free Software Foundation, Inc.
-#
-# Last update: 2 Sep 2014
+# Copyright (C) 2014 Free Software Foundation, Inc.
#
# This file is part of `font utf8' which is part of `groff'.
#
diff --git a/src/preproc/pic/common.cpp b/src/preproc/pic/common.cpp
index e3e965c..7365b24 100644
--- a/src/preproc/pic/common.cpp
+++ b/src/preproc/pic/common.cpp
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2003, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/common.h b/src/preproc/pic/common.h
index affac88..70352b8 100644
--- a/src/preproc/pic/common.h
+++ b/src/preproc/pic/common.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 1993, 2003, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/lex.cpp b/src/preproc/pic/lex.cpp
index 73ef9a1..f7f868d 100644
--- a/src/preproc/pic/lex.cpp
+++ b/src/preproc/pic/lex.cpp
@@ -1,7 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2002, 2003, 2004, 2006,
- 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/main.cpp b/src/preproc/pic/main.cpp
index f242da0..19065a6 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989-1992, 2000, 2001, 2002, 2003, 2006, 2009, 2012
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/object.cpp b/src/preproc/pic/object.cpp
index a314604..282546c 100644
--- a/src/preproc/pic/object.cpp
+++ b/src/preproc/pic/object.cpp
@@ -1,7 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/object.h b/src/preproc/pic/object.h
index 1472483..e1b676d 100644
--- a/src/preproc/pic/object.h
+++ b/src/preproc/pic/object.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2002, 2004, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/output.h b/src/preproc/pic/output.h
index 729376b..5bb5ce2 100644
--- a/src/preproc/pic/output.h
+++ b/src/preproc/pic/output.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/pic.h b/src/preproc/pic/pic.h
index b32b7d6..6e8cf0f 100644
--- a/src/preproc/pic/pic.h
+++ b/src/preproc/pic/pic.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2003, 2005, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/pic.man b/src/preproc/pic/pic.man
index d8cbadd..bb8cb5f 100644
--- a/src/preproc/pic/pic.man
+++ b/src/preproc/pic/pic.man
@@ -1,6 +1,14 @@
-.ig
-Copyright (C) 1989-2004, 2007, 2009, 2011, 2014
- Free Software Foundation, Inc.
+.TH @address@hidden @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
+.SH NAME
address@hidden@pic \- compile pictures for troff or TeX
+.
+.
+.\" --------------------------------------------------------------------
+.\" license (copying)
+.\" --------------------------------------------------------------------
+.
+.de co
+Copyright (C) 1989-2014 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -18,6 +26,9 @@ translations approved by the Free Software Foundation instead
of in
the original English.
..
.
+.\" --------------------------------------------------------------------
+.\" definitions
+.\" --------------------------------------------------------------------
.
.\" Like TP, but if specified indent is more than half
.\" the current line-length - indent, use the default indent.
@@ -40,18 +51,12 @@ the original English.
.
.\" The BSD man macros can't handle " in arguments to font change macros,
.\" so use \(ts instead of ".
-.tr \(ts"
-.
-.
-.TH @address@hidden @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
-.
-.
-.SH NAME
-.
address@hidden@pic \- compile pictures for troff or TeX
+.tr \(ts"\""
.
.
+.\" --------------------------------------------------------------------
.SH SYNOPSIS
+.\" --------------------------------------------------------------------
.
.B @address@hidden
[
@@ -73,45 +78,58 @@ the original English.
]
.
.
+.\" --------------------------------------------------------------------
.SH DESCRIPTION
+.\" --------------------------------------------------------------------
.
This manual page describes the GNU version of
.BR pic ,
which is part of the groff document formatting system.
+.
.B pic
compiles descriptions of pictures embedded within
.B troff
or \*(tx input files into commands that are understood by \*(tx or
.BR troff .
+.
Each picture starts with a line beginning with
.B .PS
and ends with a line beginning with
.BR .PE .
+.
Anything outside of
.B .PS
and
.B .PE
is passed through without change.
+.
+.
.LP
It is the user's responsibility to provide appropriate definitions of the
.B PS
and
.B PE
macros.
+.
When the macro package being used does not supply such definitions
-(for example, old versions of \-ms),
-appropriate definitions can be obtained with
+(for example, old versions of \-ms), appropriate definitions can be
+obtained with
.BR \-mpic :
+.
These will center each picture.
.
.
+.\" --------------------------------------------------------------------
.SH OPTIONS
+.\" --------------------------------------------------------------------
.
Options that do not take arguments may be grouped behind a single
.BR \- .
+.
The special option
.B \-\^\-
can be used to mark the end of the options.
+.
A filename of
.B \-
refers to the standard input.
@@ -129,8 +147,9 @@ even when followed by a character other than space or
newline.
Safer mode; do not execute
.B sh
commands.
-This can be useful when operating on untrustworthy input.
-(enabled by default)
+.
+This can be useful when operating on untrustworthy input (enabled by
+default).
.
.TP
.B \-U
@@ -140,10 +159,13 @@ Unsafe mode; revert the default option
.TP
.B \-n
Don't use the groff extensions to the troff drawing commands.
+.
You should use this if you are using a postprocessor that doesn't support
these extensions.
+.
The extensions are described in
.BR groff_out (@MAN5EXT@).
+.
The
.B \-n
option also causes
@@ -158,17 +180,20 @@ not to use zero-length lines to draw dots in troff mode.
.B \-c
Be more compatible with
.BR tpic .
+.
Implies
.BR \-t .
Lines beginning with
.B \e
are not passed through transparently.
+.
Lines beginning with
.B .
are passed through with the initial
.B .
changed to
.BR \e .
+.
A line beginning with
.B .ps
is given special treatment:
@@ -176,9 +201,9 @@ it takes an optional integer argument specifying
the line thickness (pen size) in milliinches;
a missing argument restores the previous line thickness;
the default line thickness is 8 milliinches.
-The line thickness thus specified takes effect only
-when a non-negative line thickness has not been
-specified by use of the
+.
+The line thickness thus specified takes effect only when a
+non-negative line thickness has not been specified by use of the
.B thickness
attribute or by setting the
.B linethick
@@ -192,6 +217,7 @@ Print the version number.
.B \-z
In \*(tx mode draw dots using zero-length lines.
.
+.
.LP
The following options supported by other versions of
.B pic
@@ -209,6 +235,7 @@ Generate output for the
.B troff
device
.IR dev .
+.
This is unnecessary because the
.B troff
output generated by
@@ -216,39 +243,55 @@ output generated by
is device-independent.
.
.
+.\" --------------------------------------------------------------------
.SH USAGE
+.\" --------------------------------------------------------------------
.
This section describes only the differences between GNU
.B pic
and the original version of
.BR pic .
+.
Many of these differences also apply to newer versions of Unix
.BR pic .
+.
A complete documentation is available in the file
+.
+.
.LP
.RS
.B @DOCDIR@/pic.ms
.RE
.
+.
+.\" --------------------------------------------------------------------
.SS \*(tx mode
+.\" --------------------------------------------------------------------
.
\*(tx mode is enabled by the
.B \-t
option.
+.
In \*(tx mode,
.B pic
will define a vbox called
.B \egraph
for each picture.
+.
Use the
.B figname
command to change the name of the vbox.
+.
You must yourself print that vbox using, for example, the command
+.
+.
.RS
.LP
.B
\ecenterline{\ebox\egraph}
.RE
+.
+.
.LP
Actually, since the vbox has a height of zero (it is defined with
\evtop) this will produce slightly more vertical space above the
@@ -260,6 +303,8 @@ picture than below it;
.RE
.LP
would avoid this.
+.
+.
.LP
To make the vbox having a positive height and a depth of zero
(as used e.g.\& by \*(lx's
@@ -275,23 +320,33 @@ define the following macro in your document:
Now you can simply say
.B \egpicbox{graph}
instead of \ebox\egraph.
+.
+.
.LP
You must use a \*(tx driver that supports the
.B tpic
specials, version 2.
+.
+.
.LP
Lines beginning with
.B \e
are passed through transparently; a
.B %
is added to the end of the line to avoid unwanted spaces.
+.
You can safely use this feature to change fonts or to
change the value of
.BR \ebaselineskip .
+.
Anything else may well produce undesirable results; use at your own risk.
+.
Lines beginning with a period are not given any special treatment.
.
+.
+.\" --------------------------------------------------------------------
.SS Commands
+.\" --------------------------------------------------------------------
.
.TP
\fBfor\fR \fIvariable\fR \fB=\fR \fIexpr1\fR \fBto\fR \fIexpr2\fR \
@@ -300,6 +355,7 @@ Set
.I variable
to
.IR expr1 .
+.
While the value of
.I variable
is less than or equal to
@@ -315,6 +371,7 @@ if
is not given, increment
.I variable
by 1.
+.
If
.I expr3
is prefixed by
@@ -323,15 +380,18 @@ then
.I variable
will instead be multiplied by
.IR expr3 .
+.
The value of
.I expr3
can be negative for the additive case;
.I variable
is then tested whether it is greater than or equal to
.IR expr2 .
+.
For the multiplicative case,
.I expr3
must be greater than zero.
+.
If the constraints aren't met, the loop isn't executed.
.I X
can be any character not occurring in
@@ -346,9 +406,11 @@ if it is non-zero then do
.IR if-true ,
otherwise do
.IR if-false .
+.
.I X
can be any character not occurring in
.IR if-true .
+.
.I Y
can be any character not occurring in
.IR if-false .
@@ -356,23 +418,28 @@ can be any character not occurring in
.TP
\fBprint\fR \fIarg\fR\|.\|.\|.
Concatenate the arguments and print as a line on stderr.
+.
Each
.I arg
must be an expression, a position, or text.
+.
This is useful for debugging.
.
.TP
\fBcommand\fR \fIarg\fR\|.\|.\|.
Concatenate the arguments
and pass them through as a line to troff or \*(tx.
+.
Each
.I arg
must be an expression, a position, or text.
+.
This has a similar effect to a line beginning with
.B .\&
or
.BR \e ,
but allows the values of variables to be passed through.
+.
For example,
.RS
.IP
@@ -398,6 +465,7 @@ prints
Pass
.I command
to a shell.
+.
.I X
can be any character not occurring in
.IR command .
@@ -430,19 +498,23 @@ between 1 and 9,
are replaced by the
.IR i -th
word of the line.
+.
If
.I filename
is not given, lines are taken from the current input up to
.BR .PE .
+.
If an
.B until
clause is specified,
lines will be read only until a line the first word of which is
.IR word ;
that line will then be discarded.
+.
.I X
can be any character not occurring in
.IR body .
+.
For example,
.RS
.IP
@@ -474,12 +546,14 @@ box
.ft
.fi
.RE
+.
.IP
The commands to be performed for each line can also be taken
from a macro defined earlier by giving the name of the macro
as the argument to
.BR thru .
.
+.
.LP
.B reset
.br
@@ -490,12 +564,14 @@ Reset pre-defined variables
.IR variable1 ,
.I variable2
\&.\^.\^. to their default values.
-If no arguments are given, reset all pre-defined variables
-to their default values.
+.
+If no arguments are given, reset all pre-defined variables to their
+default values.
+.
Note that assigning a value to
.B scale
-also causes all pre-defined variables that control dimensions
-to be reset to their default values times the new value of scale.
+also causes all pre-defined variables that control dimensions to be
+reset to their default values times the new value of scale.
.
.TP
\fBplot\fR \fIexpr\fR [\fB"\,\fItext\*(ic\fB"\fR]
@@ -504,11 +580,13 @@ This is a text object which is constructed by using
as a format string for sprintf
with an argument of
.IR expr .
+.
If
.I text
is omitted a format string of
.B "\(ts%g\(ts"
is used.
+.
Attributes can be specified in the same way as for a normal text
object.
Be very careful that you specify an appropriate format string;
@@ -529,10 +607,12 @@ and
will be assigned to
.I variable
without creating a variable local to the current block.
+.
(By contrast,
.B =
-defines the variable in the current block if it is not already defined there,
-and then changes the value in the current block only.)
+defines the variable in the current block if it is not already defined
+there, and then changes the value in the current block only.)
+.
For example, the following:
.RS
.IP
@@ -557,6 +637,7 @@ prints
.B 5 3
.RE
.
+.
.LP
Arguments of the form
.IP
@@ -565,6 +646,8 @@ Arguments of the form
are also allowed to be of the form
.IP
.BI {\ anything\ }
+.
+.
.LP
In this case
.I anything
@@ -579,10 +662,14 @@ or imbalanced occurrences of
and
.BR } .
.
+.
+.\" --------------------------------------------------------------------
.SS Expressions
+.\" --------------------------------------------------------------------
.
The syntax for expressions has been significantly extended:
.
+.
.LP
.IB x\ ^\ y
(exponentiation)
@@ -643,11 +730,15 @@ deprecated)
\fB"\,\fIstr1\*(ic\fB" != "\,\fIstr2\*(ic\fB"\fR
.br
.
+.
.LP
String comparison expressions must be parenthesised in some contexts
to avoid ambiguity.
.
+.
+.\" --------------------------------------------------------------------
.SS Other Changes
+.\" --------------------------------------------------------------------
.
A bare expression,
.IR expr ,
@@ -657,6 +748,7 @@ it is equivalent to
where
.I dir
is the current direction.
+.
For example
.LP
.RS
@@ -669,13 +761,16 @@ set the
.I scale
variable to an appropriate value.
.
+.
.LP
The maximum width and height of the picture are taken from the variables
.B maxpswid
and
.BR maxpsht .
+.
Initially these have values 8.5 and 11.
.
+.
.LP
Scientific notation is allowed for numbers.
For example
@@ -685,8 +780,10 @@ For example
x = 5e\-2
.RE
.
+.
.LP
Text attributes can be compounded.
+.
For example,
.RS
.LP
@@ -696,8 +793,10 @@ For example,
.LP
is valid.
.
+.
.LP
There is no limit to the depth to which blocks can be examined.
+.
For example,
.RS
.LP
@@ -710,16 +809,21 @@ circle at last [\^].A.B.C
.LP
is acceptable.
.
+.
.LP
-Arcs now have compass points
-determined by the circle of which the arc is a part.
+Arcs now have compass points determined by the circle of which the arc
+is a part.
+.
.
.LP
Circles, ellipses, and arcs can be dotted or dashed.
+.
In \*(tx mode splines can be dotted or dashed also.
.
+.
.LP
Boxes can have rounded corners.
+.
The
.B rad
attribute specifies the radius of the quarter-circles at each corner.
@@ -730,15 +834,20 @@ or
attribute is given, a radius of
.B boxrad
is used.
+.
Initially,
.B boxrad
has a value of\ 0.
+.
A box with rounded corners can be dotted or dashed.
.
+.
.LP
Boxes can have slanted sides.
+.
This effectively changes the shape of a box from a rectangle to an
arbitrary parallelogram.
+.
The
.B xslanted
and
@@ -746,17 +855,21 @@ and
attributes specify the x and y\~offset of the box's upper right corner
from its default position.
.
+.
.LP
The
.B .PS
line can have a second argument specifying a maximum height for
the picture.
+.
If the width of zero is specified the width will be ignored in computing
the scaling factor for the picture.
+.
Note that GNU
.B pic
will always scale a picture by the same amount vertically as well as
horizontally.
+.
This is different from the
.SM DWB
2.0
@@ -764,11 +877,15 @@ This is different from the
which may scale a picture by a different amount vertically than
horizontally if a height is specified.
.
+.
.LP
Each text object has an invisible box associated with it.
+.
The compass points of a text object are determined by this box.
+.
The implicit motion associated with the object is also determined
by this box.
+.
The dimensions of this box are taken from the width and height attributes;
if the width attribute is not supplied then the width will be taken to be
.BR textwid ;
@@ -776,12 +893,14 @@ if the height attribute is not supplied then the height
will be taken to be
the number of text strings associated with the object
times
.BR textht .
+.
Initially
.B textwid
and
.B textht
have a value of 0.
.
+.
.LP
In (almost all) places where a quoted text string can be used,
an expression of the form
@@ -795,11 +914,14 @@ which should be a string as described in
.BR printf (3)
appropriate for the number of arguments supplied.
.
+.
.LP
The thickness of the lines used to draw objects is controlled by the
.B linethick
variable.
+.
This gives the thickness of lines in points.
+.
A negative value means use the default thickness:
in \*(tx output mode, this means use a thickness of 8 milliinches;
in \*(tx output mode with the
@@ -809,12 +931,16 @@ option, this means use the line thickness specified by
lines;
in troff output mode, this means use a thickness proportional
to the pointsize.
+.
A zero value means draw the thinnest possible line supported by
the output device.
+.
Initially it has a value of \-1.
+.
There is also a
.BR thick [ ness ]
attribute.
+.
For example,
.RS
.LP
@@ -822,6 +948,7 @@ For example,
.RE
.LP
would draw a circle using a line with a thickness of 1.5 points.
+.
The thickness of lines is not affected by the
value of the
.B scale
@@ -829,27 +956,36 @@ variable, nor by the width or height given in the
.B .PS
line.
.
+.
.LP
Boxes (including boxes with rounded corners or slanted sides),
circles and ellipses can be filled by giving them an attribute of
.BR fill [ ed ].
+.
This takes an optional argument of an expression with a value between
0 and 1; 0 will fill it with white, 1 with black, values in between
with a proportionally gray shade.
+.
A value greater than 1 can also be used:
this means fill with the
shade of gray that is currently being used for text and lines.
+.
Normally this will be black, but output devices may provide
a mechanism for changing this.
+.
Without an argument, then the value of the variable
.B fillval
will be used.
+.
Initially this has a value of 0.5.
+.
The invisible attribute does not affect the filling of objects.
+.
Any text associated with a filled object will be added after the
object has been filled, so that the text will not be obscured
by the filling.
.
+.
.LP
Three additional modifiers are available to specify colored objects:
.BR outline [ d ]
@@ -858,13 +994,17 @@ sets the color of the outline,
the fill color, and
.B colo\fR[\fPu\fR]\fPr\fR[\fPed\fR]
sets both.
+.
All three keywords expect a suffix specifying the color, for example
.RS
.LP
.B circle shaded """green""" outline """black"""
.RE
+.
+.
.LP
Currently, color support isn't available in \*(tx mode.
+.
Predefined color names for
.B groff
are in the device macro files, for example
@@ -874,10 +1014,13 @@ additional colors can be defined with the
request (see the manual page of
.BR @address@hidden (@MAN1EXT@)
for more details).
+.
+.
.LP
To change the name of the vbox in \*(tx mode, set the pseudo-variable
.B figname
(which is actually a specially parsed command) within a picture.
+.
Example:
.RS
.LP
@@ -889,51 +1032,66 @@ Example:
.br
.B .PE
.RE
+.
+.
.LP
The picture is then available in the box
.BR \efoobar .
+.
+.
.LP
.B pic
assumes that at the beginning of a picture both glyph and fill color are
set to the default value.
.
+.
.LP
Arrow heads will be drawn as solid triangles if the variable
.B arrowhead
is non-zero and either \*(tx mode is enabled or the
.B \-n
option has not been given.
+.
Initially
.B arrowhead
has a value of\ 1.
+.
Note that solid arrow heads are always filled with the current outline
color.
.
+.
.LP
The troff output of
.B pic
is device-independent.
+.
The
.B \-T
option is therefore redundant.
+.
All numbers are taken to be in inches; numbers are never interpreted
to be in troff machine units.
.
+.
.LP
Objects can have an
.B aligned
attribute.
+.
This will only work if the postprocessor is
.BR grops ,
or
.BR gropdf .
+.
Any text associated with an object having the
.B aligned
attribute will be rotated about the center of the object
so that it is aligned in the direction from the start point
to the end point of the object.
-Note that this attribute will have no effect for objects whose start and
-end points are coincident.
+.
+Note that this attribute will have no effect for objects whose start
+and end points are coincident.
+.
.
.LP
In places where
@@ -941,12 +1099,14 @@ In places where
is allowed
.BI ` expr 'th
is also allowed.
+.
Note that
.B 'th
is a single token: no space is allowed between the
.B '
and the
.BR th .
+.
For example,
.IP
.ft B
@@ -958,7 +1118,9 @@ for i = 1 to 4 do {
.fi
.
.
+.\" --------------------------------------------------------------------
.SH CONVERSION
+.\" --------------------------------------------------------------------
.
To obtain a stand-alone picture from a
.B pic
@@ -974,6 +1136,7 @@ configuration commands may be added at the beginning of
the file, but no
.B roff
text.
.
+.
.LP
It is necessary to feed this file into
.B groff
@@ -982,11 +1145,14 @@ without adding any page information, so you must check
which
and
.B .PE
requests are actually called.
+.
For example, the mm macro package adds a page number, which is very
annoying.
+.
At the moment, calling standard
.B groff
without any macro package works.
+.
Alternatively, you can define your own requests, e.g.\& to do nothing:
.LP
.RS
@@ -1000,15 +1166,18 @@ Alternatively, you can define your own requests, e.g.\&
to do nothing:
.fi
.RE
.
+.
.LP
.B groff
itself does not provide direct conversion into other graphics file
formats.
-But there are lots of possibilities if you first transform your picture
-into PostScript\*R format using the
+.
+But there are lots of possibilities if you first transform your
+picture into PostScript\*R format using the
.B groff
option
.BR \-Tps .
+.
Since this
.IR ps -file
lacks BoundingBox information it is not very useful by itself, but it
@@ -1017,6 +1186,7 @@ may be fed into other conversion programs, usually named
or
.BI psto other
or the like.
+.
Moreover, the PostScript interpreter
.B ghostscript
.RB ( gs )
@@ -1034,40 +1204,48 @@ Call
.LP
for a list of the available devices.
.
+.
.LP
An alternative may be to use the
.B \-Tpdf
option to convert your picture directly into
.B PDF
format.
+.
The MediaBox of the file produced can be controlled by passing a
.B \-P\-p
papersize to groff.
.
+.
.LP
As the Encapsulated PostScript File Format
.B EPS
-is getting more and more important, and the conversion wasn't regarded
-trivial in the past you might be interested to know that there is a
-conversion tool named
+is getting more and more important, and the conversion wasn\[aq]t
+regarded trivial in the past you might be interested to know that
+there is a conversion tool named
.B ps2eps
which does the right job.
+.
It is much better than the tool
.B ps2epsi
packaged with
.BR gs .
+.
+.
.LP
For bitmapped graphic formats, you should use
.BR pstopnm ;
the resulting (intermediate)
.B PNM
-file can be then converted to virtually any graphics format using the tools
-of the
+file can be then converted to virtually any graphics format using the
+tools of the
.B netpbm
package .
.
.
+.\" --------------------------------------------------------------------
.SH FILES
+.\" --------------------------------------------------------------------
.
.Tp \w'address@hidden@/pic.tmac'u+3n
.B
@@ -1079,7 +1257,9 @@ and
macros.
.
.
+.\" --------------------------------------------------------------------
.SH "SEE ALSO"
+.\" --------------------------------------------------------------------
.
.BR @address@hidden (@MAN1EXT@),
.BR groff_out (@MAN5EXT@),
@@ -1089,12 +1269,16 @@ macros.
.BR pstopnm (1),
.BR ps2epsi (1),
.BR pnm (5)
+.
+.
.LP
Eric S.\& Raymond,
.I Making Pictures With GNU PIC.
.br
@DOCDIR@/pic.ps (this file, together with its source file, pic.ms, is part
of the groff documentation)
+.
+.
.LP
Tpic: Pic for \*(tx
.LP
@@ -1104,16 +1288,22 @@ AT&T Bell Laboratories, Computing Science Technical
Report No.\ 116
.br
<http://cm.bell-labs.com/cm/cs/cstr/116.ps.gz>
(revised May, 1991).
+.
+.
.LP
.B ps2eps
is available from CTAN mirrors, e.g.\&
.br
<ftp://ftp.dante.de/tex-archive/support/ps2eps/>
+.
+.
.LP
W.\& Richard Stevens,
.I Turning PIC Into HTML
.br
<http://www.kohala.com/start/troff/pic2html.html>
+.
+.
.LP
W.\& Richard Stevens,
.I Examples of picMacros
@@ -1121,7 +1311,9 @@ W.\& Richard Stevens,
<http://www.kohala.com/start/troff/pic.examples.ps>
.
.
+.\" --------------------------------------------------------------------
.SH BUGS
+.\" --------------------------------------------------------------------
.
Input characters that are invalid for
.B groff
@@ -1129,14 +1321,26 @@ Input characters that are invalid for
.SM ASCII
code 0, or 013 octal, or between 015 and 037 octal, or between 0200 and 0237
octal) are rejected even in \*(tx mode.
+.
+.
.LP
The interpretation of
.B fillval
is incompatible with the pic in 10th edition Unix,
which interprets 0 as black and 1 as white.
+.
+.
.LP
PostScript\*R is a registered trademark of Adobe Systems Incorporation.
.
+.
+.\" --------------------------------------------------------------------
+.SH COPYING
+.\" --------------------------------------------------------------------
+.
+.co
+.
+.
.\" Local Variables:
.\" mode: nroff
.\" End:
diff --git a/src/preproc/pic/pic.y b/src/preproc/pic/pic.y
index 2174667..cf3a0d2 100644
--- a/src/preproc/pic/pic.y
+++ b/src/preproc/pic/pic.y
@@ -1,6 +1,4 @@
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/position.h b/src/preproc/pic/position.h
index a548c90..fae24da 100644
--- a/src/preproc/pic/position.h
+++ b/src/preproc/pic/position.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/tex.cpp b/src/preproc/pic/tex.cpp
index 99cf204..b7f72b6 100644
--- a/src/preproc/pic/tex.cpp
+++ b/src/preproc/pic/tex.cpp
@@ -1,6 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2003, 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/text.h b/src/preproc/pic/text.h
index 1037986..60e7643 100644
--- a/src/preproc/pic/text.h
+++ b/src/preproc/pic/text.h
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
diff --git a/src/preproc/pic/troff.cpp b/src/preproc/pic/troff.cpp
index ea93e26..112b94a 100644
--- a/src/preproc/pic/troff.cpp
+++ b/src/preproc/pic/troff.cpp
@@ -1,7 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2005,
- 2009
- Free Software Foundation, Inc.
+/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
Written by James Clark (address@hidden)
This file is part of groff.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: src/preproc/pic/*: Improve the license information.,
Bernd Warken <=