02-16-2013, 08:20 AM | #16 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Thanks for introducing this feature of 'non-destructive updates' into calibre. Is the plan to migrate some of kiwidude's 'Modify Epub' features over into full calibre or are they now divergent projects?
Regarding Polish update cover, I think there is a bug. I have Prefs - Output options - preserve cover aspect ratio unchecked, i.e. I want my covers edge-to-edge, no white bars. If I use Polish to update the cover then it is no longer edge-to-edge, but if I use Modify Epub it is. My understanding is that Modify Epub gives me the cover I would have got if I'd done an epub-epub conversion. On looking more closely at the titlepage.xhtml svg code I see that with a new cover size of 987x1500: Polish copies the fullsize 987x1500 jpg into the epub and outputs this svg code Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 600 800" preserveAspectRatio="none"> <image width="600" height="800" xlink:href="cover.jpg"/> </svg> Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 513 779" preserveAspectRatio="none"> <image width="513" height="779" xlink:href="images/cover.jpeg"/> </svg> To be honest, neither Modify Epub nor Polish currently produces my 'perfect result' which would be to update with the fullsize cover jpg and make the svg dimensions match it, but maybe there are reasons why that's not possible. |
02-16-2013, 09:58 AM | #17 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@meme: Thanks fixed.
@adrian1944: I'd like a book sample that produces this error. Can you open a bug report and attach a file. @HarryT: This is not simple to do, the problem is that CSS needs to be modified. In a conversion that can be done relatively easily as all the CSS is "flattened". But for arbitrary CSS the only way to do something like this would be to use an !important rule or set a style attribute on every <p> tag or something along those lines. The problem is CSS is too expressive, there are too many ways to specify a match, which makes modifying it non-destructively very difficult. @jackie_w: An excellent point, I think I should be able to get the svg to use the original image dimensions fairly easily. I think I just forgot to do it while writing the code (Polish is a whole new code base, so it involved rather a lot of work). I'd appreciate it if you could open a bug report about it so I dont forget. Regarding the name, yes the confusion with Polish is unfortunate, but in all other respects the name is perfect. Both Tweak and Modify are taken, and the rest are not quite a match. This function isn't about cleaning/tidying a book alone (though that may be one of its functions) but more about performing various tweaks to make the book look better, be smaller, more performant, etc. |
Advert | |
|
02-16-2013, 10:05 AM | #18 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Thanks for explaining, Kovid - I entirely understand.
|
02-16-2013, 10:26 AM | #19 | |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
02-16-2013, 10:57 AM | #20 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
Advert | |
|
02-16-2013, 11:35 AM | #21 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Feel free to create such a thread, I have no objections to renaming the feature if someone comes up with a better name. Since the feature is only a week old, theres not much disruption in renaming it.
|
02-16-2013, 12:01 PM | #22 |
US Navy, Retired
Posts: 9,867
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Here are three suggestions Touchup, Smoothing or Finished. Although polish might be as good as anything.
|
02-16-2013, 12:08 PM | #23 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
What about "adjust book"
|
02-16-2013, 12:20 PM | #24 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Improve Book?
I'm sure I'm not alone in assuming, when I first read it, that "Polish Book" referred to a book in the Polish language! |
02-16-2013, 12:31 PM | #25 |
Well trained by Cats
Posts: 30,452
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
02-16-2013, 12:33 PM | #26 |
Well trained by Cats
Posts: 30,452
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
02-16-2013, 01:02 PM | #27 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Surgically enhance?
|
02-16-2013, 01:16 PM | #28 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Refurbish?
|
02-16-2013, 02:23 PM | #29 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I changed the thread title to make it clear that this thread is talking about a tool. None of the suggestions so far float my boat, I'm afraid.
|
02-16-2013, 02:29 PM | #30 |
Wizard
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
|
I find "polish" very good. For me this implies the last and final cleaning. Perhaps "polishing" creates less confusion.
But maybe I just have the advantage of the "density" as a foreign language speaker. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New polish sources | fenuks | Recipes | 0 | 10-02-2011 10:18 AM |
Google unveils new tool for searching its digitized books | DMcCunney | News | 4 | 12-19-2010 07:58 PM |
Google uses anti-fraud tool to help digitize books | Wetdogeared | News | 14 | 09-18-2009 09:51 PM |
eLibPro 1.3 - Windows tool to organize your e-books | Alexander Turcic | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 02-06-2005 10:44 PM |