3 ms·
https://github.com/bddean/emacs-ereader https://github.com/bddean/emacs-ereader is another one. Similar features, the biggest difference is that nov shows a cha
by donio 7y ago
https://github.com/bddean/emacs-ereader https://github.com/bddean/emacs-ereader is another one. Similar features, the biggest difference is that nov shows a chapter at a time while ereader renders the entire document at once which allows doing isearch over the whole thing.
Both of these take advantage of the shr HTML renderer built into Emacs which in turn uses libxml2 to do the heavy lifting.
- OskarS 7y agoFrom the screenshot, my one big complaint is that it's typeset ragged right instead of flush right (which is, generally, how books and most ebook readers do it), but I suppose that's just a CSS fix, then?
- F00bart 7y agoCSS should fix that, and give you all those unevenly spaced words you so desire.
- rcthompson 7y agoIf you scroll down, the README tells you how to make it flush right: https://github.com/wasamasa/nov.el#rendering https://github.com/wasamasa/nov.el#rendering
- OskarS 7y agoAh, excellent :) that looks much nicer!
- coldtea 7y ago>which is, generally, how books and most ebook readers do it Books flush them right. eBook readers usually don't and when they do it's horribly typographically, because they don't use a smart algorithm for hyphenation and line splitting.
- riffraff 7y agobooks.app on the mac appears to format things nicely. I'm not sure the algorithm is as good as latex, but it seems pretty good.
- CydeWeys 7y agoConstant spacing between words actually makes things easier to read. Prioritizing no ragged edges over all else prioritizes aesthetics over readability.