Comments (13)
This might be interesting:
https://github.com/futurepress/epub.js/
from jetzt.
Tested jetzt on the epub.js example, and it doesn't work as is.
from jetzt.
I've been using the google books (web), they can handle epubs and jetz is working fine.
from jetzt.
Huh, you're right, it does. Still a bit of a problem with page turning. I reduced the text size so it was the smallest size possible, so you get the most amount of text on the page. This works okay, but you still have to exit jetzt each time, and select or turn to a new page.
I wonder if it's possible to integrate jetzt with epub.js in such a way as to make jetzt a primary interface, not some additional layer on top of the epub.js interface. Does that make sense? So that I could skip forward and backwards pages, chapters, etc. And that jetzt's progress would be indicated somehow, perhaps in the book TOC on the left hand side.
I am very interested in this. jetzt is obviously useful for skimming long blog posts and emails and what have you. But the thought of being able to inhale entire books has me very excited. And might be interested in doing the research and work to make it happen if others think so too.
from jetzt.
There's an opensource chrome extension project called readium (http://readium.github.io/). It runs offline on client side and does not depends on nodejs to provide epub parsing.
Jetz won't work out of the box because one cannot run an extension inside an another extension.
One idea would be forking the project and extending its function embedding Jetz on it.
from jetzt.
Instead of forking, could we vendor the code in as a library?
from jetzt.
I think so, the readme.md of the project stated that the ebook viewer could be served from a static webserver (the component is https://github.com/readium/readium-js-viewer) so I tried with "python -m SimpleHTTPServer" on the cloned repository and it did ok. Jetz is able to read the screen and it is possible to select a whole paragraph to read instead of single pages or selections.
Maybe a javascript savvy developer could check it quicker this possibility.
from jetzt.
I just tried using jetzt to read an ebook on google play books. It definitely does not work, at least for books that you have bought there (it seems to work alright for books that have been uploaded). Google puts in a bunch of random words to make automatic processing like this difficult. However, it looks like it is easily bypassed. You just need to get the gbt
elements and filter out those that have window.getComputedStyle(element).display == 'none'
. Concatenate what you have left, and that should give you the text. I imagine something similar should work for the Kindle Cloud Reader.
from jetzt.
And the beginnings of doing something similar on Kindle Cloud Reader (the line of code should be cleaned up; I'm just writing this down somewhere so I don't forget it, and for anyone else who might want to pick this up):
document.getElementsByTagName("iframe")[1].contentDocument.getElementsByTagName("iframe")[1].contentDocument
The second [1]
really should be something like .style.visibility == 'visible'
- when I looked at it, there were two visible iframes and two hidden, presumably showing the two current pages, and the page on either side. Then there are a bunch of divs
with class name "was-a-p"
. Inside those are a bunch of spans that contain the text. It's not obfuscated, like Google's is, but it isn't obvious to me how to automatically figure out which parts of the text are actually displayed. Maybe you could do something with computed style again to figure it out, but I didn't get that far.
from jetzt.
I want this so much I would actually put a bounty on it.
Edit: specifically Kindle Cloud Reader.
from jetzt.
I think the right way to handle this is to have domain-specific DOM parsers. That way you can write something specific to handle Google Books, something for Kindle Cloud Reader, and have a default to fall back on for any page that doesn't have a parser registered. If we can get a framework like this, my previous two comments show how to do the beginnings of a parser for each of those two domains.
from jetzt.
@ds300 are you accepting patches while the SDK stuff is outstanding?
from jetzt.
I don't see why not.
from jetzt.
Related Issues (20)
- Scroll page while reading HOT 1
- Document where the main algorithm is implemented and how it works HOT 1
- how to install in my hard drive and modify the bookmarklet to keep my wpm values HOT 4
- Safari CSS and key binding errors HOT 6
- CSS in ds300.github.io is outdated HOT 1
- Strange dash behavior HOT 8
- Use hyphenization algorithm. HOT 5
- Mandarin/other languages feature? HOT 1
- Larger word area - feature request HOT 2
- Sin of David Sheldrick aka ds300 HOT 17
- Not working on Facebook. HOT 1
- Memory bug when trying to read a long text
- Firefox extension HOT 23
- Strip <code> & <img> tags HOT 2
- Suggestion: remove keyboard shortcut HOT 3
- Reanimate the project? HOT 2
- Feature: Set the Default Speed
- Breaks when using dark reader extension HOT 1
- Flip horizontally
- Manifest version 2 is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetzt.