-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appreciate your input #26
Comments
Listen to the document.querySelector('foliate-view').addEventListener('load', e => {
const { doc } = e.detail
doc.addEventListener('pointerup', () => {
const selection = doc.getSelection()
// ... do something with the selection
})
})
Scripted content contained in the book (see https://www.w3.org/TR/epub/#sec-scripted-content) is not supported. Scripted content from the reading system is supported. |
Hi John,
|
The rects returned by Additionally, for fixed layout books, the iframe has CSS transform applied so you would need to account for that as well. See:
I guess perhaps a built-in method for mapping the rects can be added to foliate-js as it's quite commonly needed. |
Thanks I will look at it. Hopefully it will help me pass this hurdle. Do appreciate it. Speaking of adding a builtin method for mapping, first I think it wold help a lot. You have built a truly pleasing ebook reader. But unfortunately for people like me with unequipped eyes too complex to twist it to extend it for additional usage. |
Hi John,
I need an epub reader that I could add some extensions to it for studying languages, I do not mean for language learning, but mostly an interactive environment for linguistic proposes? The idea is a word or series of words or sentences when selected a popup like tooltip shows up and the researcher select a function from offered tooltip menu which triggers some linguistic application and returns results. Mostly like the features your Foliate has, that one has the capability of searching a dictionary, etc.
So the code in Foliate branch could have been ideal for this purpose, as long as I could have compiled it and experiment with it. But unfortunately all my attempts failed, the other issue is the number of technologies that you have used in building it which makes it even harder for a nonprofessional like me. Anyway, I decided to use Foliate-js, as it was just one technology, but to my surprise, after a few attempts and finally reading your readme carefully I discovered that scripting is not allowed.
Now the 64K question is there anyway to achieve my goal with Foliates-js, buy perhaps modifying it, if yes how would you go about it.
I am not a computer expert, but I do understand the basics, please explain it to me as if you are explaining it to a mentally retarded person, that why I will certainly comprehend it better!
Thanks for your time and help.
Bid
The text was updated successfully, but these errors were encountered: