home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
printer
/
diskstik
/
diskstik.doc
< prev
next >
Wrap
Text File
|
1995-02-27
|
10KB
|
216 lines
Disk Sticker V1.0 by Gary Karnik on 1/89
______________________________________________________________________________
Disk Sticker V1.0 is a program designed to print labels for your Amiga
disks on standard printers and tracker feed labels.
This program is in the Public Domain and may be freely used by anyone
who has a need for it. The program is not copywrited material and no
rights are reserved. You may distribute copies of this program under any
conditions you see fit. (Just don't copywrite it for yourself.)
Since no icon is supplied with this program, you must run it from the
CLI. The program takes no command line arguments, so just type its name
and the program's window will open.
The large area in the middle is for editing, with a cursor in the upper
left hand corner. You can type any printable keyboard character in this
area and it will be displayed. This area is actually a mini editor of sorts
that allows you to do some simple editing to your filenames before you are
ready to print them out to your label. The first line of the editor is
reserved for the volume name of the disk which is also displayed on the
label. The next 300 lines contain the filename information. Although
only a maximum of 50 filenames can be printed on a label, 300 lines are
given so that a full disk read can (hopefully) be done.
Along with the standard Intuition gadgets, there are eight custom
gadgets located near the bottom of the screen:
"Read df0:" Reads the directory of the disk in drive df0:;
The volume name is read and the entire directory tree
is read and sorted (up to 300 filenames).
Each nested subdirectory is indented 2 spaces.
"Read df1:" Same as for "Read df0:" but for drive df1:.
"Sort" removes the indentation of all files in memory and then
sorts them in ASCII order.
"<< Print >>" Takes the filename in memory and outputs a label to the
printer. (Only do this if your printer is on-line and
has a preferences entry installed.)
"N Column Output" N=1,2,3,4, or 5. Clicking here will advance N to the
next number in sequence. This controls how many columns
of text are to be displayed on the label. 4 columns
can hold twice as many as 2 columns, but each entry can
be only half as long.
"Condensed Elite"
"Condensed Pica"
"Elite"
"Pica" Controls what typeface will be used in the label. The
farther down the list, the larger the typeface and easier
to read, but can hold less information.
(All printers do not support compressed elite.)
"Large Label"
"Small Label" Large label means the larger wrap-around type that goes
on both sides of the disk (about 2 3/4" x 2 3/4").
Small label means the smaller type which only covers the
front (about 1 15/16" x 2 13/16").
"Double Strike"
"Single Strike" Double strike will go over each line twice when printing
to achieve a darker appearance.
There are also a number of editing keys which revolve around the numeric
pad arrow keys for movement:
cursor up ________
\
+---+---+---+
HOME cursor to column 1 --- | 7 | 8 | 9 | --- Page Up 10 rows
+---+---+---+
cursor left --- | 4 | | 6 | --- cursor right
+---+---+---+
cursor to end-of-line --- | 1 | 2 | 3 | --- Page Down 10 rows
+---+-|-+---+
insert mode toggle --- | 0 | | . | --- Delete character
+----/--+---+
cursor down ________/
The regular arrow keys also work like "8","4","6", and "2".
The regular "del" key also works for ".".
The "F1" key toggles insert just like "0".
The "F2" key deletes the current line.
The "F3" key centers the current line.
"Control PgUp" returns your cursor to line 1.
"Control PgDn" sends your cursor to line 301 (last line).
"Back Space" works as expected with BS in column 1 appends current
line to line above it.
"Enter" and "Return" are the same.
"Alt" + alpha key will given extended ASCII character.
(Your printer may not support this.)
"Caps lock" works as expected.
Num pad symbols work even with default keymap.
The layout of the label is as follows:
For Small label:
+-------------------------------------------+
| Centered Volume Name |
|(blank) |
|1st row of text |
|2nd row of text |
|3rd row of text |
|4th row of text |
|5th row of text |
|6th row of text |
|7th row of text |
|8th row of text |
|9th row of text |
+-------------------------------------------+
For Large label:
+-------------------------------------------+
|(blank backside) |
|(blank backside) |
|(blank backside) |
|Volume Name on spine of disk |
| Centered Volume Name |
|(blank) |
|1st row of text |
|2nd row of text |
|3rd row of text |
|4th row of text |
|5th row of text |
|6th row of text |
|7th row of text |
|8th row of text |
|9th row of text |
|10th row of text |
+-------------------------------------------+
Near Letter Quality output is always used if your printer supports it.
The large type label holds one more row then the small and has the
volume name printed on the spine of the disk.
All filename data are output in column, not row order, which means if you
had 12 filenames to output and you chose 2 column format, then the first
column will contain the first 9 or 10 (depending on size) and the second
column will hold the rest.
The volume name is always printed in the pica format and can be 28
characters long at most.
If you have more filenames in memory than can fit on a label, then
the extras will just not be printed. The number of filenames which will
print is (# of columns)x(# of rows) where number of columns is 1-5 and
number or rows is 9 or 10.
Type face and column options and how they affect output:
Typeface | Columns | Max number of chars in filename
-----------------+---------+--------------------------------
Compressed Elite | 1 | 51
Compressed Elite | 2 | 25
Compressed Elite | 3 | 17
Compressed Elite | 4 | 12
Compressed Elite | 5 | 10
| |
Compressed Pica | 1 | 42
Compressed Pica | 2 | 21
Compressed Pica | 3 | 14
Compressed Pica | 4 | 10
Compressed Pica | 5 | 8
| |
Elite | 1 | 31
Elite | 2 | 15
Elite | 3 | 10
Elite | 4 | 7
Elite | 5 | 5
| |
Pica | 1 | 26
Pica | 2 | 13
Pica | 3 | 8
Pica | 4 | 5
Pica | 5 | 4
If you have more than the maximum number of characters in a filename,
then that filename will be truncated to the max number in the output.
A typical session might work like this:
1) Load your printer with tracker feed labels and align.
2) Load program from disk.
3) Put disk you want to label in df0:
4) Click with left mouse button over "read df0:".
After a few seconds, cursor returns.
5) Edit volume name in line 1 (make sure not longer than 28 chars).
6) Edit, add, or delete a few filenames.
7) Click the other setup options for printer.
8) Click over "<< Print >>"
go back to step 3 to do another.
Well, that's about the whole program. If I've left something out that
you would like to see or if you don't like the way I did something, let
me know!
Please direct any comments/suggestions/complaints to:
Gary Karnik
5421 West 22nd Place
Cicero, IL 60650
Disk Sticker was written in Lattice C, Version 4.01. If you would like
the source code for your private use, send $10 to the program author.