07-24-2010, 01:37 AM | #1 |
Connoisseur
Posts: 82
Karma: 13557
Join Date: Jul 2010
Location: Albuquerque, NM
Device: Kobo, KT, KGlo, H2O, Libra
|
CSS and firmware V1.4?
i still haven't gotten around to upgrading to the new firmware, in great part because of formatting tweaks I *know* I can make with the old firmware. So my question is, how are css files processed by the version 1.4 firmware?
I kind of assume that the font-size is now being ignored/overwritten, based on the "fix" to the font-rescaling issues, but has anyone tested this? Line height is the other setting I use all of the time, to remove/minimize the space between lines - I know requests for this in the next revision, but at least pre 1.4 you can I have it set to something like 85-90% of the font-size, and am quite happy. It sounds like justification and probably other similar settings are still processed, (based on comments in other threads), but I'd be love to hear about other tags that are or aren't being ignored! |
07-24-2010, 09:14 PM | #2 |
Evangelist
Posts: 435
Karma: 24326
Join Date: Jun 2010
Device: Kobo
|
I haven't seen anything odd happening along those lines since I upgraded. Everything works as expected.
|
Advert | |
|
07-25-2010, 04:39 AM | #3 |
Connoisseur
Posts: 82
Karma: 13557
Join Date: Jul 2010
Location: Albuquerque, NM
Device: Kobo, KT, KGlo, H2O, Libra
|
oh, I wasn't thinking so much in terms of "odd" things happening, more like how much ability will I have to tweak the formatting
Right now, I'm set the font-size at about 80-90% of what "smallest" is, and line-height about 90% of the font size - so I get something like the attached: |
07-25-2010, 01:33 PM | #4 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jul 2010
Device: kobo
|
hello
if you share your css, i can test it on 1.4 i like to know how to modify line spacing ? Fabrice |
07-26-2010, 04:51 AM | #5 |
Connoisseur
Posts: 82
Karma: 13557
Join Date: Jul 2010
Location: Albuquerque, NM
Device: Kobo, KT, KGlo, H2O, Libra
|
Okies, here's a sample e-pub that I've formatted (available via the Baen Free Library) by David Weber, along with a screenshot of how the first page of Chapter 1 looks...
As far as the spacing, you can use the "line-height" tag with calibre to set it - so I might do a base-font-size of 13, and a line-height equal to 11. The problem I saw with doing it this way is a calibre seems to apply line-height specified this way universally - so around the chapter headings, etc, it decreases the line height as well. Instead, I've specified the line-height in html.css, which calibre uses for default values, under the defaults for the paragraph tag. Definitely helps I think the "smallest" font size is 15pt, but that is the only one I've ever figured out - I've found that setting the line-height at 85-90% of the font size works really well for me, but you can test and see what you think. Last edited by thp1017; 07-26-2010 at 06:39 AM. |
Advert | |
|
07-26-2010, 04:25 PM | #6 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jul 2010
Device: kobo
|
thanks for the tips
i am not able to reproduce exactly the screenshot (calibre 0.7.10) the Chapter one is 8 on 364 ?? With 13 (base) and 11 (line) , i have 3 less line But with 10 (base) and 8 (line) i have 13 lines more Last edited by fab0109; 07-26-2010 at 04:36 PM. |
07-26-2010, 05:11 PM | #7 |
Connoisseur
Posts: 82
Karma: 13557
Join Date: Jul 2010
Location: Albuquerque, NM
Device: Kobo, KT, KGlo, H2O, Libra
|
Yeah, so I ended up setting the line height in: Calibre2/resources/templates/html.css
so I have: p, dl, multicol { display: block; margin: 1em 0; line-height: 0.92em; } and then call calibre with just the font-size of 13 - which results in a font-size of 1.0833em, and a ratio of about 85% line height to font-size. But it sounds like you can still override the font size, you aren't stuck with what the kobo display thing provides? thanks for your help! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 09:02 PM |
css exceptions | Iain | ePub | 7 | 10-08-2010 03:45 AM |
Standardised CSS? | MacEachaidh | Sigil | 5 | 08-09-2010 11:18 AM |
help with css | bobcdy | ePub | 2 | 02-13-2010 11:59 AM |
Help with CSS, anyone? | rogue_ronin | Workshop | 36 | 08-14-2009 09:28 PM |