#ASCIIfiles
6 messages in this thread
Is there a utility available that can create an ASCII file from an Emacs
or Notepad file? Thanks.
Barry
Barry,
Emacs creates ASCII files – that's all it works with. Not sure about
Notepad, but I know it reads in standard ASCII files.
Perhaps you are looking for something other than what your question stated.
If so, could you re-phrase it?
..Bob
OK, re-phrase time. What I am doing is writing on an Epson PX-8 (an old CP/M
laptop) using portable Wordstar. There is no good spell check feature for this
{the PX-8} machine so I transfer the file to ASCII and use ispell for the
Amiga. Then I transfer back. What happens is that whenever the file has been
through the Amiga-either starting their in Notepad or Emacs, and then goes
back into the PX-8 line feed characters (I`Ve since learned that they are
ASCII line feeds) prevent the Wordstar Re-formating feature from working.
What I need to know is 1) Is there some way to strip away these characters
=AND= replace them with what is refered to in the Wordstar manual as a "soft
carrige" return? I =have= been able to delete the line feeds with Txt in DL 9,
but the trouble is Wordstar then views the entire file as one long sentance.
Any ideas??? Thanks.
Barry
Barry,
Now I understand your problem. The difference is between the way that the
Amiga marks an end-of-line (by using a line-feed character) and the way that
CP/M and MS-DOS machines mark an end-of-line (by using both a carriagereturn
and linefeed characters). I know of a number of filter programs for converting
the CR-LF combination to the Amiga-standard LF, but can't think of one off-hand
that converts the other way. It would be trivial to write, though.
..Bob
As mentioned before, the difference is the LF that the Amiga uses and
CRLF that CP/M and MS-DOS use. How are you transferring your files from one
system to another? If you are using a terminal program of some sort, check
around for one that handles EOL translations. On the Amiga, AMIC might, Diga!
sort of, but nothing really handles this problem completely. Maybe CP/M has
one (ahh for Procomm on MS/DOS)?
David Masterson
David,
Thanks for the reply. I think the problem is solved. Its tedious but if
I use a PD utility called TXT (in tool box) I can get the output to CR+LF, then,
on the CP/M end, use a utility that converts ASCII to Wordstar. Wordstar then
"recognizes" the file. At this point only 1 Wordstar function doesn`t work
quite right but I think that replacing the CP/M utility with one a bit more
sophisticated (that I just downloaded) will do the trick. Thanks again.
Barry