|
Post by rickapel on Dec 4, 2021 9:19:09 GMT -5
I am an ISPF user since early 1980's and a user of various PC ISPF emulations since then. I am a newbie to this particular forum.
While researching on the web I do a lot of copy and pasting while researching topics. It would be very nice to have a multiple line copy on a web page to wrap when pasted into spflite based on what the BNDS is set to.
I did try researching using 'wrap' and only saw one hit which made a similiar request but was more oriented on wrapping based on the visual area of spflite. The answer to that request was that there was a programatic tracking issue of some sort.
My request is for a simple wrap based upon a paste into a spflite doc being edited, with a 'blank' used as the identifying character for the wrap
|
|
|
Post by George on Dec 4, 2021 10:52:31 GMT -5
Rick: Have you tried just doing a TF line command to flow the text. It honors the BNDS setting.
i.e. A simple PASTE followed by a TF should do what you want.
George
|
|
|
Post by George on Dec 4, 2021 16:54:29 GMT -5
Robert: Rick: Well, I tested TF with BNDS before responding and it worked fine. Maybe Rick can provide some examples of the problem, there are just so many variables here.
George
|
|
|
Post by rickapel on Dec 5, 2021 9:53:01 GMT -5
Thanks for your responses. I got it working a couple of different ways, but please refer to my notes below for what worked and what didn't work. I am AOK at this point.
1) setting BNDS 1 40 and then TMM on either side of text. This works very well as I can paste a line of long text to every other blank line, and then enter TMM on either side and format multiple paragraphs at one.
2) TF40 on the line command area of a line I just pasted works just fine. However, this only works if BNDS has been reset as I get a message indicating TF40 is sensitive to BNDS being manually set to something other than its default at the global level. Message: TF right bound specified but global BNDS are set, TF abandoned
3) Seting BNDS 1 40 with a primary command, and then issuing a TF line command on a long paragraph that I just pasted doesn't seem to do anything.
4) I then tried to reformat the paragraphs which I had sucessfully formatted at 40 cols. I issued the BNDS primary command to set the BNDS to default. I then tried the TF line command once again, and it worked with the paragraph braking off off with the last char of a word at col 119, a blank at 120, and the rest of the sentence on the next line. So in fact the TF did sort of work when BNDS was at default 4) Seting BNDS 1 40 and then trying a TF on a long paragraph that I just pasted doesn't seem to do anything.
So, TF line command seems to be honored if BNDS primary command set to go back to default. and everything is formatted longer to 120 cols, but TF does not seem to honor a BNDS manually set to a smaller value.
Note that the text I pasted ended with a period. I turned Hex On and validated there was not anything else there.
|
|
|
Post by George on Dec 5, 2021 10:21:28 GMT -5
Rick: Robert: As most of us know BNDS support is hairy because it is so poorly defined by IBM in ISPF itself, so the 'right' way is poorly defined (if at all).
When BNDS are active (e.g 1 40) and you have a bunch of ~~ 120 char lines, remember that TF only looks at the text WITHIN the bounds, it will not touch data in 41 - 120, so it is very possible that nothing will visibly happen.
If you really want your long lines wrapped to 40 characters, you have to reset the bounds and use a TRF40 command, otherwise it won't even look at all the data.
Lastly, BNDS support will simply not get changed from what it is. It permeates every command that changes data and I just don't have the heart to attempt to 'fix' such a poorly defined item.
George
|
|
|
Post by rickapel on Dec 5, 2021 11:23:45 GMT -5
George and Robert: Thanks once again for your quick reponses. I can't think of a editor that I like better than ISPF for any column oriented tasks so I'm very grateful to have spflite at my disposal.
|
|