Sunday, 25. March 2007, 16:26:22
Opera Cannot Copy Full Pages of Text and Graphics
I cannot highlight an entire page in opera to save to another program. In Explorer and Firefox, I can click on 'Select All' and all the text, hyperlinks, and images are highlighted and I can save the entire page to Evernote or add it to an email. In Opera v9.10, Build 8679, I can only highlight the text portion. I have to right-click on images, and save them seperatly. Is there a setting in Options that I need to turn on? If so, I can't find it. Strange that this is not a problem with FireFox.Uncle Dannie
Sunday, 25. March 2007, 23:44:07
Monday, 26. March 2007, 01:59:51
Monday, 26. March 2007, 12:54:18
Sort of off topic, does anyone know if the neptune plugin lets you copy rich text...?
Tuesday, 27. March 2007, 11:19:25
Add in menu.ini
[Hotclick Popup Menu]
Platform Windows, Item, "Copy text with formatting"="Copy & Go to Page, "javascript:(function(){var html_selection=document.createElement('div'); html_selection.appendChild(window.getSelection().getRangeAt(0).cloneContents()); document.location='data:text/cwf;charset=UTF-8,'+encodeURIComponent('SourceURL:'+document.location+'\r\n\r\n<HTML><BODY>'+html_selection.innerHTML+'</BODY></HTML>');})()""
Create MIME type (Ctrl+F12->Downloads->Add) «text/cwf» and select «Open with other application» txt2clip.exe.
Tuesday, 27. March 2007, 12:53:20 (edited)
I just installed everything as you described...
Now I've got some questions:
How is it supposed to work, please?
Is for the new MIME type 'text/cwf' an extension needed?
(Am I able to/Do I have to) select some parts of text of a page?
Where is the 'Copied text with formatting' stored, in clipboard only?
Does the 'Kill' button work with it?
TIA
Tuesday, 27. March 2007, 13:17:28
How is it supposed to work, please?
Sources (innerHTML) of selected text, saving in temp file. Program (txt2clip.exe) read this file, copy html in clipboard, and delete file.
Is for the new MIME type 'text/cwf' an extension needed?
No.
(Am I able to/Do I have to) select some parts of text of a page?
Yes.
Where is the 'Copied text with formatting' stored, in clipboard only?
And in temp file in \profile\cache4\temporary_download\.
Tuesday, 27. March 2007, 14:26:51 (edited)
Originally posted by Lex1:
[EDIT]Thanks for your answer![/EDIT]HaJotKE
How is it supposed to work, please?
Sources (innerHTML) of selected text, saving in temp file. Program (txt2clip.exe) reads this file, copies html into clipboard, and deletes file.
I now make an example with this text (i.e. all the text from this posting)
Later on I will then post the results from the clipboard here...
Tuesday, 27. March 2007, 14:46:10 (edited)
Originally posted by HaJotKE:
First step: Selected Text in this Thread from Posting aboveLater on I will then post the results from the clipboard here...
Second step:
Using the Text2clip-Tool gives the following in the clipboard -
Either as image: Selected Text Copied with Formatting Tool or as text file: Selected Text Copied with Formatting Tool
But I don't see any formatting...
Tuesday, 27. March 2007, 14:42:23
Originally posted by Lex1:
Ahaa, I don't have it on this machine, have to install first...Use MS Word for inserting text from clipboard.
But anyway, shouldn't formatting clauses (RTF) not be visible in the clipboard, or are these invisible on purpose, so that only MS-Word like programs can use them?
Tuesday, 27. March 2007, 15:02:08
Thanks!
Which other programs could be used, other than MS-Word?
Because of our security policies, an installation of MS-Word is not allowed on this machine,
it's the front-end Internet machine and only MS-Word as Viewer is allowed, etc.
But perhaps a third party program would be allowable too...
Tuesday, 27. March 2007, 16:35:10
Which other programs could be used, other than MS-Word?
Outlook Express for example. Maybe Open Office?
Tuesday, 27. March 2007, 20:41:42 (edited)
I had to connect the clipboard to another machine, where WORD was installed and then, like a miracle - one from those well-known M$-types, however - Eureka, there it showed up!
Well formatted, even with images and icons and smilies...
As image file it's here: Selected Text Copied with Formatting Tool as WORD Document.png As Word-DOC you can find it here:Selected Text Copied with Formatting Tool.doc
Thanks, for this fine tool!
BTW:
(I am still interested if someone would know some other (NON-M$!) application which is capable to copy from the clipboard WITH RTF-formatting.)
Tuesday, 27. March 2007, 23:20:27
Wednesday, 28. March 2007, 08:36:20
Originally posted by jp10558:
Which plug-in do you mean? There are several plug-ins out there, which all are designated as 'clipboard plugins'...... support the clipboard style plugin...
Originally posted by jp10558:
As shown above, just storing the clipboard contents with its RTF formatting for documentation purposes, as I have done with that example, but where I had to use MS-WORD, which is not allowed on this machine...What did you want to do with the RTF clips
Originally posted by jp10558:
No, doesn't work - no RTF formatting included.Can you paste it into Wordpad?
Wednesday, 28. March 2007, 11:55:26
I am still interested if someone would know some other (NON-M$!) application which is capable to copy from the clipboard WITH RTF-formatting.
Some technical details.
There are a few predefined formats for information in a clipboard.
1: name := 'CF_TEXT';
2: name := 'CF_BITMAP';
3: name := 'CF_METAFILEPICT';
4: name := 'CF_SYLK';
5: name := 'CF_DIF';
6: name := 'CF_TIFF';
7: name := 'CF_OEMTEXT';
8: name := 'CF_DIB';
9: name := 'CF_PALETTE';
10: name := 'CF_PENDATA';
11: name := 'CF_RIFF';
12: name := 'CF_WAVE';
13: name := 'CF_UNICODETEXT';
...
It is also possible use custom format of information.
Many program (for example wordpad.exe) use custom format "Rich Text Format" (open any rtf-file in Notepad and you will see it).
My program (and Firefox also) use other custom format 'HTML Format'. It's simple html with the special header.
But for working with 'HTML Format', program must read HTML! It not too simply, and even Open Office it does not can.
Wednesday, 28. March 2007, 16:18:38
Simple example with use HTML-to-RTF DLL.
Thursday, 29. March 2007, 17:22:09 (edited)
I just tried your new version and it's working really fine,
MS-Write/Wordpad are now showing the results exactly as expected!
Selected Text Copied with Formatting Tool as WRITE RTF-File or inline as image
(Slightly edited!)and as RTF-File and as TXT-file:
Selected Text Copied with Formatting Tool.rtf Selected Text Copied with Formatting Tool as WRITE RTF-File.txt
The price of that HTML2RTF.DLL (which is trial here) however seems to be somewhat high and as such rather unacceptable...
I wonder, if there doesn't exist another solution in the Open Source community?
What is rather disappointing however, that direct HTML-cliboard copies don't work in OpenOffice either...
And OpenOffice has a discrete feature for HTML-pastings...
I also tried ABI-Word and CryptEdit as Word-replacements, BTW. To no avail...
Thursday, 29. March 2007, 02:30:15
Here is a very simple program which uses the IE component to copy the text as RTF. It's written in C# so it depends on the .NET 2.0 framework which hopefully most Windows users already have installed:
http://files.myopera.com/rkm/txt2cliprtf/txt2clipRTF.zip
Just replace the association for text/cwf from txt2clip.exe to txt2clipRTF.exe
Thursday, 29. March 2007, 05:01:57
If you use this code:
Platform Windows, Item, "Copy text with formatting"="Copy & Go to Page, "javascript:(function(){var html_selection=document.createElement('div'); html_selection.appendChild(window.getSelection().getRangeAt(0).cloneContents()); elems=html_selection.all;for(var i=0;i<elems.length;i++){if(elems[i].href)elems[i].href=elems[i].href;if(elems[i].src)elems[i].src=elems[i].src}; document.location='data:text/cwf;charset=utf-8,'+encodeURIComponent('<HTML><BODY><HEAD><META HTTP-EQUIV=\'Content-Type\' CONTENT=\'text/html; charset=utf-8\'></HEAD>'+html_selection.innerHTML+'</BODY></HTML>');})()" in the menu, images will also be copied, and you will get the correct link addresses, when pasted as HTML.Thursday, 29. March 2007, 10:59:29
"Add in menu.ini"
I couldn't find such a file, I only found "standard_menu.ini"
so i created another line "----4" & added your lines into standard_menu.ini after the existing text:
[Hotclick Popup Menu]
Item, 50872= Copy
Item, 67652= Copy to note
Platform Win2000-Unix-Mac, Feature Voice, Item, 70494 = Speak selection
--------------------1
Item, 65184= Hotclick search, 200
;Submenu, 291920, Search with menu
Submenu, 291920, Internal Search With
Item, 65187= Hotclick search, 50
Item, 65188= Hotclick search, 51
--------------------2
Submenu, 291960, Translate menu
;Item, 65186= Hotclick search, 52
--------------------3
Item, 67394= Go to page, "%t"
Item, 65218= Send text in mail
--------------------4
Platform Windows, Item, "Copy text with formatting"="Copy & Go to Page, "javascript:(function(){var html_selection=document.createElement('div'); html_selection.appendChild(window.getSelection().getRangeAt(0).cloneContents()); document.location='data:text/cwf;charset=UTF-8,'+encodeURIComponent('SourceURL:'+document.location+'\r\n\r\n<HTML><BODY>'+html_selection.innerHTML+'</BODY></HTML>');})()""
I then added the mime type as instructed.
It still doesn't copy formatting. I use ctrl-c and right-click>copy.
Thursday, 29. March 2007, 11:24:55 (edited)
Originally posted by bargeo:
This won't work: you have to use the new menu entry "Copy text with formatting" from the right-click menu!It still doesn't copy formatting. I use ctrl-c and right-click>copy.
Originally posted by bargeo:
Did you observe this line too?I then added the mime type as instructed.
Originally posted by Lex1:
Which means, that you have to store the program 'txt2clip.exe' somewhere on your system and then set its location here...... and select «Open with other application» txt2clip.exe.
Thursday, 29. March 2007, 11:20:57
I am just installing what you recommended above, needs some work on another machine however...
But what I would like to ask, concerning the following statemant of yours:
Originally posted by rkm:
where can I find some more information about all this, please? I would love to read some more about these IE-mechanisms and also said IE-components you mention above...IE copies text as HTML, RTF and plain text simultaneously.
TIA
Thursday, 29. March 2007, 11:53:01
It only works however, if I select the word including it's invisible formatting instructions.
for example if I copy the word "menu" from "standard_menu.ini", it will paste as plain text.
but if I copy the phrase including the "" on either side, it copies the bold formatting as well.
Thursday, 29. March 2007, 14:03:51
http://www.google.com/search?num=100&hl=en&client=opera&rls=en&hs=rTF&q=WebBrowser+Control&btnG=Search
@bargeo: How important is this? It would possibly be possible to correct it, but then the entry in menu.ini would be a lot longer and more complicated.
Thursday, 29. March 2007, 16:10:56
Thursday, 29. March 2007, 17:20:36 (edited)
Just finished trying your solution and it's working fine.
Thank you very much for your efforts!
It's furnishing essentially the same results as *Lex1*'s version #1,
i.e. the version W/O the HTML2RTF converter,
which means I have to use MS-WORD to paste the clipboard with formatting.
But astonishingly, also OpenOffice now shows the clipboard contents correctly together with icons, images and all the formatting stuff, when pasted as HTML...
Where is that difference coming from?
@bargeo:
With 'columns' I understand that you mean the formatting where the left part of the posting and the right part of the posting are located 'side by side' and not 'one below the other', as it is now...
Is my interpretation correct?
Thursday, 29. March 2007, 18:17:49 (edited)
EDIT: I see that Lex1 says it sets the content-type to HTML. But something seems to be wrong, because it doesn't seem to be recognized as HTML here on my computer.
@bargeo: This will depend on the HTML code that is used in the document, but often the coloumns will be lost. The same goes for all other browser I'm aware of. The reason is that just the HTML code is copied, and not the style sheets that are used.
@Lex1: What a great idea this was!
Friday, 30. March 2007, 10:22:51
Problem in header. OpenOffice not understand «StartHTML:-1». Ok, I fixed it. It also support htmltortf.dll and not triggered Opera bug-257045. I also include autocopy.js.
Friday, 30. March 2007, 12:02:46
This simple UserJS(analogue). Copy autocopy.js in your folder UserJS.
Friday, 30. March 2007, 14:56:39 (edited)
What is Opera bug-257045? Is it because of it that you're using iframes?
You don't have any quick work-arounds for this, do you?:
Originally posted by bargeo:
It only works however, if I select the word including it's invisible formatting instructions.
for example if I copy the word "menu" from "standard_menu.ini", it will paste as plain text.
but if I copy the phrase including the "" on either side, it copies the bold formatting as well.
HTML editors like TinyMCE manages to get this right. I haven't looked at its code, so I don't know how it does it. But I can't think of any way that wouldn't require quite an amount of extra code.
Friday, 30. March 2007, 15:18:42
And to you thanks
What is Opera bug-257045? Is it because of it that you're using iframes?
Yes. Problem with saving current page (not extensions, null size) after use «Open with other application». This bug in all Opera, after 9.02.
Friday, 30. March 2007, 21:24:42
Originally posted by Lex1:
This simple UserJS(analogue). Copy autocopy.js in your folder UserJS.
Excuse my ignorance, I'm out of my depth. I don't have a folder by the name UserJS. I run windows 2000 with Opera 9.10. I only found folders with JSlib in \program files for Real player and some other unrelated software.
I followed the link to Mosdev.org and found http://downloads.mozdev.org/autocopy/autocopy-v0.6.4.xpi, another file that I don't know how to deal with.
Sunday, 22. April 2007, 13:14:04
I inserted the text
into the end of [Hotclick Popup Menu] in standard_menu.ini, but the stringPlatform Windows, Item, "Copy text with formatting"=... and so on
in the pop-menu never appeared. I have made all you advised without any result. What is the problem?Copy text with formatting
Sunday, 22. April 2007, 13:48:33
Btw, it is better to add the code for the Hotclick Popup Menu in a different file. I've added all the text for the Hotclick Popup Menu to a custom_menu.ini that I've stored in [Opera profile folder]\menu\. Then you just select the custom_menu in Tools>Preferences>Advanced>Menu setup. In this way you don't have to edit standard_menu.ini every time you upgrade Opera.
Sunday, 22. April 2007, 18:06:08
Originally posted by Lex1:
Method for copying formatting text:
Add in menu.ini
[Hotclick Popup Menu]Platform Windows, Item, ...and the rest of the requirements
Lex1
I completed the configuration as you described (with your JS solution) and it works great, thanks.
However, the text "[Hotclick Popup Menu]" in my customized menu.ini overwrites all the standard things that usually shows in the popup menu when text is selected, like "search with...", "Dictionary" etc.
How do I enter this additional entry so that it is only added as a new item in the popup menu?
Monday, 23. April 2007, 08:38:15
Copy whole section [Hotclick Popup Menu] from Opera\defaults\standard_menu.ini
[Hotclick Popup Menu] Item, 50872= Copy Platform Windows, Item, "Copy text with formatting"=... Item, 67652= Copy to note Platform Win2000-Unix-MCE, Feature Voice, Item, 70494 = Speak selection --------------------1 Item, 65184= Hotclick search, 200 ;Submenu, 291920, Search with menu Submenu, 291920, Internal Search With Item, 65187= Hotclick search, 50 Item, 65188= Hotclick search, 51 --------------------2 Submenu, 291960, Translate menu ;Item, 65186= Hotclick search, 52 --------------------3 Item, 67394= Go to page, "%t" Item, 65218 = Send text in mail
Monday, 23. April 2007, 18:17:11
Originally posted by Lex1:
Copy whole section [Hotclick Popup Menu] from Opera\defaults\standard_menu.ini ...
Thanks, that worked great!
Friday, 27. April 2007, 11:22:12
I just placed the code after the string "Platform Win2000-Unix-Mac, Feature Voice, Item, 70494 = Speak selection" in [Hotclick Popup Menu]and it appeares now. Thanks!
Saturday, 21. July 2007, 02:33:47
This is a hack. Sorry to be blunt.
If Kestrel doesn't implement this, it's a sign of how separated are users' and Opera's goals have become. I understand that Opera does this on behalf of security, but the price to be paid is just too high and it makes opera useless when taking clips from the web, and mind you, that's a pretty common use for many people, myself included.
Showing topic replies 1 - 50 of 78.
Forums » Opera Community » Opera for desktop » Opera browser
