2,360 karma · joined July 25, 2016
use_heuristic_if_text_summary_not_available 1
https://github.com/ahrm/sioyek
You need to enable experimental features in `prefs_user.config` by adding `enable_experimental_features 1` and then enable this mode using `toggle_fastread` command within sioyek.
I also experimented with more sophisticated algorithms, you can read about the experiment here:
https://ahrm.github.io/jekyll/update/2022/04/14/using-langug...
https://github.com/ahrm/sioyek
You need to enable experimental features in `prefs_user.config` by adding `enable_experimental_features 1` and then enable this mode using `toggle_fastread` command within sioyek.
I also experimented with more sophisticated algorithms, you can read about the experiment here:
https://ahrm.github.io/jekyll/update/2022/04/14/using-langug...
That has nothing to do with it being slow though. And as I said, all those machine learning code rely on numpy (which relies on LAPACK which is not written in python) or highly optimized cuda kernels (which again is not written in python).
Features:
* Quickly preview or jump to figures/references/equations/etc. (even if the PDF doesn't have links)
* Search paper names in google scholar by middle clicking on their name (you can configure other search engines as well)
* Ruler mode for easier reading and less eye strain (for a demo of this feature, see https://user-images.githubusercontent.com/6392321/168427739-...)
* Searchable table of contents, automatically generate table of contents if not available
* Searchable highlights/bookmarks
* Browser-like history navigation
* Mark locations for quick navigation (Vim style)
* Synctex support
New in 1.3:
* Vastly improved ruler mode with support for multicolumn documents and ability to automatically goto/portal to/overview the definition in highlighted line.
* Automatic table of contents generation for documents that don't have table of contents
* Automatically mark the location of last search with symbol '/' and location of last visual mark with symbol '`'
* Better handling of visual ruler in presentation mode
* Add ability to automatically use downloaded files as portal destinations (see https://sioyek-documentation.readthedocs.io/en/latest/config...)
* Add ability to select text using keyboard (see https://github.com/ahrm/sioyek/issues/147#issuecomment-10890...)
* Add ability to open files using drag and drop
* Save and restore window and overview positions
* Add ability to execute shell commands on selected text in PDF file (for example can be used to make a translator)
* Add ability to bind multiple commands to the same key binding (all are executed in order when key is pressed)
* Improved smart jump to support more document formats
* Handle `xclip` text selection
* Add ability to rotate pages
* Numerous bug-fixes and quality of life improvements
https://github.com/ahrm/sioyek
Disclaimer: I am the developer of sioyek
My main problem with DearImgui is lack of RTL language support. I think one of the biggest factors which deter people from using immediate mode GUI is lack of support for many languages.
You can customize the css attributes of highlighted text and rest of the word using the two input texts.
function bionifyPage(){
function bionifyWord(word) {
if (word.length == 1) {
return word;
}
var numBold = Math.ceil(word.length * 0.3);
// return "<div class=\"bionic-highlight\">" + word.slice(0, numBold) + "</div>" + + "<div class=\"bionic-rest\">" + word.slice(numBold) + "</div>";
return "<b>" + word.slice(0, numBold) + "</b>" + "<span>" + word.slice(numBold) + "</span>";
}
function bionifyText(text) {
var res = "";
if (text.length < 10) {
return text;
}
for (var word of text.split(" ")) {
res += bionifyWord(word) + " ";
}
return res;
}
function bionifyNode(node) {
if (node.tagName == 'SCRIPT') return;
if ((node.childNodes == undefined) || (node.childNodes.length == 0)) {
if ((node.textContent != undefined) && (node.tagName == undefined)) {
var newNode = document.createElement('span');
var bionifiedText = bionifyText(node.textContent)
newNode.innerHTML = bionifiedText;
if (node.textContent.length > 20){
node.replaceWith(newNode);
}
}
}
else {
for (var child of node.childNodes) {
bionifyNode(child);
}
}
}
bionifyNode(document.body);
}Anyway, I don't think sumatra has these features:
* Marks
* Preview links
* Jump to figures if the PDF doesn't have links
* Portals
* Searchable highlights
And some other features which are shown in the video and github page. Also sioyek is available on linux and macos.
1. I meant mouse middle click, I think this is pretty standard terminology.
3. You are right, the video could be a lot better. You are not really supposed to read the texts though, the main purpose is to showcase the features.