Modify Okular highlight to automatically copy highlighted text into comment












8















Despite what old SE questions state, the PDF software Okular can now write annotations directly to the PDF. This makes it very useful in conjunction with Docear for annotating academic literature. However, Docear imports annotations from the comments, rather than importing from highlighted text. In Okular, when you highlight text it can then be clicked to reveal a comments bubble, which is empty by default. Copying the highlighted text into the resulting bubble allows it to be imported into Docear, but this is laborious.



How can I modify the highlight tool to automatically copy the highlighted text into the resulting comment bubble?










share|improve this question


















  • 1





    This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

    – cknoll
    Jun 13 '15 at 14:34











  • I haven't yet, but this might be relevant.

    – JDD
    Jun 14 '15 at 15:09













  • Is 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
    Feb 6 '16 at 18:56
















8















Despite what old SE questions state, the PDF software Okular can now write annotations directly to the PDF. This makes it very useful in conjunction with Docear for annotating academic literature. However, Docear imports annotations from the comments, rather than importing from highlighted text. In Okular, when you highlight text it can then be clicked to reveal a comments bubble, which is empty by default. Copying the highlighted text into the resulting bubble allows it to be imported into Docear, but this is laborious.



How can I modify the highlight tool to automatically copy the highlighted text into the resulting comment bubble?










share|improve this question


















  • 1





    This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

    – cknoll
    Jun 13 '15 at 14:34











  • I haven't yet, but this might be relevant.

    – JDD
    Jun 14 '15 at 15:09













  • Is 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
    Feb 6 '16 at 18:56














8












8








8


7






Despite what old SE questions state, the PDF software Okular can now write annotations directly to the PDF. This makes it very useful in conjunction with Docear for annotating academic literature. However, Docear imports annotations from the comments, rather than importing from highlighted text. In Okular, when you highlight text it can then be clicked to reveal a comments bubble, which is empty by default. Copying the highlighted text into the resulting bubble allows it to be imported into Docear, but this is laborious.



How can I modify the highlight tool to automatically copy the highlighted text into the resulting comment bubble?










share|improve this question














Despite what old SE questions state, the PDF software Okular can now write annotations directly to the PDF. This makes it very useful in conjunction with Docear for annotating academic literature. However, Docear imports annotations from the comments, rather than importing from highlighted text. In Okular, when you highlight text it can then be clicked to reveal a comments bubble, which is empty by default. Copying the highlighted text into the resulting bubble allows it to be imported into Docear, but this is laborious.



How can I modify the highlight tool to automatically copy the highlighted text into the resulting comment bubble?







pdf annotations okular






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 '13 at 2:10









JDDJDD

434




434








  • 1





    This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

    – cknoll
    Jun 13 '15 at 14:34











  • I haven't yet, but this might be relevant.

    – JDD
    Jun 14 '15 at 15:09













  • Is 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
    Feb 6 '16 at 18:56














  • 1





    This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

    – cknoll
    Jun 13 '15 at 14:34











  • I haven't yet, but this might be relevant.

    – JDD
    Jun 14 '15 at 15:09













  • Is 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
    Feb 6 '16 at 18:56








1




1





This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

– cknoll
Jun 13 '15 at 14:34





This is still an interesting question. If you meanwhile have found a solution please consider answer your own question.

– cknoll
Jun 13 '15 at 14:34













I haven't yet, but this might be relevant.

– JDD
Jun 14 '15 at 15:09







I haven't yet, but this might be relevant.

– JDD
Jun 14 '15 at 15:09















Is 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
Feb 6 '16 at 18:56





Is 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
Feb 6 '16 at 18:56










2 Answers
2






active

oldest

votes


















3














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!






share|improve this answer



















  • 1





    The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

    – puslet88
    Feb 6 '16 at 23:16











  • I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

    – JDD
    Feb 7 '16 at 19:32



















5














Since puslet88's answer helped me a lot, I'd like to contribute. 
Based on John's (jsqliu) solution,
I added another annotation tool to Okular (uninspiringly called "Embedded"). 
It's a clone of the highlighter, with John's code added,
so that it writes all highlighted text into the comment. 
The cool thing is that you can control in Okular,
which highlights will be imported into Docear.



You find the changes at https://github.com/igsor/okular/tree/master and a pre-built binary at http://www.igsor.net/projects/okular/okularpart.so. 
Warning: this is a direct download link, so don't just click on it;
right-click and Save As. 
It includes most Okular features, so it's large!






share|improve this answer





















  • 1





    To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

    – hicksor
    Aug 19 '16 at 12:18











  • The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

    – music2myear
    Jan 25 at 17:39











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f673917%2fmodify-okular-highlight-to-automatically-copy-highlighted-text-into-comment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














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!






share|improve this answer



















  • 1





    The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

    – puslet88
    Feb 6 '16 at 23:16











  • I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

    – JDD
    Feb 7 '16 at 19:32
















3














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!






share|improve this answer



















  • 1





    The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

    – puslet88
    Feb 6 '16 at 23:16











  • I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

    – JDD
    Feb 7 '16 at 19:32














3












3








3







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!






share|improve this answer













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!







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 6 '16 at 22:58









puslet88puslet88

164110




164110








  • 1





    The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

    – puslet88
    Feb 6 '16 at 23:16











  • I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

    – JDD
    Feb 7 '16 at 19:32














  • 1





    The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

    – puslet88
    Feb 6 '16 at 23:16











  • I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

    – JDD
    Feb 7 '16 at 19:32








1




1





The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

– puslet88
Feb 6 '16 at 23:16





The discussion and origins are available here: kde-bugs-dist.kde.narkive.com/OLrGrjHW/…

– puslet88
Feb 6 '16 at 23:16













I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

– JDD
Feb 7 '16 at 19:32





I'm not currently able to verify for myself but this looks like exactly what I was looking for. Thanks for sharing!

– JDD
Feb 7 '16 at 19:32













5














Since puslet88's answer helped me a lot, I'd like to contribute. 
Based on John's (jsqliu) solution,
I added another annotation tool to Okular (uninspiringly called "Embedded"). 
It's a clone of the highlighter, with John's code added,
so that it writes all highlighted text into the comment. 
The cool thing is that you can control in Okular,
which highlights will be imported into Docear.



You find the changes at https://github.com/igsor/okular/tree/master and a pre-built binary at http://www.igsor.net/projects/okular/okularpart.so. 
Warning: this is a direct download link, so don't just click on it;
right-click and Save As. 
It includes most Okular features, so it's large!






share|improve this answer





















  • 1





    To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

    – hicksor
    Aug 19 '16 at 12:18











  • The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

    – music2myear
    Jan 25 at 17:39
















5














Since puslet88's answer helped me a lot, I'd like to contribute. 
Based on John's (jsqliu) solution,
I added another annotation tool to Okular (uninspiringly called "Embedded"). 
It's a clone of the highlighter, with John's code added,
so that it writes all highlighted text into the comment. 
The cool thing is that you can control in Okular,
which highlights will be imported into Docear.



You find the changes at https://github.com/igsor/okular/tree/master and a pre-built binary at http://www.igsor.net/projects/okular/okularpart.so. 
Warning: this is a direct download link, so don't just click on it;
right-click and Save As. 
It includes most Okular features, so it's large!






share|improve this answer





















  • 1





    To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

    – hicksor
    Aug 19 '16 at 12:18











  • The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

    – music2myear
    Jan 25 at 17:39














5












5








5







Since puslet88's answer helped me a lot, I'd like to contribute. 
Based on John's (jsqliu) solution,
I added another annotation tool to Okular (uninspiringly called "Embedded"). 
It's a clone of the highlighter, with John's code added,
so that it writes all highlighted text into the comment. 
The cool thing is that you can control in Okular,
which highlights will be imported into Docear.



You find the changes at https://github.com/igsor/okular/tree/master and a pre-built binary at http://www.igsor.net/projects/okular/okularpart.so. 
Warning: this is a direct download link, so don't just click on it;
right-click and Save As. 
It includes most Okular features, so it's large!






share|improve this answer















Since puslet88's answer helped me a lot, I'd like to contribute. 
Based on John's (jsqliu) solution,
I added another annotation tool to Okular (uninspiringly called "Embedded"). 
It's a clone of the highlighter, with John's code added,
so that it writes all highlighted text into the comment. 
The cool thing is that you can control in Okular,
which highlights will be imported into Docear.



You find the changes at https://github.com/igsor/okular/tree/master and a pre-built binary at http://www.igsor.net/projects/okular/okularpart.so. 
Warning: this is a direct download link, so don't just click on it;
right-click and Save As. 
It includes most Okular features, so it's large!







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 26 at 1:40









Scott

15.9k113990




15.9k113990










answered Aug 19 '16 at 12:16









hicksorhicksor

5112




5112








  • 1





    To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

    – hicksor
    Aug 19 '16 at 12:18











  • The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

    – music2myear
    Jan 25 at 17:39














  • 1





    To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

    – hicksor
    Aug 19 '16 at 12:18











  • The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

    – music2myear
    Jan 25 at 17:39








1




1





To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

– hicksor
Aug 19 '16 at 12:18





To make the build process reproducible, I added a Dockerfile (raw.githubusercontent.com/igsor/okular/edit/Dockerfile) to the repo. It sets up a ubuntu 16.04 based build environment.

– hicksor
Aug 19 '16 at 12:18













The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

– music2myear
Jan 25 at 17:39





The docker file URL has changed: raw.githubusercontent.com/igsor/okular/master/Dockerfile

– music2myear
Jan 25 at 17:39


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f673917%2fmodify-okular-highlight-to-automatically-copy-highlighted-text-into-comment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Brian Clough

Cáceres