<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 1/4/2022 3:26 PM, Vanessa Freudenberg wrote:
<blockquote
cite="mid:CAOWGXNARawC8eH8=cbCB426tCRN+pxBs4fR9UZXgUJ31U-WBTQ@mail.gmail.com"
type="cite">
<pre wrap=""> </pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<div dir="ltr">
<div dir="ltr">On Tue, Jan 4, 2022 at 8:14 AM Eliot Miranda <<a
moz-do-not-send="true" href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="auto">Hi Vanessa,
<div dir="ltr"><br>
<blockquote type="cite">On Jan 3, 2022, at 1:03 PM,
Vanessa Freudenberg <<a moz-do-not-send="true"
href="mailto:vanessa@codefrau.net" target="_blank">vanessa@codefrau.net</a>>
wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"><span>
<div dir="ltr">In the OLPC days this plugin enabled
copy/paste of objects, pictures. and rich text on
all platforms (Mac/Win/X11).
<div><br>
</div>
<div>E.g. you could copy/paste a morph from one
image to another simply by bringing up its halo,
pressing cmd-c, and pressing cmd-v in the other
image. All its scripted behavior (Etoys scripts)
would be transferred with it. If instead you
pasted that morph into a word processor, it
would insert a bitmap rendering of the morph. </div>
<div><br>
</div>
<div>Similarly you could copy a picture from a web
browser and paste it directly into Squeak. Or
copy syntax-highlighted source code from Squeak
into an email.</div>
<div><br>
</div>
<div>I'm not entirely sure how much of the
machinery made into Squeak trunk, but I would
guess it's almost all there, might just need
some wiring to hook up properly.<br>
</div>
</div>
</span></div>
</blockquote>
<div><br>
</div>
The basic image classes are there. But only the Mac vm
support machinery made it. There is no
platforms/unix/plugins/ClipboardExtendedPlugin
or platforms/win32/plugins/ClipboardExtendedPlugin that I
can find. Where or who can we reach out to to try and
locate this code?</div>
</blockquote>
<div><br>
</div>
<div>The unix plugin is in the interpreter sources:</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/plugins/ClipboardExtendedPlugin/sqUnixExtendedClipboard.c?view=markup">http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/plugins/ClipboardExtendedPlugin/sqUnixExtendedClipboard.c?view=markup</a><br>
</div>
<div><br>
</div>
<div>with the X11 support code in the display plugin:</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/vm-display-X11/sqUnixX11.c?revision=3796&view=markup#l2465">http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/vm-display-X11/sqUnixX11.c?revision=3796&view=markup#l2465</a><br>
</div>
<div><br>
</div>
<div>I don't see the equivalent in win32, possibly I was
misremembering that it worked on all three platforms (I only
ever use Mac and *nix).</div>
<div><br>
</div>
<div>Vanessa</div>
</div>
</div>
</blockquote>
<br>
I believe I took related code from Sophie. In Cuis you can copy /
paste various things between images and external programs as Vanessa
says. Haven't used it in a long time, though.<br>
<br>
The Windows support calls stuff in user32.dll via ffi, i.e. no
plugin. It doesn't support writing to clipboard. I believe Mac and
Linux support is more complete.<br>
<br>
<blockquote
cite="mid:CAOWGXNARawC8eH8=cbCB426tCRN+pxBs4fR9UZXgUJ31U-WBTQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="auto">
<div>
<div>
<blockquote type="cite">
<div dir="ltr"><span>
<div dir="ltr">
<div>
<div><br>
</div>
<div>Vanessa</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Dec
31, 2021 at 5:07 PM Eliot Miranda <<a
moz-do-not-send="true"
href="mailto:eliot.miranda@gmail.com"
target="_blank">eliot.miranda@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:
0px 0px 0px 0.8ex; border-left: 1px solid
rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">
<div dir="ltr">
<div style="font-size: small;">Hi
Bernhard,</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On
Fri, Dec 31, 2021 at 5:27 AM Bernhard
Pieber <<a moz-do-not-send="true"
href="mailto:bernhard@pieber.com"
target="_blank">bernhard@pieber.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin: 0px 0px 0px 0.8ex;
border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;"> <br>
Hi,<br>
<br>
Maybe this question is better asked on
the vm-dev list. Does anyone know the
status of the ClipboardExtendedPlugin?<br>
<br>
Happy New Year!<br>
<br>
Bernhard<br>
<br>
> Am 20.12.2021 um 09:38 schrieb
Bernhard Pieber <<a
moz-do-not-send="true"
href="mailto:bernhard@pieber.com"
target="_blank">bernhard@pieber.com</a>>:<br>
><br>
> Hi everyone,<br>
><br>
> I tried to copy a form as PNG to
the clipboard like this:<br>
> ExtendedClipboardInterface
current
addClipboardDataConvertFormToPNG: self
imageForm<br>
</blockquote>
<div><br>
</div>
<div style="font-size: small;">With
fixes to the plugin
ClipboardExtendedPlugin.c generated C
file to declare the interface it uses,
and the Makefile to compile it, I am
able to copy and paste the display
into TextEdit on macOS 10.14. I'll
commit fixes to the opensmalltalk-vm
repository, and add the plugin to
Squeak macOS builds. Thanks for the
heads up :-)</div>
<div style="font-size: small;"><br>
</div>
<blockquote class="gmail_quote"
style="margin: 0px 0px 0px 0.8ex;
border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">
><br>
> This seems not to work correctly.
If I paste it to TextEdit I get the
binary data starting with PNG instead
of the image itself. It looks as if
the ClipboardExtendedPlugin is not
loaded. The plugin seems to be in the
current VM source
(src/pugins/ClipboardExtendedPlugin),
though. I am on macOS Big Sur 11.6.1.<br>
><br>
> Should this work? I tried on
Squeak 3.4, 4.6 and 5.3 but the
ExtendedClipboardInterface is not
loaded in these images.<br>
><br>
> Cheers,<br>
> Bernhard<br>
<br>
<br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div><span style="font-size: small;
border-collapse: separate;">
<div>_,,,^..^,,,_<br>
</div>
<div>best, Eliot</div>
</span></div>
</div>
</div>
</div>
</blockquote>
</div>
</span></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
@JuanVuletich</pre>
</body>
</html>