Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2019, 09:53 AM   #31
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by deback
The way to fix the line-height is to open the book in the Editor, double-click on the stylesheet.css file (at the left below the *.html files), and then change the lines that start with line-height to 1.2 (1.2em will work, too, but you only need 1.2).
Quote:
This is just wrong. To fix the line-height is to remove it. There should be no line-height unless it;s an ePub anf you need a line-height of 0 for those pesky large first letters of a chapter/section break. Kindles don't respect line heights less then 1.2em and on Kobo Readers, you can set the line height so you don't want any so you can set what the reader wants for a line height.
It's not wrong; it's just one possible quick solution. Maybe I didn't word my comment (in the quote above) good enough.

Actually, what I do is have rules in the Transform section to change any line-heights greater than 1.2 or less than 1.2 to 1.2. Most ePub files have several line-height lines in the *.css file, and many have the line-heights set to more than 1.2, which is very annoying when reading. I could remove them all, sure, but I just change them all to 1.2. Having those lines in the *.css file will work, whether they should be there or not, but only the body class really needs to have the "line height: 1.2" line.
deback is offline   Reply With Quote
Old 11-13-2019, 03:21 PM   #32
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
Both editors have their power. I use both (I started with Sigil). I LOVE they have differences. I use them both because of what they do DIFFERENTLY.
Yes! I'm learning their strengths. So far calibre is meeting my needs. What a cool program.
GarryB123 is offline   Reply With Quote
Advert
Old 11-13-2019, 09:46 PM   #33
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: 79,756
Karma: 145864619
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 deback View Post
It's not wrong; it's just one possible quick solution. Maybe I didn't word my comment (in the quote above) good enough.

Actually, what I do is have rules in the Transform section to change any line-heights greater than 1.2 or less than 1.2 to 1.2. Most ePub files have several line-height lines in the *.css file, and many have the line-heights set to more than 1.2, which is very annoying when reading. I could remove them all, sure, but I just change them all to 1.2. Having those lines in the *.css file will work, whether they should be there or not, but only the body class really needs to have the "line height: 1.2" line.
But doing this will create problems for some people. Take a Kobo user. There is an option to set the line height. If you've set it, it cannot be made smaller if that's what's wanted. When I read ePub, I read with a line height smaller then 1.2em. So because you think it's correct to have a 1.2em line height, everyone who does not strip DRM or edit eBooks has to put up with it.m.

The way to make eBooks is to do so using less is more. Don't set L/R margins. Don't set line hight. Don't use left justification. Use the default font size where possible. Don't use classes for your most used p settings. Don't embed fonts just because. Keep it simple. In those cases where the user can adust some settings, let all of that work. Don't put in what you think is best if it's going to cause a problem for others.
JSWolf is offline   Reply With Quote
Old 11-14-2019, 12:08 PM   #34
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: 755
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Inkpad 4, Inkpad Color
Quote:
Originally Posted by JSWolf View Post
The way to make eBooks is to do so using less is more. Don't set L/R margins. Don't set line hight. Don't use left justification. Use the default font size where possible. Don't use classes for your most used p settings. Don't embed fonts just because. Keep it simple. In those cases where the user can adust some settings, let all of that work. Don't put in what you think is best if it's going to cause a problem for others.
I agree with You, most times css are uselessly complicated. When I buy a book I like when that principles are used (almost never).

But if someone is modifying a book for his personal use also quick and dirty solutions can be used.
ps67 is offline   Reply With Quote
Reply


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 05:26 AM.


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