Re: How to select part of a formatted text ?



Unfortunately, the part of text between 2 successive (but randomly put)
pipes is made of variable set of words that are bold, some red, some plain,
...., but no uniformity. (In my original post, when I said 'while keeping its
enrichment', I should have put an 's' at the end of 'enrichment' as there
could be many different enrichments in the part I am trying to isolate).

Just for trying to be precise (still FMP6), when you say :
I'm not sure if when you later script the copying of that bold
formatted field whether or not it keeps the bold or reverts back to how
the text in the field was entered.
it's not the way the field is formatted that is 'pasted', but rather the way
the text in it is formatted within that field : if that text is bold, then
it is pasted as bold. (If, in the 'part' considered, one word is plain then
the next is bold, then the last is red, the exact formatted copy of those 3
words will appear in the pasted field).
But that is irrelevant here as Set Field (needed to select a part to copy)
had distroyed the formatting and Copy Paste can only be made between single
fields.
Then I guess the 'no go' conclusion remains the same with that technique,
alas ! If ever - I doubt it - it could be made with other techniques,
these - that I don't know of - would be 'convoluted' as I said, with html
(?) or PDFs or XML (whatever it means) or even 'tags' if I could recognize
say a bold word and put <B> before and after it. The net of it is that with
FMP6 it seems impossible to deal correctly with 'formatted by hand' portions
or text, only plain text. Except - as you explained me in another post
(Subject 'Positionning the cursor' on Sept3, 2006) - if you insert in a
plain text some fields (one at a time) that contain formatted text and plain
text made by hand (your example dealt with "|03" for example, set by hand as
"<bold>|03<plain>Space").

Thanks for caring again.
Remi-Noel

----- Original Message -----
From: "Helpful Harry" <helpful_harry@xxxxxxxxxxxxxxxx>
"Remi-Noel Menegaux" <rnmenegaux@xxxxxxx> wrote:

(FMP6 Windows)
I have a text field which has been 'enriched' by hand - ie with bold,
color,
underlined, .. parts of the text -.
I'd need to select only a part of it in the middle (say between two
'pipes
'|' that already exist), while keeping its enrichment, and put it by
copy-paste in another field.
Is there any possibility to do that ?
I would really need it even if the solution is convoluted.

Since you know the data between the two "|" characters is in bold, why
not simply use Set Field to put it into a field that's formatted to
display as bold.

I'm not sure if when you later script the copying of that bold
formatted field whether or not it keeps the bold or reverts back to how
the text in the field was entered.


Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


.



Relevant Pages

  • Re: Cross-reference Formatting
    ... Then you have to clear the bold attribute from the Caption style. ... formatting is in the default Word "Caption" style - it's not direct ... Add the \* Charformat switch to each cross-reference field to tell the ...
    (microsoft.public.word.docmanagement)
  • Re: Trouble with AutoText formatting!! Help!
    ... You can do this with a completely separate template. ... AutoText, AutoCorrect, keyboard assignments, toolbars, macros, etc. ... Your formatting is explained by the use of direct formatting in either your ... Things like Bold and italics are toggle characteristics in Word. ...
    (microsoft.public.word.docmanagement)
  • Re: Trouble with AutoText formatting!! Help!
    ... You can do this with a completely separate template. ... AutoText, AutoCorrect, keyboard assignments, toolbars, macros, etc. ... Your formatting is explained by the use of direct formatting in either your ... Things like Bold and italics are toggle characteristics in Word. ...
    (microsoft.public.word.docmanagement)
  • Creating a Specially Formatted Word Document Through Visual Basic
    ... The user wants to apply bold formatting only to the values entered by ... should be printed in a separate font than the descriptive lables. ... Bold and Underline formatting to an entire line. ... Set thisRange = thisDoc.Paragraphs.Range ...
    (microsoft.public.office.developer.automation)
  • Re: Simple styles for complex documents?
    ... -- Take care to specify the "Style for following paragraph" in each paragraph style carefully. ... Users quickly find that applying these from the styles pane is quicker than trying to use manual formatting, the styles are easier to find in the styles pane, and it's more obvious if a wrong style has been applied. ... It is both a design issue, ... No Bold, no Underline etc. ...
    (microsoft.public.word.pagelayout)