Greetings "Tim Doty" < drakki%40rollanet.org">drakki
rollanet.org>
On 07/04/2007 at 14:34 you wrote concerning
Re: [PageStreamSupport] Copy & Paste
Hi Tim,
<<snip>>
TD>> Although clumsy to describe, the 'screwups' related
TD>> above result from rather simple operations. In more
TD>> complicated paragraphs, the results can be really
TD>> confusing. If I use the Edit Palette to "set things
TD>> right" and then look at the text formatting codes, then
TD>> it makes sense -- sometimes. Additionally, on doing so,
TD>> I observe the 'missing' text descriptors appear roughly
TD>> where I expect them. But having to resort to the
TD>> examination of the text formatting codes is ridiculous.
TD>> It has reached the point that in a doc of even
TD>> 'moderate'
TD>> complexity or a 'longish' document, I avoid using the
TD>> PASTE
TD>> operation for fear of weird results propogating
TD>> through
TD>> large areas of text. From my point of view, COPY and
TD>> PASTE
TD>> in PageStream is simply defective. Either that or
TD>> after all
TD>> these bloody years I still do not know how to perform
TD>> these
TD>> operations with any competence.
TD> There are some difficulties with using copy and paste of
TD> text in PgS though some of the problems you describe
TD> have, I think, been alleviated in more recent versions.
TD> Out of long habit I suppose I never use copy and paste
TD> of text in PgS, instead I do that sort of editing in an
TD> editor (and is a major reason why I ported the
TD> SendToEditor script to Python).
More recent versions!?!?!? Do you allude to Windows and Linux versions?
Yes, I agree that 'normally' one should do as much text editing within some
editor, like PageLiner in an Amiga setup, but in 'finishing' a document that is
not a reasonable solution. If, for example, I want to 'copy' an earlier
paragraph consisting of several hundred characters strokes, retyping same, or
from PageLiner saving the text to another file and then importing that into the
PageStream document, is simply not reasonable. Even copying from another
PageStream document -- with the added complications that that implies -- should
be possible and I have done so on many occasions. But such practice is
unreliable as I really do not understand what I am copying.
<<snip>>
TD> Why does this happen? Having looked at and fixed text
TD> suffering from these problems in my opinion it is caused
TD> by PgS trying to maintain formatting. If you get right
TD> down to it this can be a tricky thing because PgS
TD> doesn't know your /intent/. So it tries to preserve the
TD> formatting of the copied text by grabbing context.
Of course, PageStream cannot know a user's intent, but, for example, a different
type of copy could be made available; e.g., a copy operation wherein the
formatting codes are not copied. On occasion, this would be useful. Another
useful variation might be:
%% One highlights a paragraph or several paragraphs.
%% One requests that PageStream -- not PageLiner -- show the formatting codes
that apply to the highlighted paragraphs, and they are displayed.
%% Once the highlight is broken, the area of text reverts to its former
'formatted' version.
I'm not sure if the above is a reasonable request, just sort of wondering about
this matter. Of course, one can do that now within PageLiner, but oscillating
back and forth from PageLiner can be counter-productive.
TD> There are times when this is the behavior you would
TD> want, such as copying a complete body of formatted text
TD> and pasting it to a new location. However, if you copy
TD> text internal to a paragraph and paste it internal to a
TD> new paragraph you probably want it to take on the
TD> formatting of the new paragraph -- except for applied
TD> formatting.
In the context above, the ability to copy WITHOUT the formatting codes would be
useful.
TD> If everyone used styles and in a uniform fashion then
TD> PgS /could/ alter behavior to preserve styles in the one
TD> case and not the other. But trying to second guess the
TD> user ends up in complaints (see MS Word for reference).
TD> I don't fault PgS for what I see as the basic approach
TD> of trying to preserve the formatting of text.
I don't follow what you claim PageStream is trying to do here.
Clearly it is impossible to require that users apply styles in some "uniform
fashion." Cannot imagine Amigans buying that idea. 
<<snip>>
TD> I assume you are referring to things like
TD>
PHeader1:
PParagraph:
PHeader1:
PParagraph: repeated ad
TD> naseum?
Not really, I can understand how the above can happen because of my vascillating
directions to PageStream. Sometimes PageStream will repeat the parameters for
'characters' which I'm not able to understand. I gave an example in the original
message.
TD> That is a long standing flaw and one that I argue can be
TD> programmatically solved. It is a little problematic
TD> though.
If Deron had nothing else to do, he probably could program a "Clean Up"
operation, but I wonder how difficult that would be???
<<snip>>
TD> In PgS a style need not, and rarely does, declare all
TD> possible formatting attributes. Those that are not
TD> defined are picked up from the previous style. If the
TD> previous style does not set the attribute then they are
TD> picked up from the previous style ... until you get to
TD> the beginning of the article in which case they are set
TD> by the default attributes.
But if you do not specify an attribute, then the relevant one back in <No Style>
may be used -- I think. That can lead to surprises! I tend to specify
everything under the sun when defining a new style, even if it means repeating
parameter values.
Also, one's *first* style must be based on something and the obvious something
is <No Style>.
TD> There is one additional wrinkle: as PgS scans back to
TD> find the setting of a format attribute it will stop at
TD> an applied format. And this causes mixing of applied
TD> formatting with styles as an almost inevitable result
TD> due to the scarcity of styles covering all formatting
TD> attributes.
I don't get the above. By "applied formatting" I assume you mean something like
changing something like '1st' within some paragraph style to '1' followed by
'st' set in superscript format. So, I see the 'mixing' of styles and "applied
formats" as natural and don't quite follow what you are getting at.
TD> So having
PHeader1:
PParagraph: is perfectly valid,
TD> despite the fact that I would never use it. There would
TD> always be pathological cases, but repeating patterns,
TD> e.g.,
PS1:
PS2:
PS1:
PS2:
PS1:
PS2:
PS1:
PS2:
PS1:
PS2:
TD> could be reduced to
PS1:
PS2: and PgS does not
TD> currently do this.
Yes, that would be some sort of "Clean Up" operation that I alluded to above.
Although '
PHeader1:
PParagraph:' is indeed valid, I fail to see its
usefullness. In
PHeader1:
PParagraph:«some text»
only the style 'Paragraph' would be applied to the textual material «some text»
or am I wrong again?
TD>> Oh, by the way, I still have not figured out the
TD>> difference between 'Paste' and "Paste as is". I hope
TD>> you have. 
TD> Sorry to say I had even forgotten there was a "Paste as
TD> is" because I never really use copy/paste in PgS.