|
|
#226 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
As for the text-indent, do you think that can be done using my idea?
__________________
|
|
|
|
|
|
|
#227 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
Enthusiast
|
|
|
|
#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? |
|
|
|
|
|
|
#229 | ||
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,316
Karma: 11288999
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Quote:
I have converted over 9000 books with this as the setting and they are all exactly what I desire. Quote:
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
||
|
|
|
|
|
#230 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 1234
Join Date: Jun 2012
Device: none
|
Quote:
|
|
|
|
|
|
|
#231 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,112
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
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.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#232 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
__________________
|
|
|
|
|
|
|
#233 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,112
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
The problem arises when the height:100% is set in the body and/or html class.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#234 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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
__________________
|
|
|
|
|
|
#235 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,097
Karma: 3332928
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, KoboGlo, KoboAuraHD
|
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 |
|
|
|
|
|
|
#236 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#237 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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.
__________________
|
|
|
|
|
|
#238 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#239 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
Buy resizing the image, you make the being able to change/add in a cover image useless.
__________________
|
|
|
|
|
|
|
#240 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 631 | 05-10-2013 04:10 PM |
| [GUI Plugin] Manage Series | kiwidude | Plugins | 105 | 05-06-2013 01:43 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| Modify ePub plugin dev thread | kiwidude | Development | 343 | 11-22-2012 07:35 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |