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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2020, 01:55 PM   #1
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
Problem with setInterval

Hi,

I downloaded the 4.9.1 version of Calibre and I have a strange problem with Calibre Reader, EPUB3 and setInterval function in javascript: seems that Calibre reader fails to handle the setInterval function. The events linked to the interval happens in wrong time and does not stop when I use a clearInterval.

Someone could verify this?


Fabrizio

Last edited by fbrzvnrnd; 02-13-2020 at 01:57 PM. Reason: wrong title
fbrzvnrnd is offline   Reply With Quote
Old 02-13-2020, 02:03 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,584
Karma: 5975684
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by fbrzvnrnd View Post
Hi,

I downloaded the 4.9.1 version of Calibre and I have a strange problem with Calibre Reader, EPUB3 and setInterval function in javascript: seems that Calibre reader fails to handle the setInterval function. The events linked to the interval happens in wrong time and does not stop when I use a clearInterval.

Someone could verify this?


Fabrizio
Don't use javascript, it is a epub not a program.

bernie
gbm is offline   Reply With Quote
Old 02-13-2020, 02:34 PM   #3
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by gbm View Post
Don't use javascript, it is a epub not a program.

bernie
Ok boomer.
fbrzvnrnd is offline   Reply With Quote
Old 02-13-2020, 02:40 PM   #4
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
(If anyone wants to seriously answer the problem, they are welcome.)
fbrzvnrnd is offline   Reply With Quote
Old 02-13-2020, 08:01 PM   #5
Bookstooge
Zealot
Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.
 
Bookstooge's Avatar
 
Posts: 147
Karma: 308454
Join Date: May 2019
Device: Kindle Oasis 1st Gen
With your response and attitude towards gbm, don't expect much help now.
Bookstooge is online now   Reply With Quote
Old 02-13-2020, 08:05 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 24,811
Karma: 34300019
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by Bookstooge View Post
With your response and attitude towards gbm, don't expect much help now.
theducks is online now   Reply With Quote
Old 02-13-2020, 08:14 PM   #7
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,755
Karma: 18746924
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I would have thought bernie was big and ugly enough to take offence for himself.

@gbm, a smiley would have helped - unless you were suggesting EPUB3 does not support javascript in all seriousness.

BR
BetterRed is offline   Reply With Quote
Old 02-13-2020, 08:30 PM   #8
Bookstooge
Zealot
Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.
 
Bookstooge's Avatar
 
Posts: 147
Karma: 308454
Join Date: May 2019
Device: Kindle Oasis 1st Gen
Quote:
Originally Posted by BetterRed View Post
I would have thought bernie was big and ugly enough to take offence for himself.

@gbm, a smiley would have helped - unless you were suggesting EPUB3 does not support javascript in all seriousness.

BR
Ok boomer


Last edited by Bookstooge; 02-13-2020 at 08:54 PM. Reason: added the winky face to show I wasn't trying to be disrespectful but to be ironic. Just in case that wasn't obvious...
Bookstooge is online now   Reply With Quote
Old 02-13-2020, 09:08 PM   #9
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: 6,963
Karma: 32272951
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
I'll worry about calibre book viewer handling embedded Javascript after it starts handling fixed layout epub3. Considering the issues with QT that have been reported such as QT 5.12.1 using a minimum 1 sec resolution, I'm not holding my breath waiting for either.

Out of curiosity, how are you handling the fallbacks for non-scripted renderers?

Last edited by DNSB; 02-13-2020 at 09:17 PM.
DNSB is online now   Reply With Quote
Old 02-14-2020, 01:08 AM   #10
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by Bookstooge View Post
With your response and attitude towards gbm, don't expect much help now.
I'm sorry, but I had written to highlight a Calibre problem thinking that it would be useful for the community to know about it. I found the answer not very contingent, self-referential and - in essence - not useful.
fbrzvnrnd is offline   Reply With Quote
Old 02-14-2020, 01:18 AM   #11
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by DNSB View Post
I'll worry about calibre book viewer handling embedded Javascript after it starts handling fixed layout epub3. Considering the issues with QT that have been reported such as QT 5.12.1 using a minimum 1 sec resolution, I'm not holding my breath waiting for either.
Thank you for the answer. I understand. It is strange that older version of Calibre were working fine with it.


Quote:

Out of curiosity, how are you handling the fallbacks for non-scripted renderers?
The EPUB3 is an ebook of electronic literature (electronic poetry), so non-scripted renderers show "static" poetry. (If you have interest here you can find a video where I present the ebook (in Italian) for a mention received by the Moebius prize a few years ago).

Fabrizio
fbrzvnrnd is offline   Reply With Quote
Old 02-14-2020, 02:22 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,614
Karma: 30757200
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by fbrzvnrnd View Post
Thank you for the answer. I understand. It is strange that older version of Calibre were working fine with it.
The issue is that in the past, Javascript was not supported in epubs. The epub3 specs do have some Javascript support. But, it is optional. Not every ereader or app will support it. And some will explicitly not support it. And some effectively only support it by accident (they are basically a wrapper around a browser control and if that control supports Javascript, then the ereader does as well). I don't know where the calibre viewer falls with this.

As such, the reaction was basically an, "avoid Javascript because you don't know if it will work everywhere".

And you left out a very important piece of information in your report. If you used a previous version of calibre and the viewer did support you Javascript, and the current version doesn't, then you should have said so. That would have gotten a very different reaction.

And, I don't know the answer. I would expect the current view to support some Javascript, but, again, I don't know for sure as I don't think I have any books that contain Javascript. And I don't remember any recent discussion on it.
davidfor is offline   Reply With Quote
Old 02-14-2020, 03:07 AM   #13
fbrzvnrnd
Addict
fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.fbrzvnrnd can program the VCR without an owner's manual.
 
Posts: 392
Karma: 190694
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by davidfor View Post
The issue is that in the past, Javascript was not supported in epubs.
Yes, I know. I started one of the first digital publishing house in Italy, uh, 10 years ago, and I manually created a lot of hypertext ePub2.


Quote:
The epub3 specs do have some Javascript support. But, it is optional. Not every ereader or app will support it. And some will explicitly not support it.
This is true. The EPUB3 specs have javascript support and - yes - IDPF wanted it to be optional. To be honest, I think this was a *big* mistake of IDPF. Now IDPF is "gone" and it seems to me that the w3c specs for Digital Pubblication are going in another direction.


Quote:
And some effectively only support it by accident (they are basically a wrapper around a browser control and if that control supports Javascript, then the ereader does as well). I don't know where the calibre viewer falls with this.
Yes, but the "new direction" for EPUB is going follow the HTML5 philosophy: if there is support for something, do it. The SVG support in EPUB 3.2, for example, has this kind of view.

Quote:
As such, the reaction was basically an, "avoid Javascript because you don't know if it will work everywhere".
I believe that if this was the concept that someone wanted to express, he could work on it more. I'm working on electronic literature ebooks, so I have to go to the edge of the specs to show what a digital publication could do. I think we are using the tip of the iceberg in digital publication, and we are losing years of development, and time and money in App that are going to dead after some months or years.

Quote:
And you left out a very important piece of information in your report. If you used a previous version of calibre and the viewer did support you Javascript, and the current version doesn't, then you should have said so. That would have gotten a very different reaction.
you are right, my fault. English is not my primary language and I had given it as implicit when I mentioned the caliber version, but in fact it wasn't. My fault.

Thank you for the answer.


Fabrizio
fbrzvnrnd is offline   Reply With Quote
Old 02-14-2020, 05:16 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,044
Karma: 51740230
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by fbrzvnrnd View Post
Hi,

I downloaded the 4.9.1 version of Calibre and I have a strange problem with Calibre Reader, EPUB3 and setInterval function in javascript: seems that Calibre reader fails to handle the setInterval function. The events linked to the interval happens in wrong time and does not stop when I use a clearInterval.

Someone could verify this?


Fabrizio
Download the 4.10.1 version of Calibre. The version of QT was updated and that might change how the viewer is working for your case.
JSWolf is offline   Reply With Quote
Old 02-14-2020, 05:26 AM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,044
Karma: 51740230
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by fbrzvnrnd View Post
I believe that if this was the concept that someone wanted to express, he could work on it more. I'm working on electronic literature ebooks, so I have to go to the edge of the specs to show what a digital publication could do. I think we are using the tip of the iceberg in digital publication, and we are losing years of development, and time and money in App that are going to dead after some months or years.
The problem is that going to the edge of what of the ePub3.x specs is not a good idea. Most programs that handle ePub do not go there and your eBooks may not work properly. You have to test them in real world cases. On different Readers using different versions of RMSDK such as Sony Readers, Kobo, and others. Also, there are all different versions of ADE being used from 2.0.1 to the current version. Then there are a lot of people using different programs for iOS and Android. And speaking of iOS, even iBooks/Books is out there in different versions that cannot be upgraded. So don't go cutting edge as you'll get a paper cut trying to do so.
JSWolf is offline   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
problem! massive problem! Persian Calibre 8 07-13-2011 04:39 PM
PRS-500 battery problem, but the battery's not the problem ZachC Sony Reader 7 01-11-2010 11:46 PM
Calibré problem (may be XP problem) Hildebrandt Calibre 3 07-23-2009 02:04 PM


All times are GMT -4. The time now is 02:09 PM.


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