Indeed, there is a solution now, and I did not have try and make it. I tested it, and it works exactly as needed, by copying the text into the note contents.
jsqliu on github has fixed it. The precise file update is seen in this diff.
https://github.com/jsqliu/okular/commit/ee9a8f5272c1ea4b20648fe57b52c726751073aa
Since I'm a bit computer-distant myself, I'll include approximate instructions to get it running on your computer. If anyone knows that some of these parts are not necessary, feel free to edit them out. But they should be sufficient.
To do this you need all the dependencies to build Okular from source. They are listed here: https://okular.kde.org/download.php . There's quite a few of them there.
Then instead of the original repository you download jsqliu's "edit" branch. That is, run the following commands in terminal (should give no fatal erros, though it will give some warnings). If you don't want to install git, then downloading the zip repository from https://github.com/jsqliu/okular/tree/edit will also work.
git clone -b edit https://github.com/jsqliu/okular/
cd okular
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/your/kde4/install/dir ..
make
make install
or shorter:
git clone -b edit https://github.com/jsqliu/okular/
cd okular && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/install/ .. && make
make install
To run, I also had to add the following
1) In "~/.bashrc" added:
export KDEDIRS=$KDEDIRS:$HOME/install:$(kde4-config --prefix); kbuildsycoca4
2) In "~/.profile" added (which is my separate installation folder) Note. Running two different versions of Okular
is so far unsuccessful.:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$HOME/install/bin:$PATH"
fi
3) In /etc/environment
export PKG_CONFIG_PATH=/where/install/poppler/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/where/install/poppler/lib:$LD_LIBRARY_PAT
To run Okular, terminal must be running for bash commands to be used.
Then just run Okular. Whenever you highlight text, it will copy the contents into the note. I've no idea, when or if it will become an Okular standard, but jsqliu's edit works perfectly and does the job.
Let me know, if this is not enough, and you can't get it to work. I may be able to provide more info. I've also started to use Docear recently, and this feature makes a huge difference!
1This is still an interesting question. If you meanwhile have found a solution please consider answer your own question. – cknoll – 2015-06-13T14:34:20.560
I haven't yet, but this might be relevant.
– JDD – 2015-06-14T15:09:06.117Is this still an issue? I like Docear and I used to use Okular, so this would indeed be a very useful function. Indeed some time in 2013 I played with Okular source code to add a similar though not exactly the same feature. It is possible that with some tweaking I can create fork/update for Okular that allows for it. – puslet88 – 2016-02-06T18:56:50.583