Skip to content

Commit 00ee69d

Browse files
committed
Merge remote-tracking branch 'upstream/develop-8.1' into merge-develop_8.1_20.02.18
2 parents 9c91998 + 24edd85 commit 00ee69d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+488
-104
lines changed

docs/dictionary/property/clipboardData.lcdoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,18 @@ places the text "Hello World" on the <clipboard(glossary)>:
8888

8989
set the clipboardData["text"] to "Hello World"
9090

91+
The above statement will only place plain text on the clipboard, similar
92+
to using the copy command from a text only editor.
93+
94+
set the clipboardData["html"] to "&lt;p&gt;Hello World&lt;/p&gt;"
9195

9296
The above statement is equivalent to selecting the text "Hello World"
93-
in a field and choosing Edit menu, or to using the <copy> command. The
94-
data you place on the <clipboard(glossary)> is accessible to your
95-
application using the <paste> command, and to other applications (that
96-
support pasting text) using the application's Paste menu item.
97+
in a field and choosing Copy Text from the Edit menu, or to using the
98+
<copy> command (chunk of field syntax) since styled text is placed on
99+
the clipboard by default. The data you place on the
100+
<clipboard(glossary)> is accessible to your application using the
101+
<paste> command, and to other applications (that support pasting text)
102+
using the application's Paste menu item.
97103

98104
>*Tip:* To quickly find out what kind of data is on the clipboard, use
99105
the <clipboard> function.

docs/dictionary/property/fullClipboardData.lcdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ another app, the <clipboard(glossary)> will be automatically cleared
5959
when written to. If you want to do this explicitly, use
6060
`set the fullClipboardData to empty`.
6161

62-
The `text`, `rtftext`, `htmltext`, `styles` and `styledtext`
63-
properties are handled specially by LiveCode: adding any one of them
64-
will cause the rest to be automatically generated and added. You can
62+
The `rtftext`, `htmltext`, `styles` and `styledtext` properties are
63+
handled specially by LiveCode: adding any one of them will cause the
64+
rest (plus `text`) to be automatically generated and added. You can
6565
query the keys of the <fullClipboardData> to determine what types of
6666
data are on the <clipboard(glossary)>.
6767

docs/dictionary/property/rawClipboardData.lcdoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,15 @@ This property should only be used if you require low-level access; the
5656

5757
As a low-level feature, platform differences are not hidden. In
5858
particular, the form of the keys of the <rawClipboardData> are
59-
platform-specific, but can be summarised as:
59+
platform-specific, but can be summarized as:
6060

6161
- Windows: arbitrary strings but keys of the form CF_xxx correspond to
62-
63-
the <clipboard(glossary)> formats defined by Windows itself
64-
- OSX: Uniform Type Identifiers (UTIs) with an extension:
65-
66-
OSTypes/MIME-types can be used by prefixing the key with
67-
com.apple.ostype:/public.mime-type:
62+
the <clipboard(glossary)> formats defined by Windows itself
63+
- OSX: Uniform Type Identifiers (UTIs) with an extension.
64+
OSTypes/MIME-types can be used by prefixing the key with
65+
com.apple.ostype:/public.mime-type:
6866
- Linux: arbitrary strings (X11 atoms) but, by convention, MIME types
69-
70-
are used
67+
are used
7168

7269

7370
>*Tip:* All contents of the <rawClipboardData> are binary - use the

docs/dictionary/property/scriptOnly.lcdoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,19 @@ The name or ID of the stack.
4949

5050
Description:
5151
A <scriptOnly> stack will save just the script with a single header line
52-
declaring the stack name. Any other objects or properties of the stack
53-
will not be written to disk.
52+
declaring the stack name. If the stack has a <stack> <behavior>, the
53+
name of the behavior stack is also saved to the header line. Any other
54+
objects or properties of the stack will not be written to disk.
5455

5556
The <scriptOnly> property has been added to enable scripts to detect and
5657
set the file format of the stack. Without this property it is not
5758
possible to detect the file format the stack is being saved in without
5859
examining the file itself.
5960

60-
>*Warning:* <scriptOnly> stacks only save the stack name and script. Any
61-
> property changes and objects created while the stack is open will not
62-
> exist the next time the stack is opened.
61+
>*Warning:* <scriptOnly> stacks only save the stack name, script and
62+
> stack behavior. Any other type of behavior, or property changes and
63+
> objects created while the stack is open will not exist the next time
64+
> the stack is opened.
6365

6466
>*Note:* Script only stacks are unable to be password protected. In
6567
> order to password protect a script only stack use the following
@@ -68,7 +70,7 @@ examining the file itself.
6870
set the scriptOnly of stack "Secrets" to false
6971
set the password of stack "Secrets" to field "Password"
7072

71-
References:create stack (command), stack (object)
73+
References:create stack (command), stack (object), behavior (property)
7274

7375
Tags: objects
7476

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Name: script only stack
2+
3+
Type: glossary
4+
5+
Description:
6+
A <script only stack> is a <stack> whose on-disk representation is just
7+
a <text file> with a header line:
8+
9+
script "StackName"
10+
11+
and, optionally with a <behavior> <stack> reference:
12+
13+
script "StackName" with behavior "BehaviorName"
14+
15+
Anything else in the file is the <script> of the <script only stack>.
16+
17+
References: text file (glossary), stack (glossary), script (property),
18+
behavior (property)
19+
20+
Tags: objects
21+

docs/glossary/s/stack-file.lcdoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Type: glossary
66

77
Description:
88
A LiveCode <file>, containing a <main stack> and (optionally) one or
9-
more <substack|substacks>.
9+
more <substack|substacks>. A stack file is either binary, or a text
10+
file (a <script only stack>).
1011

11-
References: file (glossary), substack (glossary), main stack (glossary)
12+
References: file (glossary), substack (glossary), main stack (glossary),
13+
script only stack (glossary)
1214

1315
Tags: file system
1416

docs/glossary/s/stack-version.lcdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Synonyms: stack format, stack file format, stack file version
55
Type: glossary
66

77
Description:
8-
When saving a <stack> using the <save> <command>, it is possible to save
9-
with a specific version of LiveCode's stack <file> format. This is
10-
useful when saving a stack so that it can be saved in an older
8+
When saving a binary <stack> using the <save> <command>, it is possible
9+
to save with a specific version of LiveCode's stack <file> format. This
10+
is useful when saving a binary stack so that it can be saved in an older
1111
<version|version of LiveCode>, but it should be used with caution.
1212

1313
**Warning:** Using a non-default <stack version> could result in data

docs/notes/bugfix-19206.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# clipboard always converts plain text to styled text
2+
3+
Whenever `text` was placed on the clipboard, it was first converted to
4+
LiveCode styled text and then put on the clipboard as styled text, RTF,
5+
HTML, and plain text. This introduced errors when pasting to other
6+
applications since they would prefer the HTML version which made the
7+
text appear double spaced.

docs/notes/bugfix-19580.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure colors round-trip through styledText correctly

docs/notes/bugfix-19652.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Refresh player on windows when mirroring property is set

0 commit comments

Comments
 (0)