Page 1 of 1

Missing Characters when Clipping

Posted: Tue Nov 04, 2014 9:29 am
by usbpoweredfridge
I seem to have a knack of finding webpages that break CN's clipping in some way. Here:
http://www.duffelblog.com/2014/11/iraq- ... -memorial/

Using IE v11, if I highlight the third paragraph (the one with the numerous links in it) and clip it to CN, CN removes the last character from the last word in the link and replaces it with a space and then a >. So "living in Somalia" becomes "living in Somali >". If I paste the text to a text editor, it is fine, so I think something is going wrong with CN here.

Chris

Re: Missing Characters when Clipping

Posted: Wed Nov 05, 2014 9:51 am
by CintaNotes Developer
I get this, so I wonder what I'm doing wrong:

sshot-8.png
sshot-8.png (52.92 KiB) Viewed 5605 times


Also note that "Read more: <link>" on the bottom, that was not part of the text segment I selected.
This hints that this page is doing some smart-ass-Javascript meddling with copying to clipboard.

In these circumstances, it's hard to guarantee anything, sorry.

Re: Missing Characters when Clipping

Posted: Wed Nov 05, 2014 1:06 pm
by usbpoweredfridge
Yes - the website could be doing something like that, though I am not sure why I see different behaviour to you, or why the text pastes into a text editor with no issues (though that could be because the text editor is just plain text, and CN is rich text). I might next time try clipping from Firefox, which is my main browser (I only use IE for this one specific site and I have noticed that there are differences in IE clipping vs Firefox clipping, such as CN discarding the formatting of text such as bolding when clipped from Firefox, while it keeps it when clipping from IE).

Chris

Re: Missing Characters when Clipping

Posted: Thu Nov 06, 2014 11:39 am
by CintaNotes Developer
usbpoweredfridge wrote:Yes - the website could be doing something like that, though I am not sure why I see different behaviour to you, or why the text pastes into a text editor with no issues (though that could be because the text editor is just plain text, and CN is rich text). I might next time try clipping from Firefox, which is my main browser (I only use IE for this one specific site and I have noticed that there are differences in IE clipping vs Firefox clipping, such as CN discarding the formatting of text such as bolding when clipped from Firefox, while it keeps it when clipping from IE).


I don't know why the behavior is different, but I know the answer to the last question. IE makes data in the RTF format available in the clipboard, whereas Firefox only gives plain text and HTML, but not RTF.
Currently CintaNotes only reads RTF and TEXT formats.

Re: Missing Characters when Clipping

Posted: Fri Nov 28, 2014 8:06 am
by usbpoweredfridge
This is odd - the problem does not happen if I highlight just paragraphs from the articles (these paragraphs do include URLs). However, if I highlight all the text from the heading down to the end paragraph, the problem does happen. In fact, I can highlight the entire article - excluding the heading - and the clipping is fine. Include the heading however, and CN just can't handle it (so you can reproduce it just by highlighting the heading down to and including the first paragraph - you do not need to include the full article).

Also, as well as removing a character, CN inserts a character incorrectly. Using this article as an example:
http://www.duffelblog.com/2014/11/bill- ... apr-video/

CN inserts a bullet point at the start of the very first paragraph - and a blank bullet point just above that, both incorrect. This is what I have highlighted in IE:
http://i.imgur.com/ZclBtdv.png

This is what CN pastes:
http://i.imgur.com/YSsRH1W.png

Chris

Re: Missing Characters when Clipping

Posted: Fri Nov 28, 2014 11:16 am
by CintaNotes Developer
Chris,
once again - this site messes with the clipboard using Javascript. Under these circumstances, all bets are off.
CintaNotes can't do anything - it already receives garbled data after emulating Ctrl+C.
Sorry ;(

Re: Missing Characters when Clipping

Posted: Fri Nov 28, 2014 12:50 pm
by usbpoweredfridge
So why then does copying and pasting to a text editor work fine? It's only CN that can't handle the text. That to me says the clipboard data is not garbled.

Chris

Re: Missing Characters when Clipping

Posted: Mon Dec 01, 2014 6:17 am
by CintaNotes Developer
Yes, I was a bit hasty jumping to conclusions here - sorry!
The problem is in the RTF format which Internet Explorer provides.
CN takes RTF when it is available.
Probably the solution would be to disable RTF clipping, would this solve the problem for you?

Re: Missing Characters when Clipping

Posted: Mon Dec 01, 2014 8:13 am
by usbpoweredfridge
Yes, an option to disable RTF would solve the problem I believe - I have entered that into the roadmap here:
http://roadmap.cintanotes.com/topic/549 ... -clipping/

Plain text would also save me a little bit of effort here and there, even with sites I have no issues with - when I clip a note that has some formatting (bolding, italics etc) I actually remove it from the note before I click Ok to accept it. If it was clipping plain text, I wouldn't have to do this.

Chris

Re: Missing Characters when Clipping

Posted: Tue Dec 02, 2014 10:48 am
by CintaNotes Developer
Ok then it's settled. Good thing this is easy to implement ;)

Re: Missing Characters when Clipping

Posted: Tue Dec 02, 2014 12:53 pm
by usbpoweredfridge
Very good, thank you :)

Chris

Re: Missing Characters when Clipping

Posted: Fri Dec 12, 2014 11:25 am
by CintaNotes Developer
Chris, hi, please try the new beta, it already supports disabling of RTF clipping:
viewtopic.php?f=3&t=1951

Re: Missing Characters when Clipping

Posted: Sat Dec 13, 2014 1:08 am
by usbpoweredfridge
Yes, it does now clip from DuffelBlog without dropping characters, and without adding characters that were not there originally (bullet point for example).

Chris

Re: Missing Characters when Clipping

Posted: Mon Dec 15, 2014 7:44 am
by CintaNotes Developer
Good to hear that, thanks Chris!