home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 February
/
chip_20022115.iso
/
amiga
/
chiputil
/
oneline.rea
< prev
next >
Wrap
Text File
|
2002-01-07
|
4KB
|
152 lines
Short: Text CR-LF-TAB to "" converter (68k)
Author: Vincenzo Barbarulo (barbarulo.vince@infinito.it)
Uploader: Vincenzo Barbarulo (barbarulo.vince@infinito.it)
Version: 1.0
Type: text/misc
Date: 4-Jan-2002
Introduction
------------
I've written this program because no freeware program on Aminet converts a
text file in "One Line" only!.
WHY DO THIS??
So, this program is useful when you want to import a text in a DTP or WP program
and you want to put the text in a number of columns greater or different from
the original text.
In that case you have to go at the end-line, "DEL" last character and
(not always) press "SPACE", for all the "end-line" of the text.
OneLine do that for you and converts at one time CR,LF,TAB & dblSPACES!!
Requirements
------------
Any Amiga with at least OS 2.04 and some Mb of RAM (!) if you want
to save big files into RAM.
Features
--------
- FREEWARE. No requesters and no expiry date.
- Detect CR, LF, TAB and double spaces in a text file of any length.
I've tested this program on my:
A4000, CyberStormMKIII 060/50, 128Mb RAM, CVisionPPC, OS 3.5,
HD9.5Gb ATLAS SCSI-UW, HD10.5Gb Samsung IDE, CanonBJC-4400,
MustekParagon-1200SP, CDROM 48x
Speed NOTE:
On my A4000 OneLine converts and saves a file of ~600Kb of text in ~2 - ~2.5 secs
and another of ~3500Kb in ~13 secs, but the speed depends by the file
(number of the spaces and/or TAB).
Usage
-----
From shell only:
Type: Oneline <in_file_path> <out_file_path> -t . . . <STDOUT>
<in_file_path> Name and path of the file to convert
<out_file_path> Name and path of the destination file
-t TAB option: if it's present, the program erase the TAB
characters too
STDOUT is the file "RAM:STDFile_OneLine.txt" that is used if
isn't destination file specified
To do
-----
Add "Directory scan" option; (to convert a whole directory of text files);
Add "Asl requester"; *
Add a GUI & an icon for WB usage; *
Some speed improvements
*(Perhaps!: I don't know if could be very useful.)
Legal stuff
-----------
OneLine is freeware. It may be distributed freely as long as
no modifications are made to the executable and to this document.
...but if you send me an EMail also empty(!) with the subject
"OneLine user!" you make me greater!!!:
only would i know how many peoples use this program!
Compiled with VBCC.
V0.8 (c) in 1995-2001 by Volker Barthelmann
http://it.aminet.net/pub/aminet/dev/c/vbcc.lha
BUGS
---
-B1 ?OneLine don't "seems" to convert, but only in some files, a CR every 1020-1040
characters. Some programs, like EditPad and Pagestream⌐, shows this CRs.
Other programs like CED4, Type (AmigaDOS) and OneLine too,
(by running again on the dest_file), don't detects and shows them.
See History.
I have tested many times OneLine and it hasn't crashed my system.
But if you find a bug please send me an Email with the subject
"OneLine bug" and tell me your configuration.
(the file with the 'text frame' that generate the bug.
History
-------
0.4 -(internal) Detect and remove only CR & LF chrs (23-Dec-2001)
0.6 -(internal) Detect and remove TAB chrs
0.9 -(internal) Detect end remove doubles (or > 2) spaces
(convert n spaces in 1 space chrs)
-Added "Show converted text" option
-Added "? number of columns" label
1.0 First public release. (04-Jan-2002)
-Added "number of CR, LF, TAB and Spaces removed" info
-I have checked the files that generate the bug "B1" with DPU and other
Hex-Dump Tools too and i don't find any CR chrs after OneLine usage...
-Speed improvement (compiled with VBCC 0.8 ---faaaster!!---)
ME!
---
Vincenzo Barbarulo
C.so Mazzini
Cava de' Tirreni (SA) 84013
ITALY
barbarulo.vince@infinito.it
P.S.:sorry if my english isn't good!!!!