home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
24b
/
lazer12.zip
/
OKIPIE11.ZIP
/
OKIPIE.DOC
next >
Wrap
Text File
|
1988-10-31
|
7KB
|
197 lines
OKIPIE
Version 1.1
Changes for version 1.1 (01/88-10/88)
Fixed some centering problems.
Added proper width tables for LASERLINE fonts.
Changed from .MAP to .PCX bitmap format (saves space). Works
with LAZER version 1.2.
Added LAZER command.
Included in LAZER12 Archive
If you find this program of value, relax. I don't want your money.
However, if you are in an extremely generous mood, and have a spare 80386
machine or MacIntosh lying around, here's my address:
James Bumgardner
711 E. Cypress, Apt. A
Burbank, CA 91501
818-846-7781 (PLINK BUM)
Contents of this library:
OKIPIE.EXE Pie Graph Maker
OKIPIE.DOC This File
PSAMPLE.DAT A Sample Pie Graph Source File
OKIPIE.TXT Pie Graph Header File
OKIPIE produces hi-resolution (300 dpi) pie graphs. It works with the
program LAZER.EXE which can be found in LAZER.ARC.
The pie graphs are circular (1024 X 1024), with an optional 3-D shadow
effect and exploded slices. You can have up to 2 centered titles, and
data-titles all around the graph. Unlike LOTUS, the data-titles are
properly centered outside of each slice.
OKIPIE translates an easy to read SOURCE file into two new files, a
.PCX graphics file, and a new text file which contains the text
and typesetting instructions.
All the text and numbers on the graphs use regular laser printer
fonts, rather than raster graphics. This speeds up graph generation,
and allows you to use your own font library. This program works with
either OKIDATA LASERLINE resident fonts, or with download fonts. If
you've got an 18 pt and 10 pt resident font, you can modify it to work
with those as well by changing OKIPIE.TXT.
LAZER
-----
The program LAZER (not included here, but available on this BBS) is an
interpreter which reads the typesetting files. It translates the
typesetting commands into HP LaserJet+ commands, as well as
downloading fonts and bitmaps to the printer.
The advantages of using LAZER, as opposed to having OKIPIE send its
commands directly to the printer, are twofold. First, if there is a
problem with the output, such as a spelling error, you can correct the
text without having to generate the bitmap over again. In the same vein,
you can also make minor cosmetic changes pretty easily. Secondly, this
method makes the printer driver more independent, permitting the
creation of Typesetting programs for other printers.
LAZER.EXE is a pretty useful program in it's own right, apart from
being used to print graphs. I use it to design business forms and as
a poor man's page-setter. However if you just want to print graphs,
you don't need to know anything about it. If you're curious, the
documentation for LAZER is in the file LAZER.DOC.
USAGE
-----
OKIPIE uses this syntax:
OKIPIE sourcefile [outfile] [-m mapfile]
For Example:
OKIPIE cheese.dat
OKIPIE cheese.dat special.gra
OKIPIE cheese.dat -m cheese.pcx
While constructing the graph, OKIPIE wil print "Slice X" for each
slice of the pie. This is to let you know that your computer hasn't
died. It takes about a minute to draw a reasonably complex graph at 300 dpi.
When finished drawing, OKIPIE will quickly output the bitmap and exit.
Use LAZER to print the graph:
LAZER cheese.gra (Output to LPT1)
LAZER cheese.gra LPT2 (Output to LPT2)
LAZER cheese.gra outfile (Output to a very large file)
LAZER will take up to 5 minutes to print the graph (usually 2 or 3),
depending on how many fonts you're downloading, and the speed of your
printer.
The outfile name is optional and defaults to *.GRA. It's just
a regular text file with the typesetting instructions for LAZER.
Try TYPEing or LISTing the .GRA file to see what it looks like.
The bitmap name is optional and defaults to PIE.PCX. The bitmaps are
approx 30K and will eventually consume all your disk-space if you don't
purge them from time to time, this is why OKIPIE normally erases the old
map. The .PCX file can be read by PC Paintbrush and a few other graphics
programs.
PIE SOURCE FILES
----------------
Here is a sample Pie Source File:
; (comment) this is the start of the file
;
FONT 0 \fonts\emerald
TITLE Distribution of Lucky Charms
SUBTITLE September, 1987
SHADOW
;
123 Yellow Moons
102 Green Clovers
75 Blue Diamonds
23 Pink Hearts
; end of file
Not much to it really. All lines that start with a number are considered data.
You may follow each number with text to be printed next to the slice.
All lines that start with a word are commands. You may abbreviate all
commands down to 2 letters.
COMMAND MEANING
------- -------
TITLE string This is the title of the graph.
STITLE string or
SUBTITLE string This is the sub-title of the graph.
EXPLODE [n,...] This tells OKIPIE to explode one or more slices.
Slice numbers start with 0. OKIPIE defaults to
exploding the first slice.
SHADOW [dots] This makes OKIPIE use a 3-D Shadow effect.
You may use a number to indicate shadow thickness,
which defaults to 20 dots. There is no hidden-line
algorithm, so shadows on the upper-left quadrant
may collide with other slices. To avoid this, don't
explode slices in that quadrant. Also, thick shadows
at the bottom of the circle will be clipped.
THICKNESS n This sets the pen width, which defaults to 4 dots
on either side of the line.
SORT This sorts the slices from largest to smallest,
typical Pie Chart format. The Explode Command
refers to post-sorted slices.
INSIDE Center the text INSIDE the slices. This is only
effective with big slices and small text.
PERCENTS Includes percentages with the text of each slice.
Example: Blue Moons (15%)
NUMBERS Includes numbers with the text of each slice.
Example: Blue Moons (560)
Both PERCENTS and NUMBERS: Blue Moons (560 - 15%)
FONT # fontname This causes OKIDATA to use a width table from
a download font, allowing it to properly center the
letters. The Typesetting File will contain a command
to download this font.
FONT 0 is for the title.
FONT 1 is for the subtitle
FONT 2 is for the slice text.
If you omit these commands, OKIPIE will use the
resident fonts on the Okidata Laserline Printer.
I obtained the width tables for these fonts by
looking at the Word Perfect printer drivers.
FONT 0 Defaults to Helvetica Bold 18
FONT 1 Defaults to Times Roman 10
FONT 2 Defaults to Times Roman 10 Italic
LAZER commands
This command will insert LAZER commands into the
.GRA file.
** End of Documentation **