Re: How to select part of a formatted text ?
- From: "Remi-Noel Menegaux" <rnmenegaux@xxxxxxx>
- Date: Fri, 8 Sep 2006 10:12:32 +0200
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 boldit's not the way the field is formatted that is 'pasted', but rather the way
formatted field whether or not it keeps the bold or reverts back to how
the text in the field was entered.
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)
.
- Follow-Ups:
- Re: How to select part of a formatted text ?
- From: Ursus
- Re: How to select part of a formatted text ?
- References:
- How to select part of a formatted text ?
- From: Remi-Noel Menegaux
- Re: How to select part of a formatted text ?
- From: Helpful Harry
- How to select part of a formatted text ?
- Prev by Date: Re: How to select part of a formatted text ?
- Next by Date: Re: How to select part of a formatted text ?
- Previous by thread: Re: How to select part of a formatted text ?
- Next by thread: Re: How to select part of a formatted text ?
- Index(es):
Relevant Pages
|