Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2025, 05:21 PM   #31
mramosch
Connoisseur
mramosch began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Nov 2024
Device: KOBO
The thing is that Javascript actually IS supported. You can execute JS on page load. So it can’t be a security concern issue!

The only missing part here is that touches get absorbed by the reader app for accessing the menu.

On iOS you can use event.preventDefault() to break through this filter and get to your underlying JS code for providing the user with further interactive functionality.

Only on the KOBO device itself you can’t…

Last edited by mramosch; 01-31-2025 at 05:25 PM.
mramosch is offline   Reply With Quote
Old 01-31-2025, 06:49 PM   #32
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,601
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
That's pretty odd. I guess it really is just a case of "too lazy to implement the spec" at work here.
Aleron Ives is offline   Reply With Quote
Old 01-31-2025, 09:34 PM   #33
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 43,462
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For my purposes, the limited implementation of JS in the Kobo WebKit based renderer is moderately useful but 99.99% of the ebooks I've seen do not use JS at all. I also remember that Kobo's ereaders are intended for reading ebooks. Most of the features of JS are less than useless for reading ebooks. Implementing features that would not be useful for ebooks is not laziness, it's more likely that the programmers are trying to keep the code size down for a device with limited memory and CPU.

Quote:
Originally Posted by mramosch View Post
On iOS you can use event.preventDefault() to break through this filter and get to your underlying JS code for providing the user with further interactive functionality.
Only on the KOBO device itself you can’t…
I am curious as to what layer below the renderer on a Kobo ereader are you trying to send touch events to? The Linux OS? Have you written a shim to run between the renderer and Linux?

Last edited by DNSB; 01-31-2025 at 09:40 PM.
DNSB is online now   Reply With Quote
Old 02-01-2025, 04:29 AM   #34
mramosch
Connoisseur
mramosch began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Nov 2024
Device: KOBO
Quote:
Originally Posted by DNSB View Post
I am curious as to what layer below the renderer on a Kobo ereader are you trying to send touch events to? The Linux OS? Have you written a shim to run between the renderer and Linux?
Sorry, I may have not expressed myself very clearly. I am only referring to the Javascript code in the epub itself. But I consider the touch interface of the device as a layer that gets ‘hijacked’ by the application developer to facilitate all the functionality for navigating the book. A simple implementation just lets you decide where to tap or swipe to turn pages. A more advanced implementation like in BookFusion lets you divide your screen into a 3x3 grid and you can de-/activate page turn for every tile, which means you can hold your eReader like a real book by having your fingers on the screen without accidentally opening the navigation menus if you e.g only activate one tile in the top-left corner of the screen.

So apps like AppleBooks, BookFusion or FileBrowser let the touches fall through their ‘hijacked’ layer and hence giving the epub developer/publisher the opportunity to add further interactivity to their content.

Quote:
Originally Posted by DNSB View Post
For my purposes, the limited implementation of JS in the Kobo WebKit based renderer is moderately useful but 99.99% of the ebooks I've seen do not use JS at all. I also remember that Kobo's ereaders are intended for reading ebooks. Most of the features of JS are less than useless for reading ebooks. Implementing features that would not be useful for ebooks is not laziness, it's more likely that the programmers are trying to keep the code size down for a device with limited memory and CPU.
Well, I can tell you a few very useful things that my implementation of JS in an ebook facilitates with a couple of bytes only.

If one insists on using a device for reading text only and not for listening to audiobooks you might - e.g. for language acquisition purposes - nevertheless enjoy features for accessing multi-lingual content on demand without using the clumsy interface of most reader applications and without having to get your device’s battery drained because you need WiFi to connect to translation servers. The lack of complete implementations of the epub3 standard and proprietary decisions on many readers give us producers headaches with pop-ups, links, footnotes, endnotes etc. - we all know this from other threads ;-)

That’s where a few lines of JS can come in very handy.

And if you you are willing to leave the ‘reading only’ reservation the same holds true for some audio magic.

I managed to find a way to make epubs with MediaOverlays also accessible on apps like Apple Books although they are all trying hard to convince us that you need their KOBO, Apple, Amazon like Audible-Stores to be able to consume AudioBooks on their proprietary platforms.

In addition you can have AudioBooks be much more accessible (and here I am literally talking about ‘Accessibility’ for the handicapped/impaired folks - I hope I am being politically correct here with these expressions) than they are with the standard transport bar interfaces.

Now that I have all this working on non e-Ink screen devices I wanna have the same functionality on e-Ink, that’s my dream for consuming multilingual text and AudioBooks.


I hope that answers your questions.

— — —

Last edited by mramosch; 02-01-2025 at 04:31 AM.
mramosch is offline   Reply With Quote
Old 02-01-2025, 09:09 AM   #35
HLS
Wizard
HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.HLS ought to be getting tired of karma fortunes by now.
 
Posts: 2,122
Karma: 16342480
Join Date: May 2017
Device: Sage, Scribe, Boox Note 2 Plus, iPad Pros and Samsungs S6,S7,S8
Is there a reason that you just don't buy the ebooks from KOBO store? it is illegal to strip DRM off of ebooks
HLS is offline   Reply With Quote
Old 02-01-2025, 09:19 AM   #36
mramosch
Connoisseur
mramosch began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Nov 2024
Device: KOBO
DELETED: misunderstood the question…

Last edited by mramosch; 02-14-2025 at 03:01 AM.
mramosch is offline   Reply With Quote
Old 02-01-2025, 09:41 AM   #37
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,435
Karma: 102739835
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by HLS View Post
Is there a reason that you just don't buy the ebooks from KOBO store? it is illegal to strip DRM off of ebooks
No, in most countries it's illegal to break copyright by distributing free or paid copies and the rights owner has to sue. They'd have to sue for breach of contact in most countries for DRM removal and the penalty is limited in most countries to the losses. If it's only personal use, there are no losses to the rights holder.

There is a load of FUD about DRM, that's propagated by large US companies wanting to control the consumer. It's not about piracy.
Even the DMCA is only the USA and might not even apply. The "injured" rights holder would have to prove a loss.
Quoth is offline   Reply With Quote
Old 02-01-2025, 10:10 AM   #38
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,781
Karma: 69984959
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by Quoth View Post
No, in most countries it's illegal to break copyright by distributing free or paid copies and the rights owner has to sue. They'd have to sue for breach of contact in most countries for DRM removal and the penalty is limited in most countries to the losses. If it's only personal use, there are no losses to the rights holder.

...
Maybe, maybe not.
John F is offline   Reply With Quote
Old 02-01-2025, 06:18 PM   #39
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,601
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
Implementing features that would not be useful for ebooks is not laziness, it's more likely that the programmers are trying to keep the code size down for a device with limited memory and CPU.
Does the EPUB3 spec not define what a reading platform should be able to do with JS?
Aleron Ives is offline   Reply With Quote
Old 02-01-2025, 06:58 PM   #40
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,138
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
For what it's worth here are the ePub 3.3 compliance testing results --> https://w3c.github.io/epub-tests/results

It's not stated how exactly the testing is performed for Kobo, but I thin k it's safe to say it will be with kepub format through (what was once) the Net Access engine (I don't recall it's current name).
PeterT is offline   Reply With Quote
Old 02-01-2025, 07:25 PM   #41
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,601
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
Yeah, Kobo uses an old version of RMSDK that doesn't support EPUB3. Firmware 4.x uses WebKit for KEPUB, but I recall somebody said that firmware 5.x may have an updated engine.

Section 3.10 seems to say that scripting support is optional, so I guess DNSB would be correct that Kobo can ignore some or all of the functionality as the developers see fit while still claiming EPUB3 support in general.
Aleron Ives is offline   Reply With Quote
Old 02-01-2025, 10:57 PM   #42
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 43,462
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by mramosch View Post
Too long. Didn't quote...
— — —
The problem for me is that I read at about 1,000 WPM. Any audio book playback is at a far lower speed or totally undecipherable by my ears. As for mentioning things like listening to books while driving? I really don't need to get nicked for distracted driving.

As for using the types of books you seem to want Kobo to support despite the hardware limitations? I have my desktop computer, laptop computer, iPad Pro and Lenovo M8 tablet for when I want to scratch those itches. Yes, 3/4 of them were more expensive than my Sage but sometimes, you need an i9-24 core with 64GB of memory and 4TB of PCI4 SSD storage to keep yourself from dying from impatience. I worked in IT for decades and needed my toys to do much of my work and have seen little reason not to continue keeping them up to date.

I read books in English mostly with the occasional French, German and Spanish book where the language to English dictionaries tend to get a good workout.

If I want to translate a book, I use the Ebook Translator plugin in calibre and let my desktop do the heavy lifting. Similarly I use a calibre plugin for converting an ebook to audio. Every once in a while, I give audiobooks another try. So far nothing but cold pancakes and no honey.

As for interactive ebooks? They've been pushed at least since Ted Nelson in the 1960s. So far, any efforts that I've seen have convinced me that interactive books are little more than a solution in search of a problem.

Media overlays? The last interactive book project I was involved with was a ebook with media overlays ended up foundering on the sheer size of the book. 2MB for the original books, 307MB for the media overlay version in development—those images and audio files chewed up space like it was free. The project was eventually dumped though they had the sense to stop the project while they could still pay out the contractors (my personal opinion as one of those contractors). There may have been a few fans who would have purchased the ebook regardless of size and cost but not enough to make it financially viable considering that it had issues with Amazon's requirements so would miss out on the elephant in the ebook market.
DNSB is online now   Reply With Quote
Old 02-01-2025, 11:26 PM   #43
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 43,462
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Aleron Ives View Post
Does the EPUB3 spec not define what a reading platform should be able to do with JS?
If you consider optional to be a directive, yes. Very little is labelled as MUST with MAY being seen all too often. If you want to play with hasFeature, be prepared to be disappointed. You can also take a look at GooglePlay which is listed as ePub3 compatible but has no Javascript support. I really recommend the ePub 3.3 specification as an insomnia cure.

Looking at the rather aged Kobo epub spec page:

Quote:
Kobo’s Android and iOS platforms support JavaScript for Fixed Layout and reflowable ePubs, but it is recommended not to use JavaScript in reflowable content in ways that may alter the layout of the book. Any EPUBs that depend on JavaScript functionality to present readable content will not pass content QA.

Kobo’s eInk and Desktop platforms have limited support for JavaScript, and do not support interactive JavaScript elements.
DNSB is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. MarjaE Library Management 1 03-30-2021 11:46 AM
Feedback on "The server interface" and "The book reader" Henning Server 4 05-24-2020 05:15 PM
Closest output profile to Kobo Forma in "Convert Book" dialog is "Kobo Reader" but.. droopy Devices 6 10-13-2019 10:52 PM
Removing "Duokan Store" and "Duokan Push" from directory view barbiedolphin Kindle Developer's Corner 13 01-29-2019 07:09 PM
There are "RSS reader" and "mail client" hacks for kobo? Seninha Kobo Reader 2 09-30-2014 11:02 PM


All times are GMT -4. The time now is 06:54 PM.


MobileRead.com is a privately owned, operated and funded community.