Awesome!
Just to confirm that indeed, at some point this worked in the version of Squeak/Etoys that shipped on the OLPC machines.
You could for example copy a morph and insert it into an OpenOffice document (it was converted to a bitmap).
If I remember correctly you could even copy morphs including their running scripts from one image to another, by way of serializing the morph and using a Squeak-specific MIME type.
Vanessa
On Sun, Mar 26, 2023 at 1:35 PM Eliot Miranda eliot.miranda@gmail.com wrote:
Hi Bernard,
On Mar 26, 2023, at 12:39 PM, Bernhard Pieber bernhard@pieber.com wrote:
Hi Eliot, David,
Thanks for working on this!
Just FYI, there is the Cuis package ExtendedClipboard.pck.st which does contain image level code for Mac, Win and Unix:
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Packages/Sy...
IIRC, Juan worked on this for the StyledTextEditor.
However, it looks like it uses a different primitive interface than described in your mails. So I don’t know if it is useful in any way.
Cool! In any case the image level data manipulation is very useful. Since the Cuis package uses the FFI (v nice) it can guide the intervals of the plugin implementation. Thank you kindly!
Cheers, Bernhard
Am 26.03.2023 um 18:58 schrieb Eliot Miranda eliot.miranda@gmail.com:
Hi All,
now thanks to Hilaire's advocacy and David's work we have a plugin that loads and runs on Unix. There's of course more to do before we're finished:
a) sqPasteboardClear needs to be implemented b) ideally the memory management contract between sqUnixExtendedClipboard.c and clipboardGetTypeNames (implemented in platforms/unix/vm-display-X11/sqUnixX11.c) can be d=fixed. See my comment at line 45 of sqUnixExtendedClipboard.c c) the image-level ExtendedClipboardUnixInterface code needs implementing, using the Mac & WIndows siblings as a guide, and seeing what Firefox & Chrome do when pasting images and HTML text, and what happens when one copies filenames in the desktop file manager
On Thu, Mar 23, 2023 at 11:40 AM Hilaire Fernandes hfern@free.fr wrote:
Hi,
I want to copy to the OS clipboard DrGeo sketch as SVG image.
The clipboard in the image is only for text. I read about Extented Clipboard (Mac OSX) plugin to manage other type of data. I was told the plugin also existed for Linux at some time (when Sophie was developed). Is it possible to retrieve it?
Thanks
Hilaire
-- GNU Dr. Geohttp://drgeo.euhttp://blog.drgeo.eu
-- _,,,^..^,,,_ best, Eliot