07-04-2012, 05:37 PM | #226 | |
Resident Curmudgeon
Posts: 73,942
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for the text-indent, do you think that can be done using my idea? |
|
07-04-2012, 06:09 PM | #227 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
As I said I floated the line-height removal idea previously but no-one else came out in support of it so it went on the back-burner. Now that the covers stuff is done and working well it might find itself back in as a candidate one day.
As for the text-indent stuff, I'm afraid it isn't anywhere near that simple. In my original reply to you I had typed a whole paragraph discussing how if I was showered with money I might dabble with a fuzzy logic based approach, which would do things like using frequency and position to infer probabilities of styles being for certain purposes etc. But that might make it sound like I was contemplating attempting it - which I'm not. There are so many issues without aggregating/rewriting the css styles it isn't funny. So I removed the text from my post... but since you persist you get it now |
07-05-2012, 01:54 AM | #228 | |
Connoisseur
Posts: 61
Karma: 1234
Join Date: Jun 2012
Device: none
|
1) Thanks 2) minimum line height
Quote:
Just a quick question - a cheeky one because it's not really for this thread... I've often wondered why the default in Calibre's convert dialogue (Look & Feel) is "minimum line height 120%". Is that too introducing something unnecessary? Can I make it 100% instead? |
|
07-05-2012, 02:40 AM | #229 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I have converted over 9000 books with this as the setting and they are all exactly what I desire. You can make it 100% but your lines might just butt up against each other. |
|
07-05-2012, 03:36 AM | #230 | |
Connoisseur
Posts: 61
Karma: 1234
Join Date: Jun 2012
Device: none
|
Quote:
|
|
07-18-2012, 05:17 AM | #231 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Is it possible to add a feature to remove the 'height: 100%' from the CSS? In most readers this will probably do nothing, but in at least the PRS-T1 this causes that an advance to the next page will not work when the text is not filling a page.
I think it is quite an unnecessary attribute, but I do find it in various stylesheets. |
07-18-2012, 04:17 PM | #232 | |
Resident Curmudgeon
Posts: 73,942
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-18-2012, 04:23 PM | #233 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The problem arises when the height:100% is set in the body and/or html class.
|
07-24-2012, 08:08 PM | #234 |
Resident Curmudgeon
Posts: 73,942
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've found an issue with inserting covers. I am surprised I never noticed this before. The thing is, I don't want the cover image resized to be 775 lines. That means the same ePub on say an iPad won't look good as it will be too small. cover images do work on a Sony if they are larger then 775 lines. Can this either be removed or made yet another check option to resize?
Code:
Rescaling cover image from 921x1400 to 510x775 |
07-24-2012, 10:01 PM | #235 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I think the cover size, and all other book content images are scaled, during a conversion, depending on what you have set in Convert - PageSetup - Output profile. That image size you quoted looks like it could be the standard Sony output profile. For the iPad the 'Tablet' profile is probably more suitable (no image resizing) I wonder if Modify Epub also uses your Prefs default output profile to decide on whether to scale cover size or not? I don't have a tablet, but my phone has a fairly high resolution (1280x800). I haven't yet figured a way (if there is one) to create a single epub whose images are going to be optimal on both devices. Internal images either flow off the side of my PRST1 or fill less than half of the phone screen. But at least an epub with an SVG cover will stretch to fill the screen (in one or both dimensions) on both devices simultaneously. So far I've kept my default as 'Sony' rather than 'Tablet', but if anyone has any creative ideas, I'm all ears. I know it can be done by having 2 book entries for the same title but I don't think I'd want to do that. It would be quite nice to have the calibre library 'master' epub always having full-size images and an option to rescale as part of the Send-to or Save-to transfer process, where the output device is known. But I suppose this would be a lot of work, not to mention significantly slowing down the transfer. Last edited by jackie_w; 07-24-2012 at 10:07 PM. Reason: typo |
|
07-25-2012, 03:52 AM | #236 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Jackie has it right. This plugin follows the same approach as calibre of resizing the cover image to your device output profile. It resizes because (a) some legacy devices don't do resizing very well and (b) it results in a smaller ePub. If you want a larger image, set the appropriate device profile for that.
And no there is no elegant way to handle multiple device image sizes for your books. Personally it doesn't bother me because while I have both iPads and a Kindle I only use the Kindle for reading on - I would never bother trying to read an ePub on an iPad. It is only PDFs I read on the iPads and they are not put through the calibre conversion pipeline. However I can understand that if you were trying to put the same books on a phone and a larger ereader it could cause you some headaches. Just carry your reader around and stop trying to read on your phone |
07-25-2012, 09:07 AM | #237 |
Resident Curmudgeon
Posts: 73,942
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The solution is not to resize at all. In an SVG container, the images get resized properly. So a larger sized image then the screen will fit on the screen. So please, either make resizing an option or take it out altogether.
|
07-25-2012, 09:12 AM | #238 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Not resizing at all is not a "solution" - it solves neither of the two reasons which I clearly stated as to why calibre resizes images. Not resizing is a possible "option" I may consider one day but it is not a "solution" to anything.
|
07-25-2012, 09:17 AM | #239 | |
Resident Curmudgeon
Posts: 73,942
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Buy resizing the image, you make the being able to change/add in a cover image useless. |
|
07-25-2012, 10:46 AM | #240 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@JSWolf - it is *YOUR* solution which while it might make you happy is not necessarily *THE* appropriate decision to be made for every other user out there. As you well know calibre has in excess of 6 million users. If enough users felt that strongly about it Kovid would have changed calibre's conversion behaviour - there are reasons for why it does what it does which are just as important to other users. Personally I find large covers a complete and utter waste of time and disk space. All this drama for something that users immediately skip past on their way to reading the book (Kindle users don't even have to skip it?).
Without this option in Modify ePub if you want a bigger cover you can change your output profile and just run the plugin again. There is no end of the world doomsday scenario here, the plugin can be re-run perfectly safely for those who now want bigger covers. As I said above I will consider an option to not resize for a future release, but it isn't important enough that I am going to sacrifice a rare sunny evening in london for. And if your world will end without it, feel free to go back to using Tweak ePub to substitute your covers like you used to do. I'll get over it, honest. |
Tags |
modify epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | 04-17-2024 06:17 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 166 | 02-13-2024 11:31 AM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |