home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
text
/
misc
/
column
/
column.doc
< prev
next >
Wrap
Text File
|
1995-04-03
|
4KB
|
99 lines
***RGR*** 1994
COLUMN - generates columns from any ASCII text
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
A tool for PageStream (or other DTP programs)
Introduction
------------
This directory contains a tool to split any ASCII textfile
into multiple columns (a new file for each column).
I wrote this, because I had to import a listing generated
with the report generator of dBMAN from Versasoft (the only
xBASE compatible database program on Amiga) into a
PageStream 2.21 document.
The listing contained columns, but with spaces, and so I
could not use a proportional font in my document.
Maybe other DTP users have the same problem - here
is a solution.
Since release of PageStream 3.0 things are much easier - the
new tabulator types solve many problems, but my program
can nevertheless help you if you have to remove columns or
if you want to format some columns with different fonts or
sizes or in block format.
Column is © 1993/1994 Ralf Gruner
An der Sense 5a
D-02779 Großschönau
Germany
Column should only be distributed in combination with
this documentation.
If you are a professional DTP user and you are happy about
Column, you should send me a postcard.
This distribution contains versions of Column for two languages:
English (Column) and German (Column.deutsch).
To show how Column works I have included Demonstration.script.
You can start it by clicking on this icon, it works only in the
ram disk and will not change anything on your drives.
Short instructions:
-------------------
Column generates new files, one for each column,
your original text keeps unmodified. So you can import
the columns separate to the columns of your document
and use various format operations.
Column can only be started from the Shell:
column <filename> <position 1> [<position 2> ... [<position n>]...]
Filename is your text, position 1 ... position n are the
values of the column positions (right margin).
Column will now generate n new files with the name of the
original textfile and append the suffix .col1, .col2, .col3
and so on. The number of columns is limited to 16 (maximum
of simultaneous open files for each Amiga OS process),
but this should be enough.
If a line of the text is longer than position n (the most
right position) the rest of this line will be truncated.
After its work Column will tell you the number of
truncated lines if any.
Example: The textfile TEXT should be splitted into three
columns, the first column are the first three characters,
the second column are the next five characters and the
third column is the rest of the line:
column text 3 8 999
(The 999 for column3 is an arbitrary value, I presume that
no line of the example text has more characters than 999.)
Now three new files are generated:
text.col1, text.col2 and text.col3, containing the columns.
Column will display the text and the column positions while
splitting, so you can check your input and retry with
changed values after Column has finished the splitting.
Already existing files will be overwritten.
Ralf Gruner
----------
Disclaimer
----------
This program is provided "as is" without warranty of any kind, either
expressed or implied, including, but not limited to, the implied warranty
of fitness for a particular purpose. Though every care has been taken to
make this program system-friendly and bugs-free, the entire risk as to the
results, reliability and performance of this program is assumed by you.