Re: Copying text from LC Script Editor
On 17/09/2016 01:56, Monte Goulding wrote: > On 17 Sep 2016, at 10:00 AM, Paul Hibbert wrote: > > It’s not just the SE that has this behaviour, any text from a LC field does the same, with in the IDE and in a standalone, on Mac at least. Yes… perhaps it isn’t what I thought as it looks like it works fine in 6.7. Is there an open bug report on this? Not sure if it's the same thing, but might be related: http://quality.livecode.com/show_bug.cgi?id=17918 Actually where #17918 hits me in particular is the inability to _paste_ into script editor. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
> On 17 Sep 2016, at 10:00 AM, Paul Hibbert wrote: > > It’s not just the SE that has this behaviour, any text from a LC field does > the same, with in the IDE and in a standalone, on Mac at least. Yes… perhaps it isn’t what I thought as it looks like it works fine in 6.7. Is there an open bug report on this? Cheers Monte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
It’s not just the SE that has this behaviour, any text from a LC field does the same, with in the IDE and in a standalone, on Mac at least. Example from text typed into a LC 8.1.0 field:– Line 1 Line 2 Line 3 Last Line Paul -- Livecode 8.1.0 on Mac OS X El Capitan Version 10.11.6 > On Sep 16, 2016, at 4:20 PM, Monte Goulding wrote: > > >> On 17 Sep 2016, at 5:28 AM, J. Landman Gay wrote: >> >> My hunch is that it's a line-ending translation issue. > > I’m wondering if it’s a html issue. What LiveCode uses as a paragraph > `` is more like a `` as in LiveCode it’s represented by a single > line break with no vertical whitespace in most html views it will have some > vertical whitespace in there. If that’s the case then I’m really not sure how > we could work around it in a backwards compatible way. > > Cheers > > Monte > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
> On 17 Sep 2016, at 5:28 AM, J. Landman Gay wrote: > > My hunch is that it's a line-ending translation issue. I’m wondering if it’s a html issue. What LiveCode uses as a paragraph `` is more like a `` as in LiveCode it’s represented by a single line break with no vertical whitespace in most html views it will have some vertical whitespace in there. If that’s the case then I’m really not sure how we could work around it in a backwards compatible way. Cheers Monte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
On 9/16/16 11:06 AM, Jim MacConnell wrote: I have a similar issue with Windows 7 Pro (LC 8.1 Community)... I also can't copy and paste directly into applications other than a simple text editor (NotePad). I can then copy and paste from NotePad to wherever I want to go (PowerPoint, Word, etc.) with no issues. My problem also occurs trying to copy text from fields. Saving the text to file and opening works fine so sure seems to be an LC 8 clipboard issue. My hunch is that it's a line-ending translation issue. LC auto-corrects line endings when importing/exporting text to files but I don't think it does the same for the clipboard. I'm not sure how it could; it has no idea where you intend to paste. If you paste into another LC field, you don't want any translation. It sounds like you'd need a custom clipboard function that could live in a front or backscript. It would get the clipboardData["text"] and replace LF with CRLF, or CR, or whatever your receiving app expects. The double-pass you and Richmond need to do probably works because the plain text editor does the line ending replacements. There may also be an issue with UTF16 vs UTF8. LC uses UTF16, some apps expect UTF8, but many will accomodate either. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
Jim MacConnell wrote: > Richmond wrote: >> Copying text from the script editor is problematic on more than one >> platform. >> >> Over here "in the wilds of Linux" it is not possible to copy-paste >> directly from the script editor into anything but a simple text >> editor. >> >> For instance; if I want to paste code from the script editor into >> Thunderbird (my e-mail client) I have to paste it into a text editor >> and then copy-paste from there into Thunderbird (a double bounce, so >> to say). >> The same sort of thing into a Libre Office document, and so on. > > I have a similar issue with Windows 7 Pro (LC 8.1 Community)... > I also can't copy and paste directly into applications other than a > simple text editor (NotePad). I can then copy and paste from NotePad > to wherever I want to go (PowerPoint, Word, etc.) with no issues. > > My problem also occurs trying to copy text from fields. > > Saving the text to file and opening works fine so sure seems to be an > LC 8 clipboard issue. Interestingly, those descriptions sound exactly like this bug I'd reported against the Linux engine some time ago: http://quality.livecode.com/show_bug.cgi?id=14416 That was one fixed several versions ago, and I just confirmed that indeed it still works well in v8.1 on Ubuntu 14.04. @Jim, Richmond: When either of you files the bug report for this, you may want to mention #14416 as the fix may be related to the they'd done earlier. I'd consider re-opening the old report, but since their fix is still working well for me that specific issue has not regressed per se. But probably worth mentioning just in case the issue you're seeing is indeed related under the hood. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Copying text from LC Script Editor
I have a similar issue with Windows 7 Pro (LC 8.1 Community)... I also can't copy and paste directly into applications other than a simple text editor (NotePad). I can then copy and paste from NotePad to wherever I want to go (PowerPoint, Word, etc.) with no issues. My problem also occurs trying to copy text from fields. Saving the text to file and opening works fine so sure seems to be an LC 8 clipboard issue. Jim -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Richmond Sent: Thursday, September 15, 2016 11:15 PM To: How to use LiveCode Subject: Re: Copying text from LC Script Editor Copying text from the script editor is problematic on more than one platform. Over here "in the wilds of Linux" it is not possible to copy-paste directly from the script editor into anything but a simple text editor. For instance; if I want to paste code from the script editor into Thunderbird (my e-mail client) I have to paste it into a text editor and then copy-paste from there into Thunderbird (a double bounce, so to say). The same sort of thing into a Libre Office document, and so on. Richmond. On 16.09.2016 03:01, Peter Bogdanoff wrote: > I'm noticing that with LiveCode 8, copying scripts from the Script Editor and pasting it into other applications on the Mac yields text that displays differently than pre-LC 8. > > Pasting it into Apple Mail puts it as double-spaced. Copying it from Mail puts it back into the Script Editor as double spaced: > > on mouseUp > > doThis > > thenDoThis > > followedByThis > > end mouseUp > > > Apple TextEdit is OK: > > on mouseUp > doThis > thenDoThis > followedByThis > end mouseUp > > Pasting it into Tex-Edit Plus yields a single line with feed characters. > > Is this worth making a fuss over? > > Peter Bogdanoff > UCLA > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying text from LC Script Editor
Copying text from the script editor is problematic on more than one platform. Over here "in the wilds of Linux" it is not possible to copy-paste directly from the script editor into anything but a simple text editor. For instance; if I want to paste code from the script editor into Thunderbird (my e-mail client) I have to paste it into a text editor and then copy-paste from there into Thunderbird (a double bounce, so to say). The same sort of thing into a Libre Office document, and so on. Richmond. On 16.09.2016 03:01, Peter Bogdanoff wrote: I’m noticing that with LiveCode 8, copying scripts from the Script Editor and pasting it into other applications on the Mac yields text that displays differently than pre-LC 8. Pasting it into Apple Mail puts it as double-spaced. Copying it from Mail puts it back into the Script Editor as double spaced: on mouseUp doThis thenDoThis followedByThis end mouseUp Apple TextEdit is OK: on mouseUp doThis thenDoThis followedByThis end mouseUp Pasting it into Tex-Edit Plus yields a single line with feed characters. Is this worth making a fuss over? Peter Bogdanoff UCLA ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode