Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2019, 06:53 PM   #1
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Why do different books render differently in the viewer?

Different books in my library render differently in the viewer. For example in the two attached images the font weight and line spacing are different with these two books; why is that when I have chosen the same font size in settings? I prefer the heavier weight font and tighter line spacing. Is there a way I can force all books to display the same font, font weight, line spacing, etc.? I have experimented a little with style-sheets but must not have been doing something properly because I could not affect the viewer display. Thank you.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	342
Size:	114.3 KB
ID:	174826   Click image for larger version

Name:	2.png
Views:	346
Size:	117.5 KB
ID:	174827  
GarryB123 is offline   Reply With Quote
Old 11-09-2019, 08:41 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,128
Karma: 27110892
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Books have their own internal styles. You need to give your stylesheet rules enoughr priority to override those, which you can do by using !important. But in general if you want to harmonise the look and feel of books then best way to do so is via conversion.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-09-2019, 08:44 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,847
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by GarryB123 View Post
Different books in my library render differently in the viewer. For example in the two attached images the font weight and line spacing are different with these two books; why is that when I have chosen the same font size in settings? I prefer the heavier weight font and tighter line spacing. Is there a way I can force all books to display the same font, font weight, line spacing, etc.? I have experimented a little with style-sheets but must not have been doing something properly because I could not affect the viewer display. Thank you.
The CSS is different enough that the font used and the line height are not the same. You can use the editor to remove any embedded fonts and line height found in the CSS. That would allow you to specify the same font and have the same line height.
JSWolf is offline   Reply With Quote
Old 11-09-2019, 09:34 PM   #4
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Thank you Kovid and JSWolf

In the editor, I copied the CSS from the book that looked good to me, and pasted it in place of the CSS in the book I didn't like the look of. It worked! I don't know if this was the right thing to do but it worked; and was easy. Was that the wrong way to go about standardizing a look and feel? Could it mess something up?

Is there a tutorial to accomplish a standard look and feel using conversion?

Thank you for helping me this far. What a powerful program this is.
GarryB123 is offline   Reply With Quote
Old 11-10-2019, 12:24 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,241
Karma: 165616549
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by GarryB123 View Post
Thank you Kovid and JSWolf

In the editor, I copied the CSS from the book that looked good to me, and pasted it in place of the CSS in the book I didn't like the look of. It worked! I don't know if this was the right thing to do but it worked; and was easy. Was that the wrong way to go about standardizing a look and feel? Could it mess something up?
It is a very good way to screwup the look and feel. If you look in the CSS, you'll see some apply the basic paragraph formatting to the p tag and then modify that for the variant paragraph types which others use separate classes for paragraph types as an example. Chapter headers, section breaks, etc. are also going to be very susceptible to damage.

Quote:
Originally Posted by GarryB123 View Post
Is there a tutorial to accomplish a standard look and feel using conversion?
Not that I've ever seen. You might want to take a look at some the stylesheets in the Sigil, epub and workshop forums. One sample thread is Stylesheet examples? in the Sigil forum. One warning is that stylesheets tend to be highly personal reflecting the user's approach to formatting so don't be afraid to start collecting snippets into your own personal stylesheet.

Basically, take a backup copy of your epub, edit the stylesheet and see what it looks like (I'd suggest either Sigil or calibre' editor -- I use both). It won't blowup your computer and it's a great way to learn.

I was going to suggest Liz Castro's Pigs, Gourds and Wikis site which was one of my favourites years back for information on editing ebooks but it seems she has moved on to Catalan independence and that site is pretty much moribund though much of the content is still available through searching.
DNSB is offline   Reply With Quote
Advert
Old 11-10-2019, 06:27 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,861
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by GarryB123 View Post
Thank you Kovid and JSWolf

In the editor, I copied the CSS from the book that looked good to me, and pasted it in place of the CSS in the book I didn't like the look of. It worked! I don't know if this was the right thing to do but it worked; and was easy. Was that the wrong way to go about standardizing a look and feel? Could it mess something up?

Is there a tutorial to accomplish a standard look and feel using conversion?

Thank you for helping me this far. What a powerful program this is.
There is NOT one stylesheet to rule them all.
Style sheets are paired (matched) to the book that they were made for.

Even, the ones used by major publishers get misused (because the book formatting person does not understand how to apply the listed styles or there are custom additions for that book). Toss in, users like us, who clean unused styles. apply the cleaned one to a book that has custom additions and
theducks is online now   Reply With Quote
Old 11-10-2019, 03:07 PM   #7
ps67
Guru
ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.
 
Posts: 752
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Inkpad 4, Inkpad Color
I can assure that it is not so difficult to learn a bit of css/html so You can edit Your books in the way You like. I bought my Kindle when I was 50 years old and I knew nothing about css/html, now I am able to do some basic changes in my books, so seldom I am unsatisfied with them.

And preferences in book formatting are pretty individual: this is the reason way in this forum there are some people (like me) the reformat the books they buy.
ps67 is offline   Reply With Quote
Old 11-10-2019, 07:05 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,847
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Garry if you attach an ePub to a post in this thread that you would like to have modified to look better, I'll do it for you. Then you can take the original and the one I modified and using the Calibre editor, you can do a compare and see what sort of changes I made. That's one way to start learning HTML/CSS.
JSWolf is offline   Reply With Quote
Old 11-10-2019, 07:25 PM   #9
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Thank you all! I'll respond shortly after I work more on this.
GarryB123 is offline   Reply With Quote
Old 11-10-2019, 07:39 PM   #10
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,242
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Just be careful with what content you do post. Public Domain only
PeterT is offline   Reply With Quote
Old 11-10-2019, 08:13 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,847
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by GarryB123 View Post
Thank you all! I'll respond shortly after I work more on this.
Make sure the book is public domain or creative commons.
JSWolf is offline   Reply With Quote
Old 11-10-2019, 08:54 PM   #12
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by DNSB View Post
It is a very good way to screwup the look and feel.
Oops. I got lucky on that one; they were two simple books with simple style sheets.

Quote:
Originally Posted by DNSB View Post
Basically, take a backup copy of your epub, edit the stylesheet and see what it looks like (I'd suggest either Sigil or calibre' editor -- I use both). It won't blowup your computer and it's a great way to learn.
Thanks. I'm doing this. Very cool. I'm finding sometimes items are nested and applying a font size to one element can have unexpected results depending on prior definitions. Cool anyway.
GarryB123 is offline   Reply With Quote
Old 11-10-2019, 08:54 PM   #13
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by PeterT View Post
Just be careful with what content you do post. Public Domain only
Indeed. Thank you.
GarryB123 is offline   Reply With Quote
Old 11-10-2019, 08:55 PM   #14
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by JSWolf View Post
Make sure the book is public domain or creative commons.
Indeed. Thank you.
GarryB123 is offline   Reply With Quote
Old 11-10-2019, 08:58 PM   #15
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by theducks View Post
There is NOT one stylesheet to rule them all.
Style sheets are paired (matched) to the book that they were made for
I'm learning so, and it makes sense. I need to leave the bulk of the CSS as is and only change enough to make it look as I want.
GarryB123 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does ebook-viewer (of calibre) render fonts msbm correctly and how? SuiVu1fa Calibre 4 11-28-2018 06:03 PM
Why publishers format ebooks differently than paper books? greenapple General Discussions 117 01-15-2014 07:48 AM
My ePubs render differently on Android, Apple and Aldiko Themus ePub 9 09-26-2012 01:41 AM
Which methods render and draw pages for viewer? foosion Development 1 10-29-2011 03:30 PM
Calibre E-Book Viewer and ADE render ePub TD font-size differently Agama Devices 5 06-17-2011 02:44 AM


All times are GMT -4. The time now is 09:32 PM.


MobileRead.com is a privately owned, operated and funded community.