![]() |
#16 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
I hacked the modify epub plugin to perform the dirty solution mentioned above to strip line-height and font-family from the css. This way it is only one click. But as mentioned, in some special cases, this leads to small problems. I think I uploaded my modified version somewhen here, maybe you find it with a search. It is an older version of the plugin, but it should still work and it is even very simple to copy the few changes to a new version.
|
![]() |
![]() |
![]() |
#17 | |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Quote:
https://www.mobileread.com/forums/sho...&postcount=897 Thanks for the work on it. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,814
Karma: 68407974
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
|
Quote:
One is, if you try to change the line-height in a book where the book currently would silently override your choice, you get a little popup: "Do you really want to override publisher-specified line-height within this book? Y/N", possibly with a "Learn more" link to see what sort of problems it can cause. This should pop up once per book only. (It may need to come with a "Stop overriding publisher line-height" option once chosen.) Alternatively, an Advanced Settings area in Settings where the user could pick and choose which publisher settings to override and which to leave in place. |
|
![]() |
![]() |
![]() |
#19 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Kobo should at least give the user a decent indication that the books line height cannot be adjusted, I suggest greying out the line height slider if the line height cannot be adjusted.
This would prevent OCD folks like me from spending hours trying to locate the fault which isn't a fault at all. |
![]() |
![]() |
![]() |
#20 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
It's actually pretty common for readers not to be able to override some settings if they're specified in the book's stylesheet. As much as I loved the Sony 350, it also couldn't overwrite defined fonts even with your own stylesheet (and I never considered it a flaw of the Sony, it's just how readers work and what they're capable of). You had to edit the book's stylesheet to remove the font specific lines.
So it's something most of us are used to dealing with, Kobo readers are no different in that regard. And I'm happy just opening the problem book up in Sigil and deleting the lines that get in the way of how I like to read. Or use the modified plugin that dickloraine was nice enough to make changes to for the "quick and dirty" fix if you really don't want to open up the problem book. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
yes, but, how many ebook users know which books line height is unadjustable ?, how many users delve into sigil to fix the problem ?.
Last edited by leftright; 07-22-2015 at 04:10 AM. |
![]() |
![]() |
![]() |
#22 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Short of opening up each book, I'm sure they'll find out like I do... when I open the book to read it on my Glo HD.
As for how many bother to then open up the book and fix the spacing or fonts or whatever, only those readers that it really annoys. Like me ![]() Still it's a common problem with most readers that I've ever tried, not always being able to override a particular item within the book's stylesheet. |
![]() |
![]() |
![]() |
#23 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
my point is this,
I converted a book in calibre with line height settings, When I opened the book in my Glo I was confused as to why the line height slider wouldn't work, I then spent hours with calibre converting the book with different line height settings trying to establish what the issue was, to no avail. Frustrated and confused I came here and through this forum I discovered that it's a complex issue dependant on the publisher and how calibre converts the CSS properties, and that the only way to rectify the line height issue is by modifying the code and CSS properties. I don't see why calibre can't be more specific on how each eReader handles the flattened CSS "stuff" by incorporating in Calibre's conversion thingy a message which instructs the user what to do to enable the eReader's adjusters to work, after all if you guys know that Calibre flattens the CSS stuff, whatever that means, surely the dev's could build in some type of feedback which notifies the user that some reader settings wont work. My anger at this lack of feedback stems from the fact that I have a large collection which I've been converting in batches as I go along, I now have to return to each book and individually reconvert with remove "line-height", very very annoying and time consuming. Last edited by leftright; 07-22-2015 at 11:58 PM. |
![]() |
![]() |
![]() |
#24 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I wouldn't recommend blindly converting every book without seeing if it first needs any tweaks to get it to how you want it to look on your reader. You could be really messing up some nicely formatted books.
But if that's the way you insist on going, why not just select all your books in the Calibre library by hitting Ctrl-A, use dickloraine's modified plugin mentioned above with Remove line-height settings checked, click OK and then go to sleep. Not time-consuming at all as long as you don't intend to sit and stare at the screen while Calibre is working on the changes. Or in the Look and Feel tab of your preferences in Calibre, find out which line-height spacing you prefer and leave it set to that, then you no longer have to be bothered making any adjustment on the reader. For myself, I find 120% with the font I prefer works well. And again, you can set Calibre to convert all your books at once while you're away from the PC. Calibre is a great tool that makes library management and converting your books as easy as possible. It's not however meant to teach you everything there is to know about the inner workings of how epubs are put together, how publishers can create either a very nicely formatted book or a real mess of a book, and how each brand of ereader hardware and reading apps handle the books differently from each publisher. That's far beyond the scope of what Calibre or any program can do. Being angry about it is just a waste of time better spent learning more. |
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
line-height: 1.2; line-height: 1.2em; are particularly common, and are often scattered throughout the CSS i was given this regex in another thread, way back. be sure not to have minimal mode ticked & it will find all entries line-height: [^;}\r\n]*;? i take out font family definitions at that stage also. even an innocuous font-family:serif; is enough to prevent on-device font selection |
|
![]() |
![]() |
![]() |
#26 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Quote:
Quote:
ok, so what do I have to place in calibre's CSS remove thingy to ensure that fonts are read from the book, the line height and fonts adjustable ?. I'm guessing that the syntax is something like this, line-height: [^;}\r\n]*; font-family:serif; Last edited by leftright; 07-23-2015 at 02:08 AM. |
||
![]() |
![]() |
![]() |
#27 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Except in one case, a Calibre conversion explicitly stays away from any device dependent options. This is to give the best experience to as many people as possible. Personally, if calibre did implement device specific settings like you want, I would be complaining at least as loudly about them as you are about the lack of them. The only place it does is the image size. There are profiles to set the maximum image size to be used. These probably made sense for older devices, but all the currently available devices will resize the images properly. And to handle what you want, you can set the default options for a conversion. Any new conversion will use these. But, calibre stores the selected options when you convert a book. You need to clear these, if you convert it again. And finally, I can't think of the last time I had a book whose line height didn't adjust without me editing it. Admittedly, I always have it set to the minimum height on the device, but I haven't had a book recently that didn't respect this. |
|
![]() |
![]() |
![]() |
#28 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Quote:
Quote:
I note your point, but I wouldn't be here if I didn't have the line height issues, which I've subsequently discovered can be rectified by adding a line command to the CSS remove thingy. Trust me it isn't obvious to click and play users like me of whom there are many I'm sure. |
||
![]() |
![]() |
![]() |
#29 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
With all this, here's the strange thing: As far as I can tell, a Kobo ereader is the best at respecting the books design. Everything else seems to stuffs around with it more than a Kobo does. Or ignore parts (eg. line height). This means that if the books creator actually puts thought into the design, a Kobo is the most likely to display it the way they intended. The unfortunate consequence if this is that if the book creator doesn't know what they are doing, and especially if they rely to heavily on automated tools, bad things happen. And the over-use of line height in the CSS is one of these things. Or setting a font in places it shouldn't be set. The real thing here is to make sure the creators learn how to do this properly. And the book creation tool writers understand what they are doing. And is important to note that calibre is NOT a book creation tool. |
||
![]() |
![]() |
![]() |
#30 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Quote:
Quote:
so to remove line height and font issues is the following syntax correct ? line-height: [^;}\r\n]*; font-family:serif; |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo changing line spacing doesnt work, how to fix (with calibre) | irow | Kobo Reader | 21 | 01-01-2022 10:10 AM |
Line Spacing | Francois Driesen | Calibre | 2 | 08-22-2014 02:21 PM |
want to fix Cryoburn (Lois M Bujold) character spacing | jlocicero | ePub | 16 | 05-03-2013 02:09 PM |
Minimum Line Height being ignored for MOBI | yanathin | Conversion | 2 | 10-05-2012 03:24 PM |
PRS-350 Minimum line spacing? | barium | Sony Reader | 8 | 05-26-2011 04:15 PM |