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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2294.1 | TPU, or do it yourself | SAUTER::SAUTER | John Sauter | Wed Mar 01 1989 07:14 | 4 |
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.2 | STRIP | LEDS::ACCIARDI | Wed Mar 01 1989 08:46 | 15 | |
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.3 | 1+ | SAUTER::SAUTER | John Sauter | Wed Mar 01 1989 12:57 | 3 |
How about an enhanced version of STRIP, that converts the first space after column N into a hard return? John Sauter | |||||
2294.4 | LEDS::ACCIARDI | Wed Mar 01 1989 13:30 | 8 | ||
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.5 | When in doubt.. | JGO::CHAPMAN | Thu Mar 02 1989 02:48 | 7 | |
When in doubt, read the documentation. When the documentation fails, ask the noters. That always works. Thanks. Colin |