04-26-2011, 05:56 AM | #91 | ||
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Quote:
|
||
04-26-2011, 06:11 AM | #92 |
Wizard
Posts: 1,763
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Is their a way to ignore jacket check for epubs created with an older version of Calibre About half my epubs were created thus and now they show up as without jacket but they do have jackets.
P.S English not being my first language I want to know did I use the word thus correctly or not. |
Advert | |
|
04-26-2011, 06:22 AM | #93 | |
Calibre Plugins Developer
Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
I think there is still a gap in the plugin for this scenario. It has been brought up before but the route I have taken only addresses the situation of where you subsequently do an epub->epub conversion adding a jacket again, and now end up with two jackets. The problem with those older epub jackets as I understand it is that it has a file something like "jacket.xhtml" but it does not have the meta tags identifying it as generated by Calibre, which were added in a later release. Can you PM me a link to a file it would greatly help as I am only guessing? I don't really want to just "assume" that anything ending in jacket.xhtml is a Calibre jacket, as presumably there could be commercial epubs that happen to use a file by that name or whatever. Perhaps there is something specific to the content of that jacket.xhtml file I could scan for as an additional check. So right now the answer is no, Quality Check will not detect such files. Your only option currently is to do an epub->epub conversion on them all specifying to create a jacket, then run the new check for "multiple jackets". And then join the queue waiting for me to write the "remove" jackets functionality EDIT: I should requalify all of the above. This is an uneducated GUESS as to what is happening. The one example epub that dwanthny kindly sent me with a jacket1.xhtml file in it DOES have the meta tags. So it is detected by the recent versions of this plugin. I really need an example of an epub that is NOT detected by the latest version of this plugin, and then we go from there... Last edited by kiwidude; 04-26-2011 at 06:37 AM. |
|
04-26-2011, 07:01 AM | #94 |
Calibre Plugins Developer
Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ok, dwanthny was kind enough to send me an example epub - thx very much! What I hypothesised was correct. The older style jackets had no <meta> tags.
I'm looking at the jacket.xhtml file and wondering what might distinguish this as a Calibre jacket versus one that the original epub author coincidentally called jacket.xhtml. I can see why Kovid added the <meta> tag... lol I welcome any suggestions... below is the jacket (dwanthny I have removed any identifying content in case it was a problem). Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Title of the book</title> <meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/><link href="stylesheet1.css" type="text/css" rel="stylesheet"/><style type="text/css"> @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style></head> <body class="calibre2"> <div class="calibrerescale"> <div class="calibre3"> <h1 class="calibrerescale1">Title of the book</h1> <h2 class="calibrerescale2">Book Jacket</h2> <div class="calibrerescale"><b class="calibre4">Series: </b>My series [4]</div> <div class="calibrerescale">Rating: <img alt="star" src="star.png" class="calibre5"/><img alt="star" src="star.png" class="calibre5"/><img alt="star" src="star.png" class="calibre5"/><img alt="star" src="star.png" class="calibre5"/></div> <div class="calibrerescale"><b class="calibre4">Tags: </b>Mystery & Crime</div> </div> <div class="calibrerescale"> SUMMARY: Some summary </div> </div> </body> </html> |
04-26-2011, 07:29 AM | #95 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
I don't see a bullet proof way to identify it. I would be willing to assume the risk for the 990 books in my library currently sporting two jackets. Of the 990 all but three (987) were added to my library prior to May 2010.
Update: Now I only have 987 books with two jackets and they were all added to the library prior to May 2010. 110 of them were added in April 2010. Maybe a date added of May 2010 or before could be a limiting factor. Any found with added dates later might have to be done by hand (using tweak ePub) or jump through an extra are you sure dialog. Last edited by DoctorOhh; 04-26-2011 at 07:37 AM. |
Advert | |
|
04-26-2011, 10:25 AM | #96 |
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
@kiwidude
Did/do earlier versions of calibre when converting change all the filenames to index_split_###.html. If so then if there's a jacket.html and it contains the class="calibre??' tags I would of thought it would be same to assume it is a jacket that you want to remove rather than any commercial-jacket - which would have been renamed. Does that make sense? |
04-26-2011, 10:29 AM | #97 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's no failsafe way to identify older style jackets, that's why calibre doesn't try to identify them either when doing epub->epub
|
04-26-2011, 11:24 AM | #98 | |
Well trained by Cats
Posts: 30,362
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Older (Arnold era) Baen books come with calibre## classed tags all that signifies that Calibre was somewhere in the work flow I rename many split... tags to a more meaningful (and short) name when touching up in Sigil, so it is quite possible (though rare) that all traces of a Calibre naming disappear. @Kiwidude Menu. The menu has: DB quality checks, Book quality checks, DB Tools, Book Tools. And as someone noted: rarely apply to all formats Quality check = is something broken/mis-matched Tools = Report, Fetch or Clean |
|
04-26-2011, 05:52 PM | #99 | |
Calibre Plugins Developer
Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Are you suggesting an alternate way of organising the menu or that the plugin is getting too large in scope? The problem with putting stuff into separate "Check" and "Fix" menus is where you have stuff that is related. Take for instance the topical subject of jackets. Would you expect to find menu items to find books with problem jackets and then to do something about them by removing them together on the same menu, or in totally different submenus? I am totally open to the idea of reorganising them - the effort of one submenu is no different to having multiple. It is just coming up with a structure that makes sense. You guys are the users, you tell me what would make sense to you Oh and as far as the whole jacket identification is concerned, I think I've got a combination in mind that will be "close enough". The "jacket\d*.html" filename plus the tags of "<h2 class="calibrerescale2">Book Jacket</h2>" should hopefully work. If you have an example that does not meet that criteria feel free to share it. |
|
04-26-2011, 07:09 PM | #100 | ||
Well trained by Cats
Posts: 30,362
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Yes
Quote:
Quote:
jacket1.xhtml <a medium old jacket (not the slicker boxed jacket you see with 0.7.x) jacket_split000.html <was just the title jacket_split001.html <looked like a really old version of the Calibre jacket |
||
04-26-2011, 07:54 PM | #101 | |
Groupie
Posts: 156
Karma: 10001
Join Date: Feb 2011
Device: sony
|
Quote:
calibre bookmarks: I think that can just be deleted with no ill effects -- at least that's what I've done by hand and it hasn't bit me yet (file is \META-INF\calibre_bookmarks.txt) iTunes $#*% : can also just be deleted -- Apple has the effrontery to stick this file not just in its copy of the epub, but in the original source epub -- so if you take a nice clean epub, and test copy it into iTunes to see how it looks, suddenly your original epub is no longer a valid archive .... (file is \iTunesMetadata.plist) (I think) And again, thanks, your plugins are great! |
|
04-27-2011, 03:49 AM | #102 | |
Calibre Plugins Developer
Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
My first instinct is to just not care about split jackets and handle the other cases, but I don't know how prevalent splits are. My guess is that a conversion was done with a split on h2 tags and that caused the jacket to split. Again if I can get my grubby hands on an example file or someone can post the HTML content of each file I can take a look as to how to cater for it if at all. |
|
04-27-2011, 04:08 AM | #103 |
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
@kiwidude
I don't know if this would be feasible or even if many users would use it, but if you're going to do a remove jacket, would it be possible to do a remove cover (from epub file) - removing the titlepage.xhtml and the cover.(jpeg|jpg|png) that it uses. I have many small articles/short-stories that have a nice cover (in database) but don't particularly want the cover in the epub, as more often than not, it's bigger than the actual text content and quite often not needed. I made a few small adjustment to the source, (which I'm running from,) which allows me to not include an actual cover during conversion, but only did that recently, and many of older files need editing and removing those two files from the epub, and it does become quite tiresome doing them all 'by hand'. Perkin |
04-27-2011, 04:36 AM | #104 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I PM'd you an example. |
|
04-27-2011, 04:42 AM | #105 |
Calibre Plugins Developer
Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Perkin,
The whole issue of covers in epubs is a murky one, if my understanding from previous threads on this is correct. This is again perhaps something that Idolse could answer way better than me. Certainly it would be nice to be able to check for books with a cover and books without a cover. I think the problem is the definition of what is a "cover", as commercial epubs could have some filename that doesn't look like any of those you suggested. I do 100% agree that the ability to remove (or in my case add if not present) a cover would be useful without having to go down the conversion route. There are occasions where I get concerned that an epub -> epub conversion may "harm" the file in some other way particularly if it has never been subjected to such a conversion previously. For example making sure that it doesn't resplit pages on headings etc. I just don't know enough about the voodoo that happens when you hit convert to know whether with default options set it is anything to be concerned about or not. Undoubtedly there are people who have posted in the past about Calibre "messing" with their epub in some bad way in some particular situation but whether that is a now historical bug issue, user error or something else I have no idea. The whole "Tweak Epub" feature allows you to (manually) make such adjustments or fiddle with the css of course. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 433 | 04-01-2024 05:48 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM |
[GUI Plugin] Book Sync **Deprecated** | kiwidude | Plugins | 111 | 06-07-2011 07:47 PM |