When highlighting or underlining text in pdfs the attached pop-up notes used to edit the annotations are initially empty. Would it be possible to include an option for the pop-up notes to initially contain the highlighted or underlined text. This would help with sharing annotations with other software (such as docear). Thanks! Reproducible: Always
Created attachment 81145 [details] Okular, Docear, & UberStudent - implementation conversation Yes, this feature request is very important! Please see the attached conversation between myself and the Docear lead developer about it. Coding this fix myself is beyond my own ability or I'd do it myself.
I use Okular with Docear too and approve that this feature will be very helpful for good integration with Docear.
This feature is somewhat necessary for a productive use of Okular together with Docear. I very much whish for this feature !
Hello I'm an Okular and Docear user. I modified a few lines in ui/pageviewannotator.cpp's TextSelectorEngine to implement the requested feature. Would you be interested in including it as default behavior or potentially as a menu option?
I would prefer to make it the default behaviour as I can't imagine the situation where this pasted text can harm someone. (But developers may have different opinions.)
On the other hand i can't imagine a situation in which i would want that, this just looks like you're trying to fix a limitation in docear making okular do something weird. I mean i am highlighting the text, as a user why would i want the note of that highlighted text be the test himself?
This sounds reasonable. But at least having this behaviour as an option wouldn't go amiss. (Maybe it's too complicated to fetch the text which was highlighted from Docear or any other external applicaion, I don't know.)
Created attachment 91786 [details] attachment-6547-0.html If you need to export annotations, this would give access to highlight text in the XML output. On Sat, Mar 28, 2015 at 12:44 AM, Albert Astals Cid <aacid@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=321992 > > Albert Astals Cid <aacid@kde.org> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |aacid@kde.org > > --- Comment #6 from Albert Astals Cid <aacid@kde.org> --- > On the other hand i can't imagine a situation in which i would want that, > this > just looks like you're trying to fix a limitation in docear making okular > do > something weird. > > I mean i am highlighting the text, as a user why would i want the note of > that > highlighted text be the test himself? > > -- > You are receiving this mail because: > You are on the CC list for the bug. >
I am working with a text editor/outliner to create academic papers. Having the content of highlighted text appear in the xml metadata would be immensely useful and save considerable time and effort when summarizing papers.
@John SQ Liu: Are you willing to publish your implementation (ui/pageviewannotator.cpp) of the feature for those who are able to compile the source code by themselves? Gist.github.com would be a good idea.
I no longer use Docear (I moved to emacs and org-mode) so this off of a version of Okular in March. But it's a 4 line change so you might be able to merge it without too much work. Diff below https://github.com/jsqliu/okular/commit/ee9a8f5272c1ea4b20648fe57b52c726751073aa
Thanks, it works perfectly.
*** This bug has been confirmed by popular vote. ***
It's not me who decides what goes into okular and what doesn't, but I know that your chances increase if you upload the patch to https://git.reviewboard.kde.org .