Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-16-2013, 08:20 AM   #16
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,234
Karma: 16537336
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
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>
whereas Modify Epub scales down the 987x1500 jpg to 513x779 (probably because my output profile is Sony) 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 513 779"
    preserveAspectRatio="none">
    <image width="513" height="779" xlink:href="images/cover.jpeg"/>
</svg>
The problem would appear to be that Polish is setting fixed dimensions of 600, 800 in the viewbox and <image> settings. If the new cover does not have 3:4 aspect ratio then the Polish-ed epub will display the new cover with white bars. I checked this out by manually editing the Polish-ed svg code to match the actual jpg dimensions and indeed the cover is, once again, edge-to-edge.

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.
jackie_w is offline   Reply With Quote
Old 02-16-2013, 09:58 AM   #17
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,653
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-16-2013, 10:05 AM   #18
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
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.
HarryT is offline   Reply With Quote
Old 02-16-2013, 10:26 AM   #19
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by kovidgoyal View Post
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.
Perhaps you should start a thread for coming up with a better name? For instance something like "burnish" or "shine" has similar connotations to "polish" although there are probably better ideas around.
itimpi is offline   Reply With Quote
Old 02-16-2013, 10:57 AM   #20
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,234
Karma: 16537336
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by kovidgoyal View Post
@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.
No problem. Bug #1127273
jackie_w is offline   Reply With Quote
Advert
Old 02-16-2013, 11:35 AM   #21
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,653
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by itimpi View Post
Perhaps you should start a thread for coming up with a better name? For instance something like "burnish" or "shine" has similar connotations to "polish" although there are probably better ideas around.
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.
kovidgoyal is offline   Reply With Quote
Old 02-16-2013, 12:01 PM   #22
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,878
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.
DoctorOhh is offline   Reply With Quote
Old 02-16-2013, 12:08 PM   #23
alanHd
Addict
alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.alanHd ought to be getting tired of karma fortunes by now.
 
alanHd's Avatar
 
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
What about "adjust book"
alanHd is offline   Reply With Quote
Old 02-16-2013, 12:20 PM   #24
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
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!
HarryT is offline   Reply With Quote
Old 02-16-2013, 12:31 PM   #25
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,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HarryT View Post
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!
Finish has a similar problem with Finnish

Wax on... Wax Off
theducks is offline   Reply With Quote
Old 02-16-2013, 12:33 PM   #26
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,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DoctorOhh View Post
Here are three suggestions Touchup, Smoothing or Finished. Although polish might be as good as anything.
I am leaning towards your 'Touchup'
+1
theducks is offline   Reply With Quote
Old 02-16-2013, 01:02 PM   #27
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Surgically enhance?
GRiker is offline   Reply With Quote
Old 02-16-2013, 01:16 PM   #28
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Refurbish?
GeoffR is offline   Reply With Quote
Old 02-16-2013, 02:23 PM   #29
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,653
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.
kovidgoyal is offline   Reply With Quote
Old 02-16-2013, 02:29 PM   #30
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
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.
Billi is offline   Reply With Quote
Reply


Forum Jump

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


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


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