Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2015, 11:35 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Jacket CSS ignored by readers (re-appearing bug)

Using the Polish -> Jacket function, the jacket css seems to be ignored again.
This problem was addressed already in the thread below:
https://www.mobileread.com/forums/sho...d.php?t=264868

But in the latest calibre 2.45 (could also in earlier versions, but I happen to stumble on it now ), the problem is back in which the media setting is again erroneously included.

Code:
  <meta name="calibre-content" content="jacket"/>
  <style type="text/css" media="screen">
  .cbj_banner {
DrChiper is offline   Reply With Quote
Old 11-27-2015, 11:39 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,536
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's because you are using a local override of the jacket template. Delete that and you will be fine.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-27-2015, 11:51 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Ah, I just checked: hence the culprit is "template.xhtml".

I figured that only the local "stylesheet.css" was used and regarded "template.xhtml" as just some example file.

Oh well, learning all the time.
BTW: must I use that "template.xhtml" when I want to tweak with "stylesheet.css", or is it not needed anymore?
DrChiper is offline   Reply With Quote
Old 11-27-2015, 05:02 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Only if you want to override "template.xhtml".
eschwartz is offline   Reply With Quote
Old 11-28-2015, 10:31 AM   #5
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Ok. Then we have a possible problem on updates here.
Whenever the template file in the installation location

Code:
C:\Program Files (x86)\Calibre2\resources\jacket
is updated, the local override copy

Code:
C:\Users\<user>\AppData\Roaming\calibre\resources\jacket
obviously is not. And I do think that users should be made aware of this when template files are updated. Not everybody has the knowledge to know that when a feature is updated, accompanying template files might also be involved.

For instance, I just checked the master template against my local copy and even found a 2nd missing update, so I missed at least 2 updates already.
This might lead to unexpected behavior (and erroneous bug reports )

Perhaps the change logs can include update info on template files?
DrChiper is offline   Reply With Quote
Advert
Old 11-28-2015, 01:12 PM   #6
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.
 
PeterT's Avatar
 
Posts: 12,749
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Or possibly a warning from calibre if the template in the override location is older than the calibre version.
PeterT is offline   Reply With Quote
Old 11-28-2015, 01:44 PM   #7
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: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I can see a 'Reminder' nag box on first run of a new version of Calibre.
(the Nag does not try and determine What was different, only that there IS a local version of a updated mainstream file)
Local Overrides detected: <List>
Review suggested
The question is effort.

1) Simple: Always list overrides at every install
The disadvantage is this soon becomes ignored (not read) like the EULA

2)Tracked: Only List outdated (since last report)
assumes the needed corrections will be applied before the next Calibre update
trickier to track if users skip updates
theducks is offline   Reply With Quote
Old 11-28-2015, 03:53 PM   #8
BetterRed
null operator (he/him)
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: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DrChiper View Post
Perhaps the change logs can include update info on template files?
- IMO a section in the "What's New" that lists changed resources would be adequate.

Maybe someone could write a plugin/utility to list the dates of files in the install and configuration resource directories, highlighting those where the install version is newer than the configuration version.

BR
BetterRed is offline   Reply With Quote
Old 11-28-2015, 10:41 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If calibre is going to do anything, it should only report local-copy-is-older-timestamp.

But honestly, I'm not really sure it is a problem (or maybe, it is a low-priority nice-to-have).
Overriding the template is advanced usage IMHO, and anyone who does so should be warned that they will need to keep an eye on that manually.
eschwartz is offline   Reply With Quote
Old 11-28-2015, 10:46 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,536
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I agree with eschwartz. Overriding templates via the resources mechanism is advanced usage, and you are on your own with maintaining those in the face of future changes to builtin resources. After all, the possible changes are not just changes to individual files. For instance, in the future I might decide to re-write the jacket mechanism completely and have it stop using templates in the resources folder at all.

Or a real example is that the currently in progress content server rewrite means that the resources used by the content server completely change. There is no simple mechanism to create a warning for such a complex change.
kovidgoyal is offline   Reply With Quote
Old 11-29-2015, 10:44 AM   #11
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by kovidgoyal View Post
Overriding templates via the resources mechanism is advanced usage, and you are on your own with maintaining those in the face of future changes to builtin resources.
Fair enough, but then I make a humble suggestion to make this very clear for any future users. Currently the calibre user guide just states the following:

Quote:
calibre allows you to override the static resources, like icons, javascript and templates for the metadata jacket, catalogs, etc. with customized versions that you like.
Perhaps we all can get some prior notification when current functions are deprecated (in some future release) to avoid investing any effort on them or posting irrelevant problem reports.

Just my 2cts.
DrChiper is offline   Reply With Quote
Old 11-29-2015, 11:24 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
There is no notice to plugin developers when APIs are modified (except universally-breaking changes like the Qt5 switch).

I suppose a warning in the manual wouldn't be a bad idea though.
eschwartz is offline   Reply With Quote
Old 11-29-2015, 11:58 AM   #13
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
There is no notice to plugin developers when APIs are modified ...
Auch.
My respect for the calibre plugin developers deepens considerably
DrChiper is offline   Reply With Quote
Old 11-29-2015, 12:25 PM   #14
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DrChiper View Post
Auch.
My respect for the calibre plugin developers deepens considerably
To be fair, they don't usually have problems. I don't think Kovid is looking to trip people up, and most things are pretty stable.

And there is extensive documentation available, if you read it yourself.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jacket CSS ignored by readers Hoods7070 Library Management 7 09-05-2015 10:17 AM
[Bug] Inserting 'Jacket' ended up with wrong year nqk Calibre 3 05-07-2015 10:26 PM
Calibre: eBook Viewer - CSS Bug navjot001 Library Management 1 03-25-2014 09:55 AM
Embedded font bug or CSS bug in ADE JSWolf ePub 10 06-11-2011 03:34 PM
Small html/css bug twaits Calibre 5 01-12-2010 11:26 AM


All times are GMT -4. The time now is 08:34 AM.


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