[comp.sys.apple] converting from apple writer to UNIX

wwang@ucscb.UCSC.EDU (Weylan Wang) (04/01/88)

I wanted to know how to convert a file that has been written with Apple
Writer and convert it to an ASCII file that can bee edited and printed
via UNIX.  I know they are not totaly compatible.  Do I need to do
anything special to convert it?  Is the file in dos 3.3 text, easily
converted?  ANy one help me?


Please send Email.

USnail:					Email:
Weylan Wang				wwang@ucscb.ucsc.EDU
UCSC College 8 #608
Santa Cruz, CA 95064

jetzer@studsys.mu.edu (jetzer) (04/05/88)

In article <2580@saturn.ucsc.edu>, wwang@ucscb.UCSC.EDU (Weylan Wang) writes:
> I wanted to know how to convert a file that has been written with Apple
> Writer and convert it to an ASCII file that can bee edited and printed
> via UNIX.  I know they are not totaly compatible.  Do I need to do
> anything special to convert it?  Is the file in dos 3.3 text, easily
> converted?  ANy one help me?

The main difference is that UNIX needs a carriage return after each line, and
a linefeed after each carriage return.

The easiest way to add a <cr> to the end of each line is to print the file
to disk (use [P] pd 8), then load the printed file into applewriter.

To get the <lf>s after each <cr>, do a
[F]<><>J<A
where you replace the 'J' with a ctrl-j (downarrow).  This command tells
AppleWriter to find each <cr> (the '>') and replace it with a <cr> and <lf>
(If that command doesn't do it, try using '>' for the delimiter and '<' for
the <cr> token.  It's been a  l o o ng  time since I've used AppleWriter). l o o
-- 
__
Mike Jetzer
"If you can't be right, be forceful"
uwvax!uwmcsd1!marque!studsys!jetzer

F3U@PSUVM.BITNET (04/07/88)

> The main difference is that UNIX needs a carriage return after each line, and
> a linefeed after each carriage return.

NOOOOOOO!!  MS-DOS requires the carriage return-linefeed combination.
      UNIX needs *just* the linefeed(control-J) at the end of each line.




-------
**********************************************************************
*  Frank Uzzolino                       Penn State University        *
*  f3u@psuvm                            7 Hamilton Hall              *
*  frank@psuvaxg                        University Park, PA  16802   *
**********************************************************************