![]() |
#31 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#32 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The metrics for a font have multiple values which can be used for rendering the space between the lines. For example, ADE (Desktop and Sony) uses a different value then the KF8 does on eInk Kindles. So I can adjust a font to have different lines heights based on ADE or KF8.
|
![]() |
![]() |
![]() |
#33 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
I've never seen an epub where re-setting the line height to default didn't yield a pleasant result, though. And to me, increasing the height with something so drastic as 20+ % looks very strange, hence my advice would still be to leave it at default. |
|
![]() |
![]() |
![]() |
#34 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#35 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#36 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
|
|
![]() |
![]() |
![]() |
#37 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
Quote:
Code:
font-size:0.6em; vertical-align:top; |
|
![]() |
![]() |
![]() |
#38 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
![]() There are also CSS tricks you can employ to make superscripts behave better, but AFAIK you won't get them to render completely correctly regarding line height. Edit: Ninja'd by SBT ![]() Quote:
Code:
span.ebook-superscript { vertical-align: super; font-size: 0.6em; line-height:0; } Code:
a footnote after the following word<span class="ebook-superscript">1<span> ![]() Last edited by Man Eating Duck; 05-02-2013 at 06:04 AM. |
||
![]() |
![]() |
![]() |
#39 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
Code:
font-size:0.7em; vertical-align:0.25em Last edited by Agama; 05-02-2013 at 07:28 AM. |
|
![]() |
![]() |
![]() |
#40 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I often use "line-height:0" for superscript, so they don't mess with actual line heights (there may be some collision from time to time, but I can live with that).
|
![]() |
![]() |
![]() |
#41 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Now, when you work with an ePub, if you do not set a line-height specifically, you are at the mercy of the font's metrics and the reading apps default value. For example, Sony uses a default line height of 1em. Kobo uses 1.3em. So the same book with no set line-height will be different because of the default settings. And then even on the same device, the metrics of the font also dictate how the line height comes out. So if I was to move my ePub over to a Kobo, I would have to set a line-height in CSS or end up with a line-height too big for my liking. |
|
![]() |
![]() |
![]() |
#42 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#43 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
I mean P { line-height:1.4em } but this is measured from the top of one line in the paragraph to the top of the next line in the same paragraph, (i.e. it is not the space between the bottom of one line and the top of the next), so given that the font accounts for 1.0em this doesn't lead to too much space between the lines and it stops uneven spacing due to the superscripts on some lines and not on others.
As I mentioned earlier this is only for books with lots of superscripting such as the Bible, otherwise I would use a smaller value as it does use up more screen space than is ideal. Image attached shows a small sample from the ESV Bible, (as permitted in the copyright notice), with paragraph line-height:1.4em, and superscripts font-size:0.7em; vertical-align:0.25em. (Margin between paragraphs is 0.8em) Last edited by Agama; 05-02-2013 at 06:10 PM. |
![]() |
![]() |
![]() |
#44 | ||
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Tex2002ans said:
Quote:
Tex2002ans said: Quote:
This thread interested me in future-proofing illustrated books. Everyone has been discussing cover images, or books with only a handful of illustrations and charts. I'm currently working on a Mark Twain book with over *300* quarter-, half-, and full-page illustrations, and I use max of 600x800px. I fully expect the final book size to exceed 15mb, probably more. If I increase resolution to 800x1200, the book will double in size. I hesitate to split this book into multiple volumes. Perhaps I should only consider higher resolution images when there aren't hundreds of them? What are your thoughts? |
||
![]() |
![]() |
![]() |
#45 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I tried all of the PNG compression programs out there (I used OptiPNG for a long time as that worked well with my automated commandline setup), but once I found ScriptPNG, I was sold. Here is also his compression tests and a lists 11 different PNG compression programs. Feel free to download them all and use whichever one you like best: http://css-ig.net/png-test-corpus DO: Compress PNGs to the best of your ability. DO: Use PNG for images with few colors/grayscale/B&W. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error: "can only concatenate list (not "unicode") to list" | bmuesse | Library Management | 2 | 01-11-2013 03:50 PM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
Convertion error txt to epub "IndexError: list index out of range" | economix | Conversion | 6 | 12-25-2011 06:14 AM |
How to remove "Fully read" books from "Last Open" list? | pjeanetta | PocketBook | 4 | 12-08-2010 10:30 AM |
Suggestion: Don't set "color" tag in .epub css | McAlsop | Calibre | 16 | 06-17-2010 09:13 AM |