styledtext, mixed content and clipboarddata
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
Well . . .
- -
Does NOT work properly with:
1. BOLD text.
2. Sized text.
- -
Does NOT work properly with:
1. BOLD text.
2. Sized text.
- Attachments
-
- Stylish 2.livecode.zip
- Stack.
- (1.21 KiB) Downloaded 116 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
Blast . . .
- -
STILL having problems with BOLD and SIZED.
-
I wonder why BOLD is being reported as "mixed"?
-
- -
STILL having problems with BOLD and SIZED.
-
I wonder why BOLD is being reported as "mixed"?
-
- Attachments
-
- Stylish 3.livecode.zip
- Stack.
- (1.42 KiB) Downloaded 113 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
OK, OK, Happy Campers . . . IFF you are still keeping the faith with me . . .
1. BOLD:
I had set the word 'stout' to bold from the MenuBar:
- -
and setting text to "bold" like this is reported by LiveCode as "mixed" (which is badly inconsistent).
If, instead of this, a word is set to bold this way:
- -
it is reported by LiveCode as "bold".
1. BOLD:
I had set the word 'stout' to bold from the MenuBar:
- -
and setting text to "bold" like this is reported by LiveCode as "mixed" (which is badly inconsistent).
If, instead of this, a word is set to bold this way:
- -
it is reported by LiveCode as "bold".
Last edited by richmond62 on Sun Sep 04, 2022 11:05 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
2. textSize . . . bad case of my Sunday morning stupidity, because textSize
is textSize, and NOT textStyle.
- - -
is textSize, and NOT textStyle.
- - -
- Attachments
-
- Stylish 4.livecode.zip
- Stack.
- (1.34 KiB) Downloaded 121 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
HOWEVER . . .
This is NOT useful in any way whatsoever for importing styled text from the clipboard that
originated outwith LiveCode.
AND, as one can just do this sort of thing:
this whole exercise has been "one of those pointless exercises Richmond is extremely good at doing." 
This is NOT useful in any way whatsoever for importing styled text from the clipboard that
originated outwith LiveCode.

AND, as one can just do this sort of thing:
Code: Select all
set the styledText of fld 2 to the styledText of fld 1

-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
After considerably more mucking about what has become clear is that the Macintosh clipboard
does NOT copy text styles between apps, BUT is does copy colours.
-
does NOT copy text styles between apps, BUT is does copy colours.
-
Re: styledtext, mixed content and clipboarddata
Errrr... no. That statement is wrong/nonsensical.richmond62 wrote: ↑Sun Sep 04, 2022 2:51 pmAfter considerably more mucking about what has become clear is that the Macintosh clipboard
does NOT copy text styles between apps, BUT is does copy colours.
The mac clipboard most certainly copy/pastes both styles and colours between apps.
Not sure what you're doing... see the the pic below where text created and styled/coloured in textEdit is pasted into Pages.app AND into an LC field, preserving both styles and colour on each paste.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
'nonsensical' may be subjective:Errrr... no. That statement is wrong/nonsensical.
Copying from LibreOffice (as per my picture) did NOT bring BOLD across.
I shall try again . . . results on their way:
- -
1. No Italic.
2. No Bold.
3. No HyperLink.
4. No Size.
-
So (this should be fun),
can you explain why there is a difference between what you are getting and what I am getting?

-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: styledtext, mixed content and clipboarddata
Rodney, as an experimental control have you considered trying the copy command?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: styledtext, mixed content and clipboarddata
Nope, not really that fun at all if i'm honest...
Why don't you try TextEdit, which is installed on all macs and see what results you get?
S.
It is nonsensical because a) that doesn't happen and b) do you really think Apple would allow this to be the case.
And that is your answer. It must be LibreOffice not copying stuff correctly, not the "mac clipboard"richmond62 wrote: ↑Sun Sep 04, 2022 4:19 pmCopying from LibreOffice (as per my picture) did NOT bring BOLD across.
Why don't you try TextEdit, which is installed on all macs and see what results you get?
S.
Re: styledtext, mixed content and clipboarddata
this still has the issue reported above.FourthWorld wrote: ↑Sun Sep 04, 2022 4:22 pmRodney, as an experimental control have you considered trying the copy command?
if you use
Code: Select all
copy field 1
if you use
Code: Select all
copy char 1 to -1 of field 1
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
OK, 'darling', TextEdit it is:
- -
Pasting from LibreOffice to TextEdit works 100%
- -
Pasting from TextEdit into LiveCode works 100%
So, what in the name of @#$%^&! is happening between LibreOffice and LiveCode without
an intermediate (TextEdit) stage?
Whichever way you shuffle your cards (nonsensically or sensibly
), that should
make us think as, for the sake of argument, a developer has no way whatsoever of knowing
where an end-user is going to copy text from to paste into a LiveCode field.
- -
Pasting from LibreOffice to TextEdit works 100%

- -
Pasting from TextEdit into LiveCode works 100%

So, what in the name of @#$%^&! is happening between LibreOffice and LiveCode without
an intermediate (TextEdit) stage?
Whichever way you shuffle your cards (nonsensically or sensibly

make us think as, for the sake of argument, a developer has no way whatsoever of knowing
where an end-user is going to copy text from to paste into a LiveCode field.
Re: styledtext, mixed content and clipboarddata
Probably just advise not to use LibreOffice on Mac then.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
Copies from LibreOffice into NeoOffice 100%:
- -
Copies from NeoOffice to LiveCode WITHOUT bold:
- -
and, at that point, I will remind you what my late father told me his favourite hobby was:
Banging my head against the wall.
and why?
Because it feels great when it stops.
- -
Copies from NeoOffice to LiveCode WITHOUT bold:
- -
and, at that point, I will remind you what my late father told me his favourite hobby was:
Banging my head against the wall.
and why?
Because it feels great when it stops.

-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: styledtext, mixed content and clipboarddata
You are going to "T-off" quite a few clients if you issue them with a long advisory list. 
Noli me tangere.

Noli me tangere.