[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2294.0. "Pro_write problem" by JGO::CHAPMAN () Wed Mar 01 1989 03:19

    I have come across a problem with Pro-Write which, although I generally
    like it, makes it useless to me.
    
    Normally Pro_write saves files in its own format. You can however
    save "text only", ie ascii format. If you do this, it seems that
    the text is saved with no carriage returns except the hard ones. This
    means you get a line possibly thousands of characters long. When
    I upload this to the vax, I have no way of reformatting anything
    with more than 255 characters per line, and the rest just gets lost.
    
    I'm sure somebody else must have come across this. Any suggestions
    gratefully received. At the moment I'm going through every Pro-write
    document putting a CR at the end of each line before uploading.
    This also means I have to delete them again anytime I want to edit
    a file further. There must be a better way!
    
    Colin
     
T.RTitleUserPersonal
Name
DateLines
2294.1TPU, or do it yourselfSAUTER::SAUTERJohn SauterWed Mar 01 1989 07:144
    If your lines are no longer than 980 bytes you should be able to
    reformat using TPU.  If that isn't enough, a simple C program on the
    VAX should be able to reformat to a fixed page width.
        John Sauter
2294.2STRIPLEDS::ACCIARDIWed Mar 01 1989 08:4615
    
    If you look in NORSE""::AMIGA:[UTILITIES] you'll find a file called
    STRIP.ARC.  Download it and put STRIP into your c: directory.
    
    STRIP will place hard carriage returns at whatever column you specify
    on any text file.  The syntax is...
    
    STRIP -wn TEXTFILE    where n is the column to place the <CR> at.
    
    STRIP will reformat the input file and then inform you that a
    reformatted copy has been placed in RAM:
    
    Works like a charm.
    
    Ed.
2294.31+SAUTER::SAUTERJohn SauterWed Mar 01 1989 12:573
    How about an enhanced version of STRIP, that converts the first space
    after column N into a hard return?
        John Sauter
2294.4LEDS::ACCIARDIWed Mar 01 1989 13:308
    
    Sorry, I probably wasn't very clear...  STRIP will not brutally
    chop words down the middle.  When you specify the column number,
    STRIP will prevent any characters from exceeding that column location.
    It will, of course, wrap any words that won't fit within the specified
    page width.
    
    Ed.
2294.5When in doubt..JGO::CHAPMANThu Mar 02 1989 02:487
    When in doubt, read the documentation.
    
    When the documentation fails, ask the noters. That always works.
    
    Thanks.
    
    Colin